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

#include <NSEntropyError.h>

Inheritance diagram for NSEntropyError:
[legend]

Public Member Functions

 NSEntropyError (const InputParameters &parameters)
 
virtual Real getValue ()
 

Protected Member Functions

virtual Real computeQpIntegral ()
 

Protected Attributes

Real _rho_infty
 
Real _p_infty
 
const VariableValue & _rho
 
const VariableValue & _pressure
 
const IdealGasFluidProperties_fp
 

Detailed Description

Definition at line 20 of file NSEntropyError.h.

Constructor & Destructor Documentation

NSEntropyError::NSEntropyError ( const InputParameters &  parameters)

Definition at line 30 of file NSEntropyError.C.

31  : ElementIntegralPostprocessor(parameters),
32  _rho_infty(getParam<Real>("rho_infty")),
33  _p_infty(getParam<Real>("p_infty")),
34  _rho(coupledValue(NS::density)),
35  _pressure(coupledValue(NS::pressure)),
36  _fp(getUserObject<IdealGasFluidProperties>("fluid_properties"))
37 {
38 }
const std::string density
Definition: NS.h:15
const VariableValue & _pressure
const VariableValue & _rho
const IdealGasFluidProperties & _fp
const std::string pressure
Definition: NS.h:24

Member Function Documentation

Real NSEntropyError::computeQpIntegral ( )
protectedvirtual

Definition at line 47 of file NSEntropyError.C.

48 {
49  Real integrand = (_pressure[_qp] / _p_infty) * std::pow(_rho_infty / _rho[_qp], _fp.gamma()) - 1.;
50  return integrand * integrand;
51 }
const VariableValue & _pressure
const VariableValue & _rho
ExpressionBuilder::EBTerm pow(const ExpressionBuilder::EBTerm &left, T exponent)
virtual Real gamma(Real v=0., Real u=0.) const override
Compute the ratio of specific heats.
const IdealGasFluidProperties & _fp
Real NSEntropyError::getValue ( )
virtual

Definition at line 41 of file NSEntropyError.C.

42 {
43  return std::sqrt(ElementIntegralPostprocessor::getValue());
44 }

Member Data Documentation

const IdealGasFluidProperties& NSEntropyError::_fp
protected

Definition at line 36 of file NSEntropyError.h.

Referenced by computeQpIntegral().

Real NSEntropyError::_p_infty
protected

Definition at line 30 of file NSEntropyError.h.

Referenced by computeQpIntegral().

const VariableValue& NSEntropyError::_pressure
protected

Definition at line 33 of file NSEntropyError.h.

Referenced by computeQpIntegral().

const VariableValue& NSEntropyError::_rho
protected

Definition at line 32 of file NSEntropyError.h.

Referenced by computeQpIntegral().

Real NSEntropyError::_rho_infty
protected

Definition at line 29 of file NSEntropyError.h.

Referenced by computeQpIntegral().


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