Nektar++
|
van der Waals equation of state: p = RT/(1/rho - b) - a * rho^2 with a = 27/64 * (R*Tc)^2 / Pc b = 1/8 * (R*Tc) / Pc More...
#include <VanDerWaalsEoS.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_gamma |
NekDouble | m_gasConstant |
Private Member Functions | |
VanDerWaalsEoS (const LibUtilities::SessionReaderSharedPtr &pSession) | |
virtual | ~VanDerWaalsEoS (void) |
Friends | |
class | MemoryManager< VanDerWaalsEoS > |
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... | |
van der Waals equation of state: p = RT/(1/rho - b) - a * rho^2 with a = 27/64 * (R*Tc)^2 / Pc b = 1/8 * (R*Tc) / Pc
Definition at line 49 of file VanDerWaalsEoS.h.
|
private |
Definition at line 49 of file VanDerWaalsEoS.cpp.
References m_a, m_b, and Nektar::EquationOfState::m_gasConstant.
|
inlineprivatevirtual |
Definition at line 88 of file VanDerWaalsEoS.h.
|
inlinestatic |
Creates an instance of this class.
Definition at line 55 of file VanDerWaalsEoS.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), and CellMLToNektar.cellml_metadata::p.
|
protectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 95 of file VanDerWaalsEoS.cpp.
References m_b, and Nektar::EquationOfState::m_gamma.
|
protectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 83 of file VanDerWaalsEoS.cpp.
References m_a, m_b, and Nektar::EquationOfState::m_gamma.
|
protectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 102 of file VanDerWaalsEoS.cpp.
References m_a, m_b, and Nektar::EquationOfState::m_gamma.
|
protectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 74 of file VanDerWaalsEoS.cpp.
References Nektar::EquationOfState::GetTemperature(), m_b, Nektar::EquationOfState::m_gamma, and Nektar::EquationOfState::m_gasConstant.
|
protectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 67 of file VanDerWaalsEoS.cpp.
References m_a, m_b, and Nektar::EquationOfState::m_gamma.
|
protectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 109 of file VanDerWaalsEoS.cpp.
References m_a, m_b, and Nektar::EquationOfState::m_gasConstant.
|
protectedvirtual |
Implements Nektar::EquationOfState.
Definition at line 61 of file VanDerWaalsEoS.cpp.
References m_a, Nektar::EquationOfState::m_gamma, and Nektar::EquationOfState::m_gasConstant.
|
friend |
Definition at line 52 of file VanDerWaalsEoS.h.
|
static |
Name of the class.
Definition at line 64 of file VanDerWaalsEoS.h.
|
protected |
Definition at line 67 of file VanDerWaalsEoS.h.
Referenced by v_GetDPDrho_e(), v_GetEFromRhoP(), v_GetPressure(), v_GetRhoFromPT(), v_GetTemperature(), and VanDerWaalsEoS().
|
protected |
Definition at line 68 of file VanDerWaalsEoS.h.
Referenced by v_GetDPDe_rho(), v_GetDPDrho_e(), v_GetEFromRhoP(), v_GetEntropy(), v_GetPressure(), v_GetRhoFromPT(), and VanDerWaalsEoS().