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