SpECTRE
v2025.03.17
|
Hydro initial data generated by SpEC. More...
#include <SpecInitialData.hpp>
Classes | |
struct | AtmosphereDensity |
struct | DataDirectory |
struct | DensityCutoff |
struct | ElectronFraction |
Public Types | |
using | equation_of_state_type = EquationsOfState::EquationOfState< true, ThermodynamicDim > |
template<typename DataType > | |
using | tags = implementation defined |
using | options = implementation defined |
![]() | |
template<typename DataType > | |
using | tags = implementation defined |
Public Member Functions | |
SpecInitialData (const SpecInitialData &rhs) | |
SpecInitialData & | operator= (const SpecInitialData &rhs) |
SpecInitialData (SpecInitialData &&)=default | |
SpecInitialData & | operator= (SpecInitialData &&)=default |
SpecInitialData (std::string data_directory, std::unique_ptr< equation_of_state_type > equation_of_state, double density_cutoff, double atmosphere_density, std::optional< double > electron_fraction) | |
auto | get_clone () const -> std::unique_ptr< evolution::initial_data::InitialData > override |
const equation_of_state_type & | equation_of_state () const |
template<typename DataType , typename... Tags> | |
tuples::TaggedTuple< Tags... > | variables (const tnsr::I< DataType, 3 > &x, tmpl::list< Tags... >) const |
void | pup (PUP::er &) override |
virtual auto | get_clone () const -> std::unique_ptr< InitialData >=0 |
Static Public Member Functions | |
static std::string | name () |
Static Public Attributes | |
static constexpr Options::String | help = {"Initial data generated by SpEC"} |
![]() | |
static constexpr size_t | volume_dim = 3_st |
Hydro initial data generated by SpEC.
This class loads numerical data written out by the SpEC initial data solver. It uses the spec::Exporter
linked in from SpEC to interpolate to arbitrary grid points. The coordinates are assumed to be in SpEC's "grid" frame. We interpolate the following quantities:
The remaining hydro quantities are computed from the interpolated data and the equation of state. The magnetic field is set to zero and the electron fraction is set to a constant read from the input file.
|
overridevirtual |
Implements evolution::initial_data::InitialData.