Function verify_discrete_poynting_power_balance
pub fn verify_discrete_poynting_power_balance(
grid: &Grid3dSpec,
bc: BoundaryCondition,
mat: &YeeMaterialParams,
dt: f64,
ex_n: &[f64],
ey_n: &[f64],
ez_n: &[f64],
ex_np1: &[f64],
ey_np1: &[f64],
ez_np1: &[f64],
hx_half: &[f64],
hy_half: &[f64],
hz_half: &[f64],
jx_half: &[f64],
jy_half: &[f64],
jz_half: &[f64],
scratch_cx: &mut [f64],
scratch_cy: &mut [f64],
scratch_cz: &mut [f64],
) -> Result<f64, EmfOperatorError>Expand description
Evaluate the exact local staggered Poynting balance residual at each cell (i, j, k).