Skip to main content

body_force_density_point_segment

Function body_force_density_point_segment 

Source
pub fn body_force_density_point_segment(
    xyzfil: (&[f64], &[f64], &[f64]),
    dlxyzfil: (&[f64], &[f64], &[f64]),
    ifil: &[f64],
    xyzobs: (&[f64], &[f64], &[f64]),
    jobs: (&[f64], &[f64], &[f64]),
    out: (&mut [f64], &mut [f64], &mut [f64]),
) -> Result<(), &'static str>
Expand description

JxB (Lorentz) body force density (per volume) due to a linear current filament segment at an observation point with some current density (per area).

Uses filament midpoint as field source.

ยงArguments

  • xyzifil: (m, m, A) Filament start and end coords and current
  • dlxyzfil: (m) Filament segment length deltas, each length m
  • ifil: (A) Filament current, length m
  • xyzobs: (m) Observation point coords
  • jobs: (A/m^2) Current density vector at observation point
  • out: (N/m^3) Body force density x, y, z components