SpECTRE  v2026.04.01
Loading...
Searching...
No Matches
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
using options

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, Requires< not tmpl::list_contains_v< tmpl::push_back< hydro::grmhd_tags< DataType >, hydro::Tags::SpecificEnthalpy< DataType > >, Tag > > = nullptr>
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::SpecificEnthalpy< DataType > >) const -> tuples::TaggedTuple< hydro::Tags::SpecificEnthalpy< 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)

Static Public Attributes

static constexpr bool IsRelativistic = true
static const size_t volume_dim = 3
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 Typedef Documentation

◆ equation_of_state_type

using RadiationTransport::MonteCarlo::Solutions::HomogeneousSphere::equation_of_state_type
Initial value:
Base class for equations of state depending on whether or not the system is relativistic,...
Definition EquationOfState.hpp:123

◆ options

using RadiationTransport::MonteCarlo::Solutions::HomogeneousSphere::options
Initial value:
tmpl::list<
The density inside and outside the sphere.
Definition HomogeneousSphere.hpp:58
The electron fraction inside and outside the sphere.
Definition HomogeneousSphere.hpp:68
The radius of the sphere.
Definition HomogeneousSphere.hpp:53
The temperature inside and outside the sphere.
Definition HomogeneousSphere.hpp:63
The equation of state of the fluid.
Definition Tags.hpp:30

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

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:
  • src/PointwiseFunctions/AnalyticSolutions/RadiationTransport/MonteCarlo/HomogeneousSphere.hpp