Skip to content

Tolosa-lct Outputs

Tolosa-lct supports several output formats. All files are written to the bin/ directory. Write intervals can be specified as formatted strings ("N seconds/minutes/hours/days") or as raw second values.

Tolosa-lct extends the Tolosa-sw output system with additional diagnostic fields specific to the non-hydrostatic solver (NH fields, wave breaking, atmospheric forcings).

7-digit flag controlling Tecplot .dat output:

DigitControls
D10=off, 1=on, 2=original format
D2NH fields (w, p, s_x, s_y, surge tensors)
D3Longitude/latitude fields
D4Friction coefficients (cl, cb, z0 or Manning)
D5Local acoustic speed a_loc
D6Low-Mach coefficients coef_sw / coef_a (only with lm scheme)
D7Wave breaking fields
w_tecplot = 1100000 ! Tecplot on + NH fields
dt_tecplot = 10 minutes

8-digit flag. Note: D2 differs from Tecplot — for VTK, the surge fields (phi, psi, tensors) are written by D7, not D2.

DigitControls
D10=off, 1=on, 2=original format
D2NH fields w, p, s_x, s_y (dispersive strain, only with DISP=yes)
D3Longitude/latitude fields
D4Friction coefficients (cl, cb, z0 or Manning)
D5Local acoustic speed a_loc
D6Low-Mach coefficients coef_sw / coef_a (only with lm scheme)
D7Wave breaking fields — model 1: visc_break_B, visc_break_nu_t; model 2: phi, psi (or tensors for SURGE=full) + Br
D8External forcings (p_atm, wind_u/v, tbf)
w_vtk = 10000000
dt_vtk = 30 minutes

Fortran unformatted binary output, readable by PyTolosa. 6-digit flag:

DigitControls
D11=separate file per snapshot, 2=concatenated (all timesteps in one file)
D2NH fields w and p
D3Longitude/latitude fields
D4Friction coefficients
D5Local acoustic speed a_loc
D6Low-Mach coefficients coef_sw / coef_a
w_bin = 100000
dt_binary = 1 hour

5-digit flag. When digit 1 is > 0, enables global diagnostics written at interval dt_stat / dtp:

DigitControls
D10=off, >0=on
D2dt-weighted SSH statistics → VTK in res/statistics/ every dt_stat. Tide/mean sea level subtracted before computing variance. Outputs: ssh_mean (weighted mean) and H_m0 = 4σ (significant wave height, H_m0 = 4√m₀). D2 ≥ 2 also writes dt-weighted mean energy density maps: Epot_h_mean, Ekin_u_mean, Ekin_w_mean, Epot_p_mean.
D3Energy time series: Ekin_h, Ekin_w, Epot_h, Epot_p, Etot (→ Tecplot)
D4Volume, h_max, u_max time series (→ Tecplot)
D5Hydrostatic/NH indicator field (→ Tecplot)
w_post = 10100 ! enable post + energy + h/u time series
dtp = 60. ! post-treatment diagnostic interval (digits 3–5)
dt_stat = 1 hour ! SSH statistics export interval (digit 2)
ParameterDefaultDescription
dt_tecplotnullTecplot write interval (formatted string)
dt_vtknullVTK write interval (formatted string)
dt_binarynullBinary write interval (formatted string)
dt_restartnullRestart file write interval
dt_statnullSSH statistics (w_post D2) VTK export interval — independent of dtp
t_min_statnullSimulation time at which statistics accumulation begins
t_max_statnullSimulation time at which statistics accumulation ends
dt_window1e15Statistics window duration (s); accumulator is reset after each export
dtw-1.Tecplot and VTK interval in seconds (fallback)
dtb-1.Binary interval in seconds (fallback)
dtrst-1.Restart interval in seconds (fallback)
dtp-1.Post-treatment diagnostic interval in seconds (fallback)
ParameterDefaultDescription
restart00=cold start, 1=restart from restart.bin
dt_restartnullWrite interval for restart snapshots
ParameterDefaultDescription
verbose1Terminal output level: 0=quiet, higher=more detail

Tolosa-lct uses the same savefield.yaml mechanism as Tolosa-sw — see Tolosa-sw Outputs — savefield.yaml for the full reference (gauge, field, transect keys, location by x/y, lon/lat or cell, formats, t_min/t_max).

Tolosa-lct addition — variables: full

For gauges and fields, full is an additional variable set that includes the NH and wave fields on top of the standard shallow-water variables:

gauge:
-
name: WG1
x: 100.
y: 500.
variables: full # ssh + u + v + bathy + w + p + phi/psi + s1/s2
dt: 0.01

The exact columns written depend on the compilation flags:

Compiled withAdditional columns
SURGE=fullphi_xx, phi_yy, phi_xy, psi_xx, psi_yy, psi_xy
SURGE=scalarw or SURGE=scalarphi (+ psi with scalar)
DISP=yess_x, s_y

full is always written in the column order: julian_cnes / ssh / u / v / bathy / w / p followed by the active wave/disp fields above.