Generic dynamically allocated resizable storage.
#define NOT_IMPLEMENTED
Helper macro marking missing implementation.
Global parameters of the code.
double Float
Precision used withing the code. Use Float instead of float or double where precision is important.
#define NAMESPACE_SPH_END
ANEOS equation defined by a look-up table.
virtual Float getDensity(const Float UNUSED(p), const Float UNUSED(u)) const override
Currently not implemented.
virtual Float getInternalEnergy(const Float UNUSED(rho), const Float UNUSED(p)) const override
Currently not implemented.
Aneos(const BodySettings &settings)
virtual Pair< Float > evaluate(const Float rho, const Float u) const override
Computes pressure and local sound speed from given density rho and specific internal energy u.
Base class for equations of state.
virtual Float getInternalEnergy(const Float rho, const Float p) const =0
Inverted function; computes specific internal energy u from given density rho and pressure p.
virtual Float getDensity(const Float p, const Float u) const =0
Inverted function; computes density from pressure p and internal energy u.
virtual Pair< Float > evaluate(const Float rho, const Float u) const =0
Computes pressure and local sound speed from given density rho and specific internal energy u.
Equation of state for ideal gas.
Float getTemperature(const Float u) const
virtual Float getDensity(const Float p, const Float u) const override
Inverted function; computes density from pressure p and internal energy u.
Float getSpecificEntropy(const Float rho, const Float p) const
virtual Pair< Float > evaluate(const Float rho, const Float u) const override
Computes pressure and local sound speed from given density rho and specific internal energy u.
IdealGasEos(const Float gamma)
virtual Float getInternalEnergy(const Float rho, const Float p) const override
Inverted function; computes specific internal energy u from given density rho and pressure p.
Mie-Gruneisen equation of state.
virtual Pair< Float > evaluate(const Float rho, const Float u) const override
Computes pressure and local sound speed from given density rho and specific internal energy u.
MieGruneisenEos(const BodySettings &settings)
virtual Float getInternalEnergy(const Float UNUSED(rho), const Float UNUSED(p)) const override
virtual Float getDensity(const Float UNUSED(p), const Float UNUSED(u)) const override
Murnaghan equation of state.
virtual Float getDensity(const Float UNUSED(p), const Float UNUSED(u)) const override
Currently not implemented.
virtual Pair< Float > evaluate(const Float rho, const Float u) const override
Computes pressure and local sound speed from given density rho and specific internal energy u.
virtual Float getInternalEnergy(const Float UNUSED(rho), const Float UNUSED(p)) const override
Currently not implemented.
MurnaghanEos(const BodySettings &settings)
Simplified Tillotsons equation of state, valid for small pressures and energies.
virtual Pair< Float > evaluate(const Float rho, const Float u) const override
Computes pressure and local sound speed from given density rho and specific internal energy u.
virtual Float getInternalEnergy(const Float UNUSED(rho), const Float UNUSED(p)) const override
Currently not implemented.
SimplifiedTillotsonEos(const BodySettings &settings)
virtual Float getDensity(const Float UNUSED(p), const Float UNUSED(u)) const override
Currently not implemented.
Array with fixed number of allocated elements.
virtual Pair< Float > evaluate(const Float rho, const Float u) const override
Computes pressure and local sound speed from given density rho and specific internal energy u.
TaitEos(const BodySettings &settings)
virtual Float getDensity(const Float UNUSED(p), const Float UNUSED(u)) const override
virtual Float getInternalEnergy(const Float UNUSED(rho), const Float UNUSED(p)) const override
Tillotson equation of state .
virtual Float getInternalEnergy(const Float rho, const Float p) const override
Inverted function; computes specific internal energy u from given density rho and pressure p.
virtual Float getDensity(const Float p, const Float u) const override
virtual Pair< Float > evaluate(const Float rho, const Float u) const override
Computes pressure and local sound speed from given density rho and specific internal energy u.
TillotsonEos(const BodySettings &settings)
Base class for all polymorphic objects.