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

Nodal auxiliary variable, for computing enthalpy at the nodes. More...

#include <NSEnthalpyAux.h>

Inheritance diagram for NSEnthalpyAux:
[legend]

Public Member Functions

 NSEnthalpyAux (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeValue ()
 

Protected Attributes

const VariableValue & _rho
 
const VariableValue & _rhoE
 
const VariableValue & _pressure
 

Detailed Description

Nodal auxiliary variable, for computing enthalpy at the nodes.

The total enthalpy is given by:

H = E + p/rho (primitive variables) H = (U_4 + P(U)) / U_0 (conserved variables)

where P(U) = (gamma-1)*(U_4 - (1/2)*(U_1^2 + U_2^2 + U_3^2)/U_0) is the pressure.

Definition at line 29 of file NSEnthalpyAux.h.

Constructor & Destructor Documentation

NSEnthalpyAux::NSEnthalpyAux ( const InputParameters &  parameters)

Definition at line 27 of file NSEnthalpyAux.C.

28  : AuxKernel(parameters),
29  _rho(coupledValue(NS::density)),
30  _rhoE(coupledValue(NS::total_energy)),
31  _pressure(coupledValue(NS::pressure))
32 {
33 }
const VariableValue & _rhoE
Definition: NSEnthalpyAux.h:38
const std::string density
Definition: NS.h:15
const VariableValue & _rho
Definition: NSEnthalpyAux.h:37
const VariableValue & _pressure
Definition: NSEnthalpyAux.h:39
const std::string pressure
Definition: NS.h:24
const std::string total_energy
Definition: NS.h:19

Member Function Documentation

Real NSEnthalpyAux::computeValue ( )
protectedvirtual

Definition at line 36 of file NSEnthalpyAux.C.

37 {
38  // H = (rho*E + P) / rho
39  return (_rhoE[_qp] + _pressure[_qp]) / _rho[_qp];
40 }
const VariableValue & _rhoE
Definition: NSEnthalpyAux.h:38
const VariableValue & _rho
Definition: NSEnthalpyAux.h:37
const VariableValue & _pressure
Definition: NSEnthalpyAux.h:39

Member Data Documentation

const VariableValue& NSEnthalpyAux::_pressure
protected

Definition at line 39 of file NSEnthalpyAux.h.

Referenced by computeValue().

const VariableValue& NSEnthalpyAux::_rho
protected

Definition at line 37 of file NSEnthalpyAux.h.

Referenced by computeValue().

const VariableValue& NSEnthalpyAux::_rhoE
protected

Definition at line 38 of file NSEnthalpyAux.h.

Referenced by computeValue().


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