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

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

Detailed Description

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.

Member Function/Subroutine Documentation

◆ dealloc()

procedure sol_vars::sol_type::dealloc ( class(sol_type), intent(inout) sol)

deallocate

Note
intent(out) automatically deallocates the variable
Parameters
[in,out]solsolution variables to be deallocated

Definition at line 44 of file sol_vars.f90.

◆ init()

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.

Note
If the lowest limits of the grid is not 1 (e.g. grid_soli_min = 1 for first process), the input variable i_min should be set to set correctly. For a full grid, it should be set to 1.
Parameters
[in,out]solsolution variables
[in]mdsgeneral modes variables
[in]grid_solsolution grid
[in]n_evnr. of Eigenvalues
[in]lim_sec_xlimits of m_X (pol. flux) or n_X (tor. flux)

Definition at line 42 of file sol_vars.f90.

Member Data Documentation

◆ estim_mem_usage

real(dp) sol_vars::sol_type::estim_mem_usage

estimated memory usage

Note
Debug version only

Definition at line 38 of file sol_vars.f90.

◆ lim_sec_x

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.

◆ m

integer, dimension(:,:), allocatable sol_vars::sol_type::m

vector of poloidal mode numbers

Definition at line 34 of file sol_vars.f90.

◆ n

integer, dimension(:,:), allocatable sol_vars::sol_type::n

vector of toroidal mode numbers

Definition at line 33 of file sol_vars.f90.

◆ n_mod

integer sol_vars::sol_type::n_mod

size of n and m (nr. of modes)

Definition at line 31 of file sol_vars.f90.

◆ val

complex(dp), dimension(:), allocatable sol_vars::sol_type::val

Eigenvalue solution.

Definition at line 36 of file sol_vars.f90.

◆ vec

complex(dp), dimension(:,:,:), allocatable sol_vars::sol_type::vec

Eigenvector solution.

Definition at line 35 of file sol_vars.f90.


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