SpECTRE
v2025.03.17
|
A static spherically symmetric star in Newtonian gravity. More...
#include <LaneEmdenStar.hpp>
Classes | |
struct | CentralMassDensity |
The central mass density of the star. More... | |
struct | PolytropicConstant |
The polytropic constant of the polytropic fluid. More... | |
Public Types | |
using | equation_of_state_type = EquationsOfState::PolytropicFluid< false > |
using | options = implementation defined |
Public Member Functions | |
LaneEmdenStar (const LaneEmdenStar &)=default | |
LaneEmdenStar & | operator= (const LaneEmdenStar &)=default |
LaneEmdenStar (LaneEmdenStar &&)=default | |
LaneEmdenStar & | operator= (LaneEmdenStar &&)=default |
auto | get_clone () const -> std::unique_ptr< evolution::initial_data::InitialData > override |
LaneEmdenStar (double central_mass_density, double polytropic_constant) | |
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) | |
template<typename DataType > | |
tnsr::I< DataType, 3 > | gravitational_field (const tnsr::I< DataType, 3 > &x) const |
Compute the gravitational field for the corresponding source term, LaneEmdenGravitationalField. More... | |
const EquationsOfState::PolytropicFluid< false > & | equation_of_state () const |
void | pup (PUP::er &) override |
virtual auto | get_clone () const -> std::unique_ptr< InitialData >=0 |
Static Public Attributes | |
static constexpr Options::String | help |
Friends | |
bool | operator== (const LaneEmdenStar &lhs, const LaneEmdenStar &rhs) |
A static spherically symmetric star in Newtonian gravity.
The solution for a static, spherically-symmetric star in 3 dimensions, found by solving the Lane-Emden equation [37] [177] . The Lane-Emden equation has closed-form solutions for certain equations of state; this class implements the solution for a polytropic fluid with polytropic exponent
The radius and mass of the star are determined by the polytropic constant
|
overridevirtual |
Implements evolution::initial_data::InitialData.
tnsr::I< DataType, 3 > NewtonianEuler::Solutions::LaneEmdenStar::gravitational_field | ( | const tnsr::I< DataType, 3 > & | x | ) | const |
Compute the gravitational field for the corresponding source term, LaneEmdenGravitationalField.
The result is the vector-field giving the acceleration due to gravity that is felt by a test particle.
|
staticconstexpr |