www.mooseframework.org
SinglePhaseFluidProperties.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 SINGLEPHASEFLUIDPROPERTIES_H
9 #define SINGLEPHASEFLUIDPROPERTIES_H
10 
11 #include "FluidProperties.h"
12 
14 
15 template <>
17 
22 {
23 public:
24  SinglePhaseFluidProperties(const InputParameters & parameters);
26 
28  virtual Real pressure(Real v, Real u) const = 0;
30  virtual Real temperature(Real v, Real u) const = 0;
32  virtual Real c(Real v, Real u) const = 0;
34  virtual Real cp(Real v, Real u) const = 0;
36  virtual Real cv(Real v, Real u) const = 0;
38  virtual Real gamma(Real v, Real u) const;
40  virtual Real mu(Real v, Real u) const = 0;
42  virtual Real k(Real v, Real u) const = 0;
44  virtual Real s(Real v, Real u) const = 0;
46  virtual void s_from_h_p(Real h, Real p, Real & s, Real & ds_dh, Real & ds_dp) const = 0;
48  virtual void
49  dp_duv(Real v, Real u, Real & dp_dv, Real & dp_du, Real & dT_dv, Real & dT_du) const = 0;
50 
52  virtual void rho_e_ps(Real pressure, Real entropy, Real & rho, Real & e) const = 0;
53  virtual void rho_e_dps(Real pressure,
54  Real entropy,
55  Real & rho,
56  Real & drho_dp,
57  Real & drho_ds,
58  Real & e,
59  Real & de_dp,
60  Real & de_ds) const = 0;
61 
63  virtual Real rho(Real pressure, Real temperature) const = 0;
65  virtual void
66  rho_dpT(Real pressure, Real temperature, Real & rho, Real & drho_dp, Real & drho_dT) const = 0;
68  virtual void rho_e(Real pressure, Real temperature, Real & rho, Real & e) const = 0;
69 
71  virtual Real e(Real pressure, Real rho) const = 0;
73  virtual void e_dprho(Real pressure, Real rho, Real & e, Real & de_dp, Real & de_drho) const = 0;
74 
76  virtual Real h(Real p, Real T) const = 0;
78  virtual void
79  h_dpT(Real pressure, Real temperature, Real & h, Real & dh_dp, Real & dh_dT) const = 0;
80 
82  virtual Real p_from_h_s(Real h, Real s) const = 0;
84  virtual Real dpdh_from_h_s(Real h, Real s) const = 0;
86  virtual Real dpds_from_h_s(Real h, Real s) const = 0;
87 
89  virtual Real g(Real v, Real e) const = 0;
90 
92  virtual Real beta(Real p, Real T) const = 0;
93 };
94 
95 #endif /* SINGLEPHASEFLUIDPROPERTIES_H */
virtual Real s(Real v, Real u) const =0
Specific entropy [ J / kg K ].
virtual void rho_e(Real pressure, Real temperature, Real &rho, Real &e) const =0
Computes density and internal energy from pressure and temperature.
virtual Real dpdh_from_h_s(Real h, Real s) const =0
Derivative of pressure wrt specific enthalpy.
virtual Real temperature(Real v, Real u) const =0
Temperature as a function of specific internal energy and specific volume.
virtual Real c(Real v, Real u) const =0
Sound speed.
SinglePhaseFluidProperties(const InputParameters &parameters)
virtual void rho_dpT(Real pressure, Real temperature, Real &rho, Real &drho_dp, Real &drho_dT) const =0
Computes density from pressure and temperature and its derivatives w.r.t pressure and temperature...
virtual Real cp(Real v, Real u) const =0
Specific heat.
virtual Real beta(Real p, Real T) const =0
Thermal expansion coefficient.
virtual void dp_duv(Real v, Real u, Real &dp_dv, Real &dp_du, Real &dT_dv, Real &dT_du) const =0
The derivative of pressure wrt specific volume and specific internal energy.
virtual Real rho(Real pressure, Real temperature) const =0
Computes density from pressure and temperature.
virtual Real k(Real v, Real u) const =0
Thermal conductivity [W / m K].
virtual void rho_e_ps(Real pressure, Real entropy, Real &rho, Real &e) const =0
Compute internal energy and density from specific entropy and pressure.
Common class for single phase fluid properties.
virtual Real mu(Real v, Real u) const =0
Dynamic viscosity [Pa s].
virtual Real h(Real p, Real T) const =0
Computes specific enthalpy.
virtual Real cv(Real v, Real u) const =0
Isochoric specific heat.
InputParameters validParams< SinglePhaseFluidProperties >()
virtual Real p_from_h_s(Real h, Real s) const =0
Pressure as a function of specific enthalpy and specific entropy.
virtual Real g(Real v, Real e) const =0
Gibbs free energy.
virtual void h_dpT(Real pressure, Real temperature, Real &h, Real &dh_dp, Real &dh_dT) const =0
Compute enthalpy and its derivatives.
virtual void s_from_h_p(Real h, Real p, Real &s, Real &ds_dh, Real &ds_dp) const =0
Specific entropy from enthalpy and pressure.
virtual Real gamma(Real v, Real u) const
Compute the ratio of specific heats.
virtual Real dpds_from_h_s(Real h, Real s) const =0
Derivative of pressure wrt specific entropy.
virtual Real pressure(Real v, Real u) const =0
Pressure as a function of specific internal energy and specific volume.
virtual void rho_e_dps(Real pressure, Real entropy, Real &rho, Real &drho_dp, Real &drho_ds, Real &e, Real &de_dp, Real &de_ds) const =0
virtual void e_dprho(Real pressure, Real rho, Real &e, Real &de_dp, Real &de_drho) const =0
Computes internal energy and its derivatives of internal energy w.r.t. pressure and density...
virtual Real e(Real pressure, Real rho) const =0
Computes internal energy from pressure and density.