PB3D
[2.45]
Ideal linear high-n MHD stability in 3-D
|
vacuum type More...
Public Member Functions | |
procedure | init => init_vac |
initialize More... | |
procedure | dealloc => dealloc_vac |
deallocate More... | |
Public Attributes | |
integer | style |
style of vacuum (1: field-line 3-D, 2: axisymmetric) More... | |
integer | prim_x |
primary mode number More... | |
integer | ctxt_hg |
context for H and G More... | |
integer | n_bnd |
number of points in boundary More... | |
integer | bs |
block size in cyclical storage More... | |
integer | mpi_comm |
communicator for vacuum More... | |
integer, dimension(blacsctxtsize) | desc_h |
descriptor for H More... | |
integer, dimension(blacsctxtsize) | desc_g |
descriptor for G More... | |
integer, dimension(2) | n_p |
nr. of processes in grid More... | |
integer, dimension(2) | n_ang |
number of angles (1) and number of field lines (2) More... | |
integer, dimension(2) | ind_p |
index of local process in grid More... | |
integer, dimension(2) | n_loc |
local number of rows and columns More... | |
integer, dimension(:), allocatable | sec_x |
secondary mode numbers More... | |
integer, dimension(:,:), allocatable | lims_c |
column limits for different subrows of G and H More... | |
integer, dimension(:,:), allocatable | lims_r |
row limits for different subcolumns of G and H More... | |
real(dp) | jq |
iota (tor. flux) or q (pol. flux) at edge More... | |
real(dp), dimension(:,:), allocatable | ang |
angle along field line, for each field line More... | |
real(dp), dimension(:,:), allocatable | norm |
J nabla psi normal vector. More... | |
real(dp), dimension(:,:), allocatable | dnorm |
poloidal derivative of norm (only for style 2) More... | |
real(dp), dimension(:,:), allocatable | h_fac |
metric factors (1,1), (1,3) and (3,3) (only for style 1) More... | |
real(dp), dimension(:,:), allocatable | x_vec |
Cartesian vector of position. More... | |
real(dp), dimension(:,:), allocatable | h |
H coefficient. More... | |
real(dp), dimension(:,:), allocatable | g |
G coefficient. More... | |
complex(dp), dimension(:,:), allocatable | res |
vacuum response More... | |
real(dp) | estim_mem_usage |
estimated memory usage More... | |
vacuum type
The arrays here are of the form:
H
, G:
(n_loc,n_loc)
res:
(n_mod_X,n_mod_X)
where n_loc
is the number of points in the boundary, i.e. a subset of n_bnd
.
For vacuum style 1, the vacuum is assumed to be equidsitant in the coordinate along the magnetic field lines and, if there are multiple field lines, also in the field line label \(\alpha\). The limits on the angles are assumed to be given by the global variables grid_vars.min_par_x
, grid_vars.max_par_x
and grid_vars.min_alpha
, grid_vars.max_alpha
.
For vacuum style 2, there is an additional angle ang
. It is composed of the angles along the magnetic fields (which refers to angle_1
in the discussion of grid_vars.grid_type
), of which there can be multiple, but the total sum must be equal to n_bnd
.
Definition at line 46 of file vac_vars.f90.
procedure vac_vars::vac_type::dealloc |
deallocate
Definition at line 78 of file vac_vars.f90.
procedure vac_vars::vac_type::init |
initialize
Definition at line 76 of file vac_vars.f90.
real(dp), dimension(:,:), allocatable vac_vars::vac_type::ang |
angle along field line, for each field line
Definition at line 63 of file vac_vars.f90.
integer vac_vars::vac_type::bs |
block size in cyclical storage
Definition at line 51 of file vac_vars.f90.
integer vac_vars::vac_type::ctxt_hg |
context for H and G
Definition at line 49 of file vac_vars.f90.
integer, dimension(blacsctxtsize) vac_vars::vac_type::desc_g |
descriptor for G
Definition at line 54 of file vac_vars.f90.
integer, dimension(blacsctxtsize) vac_vars::vac_type::desc_h |
descriptor for H
Definition at line 53 of file vac_vars.f90.
real(dp), dimension(:,:), allocatable vac_vars::vac_type::dnorm |
poloidal derivative of norm (only for style 2)
Definition at line 65 of file vac_vars.f90.
real(dp) vac_vars::vac_type::estim_mem_usage |
real(dp), dimension(:,:), allocatable vac_vars::vac_type::g |
G coefficient.
Definition at line 69 of file vac_vars.f90.
real(dp), dimension(:,:), allocatable vac_vars::vac_type::h |
H coefficient.
Definition at line 68 of file vac_vars.f90.
real(dp), dimension(:,:), allocatable vac_vars::vac_type::h_fac |
metric factors (1,1), (1,3) and (3,3) (only for style 1)
Definition at line 66 of file vac_vars.f90.
integer, dimension(2) vac_vars::vac_type::ind_p |
index of local process in grid
Definition at line 57 of file vac_vars.f90.
real(dp) vac_vars::vac_type::jq |
iota (tor. flux) or q (pol. flux) at edge
Definition at line 62 of file vac_vars.f90.
integer, dimension(:,:), allocatable vac_vars::vac_type::lims_c |
column limits for different subrows of G and H
Definition at line 60 of file vac_vars.f90.
integer, dimension(:,:), allocatable vac_vars::vac_type::lims_r |
row limits for different subcolumns of G and H
Definition at line 61 of file vac_vars.f90.
integer vac_vars::vac_type::mpi_comm |
communicator for vacuum
Definition at line 52 of file vac_vars.f90.
integer, dimension(2) vac_vars::vac_type::n_ang |
number of angles (1) and number of field lines (2)
Definition at line 56 of file vac_vars.f90.
integer vac_vars::vac_type::n_bnd |
number of points in boundary
Definition at line 50 of file vac_vars.f90.
integer, dimension(2) vac_vars::vac_type::n_loc |
local number of rows and columns
Definition at line 58 of file vac_vars.f90.
integer, dimension(2) vac_vars::vac_type::n_p |
nr. of processes in grid
Definition at line 55 of file vac_vars.f90.
real(dp), dimension(:,:), allocatable vac_vars::vac_type::norm |
J nabla psi normal vector.
Definition at line 64 of file vac_vars.f90.
integer vac_vars::vac_type::prim_x |
primary mode number
Definition at line 48 of file vac_vars.f90.
complex(dp), dimension(:,:), allocatable vac_vars::vac_type::res |
vacuum response
Definition at line 70 of file vac_vars.f90.
integer, dimension(:), allocatable vac_vars::vac_type::sec_x |
secondary mode numbers
Definition at line 59 of file vac_vars.f90.
integer vac_vars::vac_type::style |
style of vacuum (1: field-line 3-D, 2: axisymmetric)
Definition at line 47 of file vac_vars.f90.
real(dp), dimension(:,:), allocatable vac_vars::vac_type::x_vec |
Cartesian vector of position.
Definition at line 67 of file vac_vars.f90.