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

Auxiliary kernel for computing the internal energy of the fluid. More...

#include <NSInternalEnergyAux.h>

Inheritance diagram for NSInternalEnergyAux:
[legend]

Public Member Functions

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

Protected Member Functions

virtual Real computeValue ()
 

Protected Attributes

const VariableValue & _rho
 
const VariableValue & _u_vel
 
const VariableValue & _v_vel
 
const VariableValue & _w_vel
 
const VariableValue & _rhoE
 

Detailed Description

Auxiliary kernel for computing the internal energy of the fluid.

Definition at line 23 of file NSInternalEnergyAux.h.

Constructor & Destructor Documentation

◆ NSInternalEnergyAux()

NSInternalEnergyAux::NSInternalEnergyAux ( const InputParameters &  parameters)

Definition at line 35 of file NSInternalEnergyAux.C.

36  : AuxKernel(parameters),
37  _rho(coupledValue(NS::density)),
38  _u_vel(coupledValue(NS::velocity_x)),
39  _v_vel(_mesh.dimension() >= 2 ? coupledValue(NS::velocity_y) : _zero),
40  _w_vel(_mesh.dimension() == 3 ? coupledValue(NS::velocity_z) : _zero),
41  _rhoE(coupledValue(NS::total_energy))
42 {
43 }

◆ ~NSInternalEnergyAux()

virtual NSInternalEnergyAux::~NSInternalEnergyAux ( )
inlinevirtual

Definition at line 28 of file NSInternalEnergyAux.h.

28 {}

Member Function Documentation

◆ computeValue()

Real NSInternalEnergyAux::computeValue ( )
protectedvirtual

Definition at line 46 of file NSInternalEnergyAux.C.

47 {
48  const RealVectorValue vel(_u_vel[_qp], _v_vel[_qp], _w_vel[_qp]);
49 
50  return _rhoE[_qp] / _rho[_qp] - 0.5 * vel.norm_sq();
51 }

Member Data Documentation

◆ _rho

const VariableValue& NSInternalEnergyAux::_rho
protected

Definition at line 33 of file NSInternalEnergyAux.h.

Referenced by computeValue().

◆ _rhoE

const VariableValue& NSInternalEnergyAux::_rhoE
protected

Definition at line 37 of file NSInternalEnergyAux.h.

Referenced by computeValue().

◆ _u_vel

const VariableValue& NSInternalEnergyAux::_u_vel
protected

Definition at line 34 of file NSInternalEnergyAux.h.

Referenced by computeValue().

◆ _v_vel

const VariableValue& NSInternalEnergyAux::_v_vel
protected

Definition at line 35 of file NSInternalEnergyAux.h.

Referenced by computeValue().

◆ _w_vel

const VariableValue& NSInternalEnergyAux::_w_vel
protected

Definition at line 36 of file NSInternalEnergyAux.h.

Referenced by computeValue().


The documentation for this class was generated from the following files:
NS::velocity_x
const std::string velocity_x
Definition: NS.h:22
NSInternalEnergyAux::_rhoE
const VariableValue & _rhoE
Definition: NSInternalEnergyAux.h:37
NS::velocity_y
const std::string velocity_y
Definition: NS.h:23
NSInternalEnergyAux::_rho
const VariableValue & _rho
Definition: NSInternalEnergyAux.h:33
NS::velocity_z
const std::string velocity_z
Definition: NS.h:24
NSInternalEnergyAux::_w_vel
const VariableValue & _w_vel
Definition: NSInternalEnergyAux.h:36
NS
Definition: NS.h:14
NS::density
const std::string density
Definition: NS.h:16
NSInternalEnergyAux::_v_vel
const VariableValue & _v_vel
Definition: NSInternalEnergyAux.h:35
NSInternalEnergyAux::_u_vel
const VariableValue & _u_vel
Definition: NSInternalEnergyAux.h:34
NS::total_energy
const std::string total_energy
Definition: NS.h:20