SERiF 0.0.1a
3+1D Stellar Structure and Evolution
|
Namespace for Lane-Emden equation related utility functions. More...
Functions | |
double | a (const int k, const double n) |
Computes the coefficient ![]() | |
double | c (const int m, const double n) |
Computes the auxiliary coefficient ![]() ![]() | |
double | thetaSeriesExpansion (const double xi, const double n, const int order) |
Namespace for Lane-Emden equation related utility functions.
Provides functions to compute coefficients and evaluate the series expansion solution to the Lane-Emden equation, which describes the structure of a spherically symmetric polytropic star. The Lane-Emden equation is given by:
where is a dimensionless radius and
is related to the density, and
is the polytropic index.
double serif::polytrope::laneEmden::a | ( | const int | k, |
const double | n ) |
Computes the coefficient for the Lane-Emden series expansion.
The series solution for is given by
. The coefficients
are determined by substituting the series into the Lane-Emden equation. Specifically,
,
, and for
,
.
k | The index of the coefficient. |
n | The polytropic index. |
Definition at line 47 of file polySolver.cpp.
double serif::polytrope::laneEmden::c | ( | const int | m, |
const double | n ) |
Computes the auxiliary coefficient used in determining
.
The term in the Lane-Emden equation can also be expanded as a series
. The coefficients
are related to
by:
for
.
m | The index of the coefficient. |
n | The polytropic index. |
Definition at line 54 of file polySolver.cpp.
double serif::polytrope::laneEmden::thetaSeriesExpansion | ( | const double | xi, |
const double | n, | ||
const int | order ) |
Definition at line 66 of file polySolver.cpp.