Skip to main content

cfl_timestep

Function cfl_timestep 

Source
pub fn cfl_timestep(grid: &MacGrid, safety: f64) -> f64
Expand description

CFL-stable time-step for the MAC grid.

Returns safety * dx / u_max where u_max is the maximum face speed. Falls back to safety * dx when the grid is quiescent.