Skip to main content

vector_potential_triangle_mesh_par

Function vector_potential_triangle_mesh_par 

Source
pub fn vector_potential_triangle_mesh_par(
    obs: (&[f64], &[f64], &[f64]),
    mesh: &TriangleMeshView<'_>,
    s: &[f64],
    out: (&mut [f64], &mut [f64], &mut [f64]),
) -> Result<(), &'static str>
Expand description

Vector potential contribution from a triangle mesh with nodal stream-function values. This variant is parallelized over chunks of observation points.

Args: obs: Observation point component slices (x, y, z) (m). mesh: Borrowed triangle-mesh geometry view. s: Nodal current-potential values (A). out: Output buffers for magnetic vector potential (ax, ay, az) (V*s/m).

Returns: Ok(()) after writing the vector potential to out, or an error if the mesh geometry or slice dimensions are inconsistent.

References:

  • [8], Eqs. (5)-(9), (15), and (19)-(21), for each exact triangle interaction.