Skip to main content

yee_discrete_omega_rad_per_s

Function yee_discrete_omega_rad_per_s 

pub fn yee_discrete_omega_rad_per_s(
    grid: &Grid3dSpec,
    mat: &YeeMaterialParams,
    dt: f64,
    k_vec: [f64; 3],
) -> Result<f64, EmfOperatorError>
Expand description

Evaluate the exact 3D Cartesian Yee discrete dispersion relation for wavevector $\mathbf{k}$: $$\sin^2\left(\frac{\omega_{\text{num}} \Delta t}{2}\right) = (v \Delta t)^2 \sum_{j \in {x,y,z}} \frac{\sin^2(k_j \Delta x_j / 2)}{\Delta x_j^2}$$