Nektar++
|
Ideal gas equation of state: p = rho * R * T. More...
#include <IdealGasEoS.h>
Static Public Member Functions | |
static EquationOfStateSharedPtr | create (const LibUtilities::SessionReaderSharedPtr &pSession) |
Creates an instance of this class. More... | |
Static Public Attributes | |
static std::string | className |
Name of the class. More... | |
Private Member Functions | |
IdealGasEoS (const LibUtilities::SessionReaderSharedPtr &pSession) | |
~IdealGasEoS (void) override | |
template<class T , typename = typename std::enable_if< std::is_floating_point<T>::value || tinysimd::is_vector_floating_point<T>::value>::type> | |
T | GetTemperatureKernel (const T &e) |
template<class T , typename = typename std::enable_if< std::is_floating_point<T>::value || tinysimd::is_vector_floating_point<T>::value>::type> | |
T | GetPressureKernel (const T &rho, const T &e) |
Friends | |
class | MemoryManager< IdealGasEoS > |
Additional Inherited Members | |
Public Member Functions inherited from Nektar::EquationOfState | |
virtual | ~EquationOfState () |
NekDouble | GetTemperature (const NekDouble &rho, const NekDouble &e) |
Calculate the temperature. More... | |
vec_t | GetTemperature (const vec_t &rho, const vec_t &e) |
NekDouble | GetPressure (const NekDouble &rho, const NekDouble &e) |
Calculate the pressure. More... | |
vec_t | GetPressure (const vec_t &rho, const vec_t &e) |
NekDouble | GetSoundSpeed (const NekDouble &rho, const NekDouble &e) |
Calculate the sound speed. More... | |
NekDouble | GetEntropy (const NekDouble &rho, const NekDouble &e) |
Calculate the entropy. More... | |
NekDouble | GetDPDrho_e (const NekDouble &rho, const NekDouble &e) |
Calculate the partial derivative of P(rho,e) with respect to rho. More... | |
NekDouble | GetDPDe_rho (const NekDouble &rho, const NekDouble &e) |
Calculate the partial derivative of P(rho,e) with respect to e. More... | |
NekDouble | GetEFromRhoP (const NekDouble &rho, const NekDouble &p) |
Obtain the internal energy from rho and P. More... | |
NekDouble | GetRhoFromPT (const NekDouble &p, const NekDouble &T) |
Obtain the density from P and T. More... | |
Protected Attributes inherited from Nektar::EquationOfState | |
NekDouble | m_gamma |
NekDouble | m_gasConstant |
NekDouble | m_gammaMone |
NekDouble | m_gammaMoneOgasConst |
Ideal gas equation of state: p = rho * R * T.
Definition at line 47 of file IdealGasEoS.h.
|
private |
Definition at line 46 of file IdealGasEoS.cpp.
|
inlineoverrideprivate |
Definition at line 88 of file IdealGasEoS.h.
|
inlinestatic |
Creates an instance of this class.
Definition at line 53 of file IdealGasEoS.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), and CellMLToNektar.cellml_metadata::p.
|
inlineprivate |
Definition at line 102 of file IdealGasEoS.h.
References Nektar::EquationOfState::m_gammaMone.
Referenced by v_GetPressure().
|
inlineprivate |
Definition at line 94 of file IdealGasEoS.h.
References Nektar::EquationOfState::m_gammaMoneOgasConst.
Referenced by v_GetTemperature().
|
finalprotectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 91 of file IdealGasEoS.cpp.
References Nektar::EquationOfState::m_gamma.
|
finalprotectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 85 of file IdealGasEoS.cpp.
References Nektar::EquationOfState::m_gamma.
|
finalprotectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 97 of file IdealGasEoS.cpp.
References Nektar::EquationOfState::m_gamma, and CellMLToNektar.cellml_metadata::p.
|
finalprotectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 79 of file IdealGasEoS.cpp.
References Nektar::EquationOfState::GetTemperature(), tinysimd::log(), Nektar::EquationOfState::m_gamma, and Nektar::EquationOfState::m_gasConstant.
|
finalprotectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 63 of file IdealGasEoS.cpp.
References GetPressureKernel().
|
finalprotectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 68 of file IdealGasEoS.cpp.
References GetPressureKernel().
|
finalprotectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 102 of file IdealGasEoS.cpp.
References Nektar::EquationOfState::m_gasConstant, and CellMLToNektar.cellml_metadata::p.
|
finalprotectedvirtual |
Reimplemented from Nektar::EquationOfState.
Definition at line 73 of file IdealGasEoS.cpp.
References Nektar::EquationOfState::GetTemperature(), Nektar::EquationOfState::m_gamma, Nektar::EquationOfState::m_gasConstant, and tinysimd::sqrt().
|
finalprotectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 51 of file IdealGasEoS.cpp.
References GetTemperatureKernel().
|
finalprotectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 57 of file IdealGasEoS.cpp.
References GetTemperatureKernel().
|
friend |
Definition at line 1 of file IdealGasEoS.h.
|
static |
Name of the class.
Definition at line 62 of file IdealGasEoS.h.