Set numerics
set_numericsConfigure numerical stability controls for FDS runs: set time step, CFL limits, advection scheme, and particle settings to fix divergence or NaN results.
Instructions
Set numerical stability controls (time step and advection scheme). Use this when a run diverges, produces NaN, or when matching CPU FDS settings. dt/lock_time_step map to &TIME; the rest to &MISC. Omitted fields keep the FDS default for the current SIMULATION_MODE. particle_global sets the particle/spray-wide keys (&MISC POROUS_FLOOR, PARTICLE_CFL(_MAX/_MIN), CNF_CUTOFF, NEAR_WALL_PARTICLE_INTERPOLATION; &DUMP MAXIMUM_PARTICLES, DT_PART); particle_global_unset returns keys to the FDS default. [bulc-mcp rules] GEN-016, SIM-002, SIM-003 — bulc_knowledge_search ""
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dt | No | Initial time step [s]. Omit to let the solver derive it from CFL_MAX*min(dx)/sqrt(g*H). | |
| vn_max | No | Von Neumann (diffusion) stability limit. VLES 1.0 / LES 0.8 / DNS 0.5. | |
| cfl_max | No | CFL upper bound (FDS VLES default 1.0). Lower it (e.g. 0.5) to stabilise. | |
| cfl_min | No | CFL lower bound (default 0.8) — below this the solver grows dt. | |
| c_deardorff | No | Deardorff SGS constant (FDS default 0.1). | |
| flux_limiter | No | Scalar advection limiter. VLES default SUPERBEE, LES/DNS default CHARM. The GPU engine implements CHARM; only MP5 is unsupported and falls back to CHARM with a warning. | |
| lock_time_step | No | Freeze dt (disable CFL adaptation). Requires dt. Standard remedy for a diverging case. | |
| particle_global | No | Particle-wide FDS settings for all nozzles (&MISC POROUS_FLOOR / PARTICLE_CFL… , &DUMP MAXIMUM_PARTICLES / DT_PART). | |
| particle_global_unset | No | particle_global keys to remove (FDS default) |