Function gauss_electric_residual
pub fn gauss_electric_residual(
grid: &Grid3dSpec,
bc: BoundaryCondition,
dx_field: &[f64],
dy_field: &[f64],
dz_field: &[f64],
rho_v: &[f64],
residual_out: &mut [f64],
) -> Result<f64, EmfOperatorError>Expand description
Compute the electric Gauss-law residual $r_D = \nabla \cdot \mathbf{D} - \rho_v$.