PB3D [2.47]
Ideal linear high-n MHD stability in 3-D
Loading...
Searching...
No Matches
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, 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.
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.
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.
integer function, public grid_utilities::calc_int_vol (ang_1, ang_2, norm, j, f, f_int)
 Calculates volume integral on a 3D grid.
integer function, public grid_utilities::trim_grid (grid_in, grid_out, norm_id)
 Trim a grid, removing any overlap between the different regions.
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.
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.
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.
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.
subroutine, public grid_utilities::find_compr_range (r_f, lim_r, lim_id)
 finds smallest range that comprises a minimum and maximum value.
integer function, public grid_utilities::calc_arc_angle (grid, eq_1, eq_2, arc, use_e)
 Calculate arclength angle.

Variables

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