www.mooseframework.org
HEMFluidProperties.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
14 class HEMFluidProperties;
15 
16 template <>
17 InputParameters validParams<HEMFluidProperties>();
18 
23 {
24 public:
25  HEMFluidProperties(const InputParameters & parameters);
26 
32  virtual Real pressure(Real v, Real e) const = 0;
33 
37  virtual void
38  dp_duv(Real v, Real e, Real & dp_dv, Real & dp_de, Real & dT_dv, Real & dT_de) const = 0;
39 
45  virtual Real temperature(Real v, Real e) const = 0;
46 
52  virtual Real gamma(Real v, Real e) const = 0;
53 
59  virtual Real quality(Real v, Real e) const = 0;
60 
66  virtual Real quality_Tsat_h(Real Tsat, Real h) const = 0;
67 
73  virtual Real c(Real v, Real e) const = 0;
74 
81  virtual Real cp(Real v, Real e) const = 0;
82 
89  virtual Real cv(Real v, Real e) const = 0;
90 
97  virtual Real beta(Real pressure, Real temperature) const = 0;
98 
105  virtual Real mu(Real v, Real e) const = 0;
106 
113  virtual Real k(Real v, Real e) const = 0;
114 
121  virtual Real alpha_vapor(Real v, Real e) const = 0;
122 
126  virtual Real dT_dP_saturation(Real pressure) const = 0;
127 
134  virtual Real rho(Real pressure, Real temperature, Real quality) const = 0;
135 
141  virtual void
142  rho_dpT(Real pressure, Real temperature, Real & rho, Real & drho_dp, Real & drho_dT) const = 0;
143 
149  virtual void rho_e(Real pressure, Real temperature, Real & rho, Real & e) const = 0;
150 
156  virtual Real e(Real pressure, Real rho) const = 0;
157 
162  virtual Real saturation_T(Real pressure) const = 0;
163 
168  virtual Real saturation_P(Real temperature) const = 0;
169 
174  virtual Real surfaceTension(Real temperature) const = 0;
175 
182  virtual Real h(Real pressure, Real temperature, Real quality) const = 0;
183 
189  virtual void
190  h_dpT(Real pressure, Real temperature, Real & h, Real & dh_dp, Real & dh_dT) const = 0;
191 
195  virtual Real p_critical() const = 0;
196 
200  virtual void h_lat(Real temperature, Real & hf, Real & hg, Real & hfg) const = 0;
201 
207  virtual Real v_ph(Real pressure, Real enthalpy) const = 0;
208 
214  virtual Real molarMass() const;
215 
220  virtual Real criticalPressure() const;
221 
226  virtual Real criticalTemperature() const;
227 
232  virtual Real criticalDensity() const;
233 
238  virtual Real criticalInternalEnergy() const;
239 
244  virtual Real triplePointPressure() const;
245 
250  virtual Real triplePointTemperature() const;
251 };
252 
HEMFluidProperties::cp
virtual Real cp(Real v, Real e) const =0
Constant pressure specific heat capacity as a function of specific volume and specific internal energ...
HEMFluidProperties::h_lat
virtual void h_lat(Real temperature, Real &hf, Real &hg, Real &hfg) const =0
Latent enthalpy as a function of temperature.
HEMFluidProperties::dT_dP_saturation
virtual Real dT_dP_saturation(Real pressure) const =0
dT/dp along the saturation line
HEMFluidProperties::rho
virtual Real rho(Real pressure, Real temperature, Real quality) const =0
Density as a function of pressure and temperature.
validParams< HEMFluidProperties >
InputParameters validParams< HEMFluidProperties >()
Definition: HEMFluidProperties.C:15
HEMFluidProperties::e
virtual Real e(Real pressure, Real rho) const =0
Internal energy as a function of pressure and density.
HEMFluidProperties::h
virtual Real h(Real pressure, Real temperature, Real quality) const =0
Enthalpy.
HEMFluidProperties
Base class for fluid properties used with HEM.
Definition: HEMFluidProperties.h:22
HEMFluidProperties::triplePointTemperature
virtual Real triplePointTemperature() const
Triple point temperature.
Definition: HEMFluidProperties.C:64
HEMFluidProperties::gamma
virtual Real gamma(Real v, Real e) const =0
Ratio of specific heats.
HEMFluidProperties::pressure
virtual Real pressure(Real v, Real e) const =0
Pressure as a function of specific internal energy and specific volume.
HEMFluidProperties::alpha_vapor
virtual Real alpha_vapor(Real v, Real e) const =0
Vapor void fraction as a function of specific volume and specific internal energy.
HEMFluidProperties::rho_e
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.
FluidProperties.h
NS::enthalpy
const std::string enthalpy
Definition: NS.h:27
HEMFluidProperties::p_critical
virtual Real p_critical() const =0
Critical pressure.
HEMFluidProperties::rho_dpT
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.
HEMFluidProperties::beta
virtual Real beta(Real pressure, Real temperature) const =0
Thermal expansion coefficient [1/K] as a function of pressure and temperature.
HEMFluidProperties::HEMFluidProperties
HEMFluidProperties(const InputParameters &parameters)
Definition: HEMFluidProperties.C:23
HEMFluidProperties::h_dpT
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.
HEMFluidProperties::mu
virtual Real mu(Real v, Real e) const =0
Dynamic viscosity, [Pa-s], as a function of specific volume and specific internal energy.
HEMFluidProperties::criticalPressure
virtual Real criticalPressure() const
Critical pressure.
Definition: HEMFluidProperties.C:34
HEMFluidProperties::v_ph
virtual Real v_ph(Real pressure, Real enthalpy) const =0
Specific volume as a function of pressure and enthalpy.
HEMFluidProperties::quality_Tsat_h
virtual Real quality_Tsat_h(Real Tsat, Real h) const =0
Quality as a function of saturation temperature and enthalpy.
HEMFluidProperties::saturation_T
virtual Real saturation_T(Real pressure) const =0
Saturation temperature.
HEMFluidProperties::c
virtual Real c(Real v, Real e) const =0
Sound speed as a function of specific volume and specific internal energy.
HEMFluidProperties::quality
virtual Real quality(Real v, Real e) const =0
Quality as a function of specific volume and specific internal energy.
HEMFluidProperties::cv
virtual Real cv(Real v, Real e) const =0
Constant volume specific heat capacity as a function of specific volume and specific internal energy.
HEMFluidProperties::criticalDensity
virtual Real criticalDensity() const
Critical density.
Definition: HEMFluidProperties.C:46
FluidProperties
Definition: FluidProperties.h:28
HEMFluidProperties::temperature
virtual Real temperature(Real v, Real e) const =0
Temperature as a function of specific internal energy and specific volume.
HEMFluidProperties::criticalTemperature
virtual Real criticalTemperature() const
Critical temperature.
Definition: HEMFluidProperties.C:40
HEMFluidProperties::surfaceTension
virtual Real surfaceTension(Real temperature) const =0
Surface Tension.
HEMFluidProperties::molarMass
virtual Real molarMass() const
Molar mass [kg/mol].
Definition: HEMFluidProperties.C:29
HEMFluidProperties::k
virtual Real k(Real v, Real e) const =0
Thermal conductivity, [W/K-m], as a function of specific volume and specific internal energy.
HEMFluidProperties::dp_duv
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.
HEMFluidProperties::criticalInternalEnergy
virtual Real criticalInternalEnergy() const
Critical specific internal energy.
Definition: HEMFluidProperties.C:52
HEMFluidProperties::triplePointPressure
virtual Real triplePointPressure() const
Triple point pressure.
Definition: HEMFluidProperties.C:58
HEMFluidProperties::saturation_P
virtual Real saturation_P(Real temperature) const =0
Saturation pressure.