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

Create a 2D Domain consisting of four rotated Blocks. More...

#include <RotatedRectangles.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< 2, TargetFrame >
using creatable_classes = typename DomainCreators_detail::domain_creators< VolumeDim >::template creators< TargetFrame >
 

Public Member Functions

 RotatedRectangles (typename LowerBound::type lower_xy, typename Midpoint::type midpoint_xy, typename UpperBound::type upper_xy, typename IsPeriodicIn::type is_periodic_in, typename InitialRefinement::type initial_refinement_level_xy, typename InitialGridPoints::type initial_number_of_grid_points_in_xy) noexcept
 
 RotatedRectangles (const RotatedRectangles &)=delete
 
 RotatedRectangles (RotatedRectangles &&) noexcept=default
 
RotatedRectanglesoperator= (const RotatedRectangles &)=delete
 
RotatedRectanglesoperator= (RotatedRectangles &&) noexcept=default
 
Domain< 2, TargetFrame > create_domain () const noexcept override
 
std::vector< std::array< size_t, 2 > > initial_extents () const noexcept override
 Obtain the initial grid extents of the block with the given index.
 
std::vector< std::array< size_t, 2 > > initial_refinement_levels () const noexcept override
 Obtain the initial refinement levels of the blocks.
 
- Public Member Functions inherited from DomainCreator< 2, 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::RotatedRectangles< TargetFrame >

Create a 2D Domain consisting of four rotated Blocks.

This DomainCreator is useful for testing code that deals with unaligned blocks.

Member Data Documentation

◆ help

template<typename TargetFrame >
constexpr OptionString domain::creators::RotatedRectangles< TargetFrame >::help
static
Initial value:
= {
"A DomainCreator useful for testing purposes.\n"
"RotatedRectangles uses four rotated Blocks to create the rectangle\n"
"[LowerX,UpperX] x [LowerY,UpperY]. The outermost index to\n"
"InitialGridPoints is the dimension index, and the innermost index is\n"
"the block index along that dimension."}

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