|
PB3D [2.47]
Ideal linear high-n MHD stability in 3-D
|
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 | |
flux equilibrium type
The arrays here are of the form
Definition at line 63 of file eq_vars.f90.
| 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
| [in] | eq_i | eq_1 to be copied |
| [in] | grid_i | grid of eq_i |
| [in,out] | eq_o | copied eq_1 |
Definition at line 82 of file eq_vars.f90.
| procedure eq_vars::eq_1_type::dealloc | ( | class(eq_1_type), intent(inout) | eq | ) |
deallocate
| [in,out] | eq | equilibrium to be deallocated |
Definition at line 84 of file eq_vars.f90.
| 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.
rho, kappa_n, ...max_deriv, because the derivative of some of them appear in the transformation matrices. | [in,out] | eq | equilibrium to be initialized |
| [in] | grid | equilibrium grid |
| [in] | setup_e | whether to set up E |
| [in] | setup_f | whether to set up F |
Definition at line 80 of file eq_vars.f90.
| real(dp), dimension(2) eq_vars::eq_1_type::estim_mem_usage |
| 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.
| 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.
| 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.
| 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.
| real(dp), dimension(:,:), allocatable eq_vars::eq_1_type::pres_e |
pressure, and norm. deriv.
Definition at line 64 of file eq_vars.f90.
| real(dp), dimension(:,:), allocatable eq_vars::eq_1_type::pres_fd |
pressure, and norm. deriv.
Definition at line 69 of file eq_vars.f90.
| real(dp), dimension(:,:), allocatable eq_vars::eq_1_type::q_saf_e |
safety factor
Definition at line 65 of file eq_vars.f90.
| real(dp), dimension(:,:), allocatable eq_vars::eq_1_type::q_saf_fd |
safety factor
Definition at line 70 of file eq_vars.f90.
| real(dp), dimension(:), allocatable eq_vars::eq_1_type::rho |
density
Definition at line 74 of file eq_vars.f90.
| real(dp), dimension(:,:), allocatable eq_vars::eq_1_type::rot_t_e |
rot. transform
Definition at line 66 of file eq_vars.f90.
| real(dp), dimension(:,:), allocatable eq_vars::eq_1_type::rot_t_fd |
rot. transform
Definition at line 71 of file eq_vars.f90.