www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
IdealGasFluidPropertiesPT Class Reference

Ideal gas fluid properties for (pressure, temperature) variables. More...

#include <IdealGasFluidPropertiesPT.h>

Inheritance diagram for IdealGasFluidPropertiesPT:
[legend]

Public Member Functions

 IdealGasFluidPropertiesPT (const InputParameters &parameters)
 
virtual ~IdealGasFluidPropertiesPT ()
 
virtual std::string fluidName () const override
 Fluid name. More...
 
virtual Real molarMass () const override
 Molar mass. More...
 
virtual Real beta (Real pressure, Real temperature) const override
 Thermal expansion coefficient. More...
 
virtual Real cp (Real pressure, Real temperature) const override
 Isobaric specific heat capacity. More...
 
virtual Real cv (Real pressure, Real temperature) const override
 Isochoric specific heat. More...
 
virtual Real c (Real pressure, Real temperature) const override
 Speed of sound. More...
 
virtual Real k (Real pressure, Real temperature) const override
 Thermal conductivity. More...
 
virtual void k_dpT (Real pressure, Real temperature, Real &k, Real &dk_dp, Real &dk_dT) const override
 Thermal conductivity and its derivatives wrt pressure and temperature. More...
 
virtual Real k_from_rho_T (Real density, Real temperature) const override
 Thermal conductivity as a function of density and temperature. More...
 
virtual Real s (Real pressure, Real temperature) const override
 Specific entropy. More...
 
virtual Real rho (Real pressure, Real temperature) const override
 Density. More...
 
virtual void rho_dpT (Real pressure, Real temperature, Real &rho, Real &drho_dp, Real &drho_dT) const override
 Density and its derivatives wrt pressure and temperature. More...
 
virtual Real e (Real pressure, Real temperature) const override
 Internal energy. More...
 
virtual void e_dpT (Real pressure, Real temperature, Real &e, Real &de_dp, Real &de_dT) const override
 Internal energy and its derivatives wrt pressure and temperature. More...
 
virtual void rho_e_dpT (Real pressure, Real temperature, Real &rho, Real &drho_dp, Real &drho_dT, Real &e, Real &de_dp, Real &de_dT) const override
 Density and internal energy and their derivatives wrt pressure and temperature. More...
 
virtual Real mu (Real pressure, Real temperature) const override
 
virtual void mu_dpT (Real pressure, Real temperature, Real &mu, Real &dmu_dp, Real &dmu_dT) const override
 
virtual Real mu_from_rho_T (Real density, Real temperature) const override
 
virtual void mu_drhoT_from_rho_T (Real density, Real temperature, Real ddensity_dT, Real &mu, Real &dmu_drho, Real &dmu_dT) const override
 Dynamic viscosity and its derivatives wrt density and temperature. More...
 
virtual Real h (Real p, Real T) const override
 Specific enthalpy. More...
 
virtual void h_dpT (Real pressure, Real temperature, Real &h, Real &dh_dp, Real &dh_dT) const override
 Enthalpy and its derivatives wrt pressure and temperature. More...
 
virtual Real henryConstant (Real temperature) const override
 Henry's law constant for dissolution in water. More...
 
virtual void henryConstant_dT (Real temperature, Real &Kh, Real &dKh_dT) const override
 Henry's law constant for dissolution in water and derivative wrt temperature. More...
 
virtual Real gamma (Real pressure, Real temperature) const
 Adiabatic index - ratio of specific heats. More...
 
virtual void execute () final
 
virtual void initialize () final
 
virtual void finalize () final
 

Protected Member Functions

virtual Real henryConstantIAPWS (Real temperature, Real A, Real B, Real C) const
 IAPWS formulation of Henry's law constant for dissolution in water From Guidelines on the Henry's constant and vapour liquid distribution constant for gases in H20 and D20 at high temperatures, IAPWS (2004) More...
 
virtual void henryConstantIAPWS_dT (Real temperature, Real &Kh, Real &dKh_dT, Real A, Real B, Real C) const
 IAPWS formulation of Henry's law constant for dissolution in water and derivative wrt temperature. More...
 

Protected Attributes

const Real _molar_mass
 molar mass More...
 
const Real _thermal_expansion
 thermal expansion coefficient More...
 
const Real _cv
 specific heat at constant volume More...
 
const Real _cp
 specific heat at constant pressure More...
 
const Real _thermal_conductivity
 thermal conductivity More...
 
const Real _specific_entropy
 specific entropy More...
 
const Real _viscosity
 viscosity More...
 
const Real _henry_constant
 Henry constant. More...
 
const Real _R
 Universal gas constant (J/mol/K) More...
 
const Real _T_c2k
 Conversion of temperature from Celcius to Kelvin. More...
 

Detailed Description

Ideal gas fluid properties for (pressure, temperature) variables.

Default parameters are for air at atmospheric pressure and temperature.

Definition at line 22 of file IdealGasFluidPropertiesPT.h.

Constructor & Destructor Documentation

IdealGasFluidPropertiesPT::IdealGasFluidPropertiesPT ( const InputParameters &  parameters)

Definition at line 30 of file IdealGasFluidPropertiesPT.C.

31  : SinglePhaseFluidPropertiesPT(parameters),
32  _molar_mass(getParam<Real>("molar_mass")),
33  _thermal_expansion(getParam<Real>("thermal_expansion")),
34  _cv(getParam<Real>("cv")),
35  _cp(getParam<Real>("cp")),
36  _thermal_conductivity(getParam<Real>("thermal_conductivity")),
37  _specific_entropy(getParam<Real>("specific_entropy")),
38  _viscosity(getParam<Real>("viscosity")),
39  _henry_constant(getParam<Real>("henry_constant"))
40 {
41 }
const Real _henry_constant
Henry constant.
const Real _thermal_conductivity
thermal conductivity
const Real _thermal_expansion
thermal expansion coefficient
const Real _specific_entropy
specific entropy
SinglePhaseFluidPropertiesPT(const InputParameters &parameters)
const Real _cv
specific heat at constant volume
const Real _cp
specific heat at constant pressure
IdealGasFluidPropertiesPT::~IdealGasFluidPropertiesPT ( )
virtual

Definition at line 43 of file IdealGasFluidPropertiesPT.C.

43 {}

Member Function Documentation

Real IdealGasFluidPropertiesPT::beta ( Real  pressure,
Real  temperature 
) const
overridevirtual

Thermal expansion coefficient.

Parameters
pressurefluid pressure (Pa)
temperaturefluid temperature (K)
Returns
beta (1/K)

Implements SinglePhaseFluidPropertiesPT.

Definition at line 57 of file IdealGasFluidPropertiesPT.C.

58 {
59  return _thermal_expansion;
60 }
const Real _thermal_expansion
thermal expansion coefficient
Real IdealGasFluidPropertiesPT::c ( Real  pressure,
Real  temperature 
) const
overridevirtual

Speed of sound.

Parameters
pressurefluid pressure (Pa)
temperaturefluid temperature (K)
Returns
speed of sound (m/s)

Implements SinglePhaseFluidPropertiesPT.

Definition at line 67 of file IdealGasFluidPropertiesPT.C.

68 {
69  return std::sqrt(_cp * _R * temperature / (_cv * _molar_mass));
70 }
const std::string temperature
Definition: NS.h:25
const Real _cv
specific heat at constant volume
const Real _cp
specific heat at constant pressure
const Real _R
Universal gas constant (J/mol/K)
Real IdealGasFluidPropertiesPT::cp ( Real  pressure,
Real  temperature 
) const
overridevirtual

Isobaric specific heat capacity.

Parameters
pressurefluid pressure (Pa)
temperaturefluid temperature (K)
Returns
cp (J/kg/K)

Implements SinglePhaseFluidPropertiesPT.

Definition at line 62 of file IdealGasFluidPropertiesPT.C.

62 { return _cp; }
const Real _cp
specific heat at constant pressure
Real IdealGasFluidPropertiesPT::cv ( Real  pressure,
Real  temperature 
) const
overridevirtual

Isochoric specific heat.

Parameters
pressurefluid pressure (Pa)
temperaturefluid temperature (K)
Returns
cv (J/kg/K)

Implements SinglePhaseFluidPropertiesPT.

Definition at line 64 of file IdealGasFluidPropertiesPT.C.

64 { return _cv; }
const Real _cv
specific heat at constant volume
Real IdealGasFluidPropertiesPT::e ( Real  pressure,
Real  temperature 
) const
overridevirtual

Internal energy.

Parameters
pressurefluid pressure (Pa)
temperaturefluid temperature (K)
Returns
internal energy (J/kg)

Implements SinglePhaseFluidPropertiesPT.

Definition at line 112 of file IdealGasFluidPropertiesPT.C.

Referenced by e_dpT().

113 {
114  return _cv * temperature;
115 }
const std::string temperature
Definition: NS.h:25
const Real _cv
specific heat at constant volume
void IdealGasFluidPropertiesPT::e_dpT ( Real  pressure,
Real  temperature,
Real &  e,
Real &  de_dp,
Real &  de_dT 
) const
overridevirtual

Internal energy and its derivatives wrt pressure and temperature.

Parameters
pressurefluid pressure (Pa)
temperaturefluid temperature (K)
[out]einternal energy (J/kg)
[out]de_dpderivative of internal energy wrt pressure
[out]de_dTderivative of internal energy wrt temperature

Implements SinglePhaseFluidPropertiesPT.

Definition at line 118 of file IdealGasFluidPropertiesPT.C.

Referenced by rho_e_dpT().

120 {
121  e = this->e(pressure, temperature);
122  de_dp = 0.0;
123  de_dT = _cv;
124 }
virtual Real e(Real pressure, Real temperature) const override
Internal energy.
const std::string temperature
Definition: NS.h:25
const std::string pressure
Definition: NS.h:24
const Real _cv
specific heat at constant volume
virtual void FluidProperties::execute ( )
inlinefinalvirtualinherited

Definition at line 25 of file FluidProperties.h.

25 {}
virtual void FluidProperties::finalize ( )
inlinefinalvirtualinherited

Definition at line 27 of file FluidProperties.h.

27 {}
std::string IdealGasFluidPropertiesPT::fluidName ( ) const
overridevirtual

Fluid name.

Returns
string representing fluid name

Implements SinglePhaseFluidPropertiesPT.

Definition at line 46 of file IdealGasFluidPropertiesPT.C.

47 {
48  return "ideal_gas";
49 }
Real SinglePhaseFluidPropertiesPT::gamma ( Real  pressure,
Real  temperature 
) const
virtualinherited

Adiabatic index - ratio of specific heats.

Parameters
pressurefluid pressure (Pa)
temperaturefluid temperature (K)
Returns
gamma (-)

Definition at line 27 of file SinglePhaseFluidPropertiesPT.C.

Referenced by MethaneFluidProperties::c().

28 {
30 }
virtual Real cp(Real pressure, Real temperature) const =0
Isobaric specific heat capacity.
const std::string temperature
Definition: NS.h:25
virtual Real cv(Real pressure, Real temperature) const =0
Isochoric specific heat.
const std::string pressure
Definition: NS.h:24
Real IdealGasFluidPropertiesPT::h ( Real  p,
Real  T 
) const
overridevirtual

Specific enthalpy.

Parameters
pressurefluid pressure (Pa)
temperaturefluid temperature (K)
Returns
h (J/kg)

Implements SinglePhaseFluidPropertiesPT.

Definition at line 182 of file IdealGasFluidPropertiesPT.C.

Referenced by h_dpT().

183 {
184  return _cp * temperature;
185 }
const std::string temperature
Definition: NS.h:25
const Real _cp
specific heat at constant pressure
void IdealGasFluidPropertiesPT::h_dpT ( Real  pressure,
Real  temperature,
Real &  h,
Real &  dh_dp,
Real &  dh_dT 
) const
overridevirtual

Enthalpy and its derivatives wrt pressure and temperature.

Parameters
pressurefluid pressure (Pa)
temperaturefluid temperature (K)
[out]h(J/kg)
[out]dh_dpderivative of enthalpy wrt pressure
[out]dh_dTderivative of enthalpy wrt temperature

Implements SinglePhaseFluidPropertiesPT.

Definition at line 188 of file IdealGasFluidPropertiesPT.C.

190 {
191  h = this->h(pressure, temperature);
192  dh_dp = 0.0;
193  dh_dT = _cp;
194 }
const std::string temperature
Definition: NS.h:25
virtual Real h(Real p, Real T) const override
Specific enthalpy.
const std::string pressure
Definition: NS.h:24
const Real _cp
specific heat at constant pressure
Real IdealGasFluidPropertiesPT::henryConstant ( Real  temperature) const
overridevirtual

Henry's law constant for dissolution in water.

Parameters
temperaturefluid temperature (K)
Returns
Henry's constant

Implements SinglePhaseFluidPropertiesPT.

Definition at line 196 of file IdealGasFluidPropertiesPT.C.

197 {
198  return _henry_constant;
199 }
const Real _henry_constant
Henry constant.
void IdealGasFluidPropertiesPT::henryConstant_dT ( Real  temperature,
Real &  Kh,
Real &  dKh_dT 
) const
overridevirtual

Henry's law constant for dissolution in water and derivative wrt temperature.

Parameters
temperaturefluid temperature (K)
[out]KhHenry's constant
[out]dKh_dTderivative of Kh wrt temperature

Implements SinglePhaseFluidPropertiesPT.

Definition at line 202 of file IdealGasFluidPropertiesPT.C.

203 {
204  Kh = _henry_constant;
205  dKh_dT = 0.0;
206 }
const Real _henry_constant
Henry constant.
Real SinglePhaseFluidPropertiesPT::henryConstantIAPWS ( Real  temperature,
Real  A,
Real  B,
Real  C 
) const
protectedvirtualinherited

IAPWS formulation of Henry's law constant for dissolution in water From Guidelines on the Henry's constant and vapour liquid distribution constant for gases in H20 and D20 at high temperatures, IAPWS (2004)

Definition at line 33 of file SinglePhaseFluidPropertiesPT.C.

Referenced by MethaneFluidProperties::henryConstant(), and CO2FluidProperties::henryConstant().

34 {
35  Real Tr = temperature / 647.096;
36  Real tau = 1.0 - Tr;
37 
38  Real lnkh = A / Tr + B * std::pow(tau, 0.355) / Tr + C * std::pow(Tr, -0.41) * std::exp(tau);
39 
40  // The vapor pressure used in this formulation
41  std::vector<Real> a{-7.85951783, 1.84408259, -11.7866497, 22.6807411, -15.9618719, 1.80122502};
42  std::vector<Real> b{1.0, 1.5, 3.0, 3.5, 4.0, 7.5};
43  Real sum = 0.0;
44 
45  for (std::size_t i = 0; i < a.size(); ++i)
46  sum += a[i] * std::pow(tau, b[i]);
47 
48  return 22.064e6 * std::exp(sum / Tr) * std::exp(lnkh);
49 }
const std::string temperature
Definition: NS.h:25
ExpressionBuilder::EBTerm pow(const ExpressionBuilder::EBTerm &left, T exponent)
void SinglePhaseFluidPropertiesPT::henryConstantIAPWS_dT ( Real  temperature,
Real &  Kh,
Real &  dKh_dT,
Real  A,
Real  B,
Real  C 
) const
protectedvirtualinherited

IAPWS formulation of Henry's law constant for dissolution in water and derivative wrt temperature.

Definition at line 52 of file SinglePhaseFluidPropertiesPT.C.

Referenced by MethaneFluidProperties::henryConstant_dT(), and CO2FluidProperties::henryConstant_dT().

54 {
55  Real pc = 22.064e6;
56  Real Tc = 647.096;
57 
58  Real Tr = temperature / Tc;
59  Real tau = 1.0 - Tr;
60 
61  Real lnkh = A / Tr + B * std::pow(tau, 0.355) / Tr + C * std::pow(Tr, -0.41) * std::exp(tau);
62  Real dlnkh_dT =
63  (-A / Tr / Tr - B * std::pow(tau, 0.355) / Tr / Tr - 0.355 * B * std::pow(tau, -0.645) / Tr -
64  0.41 * C * std::pow(Tr, -1.41) * std::exp(tau) - C * std::pow(Tr, -0.41) * std::exp(tau)) /
65  Tc;
66 
67  // The vapor pressure used in this formulation
68  std::vector<Real> a{-7.85951783, 1.84408259, -11.7866497, 22.6807411, -15.9618719, 1.80122502};
69  std::vector<Real> b{1.0, 1.5, 3.0, 3.5, 4.0, 7.5};
70  Real sum = 0.0;
71  Real dsum = 0.0;
72 
73  for (std::size_t i = 0; i < a.size(); ++i)
74  {
75  sum += a[i] * std::pow(tau, b[i]);
76  dsum += a[i] * b[i] * std::pow(tau, b[i] - 1.0);
77  }
78 
79  Real p = pc * std::exp(sum / Tr);
80  Real dp_dT = -p / Tc / Tr * (sum / Tr + dsum);
81 
82  // Henry's constant and its derivative wrt temperature
83  Kh = p * std::exp(lnkh);
84  dKh_dT = (p * dlnkh_dT + dp_dT) * std::exp(lnkh);
85 }
const std::string temperature
Definition: NS.h:25
ExpressionBuilder::EBTerm pow(const ExpressionBuilder::EBTerm &left, T exponent)
virtual void FluidProperties::initialize ( )
inlinefinalvirtualinherited

Definition at line 26 of file FluidProperties.h.

26 {}
Real IdealGasFluidPropertiesPT::k ( Real  pressure,
Real  temperature 
) const
overridevirtual

Thermal conductivity.

Parameters
pressurefluid pressure (Pa)
temperaturefluid temperature (K)
Returns
thermal conductivity (W/m/K)

Implements SinglePhaseFluidPropertiesPT.

Definition at line 72 of file IdealGasFluidPropertiesPT.C.

Referenced by k_dpT().

73 {
74  return _thermal_conductivity;
75 }
const Real _thermal_conductivity
thermal conductivity
void IdealGasFluidPropertiesPT::k_dpT ( Real  pressure,
Real  temperature,
Real &  k,
Real &  dk_dp,
Real &  dk_dT 
) const
overridevirtual

Thermal conductivity and its derivatives wrt pressure and temperature.

Parameters
pressurefluid pressure (Pa)
temperaturefluid temperature (K)
[out]thermalconductivity (W/m/K)
[out]derivativeof thermal conductivity wrt pressure
[out]derivativeof thermal conductivity wrt temperature

Implements SinglePhaseFluidPropertiesPT.

Definition at line 78 of file IdealGasFluidPropertiesPT.C.

80 {
81  k = this->k(pressure, temperature);
82  dk_dp = 0;
83  dk_dT = 0;
84 }
const std::string temperature
Definition: NS.h:25
virtual Real k(Real pressure, Real temperature) const override
Thermal conductivity.
const std::string pressure
Definition: NS.h:24
Real IdealGasFluidPropertiesPT::k_from_rho_T ( Real  density,
Real  temperature 
) const
overridevirtual

Thermal conductivity as a function of density and temperature.

Parameters
densityfluid density (kg/m^3)
temperaturefluid temperature (K)
Returns
thermal conductivity (W/m/K)

Implements SinglePhaseFluidPropertiesPT.

Definition at line 86 of file IdealGasFluidPropertiesPT.C.

87 {
88  return _thermal_conductivity;
89 }
const Real _thermal_conductivity
thermal conductivity
Real IdealGasFluidPropertiesPT::molarMass ( ) const
overridevirtual

Molar mass.

Returns
molar mass (kg/mol)

Implements SinglePhaseFluidPropertiesPT.

Definition at line 52 of file IdealGasFluidPropertiesPT.C.

53 {
54  return _molar_mass;
55 }
Real IdealGasFluidPropertiesPT::mu ( Real  pressure,
Real  temperature 
) const
overridevirtual

Implements SinglePhaseFluidPropertiesPT.

Definition at line 149 of file IdealGasFluidPropertiesPT.C.

Referenced by mu_dpT().

150 {
151  return _viscosity;
152 }
void IdealGasFluidPropertiesPT::mu_dpT ( Real  pressure,
Real  temperature,
Real &  mu,
Real &  dmu_dp,
Real &  dmu_dT 
) const
overridevirtual

Implements SinglePhaseFluidPropertiesPT.

Definition at line 155 of file IdealGasFluidPropertiesPT.C.

157 {
158  mu = this->mu(pressure, temperature);
159  dmu_dp = 0.0;
160  dmu_dT = 0.0;
161 }
virtual Real mu(Real pressure, Real temperature) const override
const std::string temperature
Definition: NS.h:25
const std::string pressure
Definition: NS.h:24
void IdealGasFluidPropertiesPT::mu_drhoT_from_rho_T ( Real  density,
Real  temperature,
Real  ddensity_dT,
Real &  mu,
Real &  dmu_drho,
Real &  dmu_dT 
) const
overridevirtual

Dynamic viscosity and its derivatives wrt density and temperature.

Parameters
densityfluid density (kg/m^3)
temperaturefluid temperature (K)
ddensity_dTderivative of density wrt temperature
[out]muviscosity (Pa.s)
[out]dmu_drhoderivative of viscosity wrt density
[out]dmu_dTderivative of viscosity wrt temperature

Implements SinglePhaseFluidPropertiesPT.

Definition at line 169 of file IdealGasFluidPropertiesPT.C.

175 {
177  dmu_drho = 0.0;
178  dmu_dT = 0.0;
179 }
virtual Real mu_from_rho_T(Real density, Real temperature) const override
const std::string density
Definition: NS.h:15
virtual Real mu(Real pressure, Real temperature) const override
const std::string temperature
Definition: NS.h:25
Real IdealGasFluidPropertiesPT::mu_from_rho_T ( Real  density,
Real  temperature 
) const
overridevirtual

Implements SinglePhaseFluidPropertiesPT.

Definition at line 163 of file IdealGasFluidPropertiesPT.C.

Referenced by mu_drhoT_from_rho_T().

164 {
165  return _viscosity;
166 }
Real IdealGasFluidPropertiesPT::rho ( Real  pressure,
Real  temperature 
) const
overridevirtual

Density.

Parameters
pressurefluid pressure (Pa)
temperaturefluid temperature (K)
Returns
density (kg/m^3)

Implements SinglePhaseFluidPropertiesPT.

Definition at line 97 of file IdealGasFluidPropertiesPT.C.

Referenced by rho_dpT().

98 {
99  return pressure * _molar_mass / (_R * temperature);
100 }
const std::string temperature
Definition: NS.h:25
const std::string pressure
Definition: NS.h:24
const Real _R
Universal gas constant (J/mol/K)
void IdealGasFluidPropertiesPT::rho_dpT ( Real  pressure,
Real  temperature,
Real &  rho,
Real &  drho_dp,
Real &  drho_dT 
) const
overridevirtual

Density and its derivatives wrt pressure and temperature.

Parameters
pressurefluid pressure (Pa)
temperaturefluid temperature (K)
[out]rhodensity (kg/m^3)
[out]drho_dpderivative of density wrt pressure
[out]drho_dTderivative of density wrt temperature

Implements SinglePhaseFluidPropertiesPT.

Definition at line 103 of file IdealGasFluidPropertiesPT.C.

Referenced by rho_e_dpT().

105 {
106  rho = this->rho(pressure, temperature);
107  drho_dp = _molar_mass / (_R * temperature);
108  drho_dT = -pressure * _molar_mass / (_R * temperature * temperature);
109 }
const std::string temperature
Definition: NS.h:25
virtual Real rho(Real pressure, Real temperature) const override
Density.
const std::string pressure
Definition: NS.h:24
const Real _R
Universal gas constant (J/mol/K)
void IdealGasFluidPropertiesPT::rho_e_dpT ( Real  pressure,
Real  temperature,
Real &  rho,
Real &  drho_dp,
Real &  drho_dT,
Real &  e,
Real &  de_dp,
Real &  de_dT 
) const
overridevirtual

Density and internal energy and their derivatives wrt pressure and temperature.

Parameters
pressurefluid pressure (Pa)
temperaturefluid temperature (K)
[out]rhodensity (kg/m^3)
[out]drho_dpderivative of density wrt pressure
[out]drho_dTderivative of density wrt temperature
[out]einternal energy (J/kg)
[out]de_dpderivative of internal energy wrt pressure
[out]de_dTderivative of internal energy wrt temperature

Implements SinglePhaseFluidPropertiesPT.

Definition at line 127 of file IdealGasFluidPropertiesPT.C.

135 {
136  Real density, ddensity_dp, ddensity_dT;
137  rho_dpT(pressure, temperature, density, ddensity_dp, ddensity_dT);
138  rho = density;
139  drho_dp = ddensity_dp;
140  drho_dT = ddensity_dT;
141 
142  Real energy, denergy_dp, denergy_dT;
143  e_dpT(pressure, temperature, energy, denergy_dp, denergy_dT);
144  e = energy;
145  de_dp = denergy_dp;
146  de_dT = denergy_dT;
147 }
virtual Real e(Real pressure, Real temperature) const override
Internal energy.
const std::string density
Definition: NS.h:15
const std::string temperature
Definition: NS.h:25
virtual void e_dpT(Real pressure, Real temperature, Real &e, Real &de_dp, Real &de_dT) const override
Internal energy and its derivatives wrt pressure and temperature.
virtual Real rho(Real pressure, Real temperature) const override
Density.
virtual void rho_dpT(Real pressure, Real temperature, Real &rho, Real &drho_dp, Real &drho_dT) const override
Density and its derivatives wrt pressure and temperature.
const std::string pressure
Definition: NS.h:24
Real IdealGasFluidPropertiesPT::s ( Real  pressure,
Real  temperature 
) const
overridevirtual

Specific entropy.

Parameters
pressurefluid pressure (Pa)
temperaturefluid temperature (K)
Returns
s (J/kg/K)

Implements SinglePhaseFluidPropertiesPT.

Definition at line 91 of file IdealGasFluidPropertiesPT.C.

92 {
93  return _specific_entropy;
94 }
const Real _specific_entropy
specific entropy

Member Data Documentation

const Real IdealGasFluidPropertiesPT::_cp
protected

specific heat at constant pressure

Definition at line 99 of file IdealGasFluidPropertiesPT.h.

Referenced by c(), cp(), h(), and h_dpT().

const Real IdealGasFluidPropertiesPT::_cv
protected

specific heat at constant volume

Definition at line 97 of file IdealGasFluidPropertiesPT.h.

Referenced by c(), cv(), e(), and e_dpT().

const Real IdealGasFluidPropertiesPT::_henry_constant
protected

Henry constant.

Definition at line 107 of file IdealGasFluidPropertiesPT.h.

Referenced by henryConstant(), and henryConstant_dT().

const Real IdealGasFluidPropertiesPT::_molar_mass
protected

molar mass

Definition at line 93 of file IdealGasFluidPropertiesPT.h.

Referenced by c(), molarMass(), rho(), and rho_dpT().

const Real SinglePhaseFluidPropertiesPT::_R
protectedinherited
const Real IdealGasFluidPropertiesPT::_specific_entropy
protected

specific entropy

Definition at line 103 of file IdealGasFluidPropertiesPT.h.

Referenced by s().

const Real SinglePhaseFluidPropertiesPT::_T_c2k
protectedinherited
const Real IdealGasFluidPropertiesPT::_thermal_conductivity
protected

thermal conductivity

Definition at line 101 of file IdealGasFluidPropertiesPT.h.

Referenced by k(), and k_from_rho_T().

const Real IdealGasFluidPropertiesPT::_thermal_expansion
protected

thermal expansion coefficient

Definition at line 95 of file IdealGasFluidPropertiesPT.h.

Referenced by beta().

const Real IdealGasFluidPropertiesPT::_viscosity
protected

viscosity

Definition at line 105 of file IdealGasFluidPropertiesPT.h.

Referenced by mu(), and mu_from_rho_T().


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