12#ifndef BELFEM_CL_GM_EOS_OXYGEN_VAPOR_HPP
13#define BELFEM_CL_GM_EOS_OXYGEN_VAPOR_HPP
86 update_delta_pow_a()
const ;
89 update_tau_pow_b()
const ;
158 return ( (
mNvap( 0 ) * tTheta
159 +
mNvap( 1 ) ) * tTheta
170 return ( 3.0 *
mNvap( 0 ) * tTheta
171 + 2.0 *
mNvap( 1 ) ) * tTheta
178 EoS_Oxygen::update_delta_pow_a()
const
180 if(
mDelta != mDeltaPowD( 32 ) )
183 for(
uint k=0; k<32; ++k )
187 for(
uint i=0; i<mD( k ); ++i )
192 mDeltaPowD( k ) = tPow ;
194 mDeltaPowD( 32 ) =
mDelta ;
201 EoS_Oxygen::update_tau_pow_b()
const
203 if(
mTau != mTauPowT( 32 ) )
209 const real tSqrtTau = std::sqrt(
mTau ) ;
211 for(
uint k=0; k<32; ++k )
213 const int tN =
static_cast< int >( std::lround( 2.0 * mT( k ) ) );
216 "tau exponent %f of term %u is not a multiple of one half",
217 (
float ) mT( k ), (
unsigned int ) k );
219 mTauPowT( k ) =
hpow(
mTau, tSqrtTau, tN );
221 mTauPowT( 32 ) =
mTau ;
228 EoS_Oxygen::update_e()
const
231 if(
mTau != mE( 3 ) )
234 mE( 0 ) = std::sqrt(
mTau );
235 mE( 1 ) = std::exp( mK( 6 ) *
mTau );
236 mE( 2 ) = 2./3. * std::exp( -mK( 7 ) *
mTau );
244 EoS_Oxygen::update_f()
const
246 this->update_delta_pow_a() ;
247 this->update_tau_pow_b() ;
251 for(
uint k=0; k<32; ++k )
253 mF( k ) = mN( k ) * mDeltaPowD( k ) * mTauPowT( k );
263 EoS_Oxygen::update_g()
const
#define BELFEM_ASSERT(aCheck,...)
Definition assert.hpp:244
The gas class that provides the fluid model.
Definition cl_Gas.hpp:81
real compute_phir_dt() const
Definition cl_GM_EoS_Oxygen.cpp:323
real compute_phir_t() const
Definition cl_GM_EoS_Oxygen.cpp:261
real compute_phir_tt() const
Definition cl_GM_EoS_Oxygen.cpp:292
real psi_vap(const real T) const
Definition cl_GM_EoS_Oxygen.hpp:166
real pi_vap(const real T) const
Definition cl_GM_EoS_Oxygen.hpp:154
real compute_phir_d() const
Definition cl_GM_EoS_Oxygen.cpp:193
real compute_phi0_t() const
Definition cl_GM_EoS_Oxygen.cpp:133
real compute_phir_dd() const
Definition cl_GM_EoS_Oxygen.cpp:226
real compute_phi0() const
Definition cl_GM_EoS_Oxygen.cpp:114
real compute_phi0_tt() const
Definition cl_GM_EoS_Oxygen.cpp:148
real compute_phir() const
Definition cl_GM_EoS_Oxygen.cpp:163
EoS_Oxygen(Gas &aParent)
Definition cl_GM_EoS_Oxygen.cpp:22
Helmholtz(Gas &aParent, const string &aLabel)
Definition cl_GM_Helmholtz.cpp:25
real T(const real p, const real v) const
temperature in K
Definition cl_GM_Helmholtz.cpp:300
const real & mTau
Definition cl_GM_Helmholtz.hpp:115
Vector< real > mNvap
Definition cl_GM_Helmholtz.hpp:76
real mTcrit
critical temperature in K
Definition cl_GM_Helmholtz.hpp:119
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.
Definition cl_GM_Helmholtz.hpp:538
const real & mDelta
Definition cl_GM_Helmholtz.hpp:116
#define BELFEM_PREF
Definition constants.hpp:28
#define BELFEM_TREF
Definition constants.hpp:27
USER GUIDES:
Definition cl_Capacitor.cpp:16
unsigned int uint
Definition typedefs.hpp:30
double real
Definition typedefs.hpp:36