www.mooseframework.org
SimpleFluidProperties.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef SIMPLEFLUIDPROPERTIES_H
9 #define SIMPLEFLUIDPROPERTIES_H
10 
12 
14 
15 template <>
16 InputParameters validParams<SimpleFluidProperties>();
17 
33 {
34 public:
35  SimpleFluidProperties(const InputParameters & parameters);
36  virtual ~SimpleFluidProperties();
37 
39  virtual std::string fluidName() const override;
40 
42  virtual Real molarMass() const override;
43 
45  virtual Real beta(Real pressure, Real temperature) const override;
46 
48  virtual Real cp(Real pressure, Real temperature) const override;
49 
51  virtual Real cv(Real pressure, Real temperature) const override;
52 
54  virtual Real c(Real pressure, Real temperature) const override;
55 
57  virtual Real k(Real pressure, Real temperature) const override;
59  virtual void
60  k_dpT(Real pressure, Real temperature, Real & k, Real & dk_dp, Real & dk_dT) const override;
61 
63  virtual Real k_from_rho_T(Real density, Real temperature) const override;
64 
66  virtual Real s(Real pressure, Real temperature) const override;
67 
69  virtual Real rho(Real pressure, Real temperature) const override;
70 
72  virtual void rho_dpT(
73  Real pressure, Real temperature, Real & rho, Real & drho_dp, Real & drho_dT) const override;
74 
76  virtual Real e(Real pressure, Real temperature) const override;
77 
79  virtual void
80  e_dpT(Real pressure, Real temperature, Real & e, Real & de_dp, Real & de_dT) const override;
81 
83  virtual void rho_e_dpT(Real pressure,
84  Real temperature,
85  Real & rho,
86  Real & drho_dp,
87  Real & drho_dT,
88  Real & e,
89  Real & de_dp,
90  Real & de_dT) const override;
91 
92  virtual Real mu(Real pressure, Real temperature) const override;
93 
94  virtual void
95  mu_dpT(Real pressure, Real temperature, Real & mu, Real & dmu_dp, Real & dmu_dT) const override;
96 
98  virtual Real mu_from_rho_T(Real density, Real temperature) const override;
99 
101  virtual void mu_drhoT_from_rho_T(Real density,
102  Real temperature,
103  Real ddensity_dT,
104  Real & mu,
105  Real & dmu_drho,
106  Real & dmu_dT) const override;
107 
109  virtual Real h(Real p, Real T) const override;
110 
112  virtual void
113  h_dpT(Real pressure, Real temperature, Real & h, Real & dh_dp, Real & dh_dT) const override;
114 
116  virtual Real henryConstant(Real temperature) const override;
117 
119  virtual void henryConstant_dT(Real temperature, Real & Kh, Real & dKh_dT) const override;
120 
121 protected:
123  const Real _molar_mass;
124 
126  const Real _thermal_expansion;
127 
129  const Real _cv;
130 
132  const Real _cp;
133 
135  const Real _bulk_modulus;
136 
139 
141  const Real _specific_entropy;
142 
144  const Real _viscosity;
145 
147  const Real _density0;
148 
150  const Real _henry_constant;
151 
153  const Real _pp_coeff;
154 };
155 
156 #endif /* SIMPLEFLUIDPROPERTIES_H */
const Real _thermal_expansion
thermal expansion coefficient
const Real _pp_coeff
Porepressure coefficient: enthalpy = internal_energy + porepressure / density * _pp_coeff.
virtual Real beta(Real pressure, Real temperature) const override
Thermal expansion coefficient (1/K)
virtual Real mu(Real pressure, Real temperature) const override
virtual Real e(Real pressure, Real temperature) const override
Internal energy from pressure and temperature (J/kg)
virtual Real henryConstant(Real temperature) const override
Henry&#39;s law constant for dissolution in water.
virtual Real cp(Real pressure, Real temperature) const override
Isobaric specific heat capacity (J/kg/K)
const Real _cv
specific heat at constant volume
const Real _specific_entropy
specific entropy
const Real _viscosity
viscosity
virtual Real molarMass() const override
Molar mass (kg/mol)
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 k_from_rho_T(Real density, Real temperature) const override
Thermal conductivity (W/m/K)
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.
virtual Real rho(Real pressure, Real temperature) const override
Density from pressure and temperature (kg/m^3)
const Real _bulk_modulus
bulk modulus
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 from pressure and temperature and derivatives wrt pressure and temperatur...
const std::string density
Definition: NS.h:15
const Real _henry_constant
Henry constant.
const std::string temperature
Definition: NS.h:25
InputParameters validParams< SimpleFluidProperties >()
const Real _molar_mass
molar mass
virtual Real h(Real p, Real T) const override
Specific enthalpy (J/kg)
Fluid properties of a simple, idealised fluid density=density0 * exp(P / bulk_modulus - thermal_expan...
const Real _density0
density at zero pressure and temperature
Common class for single phase fluid properties using a pressure and temperature formulation.
const Real _thermal_conductivity
thermal conductivity
virtual void rho_dpT(Real pressure, Real temperature, Real &rho, Real &drho_dp, Real &drho_dT) const override
Density from pressure and temperature and its derivatives wrt pressure and temperature.
virtual Real cv(Real pressure, Real temperature) const override
Isochoric specific heat capacity (J/kg/K)
virtual Real k(Real pressure, Real temperature) const override
Thermal conductivity (W/m/K)
virtual Real mu_from_rho_T(Real density, Real temperature) const override
Dynamic viscosity (Pa s)
virtual Real s(Real pressure, Real temperature) const override
Specific entropy (J/kg/K)
virtual std::string fluidName() const override
Fluid name.
virtual Real c(Real pressure, Real temperature) const override
Speed of sound (m/s)
virtual void henryConstant_dT(Real temperature, Real &Kh, Real &dKh_dT) const override
Henry&#39;s law constant for dissolution in water and derivative wrt temperature.
const std::string pressure
Definition: NS.h:24
virtual void mu_dpT(Real pressure, Real temperature, Real &mu, Real &dmu_dp, Real &dmu_dT) const override
virtual void h_dpT(Real pressure, Real temperature, Real &h, Real &dh_dp, Real &dh_dT) const override
Specific enthalpy and its derivatives.
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.
SimpleFluidProperties(const InputParameters &parameters)
const Real _cp
specific heat at constant pressure