|
PB3D [2.47]
Ideal linear high-n MHD stability in 3-D
|
solution type More...
Public Member Functions | |
| procedure | init (sol, mds, grid_sol, n_ev, lim_sec_x) |
| initialize | |
| procedure | dealloc (sol) |
| deallocate | |
Public Attributes | |
| integer | n_mod |
| size of n and m (nr. of modes) | |
| integer, dimension(2) | lim_sec_x |
limits of m_X (pol. flux) or n_X (tor. flux) | |
| integer, dimension(:,:), allocatable | n |
| vector of toroidal mode numbers | |
| integer, dimension(:,:), allocatable | m |
| vector of poloidal mode numbers | |
| complex(dp), dimension(:,:,:), allocatable | vec |
| Eigenvector solution. | |
| complex(dp), dimension(:), allocatable | val |
| Eigenvalue solution. | |
| real(dp) | estim_mem_usage |
| estimated memory usage | |
solution type
The arrays here are of the form:
val: (1:n_EV)vec: (1:n_mod,1:loc_n_r,1:n_EV) Definition at line 30 of file sol_vars.f90.
| procedure sol_vars::sol_type::dealloc | ( | class(sol_type), intent(inout) | sol | ) |
deallocate
| [in,out] | sol | solution variables to be deallocated |
Definition at line 44 of file sol_vars.f90.
| procedure sol_vars::sol_type::init | ( | class(sol_type), intent(inout) | sol, |
| type(modes_type), intent(in) | mds, | ||
| type(grid_type), intent(in) | grid_sol, | ||
| integer, intent(in) | n_ev, | ||
| integer, dimension(2), intent(in), optional | lim_sec_x ) |
initialize
The number of modes as well as n and m are also set up.
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.
i_min should be set to set correctly. For a full grid, it should be set to 1. | [in,out] | sol | solution variables |
| [in] | mds | general modes variables |
| [in] | grid_sol | solution grid |
| [in] | n_ev | nr. of Eigenvalues |
| [in] | lim_sec_x | limits of m_X (pol. flux) or n_X (tor. flux) |
Definition at line 42 of file sol_vars.f90.
| real(dp) sol_vars::sol_type::estim_mem_usage |
| integer, dimension(2) sol_vars::sol_type::lim_sec_x |
limits of m_X (pol. flux) or n_X (tor. flux)
Definition at line 32 of file sol_vars.f90.
| integer, dimension(:,:), allocatable sol_vars::sol_type::m |
vector of poloidal mode numbers
Definition at line 34 of file sol_vars.f90.
| integer, dimension(:,:), allocatable sol_vars::sol_type::n |
vector of toroidal mode numbers
Definition at line 33 of file sol_vars.f90.
| integer sol_vars::sol_type::n_mod |
size of n and m (nr. of modes)
Definition at line 31 of file sol_vars.f90.
| complex(dp), dimension(:), allocatable sol_vars::sol_type::val |
Eigenvalue solution.
Definition at line 36 of file sol_vars.f90.
| complex(dp), dimension(:,:,:), allocatable sol_vars::sol_type::vec |
Eigenvector solution.
Definition at line 35 of file sol_vars.f90.