Skip to main content

collocate_yee_poynting_and_energy_cell_centers

Function collocate_yee_poynting_and_energy_cell_centers 

pub fn collocate_yee_poynting_and_energy_cell_centers(
    grid: &Grid3dSpec,
    mat: &YeeMaterialParams,
    ex_n: &[f64],
    ey_n: &[f64],
    ez_n: &[f64],
    hx_nm_half: &[f64],
    hy_nm_half: &[f64],
    hz_nm_half: &[f64],
    hx_np_half: &[f64],
    hy_np_half: &[f64],
    hz_np_half: &[f64],
    sx_out: &mut [f64],
    sy_out: &mut [f64],
    sz_out: &mut [f64],
    u_out: &mut [f64],
) -> Result<(), EmfOperatorError>
Expand description

Collocate staggered Yee fields $\mathbf{E}^n$ and $\mathbf{H}^{n\mp 1/2}$ to cell centers at time $t = n\Delta t$.