www.mooseframework.org
CNSFVIdealGasTotalEnthalpyL2Error.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 CNSFVIDEALGASTOTALENTHALPYL2ERROR_H
9 #define CNSFVIDEALGASTOTALENTHALPYL2ERROR_H
10 
11 #include "ElementIntegralPostprocessor.h"
13 
14 // Forward Declarations
16 
17 template <>
19 
24 class CNSFVIdealGasTotalEnthalpyL2Error : public ElementIntegralPostprocessor
25 {
26 public:
27  CNSFVIdealGasTotalEnthalpyL2Error(const InputParameters & parameters);
28 
32  virtual Real getValue();
33 
34 protected:
35  virtual Real computeQpIntegral();
36 
38 
39  Real _inf_rho;
40  Real _inf_uadv;
41  Real _inf_vadv;
42  Real _inf_wadv;
43  Real _inf_pres;
44 
45  const MaterialProperty<Real> & _rho;
46  const MaterialProperty<Real> & _enth;
47  const MaterialProperty<Real> & _gamma;
48 };
49 
50 #endif
A PostProcessor object to calculate the L2 error of ideal gas total enthalpy for the CNS equations...
InputParameters validParams< CNSFVIdealGasTotalEnthalpyL2Error >()
Common class for single phase fluid properties.
CNSFVIdealGasTotalEnthalpyL2Error(const InputParameters &parameters)
virtual Real getValue()
Get the ideal gas total enthalpy L2 error.