zoomy_core.fvm.timestepping module

zoomy_core.fvm.timestepping module#

Time-stepping strategies for explicit FVM solvers.

All timestep functions return a compute_dt closure that is compatible with both NumPy and JAX (JIT-safe: no Python float() or min() on traced values).

zoomy_core.fvm.timestepping.constant(dt=0.1)#

Fixed timestep.

zoomy_core.fvm.timestepping.adaptive(CFL=0.9, nu=0.0)#

Adaptive CFL-based timestep.

Parameters:
  • CFL (float) – Convective CFL number.

  • nu (float) – Diffusivity for diffusive CFL condition. If > 0, also enforces dt < CFL * dx^2 / (2 * nu).