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

Computes specific internal energy. More...

#include <SpecificInternalEnergyAux.h>

Inheritance diagram for SpecificInternalEnergyAux:
[legend]

Public Member Functions

 SpecificInternalEnergyAux (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeValue ()
 

Protected Attributes

const VariableValue & _rho
 
const VariableValue & _rho_u
 
const VariableValue & _rho_v
 
const VariableValue & _rho_w
 
const VariableValue & _rho_et
 

Detailed Description

Computes specific internal energy.

Definition at line 23 of file SpecificInternalEnergyAux.h.

Constructor & Destructor Documentation

◆ SpecificInternalEnergyAux()

SpecificInternalEnergyAux::SpecificInternalEnergyAux ( const InputParameters &  parameters)

Definition at line 27 of file SpecificInternalEnergyAux.C.

28  : AuxKernel(parameters),
29  _rho(coupledValue("rho")),
30  _rho_u(coupledValue("rho_u")),
31  _rho_v(coupledValue("rho_v")),
32  _rho_w(coupledValue("rho_w")),
33  _rho_et(coupledValue("rho_et"))
34 {
35 }

Member Function Documentation

◆ computeValue()

Real SpecificInternalEnergyAux::computeValue ( )
protectedvirtual

Definition at line 38 of file SpecificInternalEnergyAux.C.

39 {
40  RealVectorValue rhou_vec(_rho_u[_qp], _rho_v[_qp], _rho_w[_qp]);
41  return (_rho_et[_qp] - 0.5 * rhou_vec * rhou_vec / _rho[_qp]) / _rho[_qp];
42 }

Member Data Documentation

◆ _rho

const VariableValue& SpecificInternalEnergyAux::_rho
protected

Definition at line 31 of file SpecificInternalEnergyAux.h.

Referenced by computeValue().

◆ _rho_et

const VariableValue& SpecificInternalEnergyAux::_rho_et
protected

Definition at line 35 of file SpecificInternalEnergyAux.h.

Referenced by computeValue().

◆ _rho_u

const VariableValue& SpecificInternalEnergyAux::_rho_u
protected

Definition at line 32 of file SpecificInternalEnergyAux.h.

Referenced by computeValue().

◆ _rho_v

const VariableValue& SpecificInternalEnergyAux::_rho_v
protected

Definition at line 33 of file SpecificInternalEnergyAux.h.

Referenced by computeValue().

◆ _rho_w

const VariableValue& SpecificInternalEnergyAux::_rho_w
protected

Definition at line 34 of file SpecificInternalEnergyAux.h.

Referenced by computeValue().


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