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

Nodal auxiliary variable for enthalpy,. More...

#include <EnthalpyAux.h>

Inheritance diagram for EnthalpyAux:
[legend]

Public Member Functions

 EnthalpyAux (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeValue ()
 

Protected Attributes

const VariableValue & _rho
 
const VariableValue & _rho_et
 
const VariableValue & _pressure
 

Detailed Description

Nodal auxiliary variable for enthalpy,.

H = E + p/rho

Definition at line 27 of file EnthalpyAux.h.

Constructor & Destructor Documentation

◆ EnthalpyAux()

EnthalpyAux::EnthalpyAux ( const InputParameters &  parameters)

Definition at line 26 of file EnthalpyAux.C.

27  : AuxKernel(parameters),
28  _rho(coupledValue("rho")),
29  _rho_et(coupledValue("rho_et")),
30  _pressure(coupledValue("pressure"))
31 {
32 }
const VariableValue & _pressure
Definition: EnthalpyAux.h:37
const VariableValue & _rho_et
Definition: EnthalpyAux.h:36
const VariableValue & _rho
Definition: EnthalpyAux.h:35

Member Function Documentation

◆ computeValue()

Real EnthalpyAux::computeValue ( )
protectedvirtual

Definition at line 35 of file EnthalpyAux.C.

36 {
37  return (_rho_et[_qp] + _pressure[_qp]) / _rho[_qp];
38 }
const VariableValue & _pressure
Definition: EnthalpyAux.h:37
const VariableValue & _rho_et
Definition: EnthalpyAux.h:36
const VariableValue & _rho
Definition: EnthalpyAux.h:35

Member Data Documentation

◆ _pressure

const VariableValue& EnthalpyAux::_pressure
protected

Definition at line 37 of file EnthalpyAux.h.

Referenced by computeValue().

◆ _rho

const VariableValue& EnthalpyAux::_rho
protected

Definition at line 35 of file EnthalpyAux.h.

Referenced by computeValue().

◆ _rho_et

const VariableValue& EnthalpyAux::_rho_et
protected

Definition at line 36 of file EnthalpyAux.h.

Referenced by computeValue().


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