12#ifndef BELFEM_CL_GM_EOS_NITROGEN_HPP
13#define BELFEM_CL_GM_EOS_NITROGEN_HPP
101 update_delta_pow_i()
const;
104 update_tau_pow_j()
const;
109 EoS_Nitrogen::update_e()
const
111 if ( mE( 2 ) ==
mTau ) return ;
113 mChi = std::exp( -mA( 7 ) *
mTau ) ;
115 mE( 0 ) = std::log(
mTau );
119 mE( 4 ) = mE( 3 )*mE( 3 );
120 mE( 5 ) = mE( 3 )*mE( 4 );
121 mE( 6 ) = std::log( 1.- mChi );
126 EoS_Nitrogen::update_f()
const
128 this->update_delta_pow_i();
129 this->update_tau_pow_j();
131 bool tDelta = mF( 36 ) ==
mDelta ;
132 bool tTau = mF( 37 ) ==
mTau ;
134 if ( tDelta && tTau ) return ;
138 for (
uint k=6; k<32; ++k )
142 for (
uint l=1; l<n; ++l )
144 mDeltaPowL( k ) *=
mDelta;
146 mF( k ) = std::exp( -mDeltaPowL( k ) );
154 for (
uint m=0; m<4; ++m, ++k )
157 mF( k ) = std::exp( -mPhi( m ) * xi - mBeta( m ) * eta * eta );
164 EoS_Nitrogen::update_delta_pow_i()
const
166 if (
mDelta != mDeltaPowI( 36 ) )
169 mDeltaPowI.fill( 1. );
171 for (
uint k=0; k<36; ++k )
178 mDeltaPowI( k ) *=
mDelta;
181 mDeltaPowI( 36 ) =
mDelta;
186 EoS_Nitrogen::update_tau_pow_j()
const
188 if (
mTau != mTauPowJ( 36 ) )
190 for (
uint k=0; k<36; ++k )
192 mTauPowJ( k ) = std::pow(
mTau, mJ( k ) );
194 mTauPowJ( 36 ) =
mTau;
#define BELFEM_ASSERT(aCheck,...)
Definition assert.hpp:244
The gas class that provides the fluid model.
Definition cl_Gas.hpp:81
real compute_phir_dd() const override
Definition cl_GM_EoS_Nitrogen.cpp:246
real compute_phir_dt() const override
Definition cl_GM_EoS_Nitrogen.cpp:338
real compute_phir_t() const override
Definition cl_GM_EoS_Nitrogen.cpp:276
EoS_Nitrogen(Gas &aParent)
Definition cl_GM_EoS_Nitrogen.cpp:19
real compute_phir_d() const override
Definition cl_GM_EoS_Nitrogen.cpp:212
real compute_phi0_tt() const override
Definition cl_GM_EoS_Nitrogen.cpp:169
real compute_phi0_t() const override
Definition cl_GM_EoS_Nitrogen.cpp:144
real compute_phir() const override
Definition cl_GM_EoS_Nitrogen.cpp:194
real compute_phi0() const override
Definition cl_GM_EoS_Nitrogen.cpp:136
real compute_phir_tt() const override
Definition cl_GM_EoS_Nitrogen.cpp:304
Helmholtz(Gas &aParent, const string &aLabel)
Definition cl_GM_Helmholtz.cpp:25
const real & mTau
Definition cl_GM_Helmholtz.hpp:115
const real & mDelta
Definition cl_GM_Helmholtz.hpp:116
USER GUIDES:
Definition cl_Capacitor.cpp:16
unsigned int uint
Definition typedefs.hpp:30
double real
Definition typedefs.hpp:36
n
Definition test_curve_frame.py:84