SPH
|
Classes | |
struct | Star |
Functions | |
Lut< Float > | solveLaneEmden (const Float n, const Float dz=1.e-3_f, const Float z_max=1.e3_f) |
Solves the Lane-Emden equation given the polytrope index. More... | |
Star | polytropicStar (const Float radius, const Float mass, const Float n) |
Computes radial profiles of state quantities for a polytropic star. More... | |
Storage | generateIc (const IDistribution &distribution, const Size particleCnt, const Float radius, const Float mass, const Float n) |
Creates a spherical polytropic star. More... | |
Storage Stellar::generateIc | ( | const IDistribution & | distribution, |
const Size | particleCnt, | ||
const Float | radius, | ||
const Float | mass, | ||
const Float | n | ||
) |
Creates a spherical polytropic star.
distribution | Distribution used to generate particles |
particleCnt | Number of particles |
radius | Radius of the star |
mass | Total mass of the star |
n | Polytropic index (0 <= n <= 5) |
Definition at line 67 of file Stellar.cpp.
Stellar::Star Stellar::polytropicStar | ( | const Float | radius, |
const Float | mass, | ||
const Float | n | ||
) |
Computes radial profiles of state quantities for a polytropic star.
Definition at line 38 of file Stellar.cpp.
NAMESPACE_SPH_BEGIN Lut< Float > Stellar::solveLaneEmden | ( | const Float | n, |
const Float | dz = 1.e-3_f , |
||
const Float | z_max = 1.e3_f |
||
) |
Solves the Lane-Emden equation given the polytrope index.
Definition at line 14 of file Stellar.cpp.