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 32 of file NSEnthalpyAux.h.

Constructor & Destructor Documentation

◆ NSEnthalpyAux()

NSEnthalpyAux::NSEnthalpyAux ( const InputParameters &  parameters)

Definition at line 31 of file NSEnthalpyAux.C.

32  : AuxKernel(parameters),
33  _rho(coupledValue(NS::density)),
34  _rhoE(coupledValue(NS::total_energy)),
35  _pressure(coupledValue(NS::pressure))
36 {
37 }
const VariableValue & _rhoE
Definition: NSEnthalpyAux.h:41
const std::string density
Definition: NS.h:17
const VariableValue & _rho
Definition: NSEnthalpyAux.h:40
const VariableValue & _pressure
Definition: NSEnthalpyAux.h:42
const std::string pressure
Definition: NS.h:26
const std::string total_energy
Definition: NS.h:21

Member Function Documentation

◆ computeValue()

Real NSEnthalpyAux::computeValue ( )
protectedvirtual

Definition at line 40 of file NSEnthalpyAux.C.

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

Member Data Documentation

◆ _pressure

const VariableValue& NSEnthalpyAux::_pressure
protected

Definition at line 42 of file NSEnthalpyAux.h.

Referenced by computeValue().

◆ _rho

const VariableValue& NSEnthalpyAux::_rho
protected

Definition at line 40 of file NSEnthalpyAux.h.

Referenced by computeValue().

◆ _rhoE

const VariableValue& NSEnthalpyAux::_rhoE
protected

Definition at line 41 of file NSEnthalpyAux.h.

Referenced by computeValue().


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