Nektar++
|
Encapsulates equations of state allowing us to obtain thermodynamic properties: most relations are in the form X(rho,e) More...
#include <EquationOfState.h>
Public Member Functions | |
virtual | ~EquationOfState () |
NekDouble | GetTemperature (const NekDouble &rho, const NekDouble &e) |
Calculate the temperature. More... | |
NekDouble | GetPressure (const NekDouble &rho, const NekDouble &e) |
Calculate the pressure. More... | |
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 Member Functions | |
EquationOfState (const LibUtilities::SessionReaderSharedPtr &pSession) | |
Constructor. More... | |
virtual NekDouble | v_GetTemperature (const NekDouble &rho, const NekDouble &e)=0 |
virtual NekDouble | v_GetPressure (const NekDouble &rho, const NekDouble &e)=0 |
virtual NekDouble | v_GetSoundSpeed (const NekDouble &rho, const NekDouble &e) |
virtual NekDouble | v_GetEntropy (const NekDouble &rho, const NekDouble &e)=0 |
virtual NekDouble | v_GetDPDrho_e (const NekDouble &rho, const NekDouble &e)=0 |
virtual NekDouble | v_GetDPDe_rho (const NekDouble &rho, const NekDouble &e)=0 |
virtual NekDouble | v_GetEFromRhoP (const NekDouble &rho, const NekDouble &p)=0 |
virtual NekDouble | v_GetRhoFromPT (const NekDouble &rho, const NekDouble &p)=0 |
Protected Attributes | |
NekDouble | m_gamma |
NekDouble | m_gasConstant |
Encapsulates equations of state allowing us to obtain thermodynamic properties: most relations are in the form X(rho,e)
Definition at line 62 of file EquationOfState.h.
|
inlinevirtual |
Definition at line 65 of file EquationOfState.h.
References GetDPDe_rho(), GetDPDrho_e(), GetEFromRhoP(), GetEntropy(), GetPressure(), GetRhoFromPT(), GetSoundSpeed(), GetTemperature(), and CellMLToNektar.cellml_metadata::p.
|
protected |
Calculate the partial derivative of P(rho,e) with respect to e.
Definition at line 81 of file EquationOfState.cpp.
Referenced by Nektar::RedlichKwongEoS::v_GetDPDrho_e(), Nektar::PengRobinsonEoS::v_GetDPDrho_e(), and ~EquationOfState().
Calculate the partial derivative of P(rho,e) with respect to rho.
Definition at line 76 of file EquationOfState.cpp.
Referenced by ~EquationOfState().
Obtain the internal energy from rho and P.
Definition at line 86 of file EquationOfState.cpp.
Referenced by ~EquationOfState().
Calculate the entropy.
Definition at line 71 of file EquationOfState.cpp.
Referenced by ~EquationOfState().
Calculate the pressure.
Definition at line 60 of file EquationOfState.cpp.
Referenced by ~EquationOfState().
Obtain the density from P and T.
Definition at line 92 of file EquationOfState.cpp.
Referenced by ~EquationOfState().
Calculate the sound speed.
Definition at line 65 of file EquationOfState.cpp.
Referenced by ~EquationOfState().
Calculate the temperature.
Definition at line 54 of file EquationOfState.cpp.
Referenced by Nektar::RedlichKwongEoS::v_GetDPDe_rho(), Nektar::PengRobinsonEoS::v_GetDPDe_rho(), Nektar::RedlichKwongEoS::v_GetDPDrho_e(), Nektar::PengRobinsonEoS::v_GetDPDrho_e(), Nektar::VanDerWaalsEoS::v_GetEntropy(), Nektar::RedlichKwongEoS::v_GetEntropy(), Nektar::IdealGasEoS::v_GetEntropy(), Nektar::PengRobinsonEoS::v_GetEntropy(), Nektar::RedlichKwongEoS::v_GetPressure(), Nektar::PengRobinsonEoS::v_GetPressure(), Nektar::IdealGasEoS::v_GetSoundSpeed(), and ~EquationOfState().
|
protectedpure virtual |
Implemented in Nektar::PengRobinsonEoS, Nektar::IdealGasEoS, Nektar::RedlichKwongEoS, and Nektar::VanDerWaalsEoS.
|
protectedpure virtual |
Implemented in Nektar::PengRobinsonEoS, Nektar::IdealGasEoS, Nektar::RedlichKwongEoS, and Nektar::VanDerWaalsEoS.
|
protectedpure virtual |
Implemented in Nektar::PengRobinsonEoS, Nektar::IdealGasEoS, Nektar::RedlichKwongEoS, and Nektar::VanDerWaalsEoS.
|
protectedpure virtual |
Implemented in Nektar::PengRobinsonEoS, Nektar::IdealGasEoS, Nektar::RedlichKwongEoS, and Nektar::VanDerWaalsEoS.
|
protectedpure virtual |
Implemented in Nektar::PengRobinsonEoS, Nektar::RedlichKwongEoS, Nektar::VanDerWaalsEoS, and Nektar::IdealGasEoS.
|
protectedpure virtual |
Implemented in Nektar::IdealGasEoS, Nektar::PengRobinsonEoS, Nektar::RedlichKwongEoS, and Nektar::VanDerWaalsEoS.
|
protectedvirtual |
Reimplemented in Nektar::IdealGasEoS.
Definition at line 99 of file EquationOfState.cpp.
References CellMLToNektar.cellml_metadata::p.
|
protectedpure virtual |
Implemented in Nektar::PengRobinsonEoS, Nektar::RedlichKwongEoS, Nektar::VanDerWaalsEoS, and Nektar::IdealGasEoS.
|
protected |
Definition at line 94 of file EquationOfState.h.
Referenced by Nektar::VanDerWaalsEoS::v_GetDPDe_rho(), Nektar::RedlichKwongEoS::v_GetDPDe_rho(), Nektar::IdealGasEoS::v_GetDPDe_rho(), Nektar::PengRobinsonEoS::v_GetDPDe_rho(), Nektar::VanDerWaalsEoS::v_GetDPDrho_e(), Nektar::IdealGasEoS::v_GetDPDrho_e(), Nektar::VanDerWaalsEoS::v_GetEFromRhoP(), Nektar::RedlichKwongEoS::v_GetEFromRhoP(), Nektar::IdealGasEoS::v_GetEFromRhoP(), Nektar::PengRobinsonEoS::v_GetEFromRhoP(), Nektar::VanDerWaalsEoS::v_GetEntropy(), Nektar::IdealGasEoS::v_GetEntropy(), Nektar::RedlichKwongEoS::v_GetEntropy(), Nektar::PengRobinsonEoS::v_GetEntropy(), Nektar::IdealGasEoS::v_GetPressure(), Nektar::VanDerWaalsEoS::v_GetPressure(), Nektar::IdealGasEoS::v_GetSoundSpeed(), Nektar::IdealGasEoS::v_GetTemperature(), Nektar::VanDerWaalsEoS::v_GetTemperature(), Nektar::RedlichKwongEoS::v_GetTemperature(), and Nektar::PengRobinsonEoS::v_GetTemperature().
|
protected |
Definition at line 95 of file EquationOfState.h.
Referenced by Nektar::PengRobinsonEoS::PengRobinsonEoS(), Nektar::RedlichKwongEoS::RedlichKwongEoS(), Nektar::RedlichKwongEoS::v_GetDPDe_rho(), Nektar::PengRobinsonEoS::v_GetDPDe_rho(), Nektar::RedlichKwongEoS::v_GetDPDrho_e(), Nektar::PengRobinsonEoS::v_GetDPDrho_e(), Nektar::RedlichKwongEoS::v_GetEFromRhoP(), Nektar::PengRobinsonEoS::v_GetEFromRhoP(), Nektar::VanDerWaalsEoS::v_GetEntropy(), Nektar::IdealGasEoS::v_GetEntropy(), Nektar::RedlichKwongEoS::v_GetEntropy(), Nektar::PengRobinsonEoS::v_GetEntropy(), Nektar::RedlichKwongEoS::v_GetPressure(), Nektar::PengRobinsonEoS::v_GetPressure(), Nektar::VanDerWaalsEoS::v_GetRhoFromPT(), Nektar::RedlichKwongEoS::v_GetRhoFromPT(), Nektar::IdealGasEoS::v_GetRhoFromPT(), Nektar::PengRobinsonEoS::v_GetRhoFromPT(), Nektar::IdealGasEoS::v_GetSoundSpeed(), Nektar::IdealGasEoS::v_GetTemperature(), Nektar::VanDerWaalsEoS::v_GetTemperature(), Nektar::RedlichKwongEoS::v_GetTemperature(), Nektar::PengRobinsonEoS::v_GetTemperature(), and Nektar::VanDerWaalsEoS::VanDerWaalsEoS().