version 0.6.0
Loading...
Searching...
No Matches
mod_generic_node_type Module Reference

Any node type variables. More...

Data Types

interface  guess_node_type
 Guess the node type from the given grid sizes. More...
 

Functions/Subroutines

pure subroutine, public get_coordinates (node_type, coord_x_, coord_y_, coord_z_)
 Get the node coordinates according to node_type argument.
 
pure subroutine, public get_local_domain_ends (node_type, is_, ie_, js_, je_, ks_, ke_)
 Get the starting and ending indices of the local physical grid.
 
pure subroutine, public get_local_domainboundary_ends (node_type, isb_, ieb_, jsb_, jeb_, ksb_, keb_)
 Get the starting and ending indices of the local physical+boundary grid.
 
pure subroutine, public get_overlap_numerical_domain_sizes (node_type, nx_, ny_, nz_)
 Get the starting and ending indices of the local numerical grid.
 
pure subroutine, public get_global_numerical_domain_sizes (node_type, nxg_, nyg_, nzg_)
 Get the starting and ending indices of the global numerical grid.
 
pure subroutine, public get_spatial_step (node_type, dx_, dy_, dz_)
 Get the cell sizes of the local numerical grid.
 
pure subroutine, public get_dual_spatial_step (node_type, dx_, dy_, dz_)
 Get the cell distances of the local numerical grid.
 
pure type(t_node_type) function, public guess_node_type (nx_, ny_, nz_)
 

Detailed Description

This module provides the ability to write routines that work for any grid type: cell grid and face grid.

Function/Subroutine Documentation

◆ get_dual_spatial_step()

pure subroutine, public mod_generic_node_type::get_dual_spatial_step ( type(t_node_type), intent(in) node_type,
double precision, dimension(:), intent(out), allocatable dx_,
double precision, dimension(:), intent(out), allocatable dy_,
double precision, dimension(:), intent(out), allocatable dz_ )

Mind the array sizes:

  • cell-centered coordinates: n -> n+1
  • face-centered coordinates: n -> n-1