PB3D
[2.45]
Ideal linear high-n MHD stability in 3-D
|
Driver of the solution part of PB3D. More...
Functions/Subroutines | |
integer function, public | run_driver_sol (grid_eq, grid_X, grid_sol, X, vac, sol) |
Main driver of PB3D solution part. More... | |
integer function | interp_v (mds_i, grid_i, X_i, mds_o, grid_o, X_o) |
Interpolate tensorial perturbation quantities in the third dimension. More... | |
Driver of the solution part of PB3D.
integer function driver_sol::interp_v | ( | type(modes_type), intent(in), target | mds_i, |
type(grid_type), intent(in) | grid_i, | ||
type(x_2_type), intent(in), target | X_i, | ||
type(modes_type), intent(in), target | mds_o, | ||
type(grid_type), intent(in) | grid_o, | ||
type(x_2_type), intent(inout), target | X_o | ||
) |
Interpolate tensorial perturbation quantities in the third dimension.
The input grid should not be divided, though the output grid can be.
The procedure considers all possible mode number combinations. For X_style
2 (fast), each secondary mode only lives in a certain normal range of the plasma. Therefore, each secondary mode pair also has a limited normal range, given by the overlap of the ranges of the members.
The interpolated mode number combinations have a normal range that might slightly differ from the input ranges, in which case extrapolation can be done if the method allows for it.
[in] | mds_i | general modes variables for input |
[in] | grid_i | grid at which X_i is tabulated |
[in] | x_i | tensorial perturbation variable on input grid |
[in] | mds_o | general modes variables for output |
[in] | grid_o | grid at which X_o is interpolated |
[in,out] | x_o | interpolated tensorial perturbation variable |
Definition at line 284 of file driver_sol.f90.
integer function, public driver_sol::run_driver_sol | ( | type(grid_type), intent(in) | grid_eq, |
type(grid_type), intent(in), target | grid_X, | ||
type(grid_type), intent(inout) | grid_sol, | ||
type(x_2_type), intent(in) | X, | ||
type(vac_type), intent(inout) | vac, | ||
type(sol_type), intent(inout) | sol | ||
) |
Main driver of PB3D solution part.
grid_sol
(only first Richardson level)sol
grid_sol
(only first Richardson level)sol
[in] | grid_eq | equilibrium grid |
[in] | grid_x | perturbation grid |
[in,out] | grid_sol | solution grid |
[in] | x | integrated tensorial perturbation variables |
[in,out] | vac | vacuum variables |
[in,out] | sol | solution variables |
Definition at line 43 of file driver_sol.f90.