PB3D
[2.45]
Ideal linear high-n MHD stability in 3-D
|
Numerical utilities related to the output of VMEC. More...
Interfaces and Types | |
interface | fourier2real |
Inverse Fourier transformation, from VMEC. More... | |
Functions/Subroutines | |
integer function, public | calc_trigon_factors (theta, zeta, trigon_factors) |
Calculate the trigonometric cosine and sine factors. More... | |
Variables | |
logical, public | debug_calc_trigon_factors = .false. |
plot debug information for calc_trigon_factors() More... | |
Numerical utilities related to the output of VMEC.
integer function, public vmec_utilities::calc_trigon_factors | ( | real(dp), dimension(:,:,:), intent(in) | theta, |
real(dp), dimension(:,:,:), intent(in) | zeta, | ||
real(dp), dimension(:,:,:,:,:), intent(inout), allocatable | trigon_factors | ||
) |
Calculate the trigonometric cosine and sine factors.
This is done on a grid (1:mnmax_V)
at given 3D arrays for the (VMEC) E(quilibrium) angles \(\theta_\text{E}\) and \(\zeta_\text{E}\).
The dimensions of the output array are
(1:mnmax_V,1:n_ang_1,1:n_ang_2,1:n_r,1:2)
where mnmax_V
is the number of modes in VMEC n_r
is the total number of normal points.
ang_1
and ang_2
.[in] | theta | poloidal angles in equilibrium coords. |
[in] | zeta | toroidal angles in equilibrium coords. |
[in,out] | trigon_factors | trigonometric factor cosine and sine at these angles |
Definition at line 275 of file VMEC_utilities.f90.
logical, public vmec_utilities::debug_calc_trigon_factors = .false. |
plot debug information for calc_trigon_factors()
Definition at line 22 of file VMEC_utilities.f90.