Skip to content

Parameters Reference

Complete list of all input.txt parameters accepted by Tolosa-lct. Parameters shared with Tolosa-sw are documented in the Tolosa-sw Parameters; this page focuses on parameters that are new or differ in Tolosa-lct.

Two exclusive modes: if mesh_name is set, the Gmsh file is read and all Cartesian parameters are ignored.

ParameterDefaultDescription
mesh_namenullGmsh .msh file; if set, Cartesian parameters below are unused
nx, ny101Cartesian mesh cell counts
lx, ly1.Cartesian mesh physical dimensions (m)
bc_N/S/W/EwallBoundary condition per side (see Boundary Conditions)
mesh_typebasicCartesian mesh variant
part_stratseqMesh partitioning strategy

time_format controls how dates and durations are interpreted:

time_formatBehavior
classic (default)No calendar. Duration set by simu_time or ts
julianstart_date and end_date are Julian Day Numbers
julian_cnesstart_date and end_date are CNES Julian Days (epoch: 1950-01-01)
gregorianstart_date and end_date are strings "YYYY-MM-DDThh:mm:ss"
ParameterDefaultDescription
time_formatclassicSee table above
simu_timenullDuration: "N seconds/minutes/hours/days"
start_datenullStart date (format depends on time_format)
end_datenullEnd date (optional; overrides simu_time if set)
ts0.Fallback duration in seconds when simu_time = null
nt0Fixed number of time steps (alternative to simu_time)
cfl0.5CFL number (adaptive time step)
dt-1.Fixed time step in seconds (overrides CFL if > 0)
adapt_dt1Adaptive time step: 1=on, 0=off
ParameterDefaultDescription
temp_scheme1Temporal scheme: euler/1 (energy-dissipating splitting), 2 (second-order), euler_s2/s2, euler_s3/s3, imex_ssp/ssp (second-order IMEX SSP), imex_ars/ars (second-order IMEX ARS)
spatial_schemelmSpatial scheme: low_mach/lm, low_mach_up/lmup, rusanov/r, pred-corr/pc
spatial_order1Order of accuracy: 1=first order, 2=second order (MUSCL)
nb_level5Cells used for flux interpolation near discontinuities (Low-Mach only)
bc_controlfullLow-order scheme at boundaries: no, wall, wave, full (wall + inflow)
limit_musclhMUSCL limiter variable: no, h (depth), full (all variables)
gamma0.5Low-Mach stabilization constant (gamma*g)
alpha0.5Low-Mach stabilization constant (2*alpha*g)
hcut0.1Wet/dry threshold (m): dissipative scheme below this depth

The NH extension uses an acoustic-like splitting for dispersive pressure terms (w, p). The acoustic speed is derived from the prescribed Mach number so that the acoustic CFL stays manageable.

ParameterDefaultDescription
mach0.2Target Mach number:
a1400.Fixed acoustic speed (m/s), used only when fix_a > 0
alp1.159Green-Naghdi dispersive correction coefficient (active with DISP=yes)
fix_a-1>0=use constant a, ≤0=local Mach-based
beta2.Stability coefficient for the acoustic flux
cfl_ac0.8CFL number controlling the acoustic sub-step count
hcut_nh0.Depth (m) below which acoustic dispersion is switched off
nb_level_nh3Neighbor-cell levels to taper acoustic dispersion near dry cells
nb_step_a1000Smoothing iterations for the local acoustic speed field
ParameterDefaultDescription
wave_break_model00=none, 1=Symphonie-NH viscosity model, 2=enstrophy-based model

Model 1 — Symphonie-NH (wave_break_model=1):

ParameterDefaultDescription
brk_crit_slope0.6Critical free-surface slope for breaking onset
brk_crit_vel0.8Critical velocity ratio for breaking onset
brk_mix_coef0.1Momentum mixing coefficient inside the breaker
brk_prod_coef1.0Enstrophy production coefficient
brk_ken_coef5.0Kinetic energy dissipation coefficient
reinforce_breaker1.5Reinforcement factor for the breaking zone
brk_orb_vel0Use orbital velocity in breaking criterion: 0=no, 1=yes
wavesetup_window600.Time window for wave-setup running average (s)

Model 2 — Enstrophy (wave_break_model=2):

ParameterDefaultDescription
Cr0.48Iribarren-based breaking criterion
Re_12.65Reynolds parameter 1 (controls onset threshold)
Re_264.9Reynolds parameter 2 (controls saturation)
psi_0_10.0205Lower enstrophy threshold
psi_0_21.125Upper enstrophy threshold
nb_level_surge6Neighbor-cell levels for enstrophy diffusion stencil
ParameterDefaultDescription
bathy_in10=flat bottom, 1=from m_user_data.f90, 2=from external file regional.depth-ele.a
bathy_sgn-1.Sign convention: -1 means depth is positive downward
ParameterDefaultDescription
ssh_init0.Uniform SSH offset added on top of h0_user at (m); ignored on restart
init_flood0Initial flooding algorithm: 0=off, 1=on
init_flood_vtk0Write flooded initial state to VTK before time-stepping
cst_phi1e-12Isotropic initial enstrophy seed value
cst_phi_x1e-12Initial enstrophy seed, x-component
cst_phi_y1e-12Initial enstrophy seed, y-component

Linear (cl) and quadratic (cb) friction can be combined with any model. Spatially variable coefficients are loaded from optional binary files; if absent, the uniform values below are used.

ParameterDefaultDescription
friction_model00=none, 1=oceanic quadratic cb, 2=oceanic with z0 (cb from log law), 3=Manning/Strickler
friction_scheme00=explicit, 1=implicit, 2=semi-implicit
cb / cb_min / cb_max2.5e-3 / 1e-4 / 0.1Quadratic friction coefficient
cl / cl_min / cl_max0. / 0. / 1e-2Linear friction coefficient
cl_relax0.1Linear friction in relaxation/sponge zones at walls
hfric0.1Minimum water depth used in friction computation (m)
z01e-3Roughness length (m), used by model 2
n / n_min / n_max0.02 / 1e-3 / 0.1Manning coefficient, used by model 3
karman0.41Von Kármán constant
ParameterDefaultDescription
coriolis00=none, 1=spatially variable f from regional.grid-node.a, 2=beta-plane
f09.0541e-5Coriolis parameter f₀ (s⁻¹), used by model 2
beta1.7876e-11Beta-plane gradient β (m⁻¹s⁻¹), used by model 2
ParameterDefaultDescription
patm_forcing00=off, 1=pressure gradient applied to velocity, 2=same + inverse barometer correction at open boundaries
patm_ref_var0Reference pressure: 0=constant patm_ref_mean, 1=spatially variable from prmsl_ref.a
patm_ref_mean101325.Constant reference atmospheric pressure (Pa)
endian_forcinglittleEndianness of forcing binary files
ParameterDefaultDescription
wind_forcing00=off, >0=on (reads forcing.usst and forcing.vsst)
endian_forcinglittleEndianness of forcing binary files
ParameterDefaultDescription
tbf_forcing0Tidal body force: 0=off, >0=on (from tide.list)
dt_tbf600.Update interval for tidal body force (s)
tide_is_ramp0Tidal ramp-up: 1=on, 0=off
tide_time_ramp3600.Duration of tidal ramp-up (s)
endian_sshtlittleEndianness of ssht_edge_at_bc.a
ParameterDefaultDescription
frelaxexp6Shape of the relaxation function for wave generation/absorption zones
frwallsinShape of the relaxation function at reflective wall boundaries
nb_pt_sampling_wbc80Quadrature points for wave BC flux integration
nb_period_ramp_wbc10Wave periods over which the wave BC is ramped up
ParameterDefaultDescription
mpi_choice2Communication strategy: 0=library default, 1=local non-blocking, 2=persistent (MPI_SSend_Init), 3=persistent with additional optimizations
ParameterDefaultDescription
g9.81Gravitational acceleration (m/s²)
heps1e-13Minimum water depth threshold
profile-1Profiling level: -1=off, 1=MPI wait timer, 2=write to file, 3=both

For external file formats (binary forcing files, tide.list, wave spectrum, etc.), see External Input Files.