Skip to main content

circulation_kernel

Function circulation_kernel 

Source
pub fn circulation_kernel<R>(
    velocity_at_loop_points: &[Velocity3<R>],
    tangents: &[[R; 3]],
) -> Result<R, PhysicsError>
where R: RealField,
Expand description

Circulation Γ = ∮ u · dl as a discrete line integral.

velocity_at_loop_points[i] and tangents[i] are paired sample points along the closed loop; tangents[i] is the directed edge vector dl_i. Errors when the two slices have different lengths.