SpECTRE
v2024.12.16
|
Actions and metafunctions used for initialization of parallel components. More...
Namespaces | |
namespace | Initialization::Tags |
Tags used during initialization of parallel components. | |
Functions | |
template<size_t VolumeDim> | |
Element< VolumeDim > | domain::Initialization::create_initial_element (const ElementId< VolumeDim > &element_id, const Block< VolumeDim > &block, const std::vector< std::array< size_t, VolumeDim > > &initial_refinement_levels) |
Creates an initial element of a Block. More... | |
template<size_t Dim> | |
Mesh< Dim > | domain::Initialization::create_initial_mesh (const std::vector< std::array< size_t, Dim > > &initial_extents, const ElementId< Dim > &element_id, Spectral::Quadrature quadrature, const OrientationMap< Dim > &orientation=OrientationMap< Dim >::create_aligned()) |
Construct the initial Mesh of an Element. More... | |
Actions and metafunctions used for initialization of parallel components.
Element< VolumeDim > domain::Initialization::create_initial_element | ( | const ElementId< VolumeDim > & | element_id, |
const Block< VolumeDim > & | block, | ||
const std::vector< std::array< size_t, VolumeDim > > & | initial_refinement_levels | ||
) |
Creates an initial element of a Block.
This function creates an element at the refinement level and position specified by the element_id
within the block
. It assumes that all elements in a given block have the same refinement level, given in initial_refinement_levels
.
Mesh< Dim > domain::Initialization::create_initial_mesh | ( | const std::vector< std::array< size_t, Dim > > & | initial_extents, |
const ElementId< Dim > & | element_id, | ||
Spectral::Quadrature | quadrature, | ||
const OrientationMap< Dim > & | orientation = OrientationMap< Dim >::create_aligned() |
||
) |
Construct the initial Mesh of an Element.
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.
initial_extents | the initial extents of each Block in the Domain |
element_id | id of an Element or its neighbor |
quadrature | the quadrature rule/grid point distribution |
orientation | OrientationMap of (neighboring) element_id |