Skip to main content

collocate_fluid_cell

Function collocate_fluid_cell 

pub fn collocate_fluid_cell(
    cfg: &FluidFdtdConfig,
    p_at_n: &[f64],
    v_minus_half: (&[f64], &[f64], &[f64]),
    v_plus_half: (&[f64], &[f64], &[f64]),
    cell: [usize; 3],
) -> Result<(f64, [f64; 3], f64, [f64; 3]), NumericalError>
Expand description

Interpolate staggered velocities in space and time to cell center (ix, iy, iz) at step $n$.