Nektar++
|
Redlich-Kwong equation of state: p = RT/(1/rho - b) - a/( sqrt(T / Tc) * (1/rho^2 + b/rho) with a = 0.42748 * (R*Tc)^2 / Pc b = 0.08664 * (R*Tc) / Pc. More...
#include <RedlichKwongEoS.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... | |
Protected Member Functions | |
virtual NekDouble | v_GetTemperature (const NekDouble &rho, const NekDouble &e) |
virtual NekDouble | v_GetPressure (const NekDouble &rho, const NekDouble &e) |
virtual NekDouble | v_GetEntropy (const NekDouble &rho, const NekDouble &e) |
virtual NekDouble | v_GetDPDrho_e (const NekDouble &rho, const NekDouble &e) |
virtual NekDouble | v_GetDPDe_rho (const NekDouble &rho, const NekDouble &e) |
virtual NekDouble | v_GetEFromRhoP (const NekDouble &rho, const NekDouble &p) |
virtual NekDouble | v_GetRhoFromPT (const NekDouble &rho, const NekDouble &p) |
![]() | |
EquationOfState (const LibUtilities::SessionReaderSharedPtr &pSession) | |
Constructor. More... | |
virtual NekDouble | v_GetSoundSpeed (const NekDouble &rho, const NekDouble &e) |
Protected Attributes | |
NekDouble | m_a |
NekDouble | m_b |
NekDouble | m_Tc |
NekDouble | m_Pc |
![]() | |
NekDouble | m_gamma |
NekDouble | m_gasConstant |
Private Member Functions | |
RedlichKwongEoS (const LibUtilities::SessionReaderSharedPtr &pSession) | |
virtual | ~RedlichKwongEoS (void) |
NekDouble | Alpha (const NekDouble &T) |
NekDouble | LogTerm (const NekDouble &rho) |
Friends | |
class | MemoryManager< RedlichKwongEoS > |
Additional Inherited Members | |
![]() | |
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... | |
Redlich-Kwong equation of state: p = RT/(1/rho - b) - a/( sqrt(T / Tc) * (1/rho^2 + b/rho) with a = 0.42748 * (R*Tc)^2 / Pc b = 0.08664 * (R*Tc) / Pc.
Definition at line 49 of file RedlichKwongEoS.h.
|
private |
Definition at line 47 of file RedlichKwongEoS.cpp.
References m_a, m_b, Nektar::EquationOfState::m_gasConstant, m_Pc, and m_Tc.
|
inlineprivatevirtual |
Definition at line 257 of file RedlichKwongEoS.cpp.
References m_Tc.
Referenced by v_GetDPDe_rho(), v_GetDPDrho_e(), v_GetEFromRhoP(), v_GetEntropy(), v_GetPressure(), v_GetRhoFromPT(), and ~RedlichKwongEoS().
|
inlinestatic |
Creates an instance of this class.
Definition at line 55 of file RedlichKwongEoS.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), and CellMLToNektar.cellml_metadata::p.
Definition at line 262 of file RedlichKwongEoS.cpp.
References m_b.
Referenced by v_GetDPDe_rho(), v_GetEFromRhoP(), v_GetEntropy(), v_GetTemperature(), and ~RedlichKwongEoS().
|
protectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 147 of file RedlichKwongEoS.cpp.
References Alpha(), Nektar::EquationOfState::GetTemperature(), LogTerm(), m_a, m_b, Nektar::EquationOfState::m_gamma, and Nektar::EquationOfState::m_gasConstant.
|
protectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 127 of file RedlichKwongEoS.cpp.
References Alpha(), Nektar::EquationOfState::GetDPDe_rho(), Nektar::EquationOfState::GetTemperature(), m_a, m_b, and Nektar::EquationOfState::m_gasConstant.
|
protectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 170 of file RedlichKwongEoS.cpp.
References Alpha(), LogTerm(), m_a, m_b, Nektar::EquationOfState::m_gamma, Nektar::EquationOfState::m_gasConstant, and m_Tc.
|
protectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 112 of file RedlichKwongEoS.cpp.
References Alpha(), Nektar::EquationOfState::GetTemperature(), LogTerm(), m_a, m_b, Nektar::EquationOfState::m_gamma, and Nektar::EquationOfState::m_gasConstant.
|
protectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 101 of file RedlichKwongEoS.cpp.
References Alpha(), Nektar::EquationOfState::GetTemperature(), m_a, m_b, Nektar::EquationOfState::m_gasConstant, and CellMLToNektar.cellml_metadata::p.
|
protectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 214 of file RedlichKwongEoS.cpp.
References Alpha(), m_a, m_b, and Nektar::EquationOfState::m_gasConstant.
|
protectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 58 of file RedlichKwongEoS.cpp.
References LogTerm(), m_a, m_b, Nektar::EquationOfState::m_gamma, Nektar::EquationOfState::m_gasConstant, and m_Tc.
|
friend |
Definition at line 52 of file RedlichKwongEoS.h.
|
static |
Name of the class.
Definition at line 64 of file RedlichKwongEoS.h.
|
protected |
Definition at line 67 of file RedlichKwongEoS.h.
Referenced by RedlichKwongEoS(), v_GetDPDe_rho(), v_GetDPDrho_e(), v_GetEFromRhoP(), v_GetEntropy(), v_GetPressure(), v_GetRhoFromPT(), and v_GetTemperature().
|
protected |
Definition at line 68 of file RedlichKwongEoS.h.
Referenced by LogTerm(), RedlichKwongEoS(), v_GetDPDe_rho(), v_GetDPDrho_e(), v_GetEFromRhoP(), v_GetEntropy(), v_GetPressure(), v_GetRhoFromPT(), and v_GetTemperature().
|
protected |
Definition at line 70 of file RedlichKwongEoS.h.
Referenced by RedlichKwongEoS().
|
protected |
Definition at line 69 of file RedlichKwongEoS.h.
Referenced by Alpha(), RedlichKwongEoS(), v_GetEFromRhoP(), and v_GetTemperature().