www.mooseframework.org
IdealGasFluidProperties.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 IDEALGASFLUIDPROPERTIES_H
9 #define IDEALGASFLUIDPROPERTIES_H
10 
12 
14 
15 template <>
16 InputParameters validParams<IdealGasFluidProperties>();
17 
22 {
23 public:
24  IdealGasFluidProperties(const InputParameters & parameters);
25  virtual ~IdealGasFluidProperties();
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 = 0., Real u = 0.) const override;
31  virtual Real cv(Real v = 0., Real u = 0.) const override;
32  virtual Real gamma(Real v = 0., Real u = 0.) 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 protected:
74  Real _gamma;
75  Real _R;
76  Real _cv;
77  Real _cp;
78 
79  Real _beta;
80  Real _mu;
81  Real _k;
82 };
83 
84 #endif /* IDEALGASFLUIDPROPERTIES_H */
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 Real k(Real v, Real u) const override
Thermal conductivity [W / m K].
virtual Real dpdh_from_h_s(Real h, Real s) const override
Derivative of pressure wrt specific enthalpy.
virtual Real g(Real v, Real e) const override
Gibbs free energy.
virtual Real h(Real pressure, Real temperature) const override
Computes specific enthalpy.
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 void rho_e_ps(Real pressure, Real entropy, Real &rho, Real &e) const override
Compute internal energy and density from specific entropy and pressure.
InputParameters validParams< IdealGasFluidProperties >()
virtual Real s(Real v, Real u) const override
Specific entropy [ J / kg K ].
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 cv(Real v=0., Real u=0.) const override
Isochoric specific heat.
IdealGasFluidProperties(const InputParameters &parameters)
virtual Real cp(Real v=0., Real u=0.) const override
Specific heat.
virtual Real p_from_h_s(Real h, Real s) const override
Pressure as a function of specific enthalpy and specific entropy.
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 c(Real v, Real u) const override
Sound speed.
Common class for single phase fluid properties.
virtual void h_dpT(Real pressure, Real temperature, Real &h, Real &dh_dp, Real &dh_dT) const override
Compute enthalpy and its derivatives.
virtual Real beta(Real p, Real T) const override
Thermal expansion coefficient.
virtual void e_dpT(Real pressure, Real temperature, Real &e, Real &de_dp, Real &de_dT) const
virtual Real temperature(Real v, Real u) const override
Temperature as a function of specific internal energy and specific volume.
virtual Real gamma(Real v=0., Real u=0.) const override
Compute the ratio of specific heats.
virtual Real mu(Real v, Real u) const override
Dynamic viscosity [Pa s].
Ideal gas fluid properties.
virtual Real pressure(Real v, Real u) const override
Pressure as a function of specific internal energy and specific volume.
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 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...