pub fn yee_step_periodic(
cells: &mut [YeeRecord],
dims: [u32; 3],
spacing_m: [f64; 3],
dt_s: f64,
) -> Result<(), Error>Expand description
Advances a 3D staggered Yee lattice (x + nx*(y + ny*z)) one full leapfrog step:
H^{n+1/2} = H^{n-1/2} - (dt / mu) * curl_forward(E^n) followed by
E^{n+1} = alpha * E^n + beta * (curl_backward(H^{n+1/2}) - J) with periodic wraps.