www.mooseframework.org
NaClFluidProperties.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 NACLFLUIDPROPERTIES_H
9 #define NACLFLUIDPROPERTIES_H
10 
12 
14 
15 template <>
16 InputParameters validParams<NaClFluidProperties>();
17 
36 {
37 public:
38  NaClFluidProperties(const InputParameters & parameters);
39  virtual ~NaClFluidProperties();
40 
41  virtual std::string fluidName() const override;
42 
43  virtual Real molarMass() const override;
44 
51  virtual Real criticalPressure() const;
52 
59  virtual Real criticalTemperature() const;
60 
67  virtual Real criticalDensity() const;
68 
69  virtual Real rho(Real pressure, Real temperature) const override;
70 
71  virtual void rho_dpT(
72  Real pressure, Real temperature, Real & rho, Real & drho_dp, Real & drho_dT) const override;
73 
74  virtual Real e(Real pressure, Real temperature) const override;
75 
76  virtual void
77  e_dpT(Real pressure, Real temperature, Real & e, Real & de_dp, Real & de_dT) const override;
78 
79  virtual void rho_e_dpT(Real pressure,
80  Real temperature,
81  Real & rho,
82  Real & drho_dp,
83  Real & drho_dT,
84  Real & e,
85  Real & de_dp,
86  Real & de_dT) const override;
87 
88  virtual Real c(Real pressure, Real temperature) const override;
89 
90  virtual Real cp(Real pressure, Real temperature) const override;
91 
92  virtual Real cv(Real pressure, Real temperature) const override;
93 
94  virtual Real mu(Real pressure, Real temperature) const override;
95 
96  virtual void
97  mu_dpT(Real pressure, Real temperature, Real & mu, Real & dmu_dp, Real & dmu_dT) const override;
98 
99  virtual Real mu_from_rho_T(Real density, Real temperature) const override;
100 
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 
108  virtual Real k(Real pressure, Real temperature) const override;
109 
110  virtual void
111  k_dpT(Real pressure, Real temperature, Real & k, Real & dk_dp, Real & dk_dT) const override;
112 
113  virtual Real k_from_rho_T(Real density, Real temperature) const override;
114 
115  virtual Real s(Real pressure, Real temperature) const override;
116 
117  virtual Real h(Real pressure, Real temperature) const override;
118 
119  virtual void
120  h_dpT(Real pressure, Real temperature, Real & h, Real & dh_dp, Real & dh_dT) const override;
121 
122  virtual Real beta(Real pressure, Real temperature) const override;
123 
124  virtual Real henryConstant(Real temperature) const override;
125 
126  virtual void henryConstant_dT(Real temperature, Real & Kh, Real & dKh_dT) const override;
127 
128 protected:
130  const Real _Mnacl;
132  const Real _p_critical;
134  const Real _T_critical;
136  const Real _rho_critical;
138  const Real _p_triple;
140  const Real _T_triple;
141 };
142 
143 #endif /* NACLFLUIDPROPERTIES_H */
virtual Real criticalTemperature() const
NaCl critical temperature From Anderko and Pitzer, Equation of state for pure sodium chloride...
virtual std::string fluidName() const override
Fluid name.
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 mu(Real pressure, Real temperature) const override
virtual Real cv(Real pressure, Real temperature) const override
Isochoric specific heat.
virtual Real k(Real pressure, Real temperature) const override
Thermal conductivity.
const Real _T_triple
Triple point temperature (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.
const Real _rho_critical
Critical density (kg/m^3)
const std::string density
Definition: NS.h:15
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.
virtual Real henryConstant(Real temperature) const override
Henry&#39;s law constant for dissolution in water.
virtual Real c(Real pressure, Real temperature) const override
Speed of sound.
const std::string temperature
Definition: NS.h:25
virtual Real rho(Real pressure, Real temperature) const override
Density.
virtual Real beta(Real pressure, Real temperature) const override
Thermal expansion coefficient.
InputParameters validParams< NaClFluidProperties >()
virtual Real criticalDensity() const
NaCl critical density From Anderko and Pitzer, Equation of state for pure sodium chloride, Fluid Phase Equil., 79 (1992)
Common class for single phase fluid properties using a pressure and temperature formulation.
virtual Real molarMass() const override
Molar mass.
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 e(Real pressure, Real temperature) const override
Internal energy.
virtual void mu_dpT(Real pressure, Real temperature, Real &mu, Real &dmu_dp, Real &dmu_dT) const override
virtual Real h(Real pressure, Real temperature) const override
Specific enthalpy.
virtual Real cp(Real pressure, Real temperature) const override
Isobaric specific heat capacity.
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 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.
const Real _p_triple
Triple point pressure (Pa)
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.
const Real _T_critical
Critical temperature (K)
const Real _p_critical
Critical pressure (Pa)
const std::string pressure
Definition: NS.h:24
NaCl fluid properties as a function of pressure (Pa) and temperature (K).
virtual Real k_from_rho_T(Real density, Real temperature) const override
Thermal conductivity as a function of density and temperature.
virtual Real s(Real pressure, Real temperature) const override
Specific entropy.
NaClFluidProperties(const InputParameters &parameters)
const Real _Mnacl
NaCl molar mass (kg/mol)
virtual Real criticalPressure() const
NaCl critical pressure From Anderko and Pitzer, Equation of state for pure sodium chloride...