Magnetic field from a flat list of Boozer Fourier modes, evaluated via 2D spline interpolation.
The field strength is given by
B(theta, phi) = sum_k B_mn(k) * cos(m(k)*theta - nfp*n(k)*phi)
where theta and phi are Boozer angles and nfp the number of field
periods.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| logical, | public | :: | initialized | = | .false. | ||
| type(SplineData2D), | public | :: | spl | ||||
| real(kind=dp), | public | :: | nfp | ||||
| real(kind=dp), | public | :: | B_theta_covariant | ||||
| real(kind=dp), | public | :: | B_phi_covariant | ||||
| integer, | public | :: | n_grid | ||||
| integer, | public | :: | mn_max |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(fourier_field_t), | intent(in) | :: | self | |||
| real(kind=dp), | intent(in) | :: | theta | |||
| real(kind=dp), | intent(in) | :: | phi | |||
| real(kind=dp), | intent(out) | :: | B_mod | |||
| real(kind=dp), | intent(out) | :: | sqrtg | |||
| real(kind=dp), | intent(out) | :: | dB_dx(3) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(fourier_field_t), | intent(in) | :: | self | |||
| real(kind=dp), | intent(in) | :: | theta | |||
| real(kind=dp), | intent(in) | :: | phi | |||
| real(kind=dp), | intent(out) | :: | B_mod | |||
| real(kind=dp), | intent(out) | :: | dB_dx(3) |
Evaluate the spline-interpolated field strength B_mod at Boozer angles.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(fourier_field_t), | intent(in) | :: | self | |||
| real(kind=dp), | intent(in) | :: | theta |
poloidal Boozer angle in radians |
||
| real(kind=dp), | intent(in) | :: | phi |
toroidal Boozer angle in radians |
||
| real(kind=dp), | intent(out) | :: | B_mod |
magnetic field strength in Tesla |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(fourier_field_t), | intent(in) | :: | self | |||
| real(kind=dp), | intent(in) | :: | theta | |||
| real(kind=dp), | intent(in) | :: | phi | |||
| real(kind=dp), | intent(out) | :: | nabla_s |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(fourier_field_t), | intent(in) | :: | self |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(fourier_field_t), | intent(in) | :: | self | |||
| real(kind=dp), | intent(out) | :: | B_theta_covariant | |||
| real(kind=dp), | intent(out) | :: | B_phi_covariant |