SpECTRE
v2025.03.17
|
A static spherically symmetric star. More...
#include <TovStar.hpp>
Classes | |
struct | CentralDensity |
The central density of the star. More... | |
struct | Coordinates |
Areal (Schwarzschild) or isotropic coordinates. More... | |
Public Types | |
using | equation_of_state_type = EquationsOfState::EquationOfState< true, 1 > |
using | options = implementation defined |
template<typename DataType > | |
using | tags = implementation defined |
![]() | |
using | tags = implementation defined |
Public Member Functions | |
TovStar (const TovStar &) | |
TovStar & | operator= (const TovStar &) |
TovStar (TovStar &&)=default | |
TovStar & | operator= (TovStar &&)=default |
TovStar (double central_rest_mass_density, std::unique_ptr< EquationsOfState::EquationOfState< true, 1 > > equation_of_state, const RelativisticEuler::Solutions::TovCoordinates coordinate_system=RelativisticEuler::Solutions::TovCoordinates::Schwarzschild) | |
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, const double, tmpl::list< Tags... >) const |
Retrieve a collection of variables at (x, t) | |
void | pup (PUP::er &) override |
NOLINTNEXTLINE(google-runtime-references) | |
const EquationsOfState::EquationOfState< true, 1 > & | equation_of_state () const |
const RelativisticEuler::Solutions::TovSolution & | radial_solution () const |
The radial profile of the star. | |
virtual auto | get_clone () const -> std::unique_ptr< InitialData >=0 |
Static Public Attributes | |
static constexpr size_t | volume_dim = 3_st |
static constexpr Options::String | help |
![]() | |
static constexpr size_t | volume_dim |
Protected Member Functions | |
template<template< class, tov_detail::StarRegion > class VarsComputer, typename DataType , typename... Tags, typename... VarsComputerArgs> | |
tuples::TaggedTuple< Tags... > | variables_impl (const tnsr::I< DataType, 3 > &x, tmpl::list< Tags... >, VarsComputerArgs &&... vars_computer_args) const |
Friends | |
bool | operator== (const TovStar &lhs, const TovStar &rhs) |
A static spherically symmetric star.
An analytic solution for a static, spherically-symmetric star found by solving the Tolman-Oppenheimer-Volkoff (TOV) equations. The equation of state is assumed to be that of a polytropic fluid.
If the spherically symmetric metric is written as
where
We solve the TOV equations with the method implemented in RelativisticEuler::Solutions::TovSolution
. It provides the areal mass-over-radius
In isotropic coordinates the spatial metric potentials are
where RelativisticEuler::Solutions::TovSolution
for details.
|
overridevirtual |
Implements evolution::initial_data::InitialData.
|
staticconstexpr |