PB3D
[2.45]
Ideal linear high-n MHD stability in 3-D
|
Go to the documentation of this file.
46 integer,
parameter ::
dp = real64
48 integer,
parameter ::
dpi = int64
83 real(
dp),
parameter ::
pi=4_dp*datan(1.0_dp)
85 complex(dp),
parameter ::
iu = (0,1)
183 integer,
parameter ::
eq_i = 51
logical, public plot_e_rec
whether to plot energy reconstruction in POST
integer, public x_grid_style
style for normal component of X grid (1: eq, 2: sol, 3: enriched)
integer, public ex_plot_style
external plot style (1: GNUPlot, 2: Bokeh for 2D, Mayavi for 3D)
integer, public u_style
style for calculation of U (1: ord.2, 2: ord.1, 1: ord.0)
integer, parameter, public max_name_ln
maximum length of filenames
logical, public plot_sol_xi
whether to plot plasma perturbation of solution in POST
logical, public swap_angles
swap angles theta and zeta in plots (only for POST)
logical, public plot_resonance
whether to plot the q-profile or iota-profile with resonances
integer, parameter, public output_ev_i
file number of output of EV
logical, public invert_top_bottom_h
invert top and bottom for HELENA equilibria
real(dp), parameter, public mu_0_original
permeability of free space
integer, parameter, public hel_pert_i
file number of HELENA equilibrium perturbation file
integer, parameter, public dp
double precision
character(len=7), public script_dir
directory where to save scripts for plots
integer, parameter, public input_i
file number of input file
integer, dimension(4), public n_sol_plotted
how many solutions to be plot (first unstable, last unstable, first stable, last stable)
logical, public use_normalization
whether to use normalization or not
integer, dimension(2), public bc_style
style for BC left and right
Numerical variables used by most other modules.
character(len=max_str_ln), public input_name
will hold the full name of the input file
integer, parameter, public max_str_ln
maximum length of strings
integer, public max_it_zero
maximum number of iterations to find zeros
integer, parameter, public ex_max_size
maximum size of matrices for external plot
logical, public plot_sol_q
whether to plot magnetic perturbation of solution in POST
integer, public norm_disc_prec_eq
precision for normal discretization for equilibrium
integer, parameter, public dpi
double precision
logical, public retain_all_sol
retain also faulty solutions
integer, dimension(2), public plot_size
size of plot in inches
integer, public n_sol_requested
how many solutions requested
real(dp), public max_njq_change
maximum change of prim. mode number times saf. fac. / rot. transf. when using X_style 2 (fast)
integer, public n_zeta_plot
nr. of toroidal points in plot
logical, public post_output_sol
POST has outputs of solution.
integer, public eq_job_nr
nr. of eq job
real(dp), public min_zvac_plot
min. of Z in which to plot vacuum
integer, parameter, public shell_commands_i
file number of shell commands file
complex(dp), parameter, public iu
complex unit
real(dp), public max_theta_plot
max. of theta_plot
integer, public n_procs
nr. of MPI processes
integer, public norm_disc_prec_sol
precision for normal discretization for solution
real(dp), public ev_guess
first guess for eigenvalue
integer, public x_style
style for secondary mode numbers (1: prescribed, 2: fast)
integer, public x_job_nr
nr. of X job
logical, public debug_version
debug version used
character(len=4), public data_dir
directory where to save data for plots
logical, public plot_magn_grid
whether to plot the grid in real coordinates
integer, parameter, public decomp_i
file number of output of EV decomposition
integer, public prog_style
program style (1: PB3D, 2: PB3D_POST)
character(len=4), public prog_name
name of program, used for info
logical, public ltest
whether or not to call the testing routines
real(dp), public min_zeta_plot
min. of zeta_plot
character(len=14), parameter, public shell_commands_name
name of shell commands file
integer, public max_it_slepc
maximum nr. of iterations for SLEPC
logical, public compare_tor_pos
compare quantities at toroidal positions (only for POST)
real(dp), public max_zvac_plot
max. of Z in which to plot vacuum
integer, public norm_disc_style_sol
style for normal discretization for solution (1: central fin. diff., 2: left fin. diff....
real(dp), parameter, public weight_dp
size of double precision in kB
real(dp), public min_theta_plot
min. of theta_plot
real(dp), public ev_bc
value of artificial Eigenvalue for boundary condition
integer, public rich_restart_lvl
starting Richardson level (0: none [default])
logical, public export_hel
export HELENA
real(dp), dimension(2), public rz_0
origin of geometrical poloidal coordinate
logical, public print_mem_usage
print memory usage is printed
integer, public max_nr_backtracks_hh
maximum number of backtracks for Householder, relax. factors
real(dp), public min_r_plot
min. of r_plot
integer, parameter, public mem_usage_i
file number of memory usage file
logical, public plot_b
whether to plot the magnetic field in real coordinates
integer, public eq_style
either 1 (VMEC) or 2 (HELENA)
integer, public max_it_rich
number of levels for Richardson extrapolation
integer, public mem_usage_count
counter for memory usage output
integer, public rho_style
style for equilibrium density profile
real(dp), dimension(:), allocatable, public tol_slepc
tolerance for SLEPC for different Richardson levels
logical, public use_pol_flux_e
whether poloidal flux is used in E coords.
logical, public plot_j
whether to plot the current in real coordinates
logical, public plot_kappa
whether to plot curvature
real(dp), public tol_zero
tolerance for zeros
integer, public norm_style
style for normalization
logical, public no_output
no output shown
integer, public magn_int_style
style for magnetic integrals (1: trapezoidal, 2: Simpson 3/8)
integer, parameter, public max_deriv
highest derivatives for metric factors in Flux coords.
integer, public alpha_style
style for alpha (1: one field line, many turns, 2: many field lines, one turn)
integer, public k_style
style for kinetic energy
real(dp), public max_rvac_plot
max. of R in which to plot vacuum
logical, public plot_vmec_modes
plot VMEC modes
real(dp), parameter, public pi
real(dp), parameter, public mem_scale_fac
empirical scale factor of memory to calculate eq compared to just storing it
character(len=9), parameter, public mem_usage_name
name of memory usage file
logical, public do_execute_command_line
call "execute_command_line" inside program
character(len=max_str_ln), public pb3d_name
name of PB3D output file
logical, public jump_to_sol
jump to solution
integer(kind=8), public time_start
start time of simulation
logical, public plot_vac_pot
whether to plot vacuum potential in POST
integer, parameter, public eq_i
file number of equilibrium file from VMEC or HELENA
real(dp), parameter, public min_pb3d_version
minimum PB3D version for POST
real(dp), public max_r_plot
max. of r_plot
logical, public no_plots
no plots made
integer, parameter, public pb3d_i
file number of PB3D output file
character(len=5), public plot_dir
directory where to save plots
real(dp), parameter, public prog_version
version number
integer, public plot_grid_style
style for POST plot grid (0: 3-D plots, 1: slab plots, 2: slab plots with folding,...
real(dp), public min_rvac_plot
min. of R in which to plot vacuum
real(dp), public pert_mult_factor_post
factor with which to multiply perturbation strength for POST
character(len=3), parameter, public output_name
name of output file
logical, public use_pol_flux_f
whether poloidal flux is used in F coords.
integer, dimension(:,:), allocatable, public eq_jobs_lims
data about eq jobs: [ , ] for all jobs
logical, public post_output_full
POST has output on full grids.
logical, public plot_flux_q
whether to plot flux quantities in real coordinates
integer, public solver_slepc_style
style for solver (1: Krylov-Schur, 2: GD)
integer, public sol_n_procs
nr. of MPI processes for solution with SLEPC
real(dp), public max_zeta_plot
max. of zeta_plot
integer, public rank
MPI rank.
integer, parameter, public prop_b_tor_i
file number of proportionality factor file
integer, parameter, public output_i
file number of output file
integer, dimension(2), public n_vac_plot
nr. of points in R and Z in vacuum
real(dp), public max_tot_mem
maximum total memory for all processes [MB]
character(len=max_str_ln), public eq_name
name of equilibrium file from VMEC or HELENA
integer, parameter, public hel_export_i
file number of output of HELENA equilibrium export file
integer, public post_style
style for POST (1: extended grid, 2: B-aligned grid)
integer, public matrix_slepc_style
style for matrix storage (1: sparse, 2: shell)
real(dp), public tol_norm
tolerance for normal range (normalized to 0..1)
real(dp), public max_x_mem
maximum memory for perturbation calculations for all processes [MB]
integer, public n_theta_plot
nr. of poloidal points in plot
integer, dimension(:,:), allocatable, public x_jobs_lims
data about X jobs: [ , , , ] for all jobs
real(dp), public tol_rich
tolerance for Richardson extrapolation
integer, public ev_style
determines the method used for solving an EV problem
integer, public norm_disc_prec_x
precision for normal discretization for perturbation