PlasCom2  1.0
XPACC Multi-physics simluation application
simulation::grid Namespace Reference

Classes

class  base
 
class  halo
 
struct  intervalset
 
class  parallel_base
 
class  parallel_blockstructured
 
struct  partition_info
 
struct  patch_info
 
struct  pbsintervals
 
struct  subregion
 
class  unstructured
 

Enumerations

enum  TopoType {
  CARTESIAN =0, UNIRECT, RECTILINEAR, CURVILINEAR,
  NUMTOPOTYPE
}
 Geometry/grid topology types. More...
 

Functions

int ResolveTopoName (const std::string &inName)
 
std::string ResolveTopoType (int inType)
 
int InitSubRegionFromString (const std::string &inString, const std::vector< size_t > &gridSizes, subregion &inSubRegion)
 
pcpp::IndexIntervalType ResolveBufferInterval (const pcpp::IndexIntervalType &partitionInterval, const pcpp::IndexIntervalType &partitionBufferInterval, const pcpp::IndexIntervalType &partitionSubInterval)
 
template<typename GridType >
std::vector< double > GenerateUniformGrid (GridType &inGrid, const std::vector< double > &physicalExtent)
 

Variables

static const int NUMGRIDTYPES = NUMTOPOTYPE
 
static const char * topoNames [] = {"Cartesian","Uniform-rectangular","Rectilinear","Curvilinear","Unknown"}
 

Enumeration Type Documentation

◆ TopoType

enum TopoType

Geometry/grid topology types.

This enumerates the types of block-structured grid topologies.

  • CARTESIAN – Uniform spacing in all dimensions
  • UNIRECT – Uniform spacing in each dimension
  • RECTILINEAR – Orthogonal axes, variable spacings grid
  • CURVILINEAR – General curvilinear grid
Enumerator
CARTESIAN 
UNIRECT 
RECTILINEAR 
CURVILINEAR 
NUMTOPOTYPE 

Definition at line 28 of file Grid.H.

Function Documentation

◆ GenerateUniformGrid()

std::vector<double> simulation::grid::GenerateUniformGrid ( GridType &  inGrid,
const std::vector< double > &  physicalExtent 
)

Definition at line 717 of file Grid.H.

References bufferSizes, gridSizes, and numPointsBuffer.

◆ InitSubRegionFromString()

int InitSubRegionFromString ( const std::string &  inString,
const std::vector< size_t > &  gridSizes,
subregion inSubRegion 
)

Definition at line 174 of file Grid.C.

References sizeextent::InitSimple(), subregion::normalDirection, base::numDim, subregion::regionInterval, subregion::regionName, and sizeextent::Sync().

Referenced by plascom2::util::ConfigureGridSubRegions(), and TestGrid_SubRegion().

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

◆ ResolveBufferInterval()

pcpp::IndexIntervalType ResolveBufferInterval ( const pcpp::IndexIntervalType partitionInterval,
const pcpp::IndexIntervalType partitionBufferInterval,
const pcpp::IndexIntervalType partitionSubInterval 
)

Definition at line 153 of file Grid.C.

References base::numDim, sizeextent::Overlap(), and sizeextent::Sync().

Here is the call graph for this function:

◆ ResolveTopoName()

int ResolveTopoName ( const std::string &  inName)

Definition at line 135 of file Grid.C.

References CARTESIAN, NUMTOPOTYPE, and topoNames.

Referenced by plascom2::util::ConfigureGrid(), and plascom2::util::ConfigureGridInfo().

Here is the caller graph for this function:

◆ ResolveTopoType()

std::string ResolveTopoType ( int  inType)

Definition at line 144 of file Grid.C.

References NUMTOPOTYPE, and topoNames.

Referenced by plascom2::util::ConfigureGrid(), and plascom2::util::ConfigureGridInfo().

Here is the caller graph for this function:

Variable Documentation

◆ NUMGRIDTYPES

const int NUMGRIDTYPES = NUMTOPOTYPE
static

Definition at line 29 of file Grid.H.

Referenced by TestViscidKernelsMetrics().

◆ topoNames

const char* topoNames[] = {"Cartesian","Uniform-rectangular","Rectilinear","Curvilinear","Unknown"}
static

Definition at line 30 of file Grid.H.

Referenced by ResolveTopoName(), and ResolveTopoType().