www.mooseframework.org
StiffenedGasFluidProperties.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 STIFFENEDGASFLUIDPROPERTIES_H
9 #define STIFFENEDGASFLUIDPROPERTIES_H
10 
12 
14 
15 template <>
17 
22 {
23 public:
24  StiffenedGasFluidProperties(const InputParameters & parameters);
26 
27  virtual Real pressure(Real v, Real u) const override;
28  virtual Real temperature(Real v, Real u) const override;
29  virtual Real c(Real v, Real u) const override;
30  virtual Real cp(Real v, Real u) const override;
31  virtual Real cv(Real v, Real u) const override;
32  virtual Real gamma(Real v, Real u) const override;
33  virtual Real mu(Real v, Real u) const override;
34  virtual Real k(Real v, Real u) const override;
35  virtual Real s(Real v, Real u) const override;
36  virtual void s_from_h_p(Real h, Real p, Real & s, Real & ds_dh, Real & ds_dp) const override;
37  virtual void
38  dp_duv(Real v, Real u, Real & dp_dv, Real & dp_du, Real & dT_dv, Real & dT_du) const override;
39 
41  virtual void rho_e_ps(Real pressure, Real entropy, Real & rho, Real & e) const override;
42  virtual void rho_e_dps(Real pressure,
43  Real entropy,
44  Real & rho,
45  Real & drho_dp,
46  Real & drho_ds,
47  Real & e,
48  Real & de_dp,
49  Real & de_ds) const override;
50 
51  virtual Real beta(Real p, Real T) const override;
52 
53  virtual void rho_e(Real pressure, Real temperature, Real & rho, Real & e) const override;
54  virtual Real rho(Real pressure, Real temperature) const override;
55  virtual void rho_dpT(
56  Real pressure, Real temperature, Real & rho, Real & drho_dp, Real & drho_dT) const override;
57  virtual void e_dpT(Real pressure, Real temperature, Real & e, Real & de_dp, Real & de_dT) const;
58 
59  virtual Real e(Real pressure, Real rho) const override;
60  virtual void
61  e_dprho(Real pressure, Real rho, Real & e, Real & de_dp, Real & de_drho) const override;
62 
63  virtual Real h(Real pressure, Real temperature) const override;
64  virtual void
65  h_dpT(Real pressure, Real temperature, Real & h, Real & dh_dp, Real & dh_dT) const override;
66 
67  virtual Real p_from_h_s(Real h, Real s) const override;
68  virtual Real dpdh_from_h_s(Real h, Real s) const override;
69  virtual Real dpds_from_h_s(Real h, Real s) const override;
70 
71  virtual Real g(Real v, Real e) const override;
72 
73  virtual Real c2_from_p_rho(Real pressure, Real rho) const;
74 
75 protected:
76  Real _gamma;
77  Real _cv;
78  Real _q;
79  Real _q_prime;
80  Real _p_inf;
81  Real _cp;
82 
83  Real _mu;
84  Real _k;
85 };
86 
87 #endif /* STIFFENEDGASFLUIDPROPERTIES_H */
virtual void s_from_h_p(Real h, Real p, Real &s, Real &ds_dh, Real &ds_dp) const override
Specific entropy from enthalpy and pressure.
virtual Real g(Real v, Real e) const override
Gibbs free energy.
virtual Real k(Real v, Real u) const override
Thermal conductivity [W / m K].
virtual Real cv(Real v, Real u) const override
Isochoric specific heat.
virtual void e_dpT(Real pressure, Real temperature, Real &e, Real &de_dp, Real &de_dT) const
virtual Real pressure(Real v, Real u) const override
Pressure as a function of specific internal energy and specific volume.
virtual Real mu(Real v, Real u) const override
Dynamic viscosity [Pa s].
virtual Real c(Real v, Real u) const override
Sound speed.
virtual Real temperature(Real v, Real u) const override
Temperature as a function of specific internal energy and specific volume.
virtual void h_dpT(Real pressure, Real temperature, Real &h, Real &dh_dp, Real &dh_dT) const override
Compute enthalpy and its derivatives.
virtual void dp_duv(Real v, Real u, Real &dp_dv, Real &dp_du, Real &dT_dv, Real &dT_du) const override
The derivative of pressure wrt specific volume and specific internal energy.
virtual void rho_dpT(Real pressure, Real temperature, Real &rho, Real &drho_dp, Real &drho_dT) const override
Computes density from pressure and temperature and its derivatives w.r.t pressure and temperature...
virtual Real dpdh_from_h_s(Real h, Real s) const override
Derivative of pressure wrt specific enthalpy.
virtual void rho_e_ps(Real pressure, Real entropy, Real &rho, Real &e) const override
Compute internal energy and density from specific entropy and pressure.
virtual void e_dprho(Real pressure, Real rho, Real &e, Real &de_dp, Real &de_drho) const override
Computes internal energy and its derivatives of internal energy w.r.t. pressure and density...
virtual Real p_from_h_s(Real h, Real s) const override
Pressure as a function of specific enthalpy and specific entropy.
virtual Real cp(Real v, Real u) const override
Specific heat.
Common class for single phase fluid properties.
virtual Real beta(Real p, Real T) const override
Thermal expansion coefficient.
virtual Real gamma(Real v, Real u) const override
Compute the ratio of specific heats.
virtual Real c2_from_p_rho(Real pressure, Real rho) const
Stiffened gas fluid properties.
InputParameters validParams< StiffenedGasFluidProperties >()
virtual Real h(Real pressure, Real temperature) const override
Computes specific enthalpy.
StiffenedGasFluidProperties(const InputParameters &parameters)
virtual Real rho(Real pressure, Real temperature) const override
Computes density from pressure and temperature.
virtual void rho_e(Real pressure, Real temperature, Real &rho, Real &e) const override
Computes density and internal energy from pressure and temperature.
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 override
virtual Real dpds_from_h_s(Real h, Real s) const override
Derivative of pressure wrt specific entropy.
virtual Real e(Real pressure, Real rho) const override
Computes internal energy from pressure and density.
virtual Real s(Real v, Real u) const override
Specific entropy [ J / kg K ].