Skip to main content

alfven_speed

Function alfven_speed 

Source
pub fn alfven_speed(
    magnetic_flux_density: f64,
    mass_density: f64,
) -> Option<f64>
Expand description

Computes the Alfven speed.

Formula: v_A = B / sqrt(μ0 ρ)

§Examples

use use_plasma::alfven_speed;

assert!(alfven_speed(1.0, 1.0e-12).is_some_and(|value| value > 0.0));