www.mooseframework.org
MultiComponentFluidPropertiesPT.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 MULTICOMPONENTFLUIDPROPERTIESPT_H
9 #define MULTICOMPONENTFLUIDPROPERTIESPT_H
10 
11 #include "FluidProperties.h"
13 
15 
16 template <>
18 
24 {
25 public:
26  MultiComponentFluidPropertiesPT(const InputParameters & parameters);
28 
33  virtual std::string fluidName() const = 0;
34 
42  virtual Real rho(Real pressure, Real temperature, Real xmass) const = 0;
43 
54  virtual void rho_dpTx(Real pressure,
55  Real temperature,
56  Real xmass,
57  Real & rho,
58  Real & drho_dp,
59  Real & drho_dT,
60  Real & drho_dx) const = 0;
61 
62  /*
63  * Dynamic viscosity
64  * @param density fluid density (kg/m^3)
65  * @param temperature fluid temperature (K)
66  * @param xmass mass fraction (-)
67  * @return viscosity (Pa.s)
68  */
69  virtual Real mu_from_rho_T(Real density, Real temperature, Real xmass) const = 0;
70 
82  virtual void mu_drhoTx(Real density,
83  Real temperature,
84  Real xmass,
85  Real ddensity_dT,
86  Real & mu,
87  Real & dmu_drho,
88  Real & dmu_dT,
89  Real & dmu_dx) const = 0;
90 
98  virtual Real h(Real pressure, Real temperature, Real xmass) const = 0;
99 
110  virtual void h_dpTx(Real pressure,
111  Real temperature,
112  Real xmass,
113  Real & h,
114  Real & dh_dp,
115  Real & dh_dT,
116  Real & dh_dx) const = 0;
117 
125  virtual Real cp(Real pressure, Real temperature, Real xmass) const = 0;
126 
134  virtual Real e(Real pressure, Real temperature, Real xmass) const = 0;
135 
146  virtual void e_dpTx(Real pressure,
147  Real temperature,
148  Real xmass,
149  Real & e,
150  Real & de_dp,
151  Real & de_dT,
152  Real & de_dx) const = 0;
153 
161  virtual Real k_from_rho_T(Real density, Real temperature, Real xmass) const = 0;
162 
168  virtual const SinglePhaseFluidPropertiesPT & getComponent(unsigned int component) const = 0;
169 
170 protected:
172  const Real _T_c2k;
173 };
174 
175 #endif /* MULTICOMPONENTFLUIDPROPERTIESPT_H */
virtual Real k_from_rho_T(Real density, Real temperature, Real xmass) const =0
Thermal conductivity.
virtual Real h(Real pressure, Real temperature, Real xmass) const =0
Enthalpy.
virtual Real e(Real pressure, Real temperature, Real xmass) const =0
Internal energy.
virtual std::string fluidName() const =0
Fluid name.
const std::string density
Definition: NS.h:15
Real component(const SymmTensor &symm_tensor, unsigned int index)
virtual Real mu_from_rho_T(Real density, Real temperature, Real xmass) const =0
virtual Real cp(Real pressure, Real temperature, Real xmass) const =0
Isobaric specific heat capacity.
const std::string temperature
Definition: NS.h:25
MultiComponentFluidPropertiesPT(const InputParameters &parameters)
const Real _T_c2k
Conversion of temperature from Celcius to Kelvin.
Common class for single phase fluid properties using a pressure and temperature formulation.
InputParameters validParams< MultiComponentFluidPropertiesPT >()
virtual void e_dpTx(Real pressure, Real temperature, Real xmass, Real &e, Real &de_dp, Real &de_dT, Real &de_dx) const =0
Internal energy and its derivatives wrt pressure, temperature and mass fraction.
const std::string pressure
Definition: NS.h:24
Common class for multiple component fluid properties using a pressure and temperature formulation...
virtual void rho_dpTx(Real pressure, Real temperature, Real xmass, Real &rho, Real &drho_dp, Real &drho_dT, Real &drho_dx) const =0
Density and its derivatives wrt pressure, temperature and mass fraction.
virtual Real rho(Real pressure, Real temperature, Real xmass) const =0
Density.
virtual const SinglePhaseFluidPropertiesPT & getComponent(unsigned int component) const =0
Get UserObject for specified component.
virtual void mu_drhoTx(Real density, Real temperature, Real xmass, Real ddensity_dT, Real &mu, Real &dmu_drho, Real &dmu_dT, Real &dmu_dx) const =0
Dynamic viscosity and its derivatives wrt density, temperature and mass fraction. ...
virtual void h_dpTx(Real pressure, Real temperature, Real xmass, Real &h, Real &dh_dp, Real &dh_dT, Real &dh_dx) const =0
Enthalpy and derivatives wrt pressure, temperature and mass fraction.