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

Go to the source code of this file.

Interfaces and Types

interface  grid_utilities::coord_f2e
 Converts Flux coordinates \(\left(r,\theta,\zeta\right)_\text{F}\) to Equilibrium coordinates \(\left(r,\theta,\zeta\right)_\text{E}\). More...
 
interface  grid_utilities::coord_e2f
 Converts Equilibrium coordinates \(\left(r,\theta,\zeta\right)_\text{E}\). to Flux coordinates \(\left(r,\theta,\zeta\right)_\text{F}\). More...
 
interface  grid_utilities::calc_eqd_grid
 Calculate grid of equidistant points, where optionally the last point can be excluded. More...
 
interface  grid_utilities::calc_tor_diff
 Calculates the toroidal difference for a magnitude calculated on three toroidal points: two extremities and one in the middle. More...
 

Modules

module  grid_utilities
 Numerical utilities related to the grids and different coordinate systems.
 

Functions/Subroutines

integer function grid_utilities::coord_e2f_rtz (grid_eq, r_E, theta_E, zeta_E, r_F, theta_F, zeta_F, r_E_array, r_F_array)
 version with r, theta and zeta More...
 
integer function grid_utilities::coord_e2f_r (grid_eq, r_E, r_F, r_E_array, r_F_array)
 version with only r More...
 
integer function, public grid_utilities::calc_xyz_grid (grid_eq, grid_XYZ, X, Y, Z, L, R)
 Calculates \(X\), \(Y\) and \(Z\) on a grid grid_XYZ, determined through its E(quilibrium) coordinates. More...
 
integer function, public grid_utilities::extend_grid_f (grid_in, grid_ext, grid_eq, n_theta_plot, n_zeta_plot, lim_theta_plot, lim_zeta_plot)
 Extend a grid angularly. More...
 
integer function, public grid_utilities::copy_grid (grid_A, grid_B, lims_B, i_lim)
 Copy a grid A to a new grid B, that was not yet initialized. More...
 
integer function, public grid_utilities::calc_int_vol (ang_1, ang_2, norm, J, f, f_int)
 Calculates volume integral on a 3D grid. More...
 
integer function, public grid_utilities::trim_grid (grid_in, grid_out, norm_id)
 Trim a grid, removing any overlap between the different regions. More...
 
integer function, public grid_utilities::untrim_grid (grid_in, grid_out, size_ghost)
 Untrims a trimmed grid by introducing an asymmetric ghost regions at the right. More...
 
integer function, public grid_utilities::calc_vec_comp (grid, grid_eq, eq_1, eq_2, v_com, norm_disc_prec, v_mag, base_name, max_transf, v_flux_tor, v_flux_pol, XYZ, compare_tor_pos)
 Calculates contra- and covariant components of a vector in multiple coordinate systems. More...
 
integer function, public grid_utilities::calc_n_par_x_rich (n_par_X_rich, only_half_grid)
 Calculates the local number of parallel grid points for this Richardson level, taking into account that it ould be half the actual number. More...
 
integer function, public grid_utilities::nufft (x, f, f_F, plot_name)
 calculates the cosine and sine mode numbers of a function defined on a non-regular grid. More...
 
subroutine, public grid_utilities::find_compr_range (r_F, lim_r, lim_id)
 finds smallest range that comprises a minimum and maximum value. More...
 
integer function, public grid_utilities::calc_arc_angle (grid, eq_1, eq_2, arc, use_E)
 Calculate arclength angle. More...
 

Variables

logical, public grid_utilities::debug_calc_int_vol = .false.
 plot debug information for calc_int_vol() More...
 
logical, public grid_utilities::debug_calc_vec_comp = .false.
 plot debug information for calc_vec_comp() More...