|
|
| 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.
|
|
const EquationsOfState::PolytropicFluid< false > & | equation_of_state () const |
|
void | pup (PUP::er &) override |
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 [40] [186] . 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 \(\Gamma=2\) (i.e., with polytropic index \(n=1\)). The solution is returned in units where \(G=1\), with \(G\) the gravitational constant.
The radius and mass of the star are determined by the polytropic constant \(\kappa\) and central density \(\rho_c\). The radius is \(R = \pi \alpha\), and the mass is \(M = 4 \pi^2 \alpha^3 \rho_c\), where \(\alpha = \sqrt{\kappa / (2 \pi)}\) and \(G=1\).