www.mooseframework.org
BrineFluidProperties.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 BRINEFLUIDPROPERTIES_H
9 #define BRINEFLUIDPROPERTIES_H
10 
12 #include "Water97FluidProperties.h"
13 
15 
16 template <>
17 InputParameters validParams<BrineFluidProperties>();
18 
35 {
36 public:
37  BrineFluidProperties(const InputParameters & parameters);
38  virtual ~BrineFluidProperties();
39 
44  virtual std::string fluidName() const override;
45 
51  Real molarMass(Real xnacl) const;
52 
57  Real molarMassNaCl() const;
58 
63  Real molarMassH2O() const;
64 
65  virtual Real rho(Real pressure, Real temperature, Real xnacl) const override;
66 
67  virtual void rho_dpTx(Real pressure,
68  Real temperature,
69  Real xnacl,
70  Real & rho,
71  Real & drho_dp,
72  Real & drho_dT,
73  Real & drho_dx) const override;
74 
75  virtual Real mu_from_rho_T(Real water_density, Real temperature, Real xnacl) const override;
76 
77  virtual void mu_drhoTx(Real water_density,
78  Real temperature,
79  Real xnacl,
80  Real dwater_density_dT,
81  Real & mu,
82  Real & dmu_drho,
83  Real & dmu_dT,
84  Real & dmu_dx) const override;
85 
86  virtual Real h(Real pressure, Real temperature, Real xnacl) const override;
87 
88  virtual void h_dpTx(Real pressure,
89  Real temperature,
90  Real xnacl,
91  Real & h,
92  Real & dh_dp,
93  Real & dh_dT,
94  Real & dh_dx) const override;
95 
96  virtual Real cp(Real pressure, Real temperature, Real xnacl) const override;
97 
98  virtual Real e(Real pressure, Real temperature, Real xnacl) const override;
99 
100  virtual void e_dpTx(Real pressure,
101  Real temperature,
102  Real xnacl,
103  Real & e,
104  Real & de_dp,
105  Real & de_dT,
106  Real & de_dx) const override;
107 
108  virtual Real k_from_rho_T(Real water_density, Real temperature, Real xnacl) const override;
109 
120  Real vaporPressure(Real temperature, Real xnacl) const;
121 
136  Real haliteSolubility(Real temperature) const;
137 
139  static const unsigned int WATER = 0;
140  static const unsigned int NACL = 1;
141 
142  virtual const SinglePhaseFluidPropertiesPT & getComponent(unsigned int component) const override;
143 
144 protected:
150  Real massFractionToMolalConc(Real xnacl) const;
151 
157  Real massFractionToMoleFraction(Real xnacl) const;
158 
165 
167  Real _Mnacl;
169  Real _Mh2o;
170 };
171 
172 #endif /* BRINEFLUIDPROPERTIES_H */
Real massFractionToMolalConc(Real xnacl) const
Conversion from mass fraction to molal concentration (molality)
const SinglePhaseFluidPropertiesPT * _nacl_fp
NaClFluidProperties UserObject.
Real molarMass(Real xnacl) const
Average molar mass of brine.
virtual void rho_dpTx(Real pressure, Real temperature, Real xnacl, Real &rho, Real &drho_dp, Real &drho_dT, Real &drho_dx) const override
Density and its derivatives wrt pressure, temperature and mass fraction.
const Water97FluidProperties * _water97_fp
Water97FluidProperties UserObject.
InputParameters validParams< BrineFluidProperties >()
Real component(const SymmTensor &symm_tensor, unsigned int index)
const std::string temperature
Definition: NS.h:25
virtual std::string fluidName() const override
Fluid name.
Brine (NaCl in H2O) fluid properties as a function of pressure (Pa), temperature (K) and NaCl mass fr...
Common class for single phase fluid properties using a pressure and temperature formulation.
virtual void h_dpTx(Real pressure, Real temperature, Real xnacl, Real &h, Real &dh_dp, Real &dh_dT, Real &dh_dx) const override
Enthalpy and derivatives wrt pressure, temperature and mass fraction.
virtual Real rho(Real pressure, Real temperature, Real xnacl) const override
Density.
static const unsigned int NACL
Real _Mnacl
Molar mass of NaCl (kg/mol)
virtual Real cp(Real pressure, Real temperature, Real xnacl) const override
Isobaric specific heat capacity.
BrineFluidProperties(const InputParameters &parameters)
Real vaporPressure(Real temperature, Real xnacl) const
Brine vapour pressure From Haas, Physical properties of the coexisting phases and thermochemical prop...
virtual Real e(Real pressure, Real temperature, Real xnacl) const override
Internal energy.
virtual Real k_from_rho_T(Real water_density, Real temperature, Real xnacl) const override
Thermal conductivity.
Real _Mh2o
Molar mass of water (H2O) (kg/mol)
Water (H2O) fluid properties as a function of pressure (Pa) and temperature (K) from IAPWS-IF97: Revi...
const std::string pressure
Definition: NS.h:24
virtual Real mu_from_rho_T(Real water_density, Real temperature, Real xnacl) const override
Real molarMassNaCl() const
NaCl molar mass.
Real haliteSolubility(Real temperature) const
Solubility of halite (solid NaCl) in water Originally from Potter et al., A new method for determinin...
virtual const SinglePhaseFluidPropertiesPT & getComponent(unsigned int component) const override
Get UserObject for specified component.
virtual Real h(Real pressure, Real temperature, Real xnacl) const override
Enthalpy.
Real massFractionToMoleFraction(Real xnacl) const
Conversion from mass fraction to mole fraction.
Common class for multiple component fluid properties using a pressure and temperature formulation...
Real molarMassH2O() const
H2O molar mass.
virtual void mu_drhoTx(Real water_density, Real temperature, Real xnacl, Real dwater_density_dT, Real &mu, Real &dmu_drho, Real &dmu_dT, Real &dmu_dx) const override
Dynamic viscosity and its derivatives wrt density, temperature and mass fraction. ...
virtual void e_dpTx(Real pressure, Real temperature, Real xnacl, Real &e, Real &de_dp, Real &de_dT, Real &de_dx) const override
Internal energy and its derivatives wrt pressure, temperature and mass fraction.
static const unsigned int WATER
Fluid component numbers for water and NaCl.
const SinglePhaseFluidPropertiesPT * _water_fp
Water97FluidProperties UserObject.