Module bfield

Module bfield 

Source
Expand description

Magnetic field computation from flux function.

Port of fusion_kernel.py compute_b_field() (lines 305-309). In cylindrical tokamak coordinates: B_R = -(1/R) ∂Ψ/∂Z B_Z = (1/R) ∂Ψ/∂R

Functions§

compute_b_field
Compute the poloidal magnetic field components from the flux function Ψ.