SpECTRE  v2025.03.17
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
RadiationTransport::MonteCarlo::Solutions::HomogeneousSphere Class Reference

Homogeneous sphere as fluid background to MC run. More...

#include <HomogeneousSphere.hpp>

Classes

struct  Densities
 The density inside and outside the sphere. More...
 
struct  ElectronFractions
 The electron fraction inside and outside the sphere. More...
 
struct  Radius
 The radius of the sphere. More...
 
struct  Temperatures
 The temperature inside and outside the sphere. More...
 

Public Types

using equation_of_state_type = EquationsOfState::EquationOfState< IsRelativistic, 3 >
 
using options = implementation defined
 

Public Member Functions

const EquationsOfState::EquationOfState< IsRelativistic, 3 > & equation_of_state () const
 
 HomogeneousSphere (const HomogeneousSphere &)
 
HomogeneousSphereoperator= (const HomogeneousSphere &)
 
 HomogeneousSphere (HomogeneousSphere &&)=default
 
HomogeneousSphereoperator= (HomogeneousSphere &&)=default
 
 HomogeneousSphere (const double &radius, const std::array< double, 2 > &densities, const std::array< double, 2 > &temperatures, const std::array< double, 2 > &electron_fractions, std::unique_ptr< EquationsOfState::EquationOfState< IsRelativistic, 3 > > local_eos)
 
auto get_clone () const -> std::unique_ptr< evolution::initial_data::InitialData > override
 
template<typename DataType , typename... Tags>
tuples::TaggedTuple< Tags... > variables (const tnsr::I< DataType, 3 > &x, double t, tmpl::list< Tags... >) const
 Retrieve a collection of hydro variables at (x, t)
 
template<typename DataType , typename Tag >
tuples::TaggedTuple< Tag > variables (const tnsr::I< DataType, 3 > &x, double t, tmpl::list< Tag >) const
 Retrieve the metric variables.
 
void pup (PUP::er &) override
 
template<typename DataType >
auto variables (const tnsr::I< DataType, 3 > &x, double, tmpl::list< hydro::Tags::RestMassDensity< DataType > >) const -> tuples::TaggedTuple< hydro::Tags::RestMassDensity< DataType > >
 Retrieve fluid variables at (x, t)
 
template<typename DataType >
auto variables (const tnsr::I< DataType, 3 > &x, double, tmpl::list< hydro::Tags::ElectronFraction< DataType > >) const -> tuples::TaggedTuple< hydro::Tags::ElectronFraction< DataType > >
 Retrieve fluid variables at (x, t)
 
template<typename DataType >
auto variables (const tnsr::I< DataType, 3 > &x, double, tmpl::list< hydro::Tags::Temperature< DataType > >) const -> tuples::TaggedTuple< hydro::Tags::Temperature< DataType > >
 Retrieve fluid variables at (x, t)
 
template<typename DataType >
auto variables (const tnsr::I< DataType, 3 > &x, double, tmpl::list< hydro::Tags::LorentzFactor< DataType > >) const -> tuples::TaggedTuple< hydro::Tags::LorentzFactor< DataType > >
 Retrieve fluid variables at (x, t)
 
template<typename DataType >
auto variables (const tnsr::I< DataType, 3 > &x, double, tmpl::list< hydro::Tags::SpecificInternalEnergy< DataType > >) const -> tuples::TaggedTuple< hydro::Tags::SpecificInternalEnergy< DataType > >
 Retrieve fluid variables at (x, t)
 
template<typename DataType >
auto variables (const tnsr::I< DataType, 3 > &x, double, tmpl::list< hydro::Tags::Pressure< DataType > >) const -> tuples::TaggedTuple< hydro::Tags::Pressure< DataType > >
 Retrieve fluid variables at (x, t)
 
template<typename DataType >
auto variables (const tnsr::I< DataType, 3 > &x, double, tmpl::list< hydro::Tags::SpatialVelocity< DataType, 3 > >) const -> tuples::TaggedTuple< hydro::Tags::SpatialVelocity< DataType, 3 > >
 Retrieve fluid variables at (x, t)
 
template<typename DataType >
auto variables (const tnsr::I< DataType, 3 > &x, double, tmpl::list< hydro::Tags::MagneticField< DataType, 3 > >) const -> tuples::TaggedTuple< hydro::Tags::MagneticField< DataType, 3 > >
 Retrieve fluid variables at (x, t)
 
template<typename DataType >
auto variables (const tnsr::I< DataType, 3 > &x, double, tmpl::list< hydro::Tags::DivergenceCleaningField< DataType > >) const -> tuples::TaggedTuple< hydro::Tags::DivergenceCleaningField< DataType > >
 Retrieve fluid variables at (x, t)
 
virtual auto get_clone () const -> std::unique_ptr< InitialData >=0
 

Static Public Attributes

static constexpr bool IsRelativistic = true
 
static constexpr Options::String help
 

Friends

bool operator== (const HomogeneousSphere &lhs, const HomogeneousSphere &rhs)
 

Detailed Description

Homogeneous sphere as fluid background to MC run.

Provides background fluid variables for a fluid with constant density, temperature, Ye in Minkowski spacetime.

Member Function Documentation

◆ get_clone()

auto RadiationTransport::MonteCarlo::Solutions::HomogeneousSphere::get_clone ( ) const -> std::unique_ptr< evolution::initial_data::InitialData >
overridevirtual

Member Data Documentation

◆ help

constexpr Options::String RadiationTransport::MonteCarlo::Solutions::HomogeneousSphere::help
staticconstexpr
Initial value:
= {
"Background for uniform sphere with constant rho, T, Ye"}

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