www.mooseframework.org
MethaneFluidProperties.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 METHANEFLUIDPROPERTIES_H
9 #define METHANEFLUIDPROPERTIES_H
10 
12 
14 
15 template <>
16 InputParameters validParams<MethaneFluidProperties>();
17 
28 {
29 public:
30  MethaneFluidProperties(const InputParameters & parameters);
31  virtual ~MethaneFluidProperties();
32 
33  virtual std::string fluidName() const override;
34 
35  virtual Real molarMass() const override;
36 
37  virtual Real rho(Real pressure, Real temperature) const override;
38 
39  virtual void rho_dpT(
40  Real pressure, Real temperature, Real & rho, Real & drho_dp, Real & drho_dT) const override;
41 
42  virtual Real e(Real pressure, Real temperature) const override;
43 
44  virtual void
45  e_dpT(Real pressure, Real temperature, Real & e, Real & de_dp, Real & de_dT) const override;
46 
47  virtual void rho_e_dpT(Real pressure,
48  Real temperature,
49  Real & rho,
50  Real & drho_dp,
51  Real & drho_dT,
52  Real & e,
53  Real & de_dp,
54  Real & de_dT) const override;
55 
56  virtual Real c(Real pressure, Real temperature) const override;
57 
58  virtual Real cp(Real pressure, Real temperature) const override;
59 
60  virtual Real cv(Real pressure, Real temperature) const override;
61 
62  virtual Real mu(Real pressure, Real temperature) const override;
63 
64  virtual void
65  mu_dpT(Real pressure, Real temperature, Real & mu, Real & dmu_dp, Real & dmu_dT) const override;
66 
67  virtual Real mu_from_rho_T(Real density, Real temperature) const override;
68 
69  virtual void mu_drhoT_from_rho_T(Real density,
70  Real temperature,
71  Real ddensity_dT,
72  Real & mu,
73  Real & dmu_drho,
74  Real & dmu_dT) const override;
75 
76  virtual Real k(Real pressure, Real temperature) const override;
77 
78  virtual void
79  k_dpT(Real pressure, Real temperature, Real & k, Real & dk_dp, Real & dk_dT) const override;
80 
81  virtual Real k_from_rho_T(Real density, Real temperature) const override;
82 
83  virtual Real s(Real pressure, Real temperature) const override;
84 
85  virtual Real h(Real pressure, Real temperature) const override;
86 
87  virtual void
88  h_dpT(Real pressure, Real temperature, Real & h, Real & dh_dp, Real & dh_dT) const override;
89 
90  virtual Real beta(Real pressure, Real temperature) const override;
91 
92  virtual Real henryConstant(Real temperature) const override;
93 
94  virtual void henryConstant_dT(Real temperature, Real & Kh, Real & dKh_dT) const override;
95 
100  virtual Real criticalPressure() const;
101 
106  virtual Real criticalTemperature() const;
107 
112  virtual Real criticalDensity() const;
113 
114 protected:
116  const Real _Mch4;
118  const Real _p_critical;
120  const Real _T_critical;
122  const Real _rho_critical;
124  const Real _beta;
125 };
126 
127 #endif /* METHANEFLUIDPROPERTIES_H */
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.
virtual Real beta(Real pressure, Real temperature) const override
Thermal expansion coefficient.
const Real _beta
Coefficient of thermal expansion (1/K)
virtual void mu_dpT(Real pressure, Real temperature, Real &mu, Real &dmu_dp, Real &dmu_dT) const override
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.
virtual Real s(Real pressure, Real temperature) const override
Specific entropy.
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.
virtual Real k_from_rho_T(Real density, Real temperature) const override
Thermal conductivity as a function of density and temperature.
const std::string density
Definition: NS.h:15
virtual Real e(Real pressure, Real temperature) const override
Internal energy.
const std::string temperature
Definition: NS.h:25
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.
Common class for single phase fluid properties using a pressure and temperature formulation.
virtual Real criticalDensity() const
Methane critical density.
virtual Real henryConstant(Real temperature) const override
Henry&#39;s law constant for dissolution in water.
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.
MethaneFluidProperties(const InputParameters &parameters)
virtual std::string fluidName() const override
Fluid name.
virtual Real h(Real pressure, Real temperature) const override
Specific enthalpy.
virtual Real criticalPressure() const
Methane critical pressure.
Methane (CH4) fluid properties as a function of pressure (Pa) and temperature (K).
virtual Real criticalTemperature() const
Methane critical temperature.
virtual Real c(Real pressure, Real temperature) const override
Speed of sound.
virtual Real mu(Real pressure, Real temperature) const override
const Real _rho_critical
Critical density (kg/m^3)
const Real _T_critical
Critical temperature (K)
virtual Real k(Real pressure, Real temperature) const override
Thermal conductivity.
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.
const Real _Mch4
Methane molar mass (kg/mol)
const std::string pressure
Definition: NS.h:24
virtual Real cp(Real pressure, Real temperature) const override
Isobaric specific heat capacity.
virtual Real mu_from_rho_T(Real density, Real temperature) const override
virtual Real cv(Real pressure, Real temperature) const override
Isochoric specific heat.
virtual Real rho(Real pressure, Real temperature) const override
Density.
const Real _p_critical
Critical pressure (Pa)
virtual Real molarMass() const override
Molar mass.
InputParameters validParams< MethaneFluidProperties >()
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.