Functions§
- advection_
time - Advection time: τ_a = L / v.
- alfven_
speed - Alfvén speed: vₐ = B / √(μ₀ ρ).
- bennett_
pinch_ condition - Bennett pinch condition: checks whether I² ≈ 8π N k_B T / μ₀.
Returns
truewhen the plasma is in pressure balance. - fast_
magnetosonic_ speed - Fast magnetosonic speed (perpendicular propagation): v_fast = √(vₐ² + cₛ²).
- grad_
shafranov_ beta_ limit - Rough Troyon-like beta limit: β_max ≈ 1 / aspect_ratio.
- hartmann_
number - Hartmann number: Ha = B L √(σ / μ_visc). Ratio of electromagnetic to viscous forces in a conducting fluid.
- is_
frozen_ in - Returns
truewhen Rm > 100, indicating the magnetic field is frozen into the plasma. - lundquist_
number - Lundquist number: S = vₐ L / η. Ratio of resistive diffusion time to Alfvén transit time.
- magnetic_
diffusion_ time - Magnetic diffusion time: τ_d = L² / η.
- magnetic_
diffusivity - Magnetic diffusivity: η = 1/(μ₀ σ).
- magnetic_
pressure - Magnetic pressure: P_B = B² / (2 μ₀).
- magnetic_
reynolds_ number - Magnetic Reynolds number: Rm = μ₀ σ v L. Quantifies the ratio of magnetic advection to diffusion.
- magnetosonic_
mach - Magnetosonic Mach number: M_ms = v / v_fast.
- pinch_
pressure_ balance - Z-pinch pressure balance. Computes the magnetic pressure from the azimuthal field B_θ = μ₀ I / (2π r).
- plasma_
beta - Plasma beta: β = 2 μ₀ P / B². Ratio of gas pressure to magnetic pressure.
- reconnection_
electric_ field - Reconnection electric field: E = v_in × B (magnitude).
- slow_
magnetosonic_ speed - Slow magnetosonic speed (perpendicular propagation): v_slow = min(vₐ, cₛ).
- sweet_
parker_ rate - Sweet-Parker reconnection rate: v_in / vₐ = 1 / √S.
- total_
pressure - Total pressure (gas + magnetic): P_total = P + B² / (2 μ₀).