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

An aux kernel for calculating entropy production. More...

#include <CNSFVEntropyProductionAux.h>

Inheritance diagram for CNSFVEntropyProductionAux:
[legend]

Public Member Functions

 CNSFVEntropyProductionAux (const InputParameters &parameters)
 
virtual ~CNSFVEntropyProductionAux ()
 

Protected Member Functions

virtual Real computeValue ()
 

Protected Attributes

const SinglePhaseFluidProperties_fp
 
const MaterialProperty< Real > & _rho
 
const MaterialProperty< Real > & _pres
 
const MaterialProperty< Real > & _gamma
 
Real _inf_rho
 
Real _inf_pres
 

Detailed Description

An aux kernel for calculating entropy production.

Definition at line 22 of file CNSFVEntropyProductionAux.h.

Constructor & Destructor Documentation

CNSFVEntropyProductionAux::CNSFVEntropyProductionAux ( const InputParameters &  parameters)

Definition at line 28 of file CNSFVEntropyProductionAux.C.

29  : AuxKernel(parameters),
30  _fp(getUserObject<SinglePhaseFluidProperties>("fluid_properties")),
31  _rho(getMaterialProperty<Real>("rho")),
32  _pres(getMaterialProperty<Real>("pressure")),
33  _gamma(getMaterialProperty<Real>("gamma")),
34  _inf_rho(getParam<Real>("infinity_density")),
35  _inf_pres(getParam<Real>("infinity_pressure"))
36 {
37 }
const SinglePhaseFluidProperties & _fp
const MaterialProperty< Real > & _gamma
const MaterialProperty< Real > & _rho
const MaterialProperty< Real > & _pres
virtual CNSFVEntropyProductionAux::~CNSFVEntropyProductionAux ( )
inlinevirtual

Definition at line 26 of file CNSFVEntropyProductionAux.h.

26 {}

Member Function Documentation

Real CNSFVEntropyProductionAux::computeValue ( )
protectedvirtual

Definition at line 40 of file CNSFVEntropyProductionAux.C.

Referenced by ~CNSFVEntropyProductionAux().

41 {
42  return (_pres[_qp] / _inf_pres) * std::pow(_inf_rho / _rho[_qp], _gamma[_qp]) - 1.;
43 }
const MaterialProperty< Real > & _gamma
ExpressionBuilder::EBTerm pow(const ExpressionBuilder::EBTerm &left, T exponent)
const MaterialProperty< Real > & _rho
const MaterialProperty< Real > & _pres

Member Data Documentation

const SinglePhaseFluidProperties& CNSFVEntropyProductionAux::_fp
protected

Definition at line 31 of file CNSFVEntropyProductionAux.h.

const MaterialProperty<Real>& CNSFVEntropyProductionAux::_gamma
protected

Definition at line 35 of file CNSFVEntropyProductionAux.h.

Referenced by computeValue().

Real CNSFVEntropyProductionAux::_inf_pres
protected

Definition at line 38 of file CNSFVEntropyProductionAux.h.

Referenced by computeValue().

Real CNSFVEntropyProductionAux::_inf_rho
protected

Definition at line 37 of file CNSFVEntropyProductionAux.h.

Referenced by computeValue().

const MaterialProperty<Real>& CNSFVEntropyProductionAux::_pres
protected

Definition at line 34 of file CNSFVEntropyProductionAux.h.

Referenced by computeValue().

const MaterialProperty<Real>& CNSFVEntropyProductionAux::_rho
protected

Definition at line 33 of file CNSFVEntropyProductionAux.h.

Referenced by computeValue().


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