Skip to main content

vorticity_confinement

Function vorticity_confinement 

Source
pub fn vorticity_confinement(
    grid: &mut MacGrid,
    vorticity: &[[f64; 3]],
    epsilon: f64,
    dt: f64,
)
Expand description

Apply vorticity confinement forces to MAC grid velocities.

Vorticity confinement adds a force F = ε * (N × ω) where N is the normalized gradient of |ω|.