PB3D  [2.45]
Ideal linear high-n MHD stability in 3-D
Public Member Functions | List of all members
x_ops::calc_x Interface Reference

Calculates either vectorial or tensorial perturbation variables. More...

Public Member Functions

integer function calc_x_1 (mds, grid_eq, grid_X, eq_1, eq_2, X, lim_sec_X)
 vectorial version More...
 
integer function calc_x_2 (mds, grid_eq, grid_X, eq_1, eq_2, X_a, X_b, X, lim_sec_X)
 tensorial version More...
 

Detailed Description

Calculates either vectorial or tensorial perturbation variables.

Optionally, the secondary mode number can be specified (m if poloidal flux is used as normal coordinate and c n if toroidal flux). By default, they are taken from the global X_vars variables.

Returns
ierr

Definition at line 39 of file X_ops.f90.

Member Function/Subroutine Documentation

◆ calc_x_1()

integer function x_ops::calc_x::calc_x_1 ( type(modes_type), intent(in)  mds,
type(grid_type), intent(in)  grid_eq,
type(grid_type), intent(in)  grid_X,
type(eq_1_type), intent(in)  eq_1,
type(eq_2_type), intent(in)  eq_2,
type(x_1_type), intent(inout)  X,
integer, dimension(2), intent(in), optional  lim_sec_X 
)

vectorial version

Parameters
[in]mdsgeneral modes variables
[in]grid_eqequilibrium grid variables
[in]grid_xperturbation grid variables
[in]eq_1flux equilibrium
[in]eq_2metric equilibrium
[in,out]xvectorial perturbation variables
[in]lim_sec_xlimits of m_X (pol. flux) or \ n_X (tor. flux)

Definition at line 96 of file X_ops.f90.

+ Here is the call graph for this function:

◆ calc_x_2()

integer function x_ops::calc_x::calc_x_2 ( type(modes_type), intent(in)  mds,
type(grid_type), intent(in)  grid_eq,
type(grid_type), intent(in)  grid_X,
type(eq_1_type), intent(in)  eq_1,
type(eq_2_type), intent(in)  eq_2,
type(x_1_type), intent(inout)  X_a,
type(x_1_type), intent(inout)  X_b,
type(x_2_type), intent(inout)  X,
integer, dimension(2,2), intent(in), optional  lim_sec_X 
)

tensorial version

Parameters
[in]mdsgeneral modes variables
[in]grid_eqequilibrium grid variables
[in]grid_xperturbation grid variables
[in]eq_1flux equilibrium
[in]eq_2metric equilibrium
[in,out]x_avectorial perturbation variables (dimension 1)
[in,out]x_bvectorial perturbation variables (dimension 2)
[in,out]xtensorial perturbation variables
[in]lim_sec_xlimits of m_X (pol flux) or n_X (tor flux) for both dimensions

Definition at line 131 of file X_ops.f90.

+ Here is the call graph for this function:

The documentation for this interface was generated from the following file: