PB3D [2.47]
Ideal linear high-n MHD stability in 3-D
Loading...
Searching...
No Matches
eq_vars::eq_1_type Type Reference

flux equilibrium type More...

Public Member Functions

procedure init (eq, grid, setup_e, setup_f)
 initialize
procedure copy (eq_i, grid_i, eq_o)
 copy
procedure dealloc (eq)
 deallocate

Public Attributes

real(dp), dimension(:,:), allocatable pres_e
 pressure, and norm. deriv.
real(dp), dimension(:,:), allocatable q_saf_e
 safety factor
real(dp), dimension(:,:), allocatable rot_t_e
 rot. transform
real(dp), dimension(:,:), allocatable flux_p_e
 poloidal flux and norm. deriv.
real(dp), dimension(:,:), allocatable flux_t_e
 toroidal flux and norm. deriv.
real(dp), dimension(:,:), allocatable pres_fd
 pressure, and norm. deriv.
real(dp), dimension(:,:), allocatable q_saf_fd
 safety factor
real(dp), dimension(:,:), allocatable rot_t_fd
 rot. transform
real(dp), dimension(:,:), allocatable flux_p_fd
 poloidal flux and norm. deriv.
real(dp), dimension(:,:), allocatable flux_t_fd
 toroidal flux and norm. deriv.
real(dp), dimension(:), allocatable rho
 density
real(dp), dimension(2) estim_mem_usage
 expected memory usage

Detailed Description

flux equilibrium type

The arrays here are of the form

  • (r) for variables without derivs.
  • (r,Dr) for variables with derivs.

Definition at line 63 of file eq_vars.f90.

Member Function/Subroutine Documentation

◆ copy()

procedure eq_vars::eq_1_type::copy ( class(eq_1_type), intent(in) eq_i,
type(grid_type), intent(in) grid_i,
type(eq_1_type), intent(inout) eq_o )

copy

Parameters
[in]eq_ieq_1 to be copied
[in]grid_igrid of eq_i
[in,out]eq_ocopied eq_1

Definition at line 82 of file eq_vars.f90.

◆ dealloc()

procedure eq_vars::eq_1_type::dealloc ( class(eq_1_type), intent(inout) eq)

deallocate

Parameters
[in,out]eqequilibrium to be deallocated

Definition at line 84 of file eq_vars.f90.

◆ init()

procedure eq_vars::eq_1_type::init ( class(eq_1_type), intent(inout) eq,
type(grid_type), intent(in) grid,
logical, intent(in), optional setup_e,
logical, intent(in), optional setup_f )

initialize

The normal and angular grid can be in any coord. system, as only the grid sizes are used, not the coordinate values.

Optionally, it can be chosen individually whether the E or F(D) quantities are allocated. D means that the derivatives are in F as well. The rationale behind this is that the E quantities are only used in the pre-perturbation phase.

Note
  1. The E quantities are not written in eq_ops.print_output_eq().
  2. The quantities that do not have a derivative are considered F quantities. Alternatively, all quantities that have only one version, are considered F quantities, such as rho, kappa_n, ...
  3. The maximum derivative degree for flux quantities is one higher than max_deriv, because the derivative of some of them appear in the transformation matrices.
Parameters
[in,out]eqequilibrium to be initialized
[in]gridequilibrium grid
[in]setup_ewhether to set up E
[in]setup_fwhether to set up F

Definition at line 80 of file eq_vars.f90.

Member Data Documentation

◆ estim_mem_usage

real(dp), dimension(2) eq_vars::eq_1_type::estim_mem_usage

expected memory usage

Note
Debug version only

Definition at line 76 of file eq_vars.f90.

◆ flux_p_e

real(dp), dimension(:,:), allocatable eq_vars::eq_1_type::flux_p_e

poloidal flux and norm. deriv.

Definition at line 67 of file eq_vars.f90.

◆ flux_p_fd

real(dp), dimension(:,:), allocatable eq_vars::eq_1_type::flux_p_fd

poloidal flux and norm. deriv.

Definition at line 72 of file eq_vars.f90.

◆ flux_t_e

real(dp), dimension(:,:), allocatable eq_vars::eq_1_type::flux_t_e

toroidal flux and norm. deriv.

Definition at line 68 of file eq_vars.f90.

◆ flux_t_fd

real(dp), dimension(:,:), allocatable eq_vars::eq_1_type::flux_t_fd

toroidal flux and norm. deriv.

Definition at line 73 of file eq_vars.f90.

◆ pres_e

real(dp), dimension(:,:), allocatable eq_vars::eq_1_type::pres_e

pressure, and norm. deriv.

Definition at line 64 of file eq_vars.f90.

◆ pres_fd

real(dp), dimension(:,:), allocatable eq_vars::eq_1_type::pres_fd

pressure, and norm. deriv.

Definition at line 69 of file eq_vars.f90.

◆ q_saf_e

real(dp), dimension(:,:), allocatable eq_vars::eq_1_type::q_saf_e

safety factor

Definition at line 65 of file eq_vars.f90.

◆ q_saf_fd

real(dp), dimension(:,:), allocatable eq_vars::eq_1_type::q_saf_fd

safety factor

Definition at line 70 of file eq_vars.f90.

◆ rho

real(dp), dimension(:), allocatable eq_vars::eq_1_type::rho

density

Definition at line 74 of file eq_vars.f90.

◆ rot_t_e

real(dp), dimension(:,:), allocatable eq_vars::eq_1_type::rot_t_e

rot. transform

Definition at line 66 of file eq_vars.f90.

◆ rot_t_fd

real(dp), dimension(:,:), allocatable eq_vars::eq_1_type::rot_t_fd

rot. transform

Definition at line 71 of file eq_vars.f90.


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