Skip to main content

yee_cfl_limit_3d

Function yee_cfl_limit_3d 

pub fn yee_cfl_limit_3d(
    grid: &Grid3dSpec,
    mat: &YeeMaterialParams,
) -> Result<f64, EmfOperatorError>
Expand description

Compute the exact 3D Cartesian Yee Courant-Friedrichs-Lewy (CFL) maximum stable timestep: $$\Delta t_{\text{CFL}} = \frac{1}{v \sqrt{\Delta x^{-2} + \Delta y^{-2} + \Delta z^{-2}}}$$