https://mooseframework.inl.gov
HEMFluidProperties.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "FluidProperties.h"
13 
18 {
19 public:
21 
23 
29  virtual Real pressure(Real v, Real e) const = 0;
30 
34  virtual void
35  dp_duv(Real v, Real e, Real & dp_dv, Real & dp_de, Real & dT_dv, Real & dT_de) const = 0;
36 
42  virtual Real temperature(Real v, Real e) const = 0;
43 
49  virtual Real gamma(Real v, Real e) const = 0;
50 
56  virtual Real quality(Real v, Real e) const = 0;
57 
63  virtual Real quality_Tsat_h(Real Tsat, Real h) const = 0;
64 
70  virtual Real c(Real v, Real e) const = 0;
71 
78  virtual Real cp(Real v, Real e) const = 0;
79 
86  virtual Real cv(Real v, Real e) const = 0;
87 
94  virtual Real beta(Real pressure, Real temperature) const = 0;
95 
102  virtual Real mu(Real v, Real e) const = 0;
103 
110  virtual Real k(Real v, Real e) const = 0;
111 
118  virtual Real alpha_vapor(Real v, Real e) const = 0;
119 
123  virtual Real dT_dP_saturation(Real pressure) const = 0;
124 
131  virtual Real rho(Real pressure, Real temperature, Real quality) const = 0;
132 
138  virtual void
139  rho_dpT(Real pressure, Real temperature, Real & rho, Real & drho_dp, Real & drho_dT) const = 0;
140 
146  virtual void rho_e(Real pressure, Real temperature, Real & rho, Real & e) const = 0;
147 
153  virtual Real e(Real pressure, Real rho) const = 0;
154 
159  virtual Real saturation_T(Real pressure) const = 0;
160 
165  virtual Real saturation_P(Real temperature) const = 0;
166 
171  virtual Real surfaceTension(Real temperature) const = 0;
172 
179  virtual Real h(Real pressure, Real temperature, Real quality) const = 0;
180 
186  virtual void
187  h_dpT(Real pressure, Real temperature, Real & h, Real & dh_dp, Real & dh_dT) const = 0;
188 
192  virtual Real p_critical() const = 0;
193 
197  virtual void h_lat(Real temperature, Real & hf, Real & hg, Real & hfg) const = 0;
198 
204  virtual Real v_ph(Real pressure, Real enthalpy) const = 0;
205 
211  virtual Real molarMass() const;
212 
217  virtual Real criticalPressure() const;
218 
223  virtual Real criticalTemperature() const;
224 
229  virtual Real criticalDensity() const;
230 
235  virtual Real criticalInternalEnergy() const;
236 
241  virtual Real triplePointPressure() const;
242 
247  virtual Real triplePointTemperature() const;
248 };
virtual Real quality(Real v, Real e) const =0
Quality as a function of specific volume and specific internal energy.
virtual Real mu(Real v, Real e) const =0
Dynamic viscosity, [Pa-s], as a function of specific volume and specific internal energy...
virtual Real temperature(Real v, Real e) const =0
Temperature as a function of specific internal energy and specific volume.
virtual void dp_duv(Real v, Real e, Real &dp_dv, Real &dp_de, Real &dT_dv, Real &dT_de) const =0
Derivative of pressure w.r.t internal energy and specific volume.
virtual void h_dpT(Real pressure, Real temperature, Real &h, Real &dh_dp, Real &dh_dT) const =0
Derivative of Enthalpy as a function of temperature and pressure.
virtual Real criticalPressure() const
Critical pressure.
virtual Real triplePointPressure() const
Triple point pressure.
virtual Real molarMass() const
Molar mass [kg/mol].
virtual Real criticalInternalEnergy() const
Critical specific internal energy.
virtual Real saturation_T(Real pressure) const =0
Saturation temperature.
static InputParameters validParams()
virtual Real pressure(Real v, Real e) const =0
Pressure as a function of specific internal energy and specific volume.
Base class for fluid properties used with HEM.
virtual Real c(Real v, Real e) const =0
Sound speed as a function of specific volume and specific internal energy.
virtual Real quality_Tsat_h(Real Tsat, Real h) const =0
Quality as a function of saturation temperature and enthalpy.
virtual void rho_e(Real pressure, Real temperature, Real &rho, Real &e) const =0
Density and internal energy as a function of pressure and temperature.
virtual void h_lat(Real temperature, Real &hf, Real &hg, Real &hfg) const =0
Latent enthalpy as a function of temperature.
virtual Real alpha_vapor(Real v, Real e) const =0
Vapor void fraction as a function of specific volume and specific internal energy.
virtual Real cv(Real v, Real e) const =0
Constant volume specific heat capacity as a function of specific volume and specific internal energy...
virtual Real criticalTemperature() const
Critical temperature.
virtual Real e(Real pressure, Real rho) const =0
Internal energy as a function of pressure and density.
virtual Real beta(Real pressure, Real temperature) const =0
Thermal expansion coefficient [1/K] as a function of pressure and temperature.
virtual Real k(Real v, Real e) const =0
Thermal conductivity, [W/K-m], as a function of specific volume and specific internal energy...
virtual Real surfaceTension(Real temperature) const =0
Surface Tension.
virtual Real rho(Real pressure, Real temperature, Real quality) const =0
Density as a function of pressure and temperature.
virtual Real triplePointTemperature() const
Triple point temperature.
virtual Real gamma(Real v, Real e) const =0
Ratio of specific heats.
virtual Real p_critical() const =0
Critical pressure.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string v
Definition: NS.h:84
HEMFluidProperties(const InputParameters &parameters)
virtual void rho_dpT(Real pressure, Real temperature, Real &rho, Real &drho_dp, Real &drho_dT) const =0
Density derivative as a function of pressure and temperature.
virtual Real saturation_P(Real temperature) const =0
Saturation pressure.
virtual Real h(Real pressure, Real temperature, Real quality) const =0
Enthalpy.
const InputParameters & parameters() const
virtual Real v_ph(Real pressure, Real enthalpy) const =0
Specific volume as a function of pressure and enthalpy.
virtual Real cp(Real v, Real e) const =0
Constant pressure specific heat capacity as a function of specific volume and specific internal energ...
virtual Real dT_dP_saturation(Real pressure) const =0
dT/dp along the saturation line
virtual Real criticalDensity() const
Critical density.