Skip to main content

compute_shielded_field

Function compute_shielded_field 

Source
pub fn compute_shielded_field(
    cage: &FaradayCage,
    external_field: Vec3,
    grid_nx: usize,
    grid_ny: usize,
    grid_dx: f32,
) -> Vec<Vec3>
Expand description

Compute the shielded electric field inside and around a Faraday cage. The field inside a perfect conductor is zero; outside it is distorted. Returns field vectors on a grid.