PB3D  [2.45]
Ideal linear high-n MHD stability in 3-D
Interfaces and Types | Functions/Subroutines | Variables
vmec_utilities Module Reference

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...
 

Detailed Description

Numerical utilities related to the output of VMEC.

Function/Subroutine Documentation

◆ calc_trigon_factors()

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.

See also
See grid_vars.grid_type for a discussion on ang_1 and ang_2.
Returns
ierr
Parameters
[in]thetapoloidal angles in equilibrium coords.
[in]zetatoroidal angles in equilibrium coords.
[in,out]trigon_factorstrigonometric factor cosine and sine at these angles

Definition at line 275 of file VMEC_utilities.f90.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ debug_calc_trigon_factors

logical, public vmec_utilities::debug_calc_trigon_factors = .false.

plot debug information for calc_trigon_factors()

Note
Debug version only

Definition at line 22 of file VMEC_utilities.f90.