PB3D [2.47]
Ideal linear high-n MHD stability in 3-D
Loading...
Searching...
No Matches
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
integer function calc_x_2 (mds, grid_eq, grid_x, eq_1, eq_2, x_a, x_b, x, lim_sec_x)
 tensorial version

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 94 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 129 of file X_ops.f90.

Here is the call graph for this function:

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