Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
domain::creators::RotatedIntervals< TargetFrame > Class Template Reference

Create a 1D Domain consisting of two rotated Blocks. The left block has its logical \(\xi\)-axis aligned with the grid x-axis. The right block has its logical \(\xi\)-axis opposite to the grid x-axis. This is useful for testing code that deals with unaligned blocks. More...

#include <RotatedIntervals.hpp>

Classes

struct  InitialGridPoints
 
struct  InitialRefinement
 
struct  IsPeriodicIn
 
struct  LowerBound
 
struct  Midpoint
 
struct  UpperBound
 

Public Types

using options = tmpl::list< LowerBound, Midpoint, UpperBound, IsPeriodicIn, InitialRefinement, InitialGridPoints >
 
- Public Types inherited from DomainCreator< 1, TargetFrame >
using creatable_classes = typename DomainCreators_detail::domain_creators< VolumeDim >::template creators< TargetFrame >
 

Public Member Functions

 RotatedIntervals (typename LowerBound::type lower_x, typename Midpoint::type midpoint_x, typename UpperBound::type upper_x, typename IsPeriodicIn::type is_periodic_in, typename InitialRefinement::type initial_refinement_level_x, typename InitialGridPoints::type initial_number_of_grid_points_in_x) noexcept
 
 RotatedIntervals (const RotatedIntervals &)=delete
 
 RotatedIntervals (RotatedIntervals &&) noexcept=default
 
RotatedIntervalsoperator= (const RotatedIntervals &)=delete
 
RotatedIntervalsoperator= (RotatedIntervals &&) noexcept=default
 
Domain< 1, TargetFrame > create_domain () const noexcept override
 
std::vector< std::array< size_t, 1 > > initial_extents () const noexcept override
 Obtain the initial grid extents of the block with the given index.
 
std::vector< std::array< size_t, 1 > > initial_refinement_levels () const noexcept override
 Obtain the initial refinement levels of the blocks.
 
- Public Member Functions inherited from DomainCreator< 1, TargetFrame >
 DomainCreator (const DomainCreator< VolumeDim, TargetFrame > &)=delete
 
 DomainCreator (DomainCreator< VolumeDim, TargetFrame > &&) noexcept=default
 
DomainCreator< VolumeDim, TargetFrame > & operator= (const DomainCreator< VolumeDim, TargetFrame > &)=delete
 
DomainCreator< VolumeDim, TargetFrame > & operator= (DomainCreator< VolumeDim, TargetFrame > &&) noexcept=default
 

Static Public Attributes

static constexpr OptionString help
 

Detailed Description

template<typename TargetFrame>
class domain::creators::RotatedIntervals< TargetFrame >

Create a 1D Domain consisting of two rotated Blocks. The left block has its logical \(\xi\)-axis aligned with the grid x-axis. The right block has its logical \(\xi\)-axis opposite to the grid x-axis. This is useful for testing code that deals with unaligned blocks.

Member Data Documentation

◆ help

template<typename TargetFrame >
constexpr OptionString domain::creators::RotatedIntervals< TargetFrame >::help
static
Initial value:
= {
"A DomainCreator useful for testing purposes.\n"
"RotatedIntervals creates the interval [LowerX,UpperX] from two\n"
"rotated Blocks. The outermost index to InitialGridPoints is the\n"
"dimension index (of which there is only one in the case of\n"
"RotatedIntervals), and the innermost index is the block index\n"
"along that dimension."}

The documentation for this class was generated from the following files: