48 pSession->LoadParameter(
"Gamma",
m_gamma, 1.4);
49 pSession->LoadParameter(
"GasConstant",
m_gasConstant, 287.058);
57 : m_gamma{gamma}, m_gasConstant{gasConstant}
virtual NekDouble v_GetSoundSpeed(const NekDouble &rho, const NekDouble &e)
NekDouble GetPressure(const NekDouble &rho, const NekDouble &e)
Calculate the pressure.
NekDouble m_gammaMoneOgasConst
EquationOfState(const LibUtilities::SessionReaderSharedPtr &pSession)
Constructor.
NekDouble GetDPDrho_e(const NekDouble &rho, const NekDouble &e)
Calculate the partial derivative of P(rho,e) with respect to rho.
NekDouble GetDPDe_rho(const NekDouble &rho, const NekDouble &e)
Calculate the partial derivative of P(rho,e) with respect to e.
Provides a generic Factory class.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
EquationOfStateFactory & GetEquationOfStateFactory()
Declaration of the equation of state factory singleton.
scalarT< T > sqrt(scalarT< T > in)