Classes | Functions
Initialization Namespace Reference

Items for initializing the DataBoxes of parallel components. More...

Classes

struct  ConservativeSystem
 Allocate variables needed for evolution of conservative systems. More...
 
struct  ConservativeVars
 Initialize the conservative variables from the primitive variables. More...
 
struct  DiscontinuousGalerkin
 Initialize items related to the discontinuous Galerkin method. More...
 
struct  Domain
 Initialize items related to the basic structure of the Domain. More...
 
struct  Evolution
 Initialize items related to time-evolution of the system. More...
 
struct  Interface
 Initialize items related to the interfaces between Elements and on external boundaries. More...
 
struct  MinMod
 Allocate items for minmod limiter. More...
 

Functions

template<size_t Dim>
Mesh< Dim > element_mesh (const std::vector< std::array< size_t, Dim >> &initial_extents, const ElementId< Dim > &element_id, const OrientationMap< Dim > &orientation={}) noexcept
 Construct the initial Mesh of an Element. More...
 

Detailed Description

Items for initializing the DataBoxes of parallel components.

Function Documentation

◆ element_mesh()

template<size_t Dim>
Mesh<Dim> Initialization::element_mesh ( const std::vector< std::array< size_t, Dim >> &  initial_extents,
const ElementId< Dim > &  element_id,
const OrientationMap< Dim > &  orientation = {} 
)
noexcept

Construct the initial Mesh of an Element.

Details

When constructing the Mesh of an Element, pass its id, and use the default argument for orientation. When constructing the mesh of a neighboring Element (when constructing mortars), pass the id and orientation of the neighbor.

Parameters
initial_extentsthe initial extents of each Block in the Domain
element_idid of an Element or its neighbor
orientationOrientationMap of (neighboring) element_id