PB3D
[2.45]
Ideal linear high-n MHD stability in 3-D
|
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... | |
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.
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
[in] | mds | general modes variables |
[in] | grid_eq | equilibrium grid variables |
[in] | grid_x | perturbation grid variables |
[in] | eq_1 | flux equilibrium |
[in] | eq_2 | metric equilibrium |
[in,out] | x | vectorial perturbation variables |
[in] | lim_sec_x | limits of m_X (pol. flux) or \ n_X (tor. flux) |
Definition at line 96 of file X_ops.f90.
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
[in] | mds | general modes variables |
[in] | grid_eq | equilibrium grid variables |
[in] | grid_x | perturbation grid variables |
[in] | eq_1 | flux equilibrium |
[in] | eq_2 | metric equilibrium |
[in,out] | x_a | vectorial perturbation variables (dimension 1) |
[in,out] | x_b | vectorial perturbation variables (dimension 2) |
[in,out] | x | tensorial perturbation variables |
[in] | lim_sec_x | limits of m_X (pol flux) or n_X (tor flux) for both dimensions |
Definition at line 131 of file X_ops.f90.