BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
belfem::gasmodels::EoS_Methane Class Reference

see https://doi.org/10.1063/1.555898 More...

#include <cl_GM_EoS_Methane.hpp>

Inheritance diagram for belfem::gasmodels::EoS_Methane:
[legend]
Collaboration diagram for belfem::gasmodels::EoS_Methane:
[legend]

Public Member Functions

 EoS_Methane (Gas &aParent)
 ~EoS_Methane ()
Public Member Functions inherited from belfem::gasmodels::Helmholtz
 Helmholtz (Gas &aParent, const string &aLabel)
virtual ~Helmholtz ()=default
const realT_min () const
 minumum temperature for gas model ( triple point )
const realT_max () const
 maximum temperature for gas model
const realT_crit () const
 critical temperature
const realv_crit () const
 critical volume
virtual real p_vap (const real T) const
virtual real T_vap (const real p) const
real hvap (const real T, const real p) const
 vaporization enthalpy in J/kg
real phi (const real T, const real v) const
 the main energy function, where phi = f / ( R * T )
real p (const real T, const real v) const
 pressure in Pa
real v (const real T, const real p) const
 specific volume in m^3/kg
real T (const real p, const real v) const
 temperature in K
real dpdv (const real T, const real v) const
real dpdT (const real T, const real v) const
real dvdT (const real T, const real v) const
real u (const real T, const real p) const
real h (const real T, const real p) const
real s (const real T, const real p) const
real cv (const real T, const real p) const
real cp (const real T, const real p) const
real w (const real T, const real p) const
 speed of sound in m/s ( helmholtz only )
real dsdT (const real T, const real p) const
real dsdp (const real T, const real p) const
real alpha (const real T, const real p) const
 thermal expansion coefficient
real beta (const real T, const real p) const
 isochoric stress coefficient
real kappa (const real T, const real p) const
 isothermal compressibility coefficient
void remix ()
 this function remixes the cubic help gas
void eval_critical_point (real &T, real &p, real &v) const
 return the critical point data
void update_Tv (const real T, const real v) const
 reset all state variales
void update_Tp (const real T, const real p) const
const realphir () const
 the main energy function, real gas contribution
const realphir_d () const
const realphir_dd () const
const realphir_t () const
const realphir_tt () const
const realphir_dt () const
const realphi0 () const
const realphi0_t () const
const realphi0_tt () const
Public Member Functions inherited from belfem::gasmodels::EoS
 EoS (Gas &aParent)
virtual ~EoS ()=default
virtual real d2pdT2 (const real T, const real v) const
virtual real d2pdv2 (const real T, const real v) const
virtual real hdep (const real T, const real p) const
virtual real cpdep (const real T, const real p) const
virtual real sdep (const real T, const real p) const
virtual real dhdepdp (const real T, const real p) const
virtual real dsdepdT (const real T, const real p) const
virtual real dsdepdp (const real T, const real p) const
virtual real hdep0 (const real T) const
virtual real cpdep0 (const real T) const
virtual real sdep0 (const real T) const
virtual real dsdepdT0 (const real T) const
virtual real v (const uint aIndex, const real T, const real p) const
virtual real hdep (const uint aIndex, const real T, const real p) const
virtual real cpdep (const uint aIndex, const real T, const real p) const
virtual real pi (const real T, const real p) const
virtual real dpidp (const real T, const real p) const
Gasparent ()
 expose the parent of this EoS

Protected Member Functions

real compute_phi0 () const
real compute_phi0_t () const
real compute_phi0_tt () const
real compute_phir () const
real compute_phir_d () const
real compute_phir_dd () const
real compute_phir_t () const
real compute_phir_tt () const
real compute_phir_dt () const
Protected Member Functions inherited from belfem::gasmodels::Helmholtz
void delete_cubic_eos ()
void set_critical_point_in_data_object ()
void set_reference_point ()
void set_reference_point (const real aTref, const real aPref)
void init_Tvap_poly ()
virtual real pi_vap (const real T) const
virtual real psi_vap (const real T) const
virtual real dpvap_dT (const real T, const real aPvap, const real aPiVap) const
bool is_liquid (const real T, const real p) const

Additional Inherited Members

Static Protected Member Functions inherited from belfem::gasmodels::Helmholtz
static real ipow (real x, uint n)
 integer power by binary exponentiation, for the coefficient tables of the residual functions.
static real hpow (const real x, const real sqrt_x, const int n)
 x^( n / 2 ) for a signed half integer exponent given as n = 2j.
Protected Attributes inherited from belfem::gasmodels::Helmholtz
const string mLabel
EoS_CubicmCubicEoS = nullptr
Vector< realmNvap
Vector< realmKvap
Vector< realmTvap
Vector< realmVliq
 initial solution for inversion of pvap
real mH0 = 0.0
real mS0 = 0.0
real mU0 = 0.0
const realmTau = mHelmholtzVals[ BELFEM_HELMHOLTZ_TAU ]
const realmDelta = mHelmholtzVals[ BELFEM_HELMHOLTZ_DELTA ]
real mTcrit = BELFEM_QUIET_NAN
 critical temperature in K
real mPcrit = BELFEM_QUIET_NAN
 critical pressure in Pa
real mRhocrit = BELFEM_QUIET_NAN
 critical density in kg/m^3
real mVcrit = BELFEM_QUIET_NAN
 critical specific volume in m^3/kg
real mTtriple = BELFEM_QUIET_NAN
 triple point in K
real mTmax = BELFEM_QUIET_NAN
 maximum temperature of gas model in K
real mPmax = BELFEM_REAL_MAX
Protected Attributes inherited from belfem::gasmodels::EoS
GasmParent
 gas object that owns this class
StatevalsmStatevals
 statevals object
const realmR
 specific gas constant
const realmM
 molar mass in kg/Mol

Detailed Description

Constructor & Destructor Documentation

◆ EoS_Methane()

belfem::gasmodels::EoS_Methane::EoS_Methane ( Gas & aParent)

◆ ~EoS_Methane()

belfem::gasmodels::EoS_Methane::~EoS_Methane ( )

Member Function Documentation

◆ compute_phi0()

real belfem::gasmodels::EoS_Methane::compute_phi0 ( ) const
protectedvirtual

Reimplemented from belfem::gasmodels::Helmholtz.

◆ compute_phi0_t()

real belfem::gasmodels::EoS_Methane::compute_phi0_t ( ) const
protectedvirtual

Reimplemented from belfem::gasmodels::Helmholtz.

◆ compute_phi0_tt()

real belfem::gasmodels::EoS_Methane::compute_phi0_tt ( ) const
protectedvirtual

Reimplemented from belfem::gasmodels::Helmholtz.

◆ compute_phir()

real belfem::gasmodels::EoS_Methane::compute_phir ( ) const
protectedvirtual

Reimplemented from belfem::gasmodels::Helmholtz.

◆ compute_phir_d()

real belfem::gasmodels::EoS_Methane::compute_phir_d ( ) const
protectedvirtual

Reimplemented from belfem::gasmodels::Helmholtz.

◆ compute_phir_dd()

real belfem::gasmodels::EoS_Methane::compute_phir_dd ( ) const
protectedvirtual

Reimplemented from belfem::gasmodels::Helmholtz.

◆ compute_phir_dt()

real belfem::gasmodels::EoS_Methane::compute_phir_dt ( ) const
protectedvirtual

Reimplemented from belfem::gasmodels::Helmholtz.

◆ compute_phir_t()

real belfem::gasmodels::EoS_Methane::compute_phir_t ( ) const
protectedvirtual

Reimplemented from belfem::gasmodels::Helmholtz.

◆ compute_phir_tt()

real belfem::gasmodels::EoS_Methane::compute_phir_tt ( ) const
protectedvirtual

Reimplemented from belfem::gasmodels::Helmholtz.


The documentation for this class was generated from the following files: