30 const Size particleCnt,
uint32_t Size
Integral type used to index arrays (by default).
double Float
Precision used withing the code. Use Float instead of float or double where precision is important.
Approximation of generic function by look-up table.
#define NAMESPACE_SPH_END
Container for storing particle quantities and materials.
Base class for generating vertices with specific distribution.
Container storing all quantities used within the simulations.
Star polytropicStar(const Float radius, const Float mass, const Float n)
Computes radial profiles of state quantities for a polytropic star.
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.
Storage generateIc(const IDistribution &distribution, const Size particleCnt, const Float radius, const Float mass, const Float n)
Creates a spherical polytropic star.