SpECTRE
v2023.05.16
|
This holds all options related to the time dependent maps of the domain::creators::Sphere domain creator. More...
#include <SphereTimeDependentMaps.hpp>
Classes | |
struct | InitialTime |
The initial time of the functions of time. More... | |
struct | ShapeMapInitialValues |
struct | ShapeMapLMax |
struct | ShapeMapOptions |
struct | SizeMap |
struct | SizeMapInitialValues |
Public Types | |
using | maps_list = tmpl::list< IdentityForComposition< Frame::Grid, Frame::Inertial >, IdentityForComposition< Frame::Grid, Frame::Distorted >, IdentityForComposition< Frame::Distorted, Frame::Inertial >, GridToDistortedComposition, GridToInertialComposition > |
using | options = tmpl::list< InitialTime, SizeMapInitialValues, ShapeMapLMax, ShapeMapInitialValues > |
Public Member Functions | |
TimeDependentMapOptions (double initial_time, const std::optional< std::array< double, 3 > > &initial_size_values, size_t initial_l_max, const typename ShapeMapInitialValues::type::value_type &initial_shape_values) | |
std::unordered_map< std::string, std::unique_ptr< domain::FunctionsOfTime::FunctionOfTime > > | create_functions_of_time (double inner_radius, const std::unordered_map< std::string, double > &initial_expiration_times) const |
Create the function of time map using the options that were provided to this class. More... | |
void | build_maps (const std::array< double, 3 > ¢er, double inner_radius, double outer_radius) |
Construct the actual maps that will be used. More... | |
MapType< Frame::Grid, Frame::Distorted > | grid_to_distorted_map (bool include_distorted_map) const |
This will construct the map from Frame::Grid to Frame::Distorted . More... | |
MapType< Frame::Grid, Frame::Inertial > | grid_to_inertial_map (bool include_distorted_map) const |
This will construct the map from Frame::Grid to Frame::Inertial . More... | |
Static Public Member Functions | |
static MapType< Frame::Distorted, Frame::Inertial > | distorted_to_inertial_map (bool include_distorted_map) |
This will construct the map from Frame::Distorted to Frame::Inertial . More... | |
Static Public Attributes | |
static constexpr Options::String | help |
static const std::string | size_name {"Size"} |
static const std::string | shape_name {"Shape"} |
This holds all options related to the time dependent maps of the domain::creators::Sphere domain creator.
Currently this class will only add a Size and a Shape map (and FunctionsOfTime) to the domain. Other maps can be added as needed.
void domain::creators::sphere::TimeDependentMapOptions::build_maps | ( | const std::array< double, 3 > & | center, |
double | inner_radius, | ||
double | outer_radius | ||
) |
Construct the actual maps that will be used.
Currently, this constructs a:
Shape
(with a size function of time) std::unordered_map< std::string, std::unique_ptr< domain::FunctionsOfTime::FunctionOfTime > > domain::creators::sphere::TimeDependentMapOptions::create_functions_of_time | ( | double | inner_radius, |
const std::unordered_map< std::string, double > & | initial_expiration_times | ||
) | const |
Create the function of time map using the options that were provided to this class.
Currently, this will add:
PiecewisePolynomial<3>
PiecewisePolynomial<2>
|
static |
This will construct the map from Frame::Distorted
to Frame::Inertial
.
If the argument include_distorted_map
is true, then this will be an identity map. If it is false, then this returns nullptr
.
MapType< Frame::Grid, Frame::Distorted > domain::creators::sphere::TimeDependentMapOptions::grid_to_distorted_map | ( | bool | include_distorted_map | ) | const |
This will construct the map from Frame::Grid
to Frame::Distorted
.
If the argument include_distorted_map
is true, then this will add a Shape
map (with a size function of time). If it is false, then this returns nullptr
.
MapType< Frame::Grid, Frame::Inertial > domain::creators::sphere::TimeDependentMapOptions::grid_to_inertial_map | ( | bool | include_distorted_map | ) | const |
This will construct the map from Frame::Grid
to Frame::Inertial
.
If the argument include_distorted_map
is true, then this map will have a Shape
map (with a size function of time). If it is false, then there will only be an identity map.
|
staticconstexpr |