www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CNSFVIdealGasTotalEnthalpyL2Error Class Reference

A PostProcessor object to calculate the L2 error of ideal gas total enthalpy for the CNS equations. More...

#include <CNSFVIdealGasTotalEnthalpyL2Error.h>

Inheritance diagram for CNSFVIdealGasTotalEnthalpyL2Error:
[legend]

Public Member Functions

 CNSFVIdealGasTotalEnthalpyL2Error (const InputParameters &parameters)
 
virtual Real getValue ()
 Get the ideal gas total enthalpy L2 error. More...
 

Protected Member Functions

virtual Real computeQpIntegral ()
 

Protected Attributes

const SinglePhaseFluidProperties_fp
 
Real _inf_rho
 
Real _inf_uadv
 
Real _inf_vadv
 
Real _inf_wadv
 
Real _inf_pres
 
const MaterialProperty< Real > & _rho
 
const MaterialProperty< Real > & _enth
 
const MaterialProperty< Real > & _gamma
 

Detailed Description

A PostProcessor object to calculate the L2 error of ideal gas total enthalpy for the CNS equations.

Definition at line 24 of file CNSFVIdealGasTotalEnthalpyL2Error.h.

Constructor & Destructor Documentation

CNSFVIdealGasTotalEnthalpyL2Error::CNSFVIdealGasTotalEnthalpyL2Error ( const InputParameters &  parameters)

Definition at line 36 of file CNSFVIdealGasTotalEnthalpyL2Error.C.

38  : ElementIntegralPostprocessor(parameters),
39  _fp(getUserObject<SinglePhaseFluidProperties>("fluid_properties")),
40  _inf_rho(getParam<Real>("infinity_density")),
41  _inf_uadv(getParam<Real>("infinity_x_velocity")),
42  _inf_vadv(getParam<Real>("infinity_y_velocity")),
43  _inf_wadv(getParam<Real>("infinity_z_velocity")),
44  _inf_pres(getParam<Real>("infinity_pressure")),
45  _rho(getMaterialProperty<Real>("rho")),
46  _enth(getMaterialProperty<Real>("enthalpy")),
47  _gamma(getMaterialProperty<Real>("gamma"))
48 {
49 }

Member Function Documentation

Real CNSFVIdealGasTotalEnthalpyL2Error::computeQpIntegral ( )
protectedvirtual
Real CNSFVIdealGasTotalEnthalpyL2Error::getValue ( )
virtual

Get the ideal gas total enthalpy L2 error.

Definition at line 52 of file CNSFVIdealGasTotalEnthalpyL2Error.C.

53 {
54  return std::sqrt(ElementIntegralPostprocessor::getValue());
55 }

Member Data Documentation

const MaterialProperty<Real>& CNSFVIdealGasTotalEnthalpyL2Error::_enth
protected

Definition at line 46 of file CNSFVIdealGasTotalEnthalpyL2Error.h.

Referenced by computeQpIntegral().

const SinglePhaseFluidProperties& CNSFVIdealGasTotalEnthalpyL2Error::_fp
protected

Definition at line 37 of file CNSFVIdealGasTotalEnthalpyL2Error.h.

const MaterialProperty<Real>& CNSFVIdealGasTotalEnthalpyL2Error::_gamma
protected

Definition at line 47 of file CNSFVIdealGasTotalEnthalpyL2Error.h.

Referenced by computeQpIntegral().

Real CNSFVIdealGasTotalEnthalpyL2Error::_inf_pres
protected

Definition at line 43 of file CNSFVIdealGasTotalEnthalpyL2Error.h.

Referenced by computeQpIntegral().

Real CNSFVIdealGasTotalEnthalpyL2Error::_inf_rho
protected

Definition at line 39 of file CNSFVIdealGasTotalEnthalpyL2Error.h.

Referenced by computeQpIntegral().

Real CNSFVIdealGasTotalEnthalpyL2Error::_inf_uadv
protected

Definition at line 40 of file CNSFVIdealGasTotalEnthalpyL2Error.h.

Referenced by computeQpIntegral().

Real CNSFVIdealGasTotalEnthalpyL2Error::_inf_vadv
protected

Definition at line 41 of file CNSFVIdealGasTotalEnthalpyL2Error.h.

Referenced by computeQpIntegral().

Real CNSFVIdealGasTotalEnthalpyL2Error::_inf_wadv
protected

Definition at line 42 of file CNSFVIdealGasTotalEnthalpyL2Error.h.

Referenced by computeQpIntegral().

const MaterialProperty<Real>& CNSFVIdealGasTotalEnthalpyL2Error::_rho
protected

Definition at line 45 of file CNSFVIdealGasTotalEnthalpyL2Error.h.

Referenced by computeQpIntegral().


The documentation for this class was generated from the following files: