www.mooseframework.org
SinglePhaseFluidProperties.C
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 
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params = validParams<FluidProperties>();
15 
16  return params;
17 }
18 
19 SinglePhaseFluidProperties::SinglePhaseFluidProperties(const InputParameters & parameters)
20  : FluidProperties(parameters)
21 {
22 }
23 
25 
26 Real
27 SinglePhaseFluidProperties::gamma(Real v, Real u) const
28 {
29  return cp(v, u) / cv(v, u);
30 }
SinglePhaseFluidProperties(const InputParameters &parameters)
virtual Real cp(Real v, Real u) const =0
Specific heat.
InputParameters validParams< SinglePhaseFluidProperties >()
virtual Real cv(Real v, Real u) const =0
Isochoric specific heat.
InputParameters validParams< FluidProperties >()
virtual Real gamma(Real v, Real u) const
Compute the ratio of specific heats.