PB3D  [2.45]
Ideal linear high-n MHD stability in 3-D
Interfaces and Types | Modules | Functions/Subroutines | Variables
eq_ops.f90 File Reference

Go to the source code of this file.

Interfaces and Types

interface  eq_ops::calc_eq
 Calculate the equilibrium quantities on a grid determined by straight field lines. More...
 
interface  eq_ops::print_output_eq
 Print equilibrium quantities to an output file: More...
 
interface  eq_ops::redistribute_output_eq
 Redistribute the equilibrium variables, but only the Flux variables are saved. More...
 
interface  eq_ops::calc_rzl
 Calculate \(R\), \(Z\) & \(\lambda\) and derivatives in VMEC coordinates. More...
 
interface  eq_ops::calc_g_c
 Calculate the lower metric elements in the C(ylindrical) coordinate system. More...
 
interface  eq_ops::calc_g_v
 Calculate the lower metric coefficients in the equilibrium V(MEC) coordinate system. More...
 
interface  eq_ops::calc_g_h
 Calculate the lower metric coefficients in the equilibrium H(ELENA) coordinate system. More...
 
interface  eq_ops::calc_g_f
 Calculate the metric coefficients in the F(lux) coordinate system. More...
 
interface  eq_ops::calc_jac_v
 Calculate \(\mathcal{J}_\text{V}\), the jacobian in V(MEC) coordinates. More...
 
interface  eq_ops::calc_jac_h
 Calculate \(\mathcal{J}_\text{H}\), the jacobian in HELENA coordinates. More...
 
interface  eq_ops::calc_jac_f
 Calculate \(\mathcal{J}_\text{F}\), the jacobian in Flux coordinates. More...
 
interface  eq_ops::calc_t_vc
 Calculate \(\overline{\text{T}}_\text{C}^\text{V}\), the transformation matrix between C(ylindrical) and V(mec) coordinate system. More...
 
interface  eq_ops::calc_t_vf
 Calculate \(\overline{\text{T}}_\text{V}^\text{F}\), the transformation matrix between V(MEC) and F(lux) coordinate systems. More...
 
interface  eq_ops::calc_t_hf
 Calculate \(\overline{\text{T}}_\text{H}^\text{F}\), the transformation matrix between H(ELENA) and F(lux) coordinate systems. More...
 

Modules

module  eq_ops
 Operations on the equilibrium variables.
 

Functions/Subroutines

integer function eq_ops::create_vmec_input (grid_eq, eq_1)
 Creates a VMEC input file. More...
 
integer function, public eq_ops::flux_q_plot (grid_eq, eq)
 Plots the flux quantities in the solution grid. More...
 
integer function, public eq_ops::calc_derived_q (grid_eq, eq_1, eq_2)
 Calculates derived equilibrium quantities system. More...
 
subroutine calc_derived_de_epar_hel (grid_eq, eq_1, Rchi, Zchi, de, D_de, b_n, b_g)
 
integer function, public eq_ops::calc_normalization_const ()
 Sets up normalization constants. More...
 
subroutine, public eq_ops::normalize_input ()
 Normalize input quantities. More...
 
integer function, public eq_ops::b_plot (grid_eq, eq_1, eq_2, rich_lvl, plot_fluxes, XYZ)
 Plots the magnetic fields. More...
 
integer function, public eq_ops::j_plot (grid_eq, eq_1, eq_2, rich_lvl, plot_fluxes, XYZ)
 Plots the current. More...
 
integer function, public eq_ops::kappa_plot (grid_eq, eq_1, eq_2, rich_lvl, XYZ)
 Plots the curvature. More...
 
integer function, public eq_ops::delta_r_plot (grid_eq, eq_1, eq_2, XYZ, rich_lvl)
 Plots HALF of the change in the position vectors for 2 different toroidal positions, which can correspond to a ripple. More...
 
integer function, public eq_ops::divide_eq_jobs (n_par_X, arr_size, n_div, n_div_max, n_par_X_base, range_name)
 Divides the equilibrium jobs. More...
 
integer function, public eq_ops::calc_eq_jobs_lims (n_par_X, n_div)
 Calculate eq_jobs_lims. More...
 
integer function eq_ops::test_t_ef (grid_eq, eq_1, eq_2)
 See if T_EF it complies with the theory of [17]. More...
 
integer function eq_ops::test_d12h_h (grid_eq, eq)
 Tests whether \( \frac{\partial^2}{\partial u_i \partial u_j} h_\text{H} \) is calculated correctly. More...
 
integer function eq_ops::test_jac_f (grid_eq, eq_1, eq_2)
 Performs tests on \( \mathcal{J}_\text{F}\). More...
 
integer function eq_ops::test_g_v (grid_eq, eq)
 Tests whether \(g_\text{V}\) is calculated correctly. More...
 
integer function eq_ops::test_jac_v (grid_eq, eq)
 Tests whether \(\mathcal{J}_\text{V}\) is calculated correctly. More...
 
integer function eq_ops::test_b_f (grid_eq, eq_1, eq_2)
 Tests whether \(\vec{B}_\text{F}\) is calculated correctly. More...
 
integer function eq_ops::test_p (grid_eq, eq_1, eq_2)
 Performs tests on pressure balance. More...
 

Variables

logical, public eq_ops::debug_calc_derived_q = .false.
 plot debug information for calc_derived_q() More...
 
logical, public eq_ops::debug_j_plot = .false.
 plot debug information for j_plot() More...
 
logical, public eq_ops::debug_create_vmec_input = .false.
 plot debug information for create_vmec_input() More...
 

Function/Subroutine Documentation

◆ calc_derived_de_epar_hel()

subroutine calc_derived_q::calc_derived_de_epar_hel ( type(grid_type), intent(in)  grid_eq,
type(eq_1_type), intent(in)  eq_1,
real(dp), dimension(:,:,0:), intent(in)  Rchi,
real(dp), dimension(:,:,0:), intent(in)  Zchi,
real(dp), dimension(:,:,:,:,:,:), intent(out)  de,
real(dp), dimension(:,:,:,:,:), intent(out)  D_de,
real(dp), dimension(:,:,:,:), intent(out)  b_n,
real(dp), dimension(:,:,:,:), intent(out)  b_g 
)
Parameters
[in]grid_eqequilibrium grid
[in]eq_1flux equilibrium variables
[in]rchichi and chi^2 derivatives of R
[in]zchichi and chi^2 derivatives of Z
[out]dederivs of cov. unit vector in E (space,deriv.,unitvec,output)
[out]d_dederivs of transf. matrix in E (space,deriv.,output)
[out]b_ncovariant Cylindrical components of normal basis vector
[out]b_gcovariant Cylindrical components of geodesic basis vector

Definition at line 4715 of file eq_ops.f90.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: