SpECTRE
v2025.03.17
|
A constant density star in general relativity. More...
#include <ConstantDensityStar.hpp>
Classes | |
struct | Density |
struct | Radius |
Public Types | |
using | options = implementation defined |
Public Member Functions | |
ConstantDensityStar (const ConstantDensityStar &)=default | |
ConstantDensityStar & | operator= (const ConstantDensityStar &)=default |
ConstantDensityStar (ConstantDensityStar &&)=default | |
ConstantDensityStar & | operator= (ConstantDensityStar &&)=default |
std::unique_ptr< elliptic::analytic_data::AnalyticSolution > | get_clone () const override |
ConstantDensityStar (double density, double radius, const Options::Context &context={}) | |
double | density () const |
double | radius () const |
template<typename DataType , typename... Tags> | |
tuples::TaggedTuple< Tags... > | variables (const tnsr::I< DataType, 3, Frame::Inertial > &x, tmpl::list< Tags... >) const |
Retrieve a collection of variables at coordinates x | |
void | pup (PUP::er &p) override |
template<typename DataType > | |
auto | variables (const tnsr::I< DataType, 3, Frame::Inertial > &x, tmpl::list< Xcts::Tags::ConformalFactor< DataType > >) const -> tuples::TaggedTuple< Xcts::Tags::ConformalFactor< DataType > > |
Retrieve variable at coordinates x | |
template<typename DataType > | |
auto | variables (const tnsr::I< DataType, 3, Frame::Inertial > &x, tmpl::list<::Tags::Initial< Xcts::Tags::ConformalFactor< DataType > > >) const -> tuples::TaggedTuple< ::Tags::Initial< Xcts::Tags::ConformalFactor< DataType > > > |
Retrieve variable at coordinates x | |
template<typename DataType > | |
auto | variables (const tnsr::I< DataType, 3, Frame::Inertial > &x, tmpl::list<::Tags::Initial< ::Tags::deriv< Xcts::Tags::ConformalFactor< DataType >, tmpl::size_t< 3 >, Frame::Inertial > > >) const -> tuples::TaggedTuple< ::Tags::Initial<::Tags::deriv< Xcts::Tags::ConformalFactor< DataType >, tmpl::size_t< 3 >, Frame::Inertial > > > |
Retrieve variable at coordinates x | |
template<typename DataType > | |
auto | variables (const tnsr::I< DataType, 3, Frame::Inertial > &x, tmpl::list<::Tags::FixedSource< Xcts::Tags::ConformalFactor< DataType > > >) const -> tuples::TaggedTuple< ::Tags::FixedSource< Xcts::Tags::ConformalFactor< DataType > > > |
Retrieve variable at coordinates x | |
template<typename DataType > | |
auto | variables (const tnsr::I< DataType, 3, Frame::Inertial > &x, tmpl::list< gr::Tags::EnergyDensity< DataType > >) const -> tuples::TaggedTuple< gr::Tags::EnergyDensity< DataType > > |
Retrieve variable at coordinates x | |
virtual std::unique_ptr< AnalyticSolution > | get_clone () const =0 |
Static Public Attributes | |
static constexpr Options::String | help |
A constant density star in general relativity.
This solution describes a star with constant density
for the conformal factor Xcts
) under the following assumptions [16] :
Imposing boundary conditions
and considering the energy density
of the star the authors of [16] find the solution
with
and real parameters
This solution is described in detail in [16] , and also in Exercise 3.8 in [14] , since it exhibits the non-uniqueness properties that are typical for the XCTS system. In the simple case of the constant-density star the non-uniqueness is apparent from the function
a unique solution for
|
inlineoverridevirtual |
Implements elliptic::analytic_data::AnalyticSolution.
|
staticconstexpr |