|
| AlignedLattice (std::array< std::vector< double >, Dim > block_bounds, std::array< size_t, Dim > initial_refinement_levels, std::array< size_t, Dim > initial_number_of_grid_points, std::vector< RefinementRegion< Dim > > refined_refinement, std::vector< RefinementRegion< Dim > > refined_grid_points, std::vector< std::array< size_t, Dim > > blocks_to_exclude, std::array< bool, Dim > is_periodic_in=make_array< Dim >(false), const Options::Context &context={}) |
|
| AlignedLattice (std::array< std::vector< double >, Dim > block_bounds, std::array< size_t, Dim > initial_refinement_levels, std::array< size_t, Dim > initial_number_of_grid_points, std::vector< RefinementRegion< Dim > > refined_refinement, std::vector< RefinementRegion< Dim > > refined_grid_points, std::vector< std::array< size_t, Dim > > blocks_to_exclude, std::array< std::array< std::unique_ptr< domain::BoundaryConditions::BoundaryCondition >, 2 >, Dim > boundary_conditions, const Options::Context &context={}) |
|
template<typename BoundaryConditionsBase > |
| AlignedLattice (std::array< std::vector< double >, Dim > block_bounds, std::array< size_t, Dim > initial_refinement_levels, std::array< size_t, Dim > initial_number_of_grid_points, std::vector< RefinementRegion< Dim > > refined_refinement, std::vector< RefinementRegion< Dim > > refined_grid_points, std::vector< std::array< size_t, Dim > > blocks_to_exclude, std::array< std::variant< std::unique_ptr< BoundaryConditionsBase >, typename Rectilinear< Dim >::template LowerUpperBoundaryCondition< BoundaryConditionsBase > >, Dim > boundary_conditions, const Options::Context &context={}) |
|
| AlignedLattice (const AlignedLattice &)=delete |
|
| AlignedLattice (AlignedLattice &&)=default |
|
AlignedLattice & | operator= (const AlignedLattice &)=delete |
|
AlignedLattice & | operator= (AlignedLattice &&)=default |
|
Domain< Dim > | create_domain () const override |
|
std::vector< DirectionMap< Dim, std::unique_ptr< domain::BoundaryConditions::BoundaryCondition > > > | external_boundary_conditions () const override |
| The set of external boundary condition for every block in the domain. More...
|
|
std::vector< std::array< size_t, Dim > > | initial_extents () const override |
| Obtain the initial grid extents of the Elements in each block. More...
|
|
std::vector< std::array< size_t, Dim > > | initial_refinement_levels () const override |
| Obtain the initial refinement levels of the blocks. More...
|
|
Public Member Functions inherited from DomainCreator< Dim > |
| DomainCreator (const DomainCreator< VolumeDim > &)=delete |
|
| DomainCreator (DomainCreator< VolumeDim > &&)=default |
|
DomainCreator< VolumeDim > & | operator= (const DomainCreator< VolumeDim > &)=delete |
|
DomainCreator< VolumeDim > & | operator= (DomainCreator< VolumeDim > &&)=default |
|
virtual Domain< VolumeDim > | create_domain () const=0 |
|
virtual std::unordered_map< std::string, tnsr::I< double, VolumeDim, Frame::Grid > > | grid_anchors () const |
| A set of named coordinates in the grid frame, like the center of the domain or the positions of specific objects in a domain.
|
|
virtual std::vector< DirectionMap< VolumeDim, std::unique_ptr< domain::BoundaryConditions::BoundaryCondition > > > | external_boundary_conditions () const=0 |
| The set of external boundary condition for every block in the domain. More...
|
|
virtual std::vector< std::string > | block_names () const |
| A human-readable name for every block, or empty if the domain creator doesn't support block names (yet). More...
|
|
virtual std::unordered_map< std::string, std::unordered_set< std::string > > | block_groups () const |
| Labels to refer to groups of blocks. The groups can overlap, and they don't have to cover all blocks in the domain. The groups can be used to refer to multiple blocks at once when specifying input-file options.
|
|
virtual std::vector< std::array< size_t, VolumeDim > > | initial_extents () const=0 |
| Obtain the initial grid extents of the Elements in each block. More...
|
|
virtual std::vector< std::array< size_t, VolumeDim > > | initial_refinement_levels () const=0 |
| Obtain the initial refinement levels of the blocks. More...
|
|
virtual auto | functions_of_time (const std::unordered_map< std::string, double > &initial_expiration_times={}) const -> std::unordered_map< std::string, std::unique_ptr< domain::FunctionsOfTime::FunctionOfTime > > |
| Retrieve the functions of time used for moving meshes. More...
|
|
template<size_t Dim>
class domain::creators::AlignedLattice< Dim >
Create a Domain consisting of multiple aligned Blocks arrayed in a lattice.
This is useful for setting up problems with piecewise smooth initial data, problems that specify different boundary conditions on distinct parts of the boundary, or problems that need different length scales initially.
- Note
- Adaptive mesh refinement can never join Blocks, so use the fewest number of Blocks that your problem needs. More initial Elements can be created by specifying a larger
InitialRefinement
.