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 21 of file NSInternalEnergyAux.h.

Constructor & Destructor Documentation

NSInternalEnergyAux::NSInternalEnergyAux ( const InputParameters &  parameters)

Definition at line 31 of file NSInternalEnergyAux.C.

32  : AuxKernel(parameters),
33  _rho(coupledValue(NS::density)),
34  _u_vel(coupledValue(NS::velocity_x)),
35  _v_vel(_mesh.dimension() >= 2 ? coupledValue(NS::velocity_y) : _zero),
36  _w_vel(_mesh.dimension() == 3 ? coupledValue(NS::velocity_z) : _zero),
37  _rhoE(coupledValue(NS::total_energy))
38 {
39 }
Definition: NS.h:13
const std::string velocity_z
Definition: NS.h:23
const std::string density
Definition: NS.h:15
const VariableValue & _rho
const std::string velocity_x
Definition: NS.h:21
const VariableValue & _u_vel
const VariableValue & _w_vel
const std::string velocity_y
Definition: NS.h:22
const VariableValue & _v_vel
const std::string total_energy
Definition: NS.h:19
const VariableValue & _rhoE
virtual NSInternalEnergyAux::~NSInternalEnergyAux ( )
inlinevirtual

Definition at line 26 of file NSInternalEnergyAux.h.

26 {}

Member Function Documentation

Real NSInternalEnergyAux::computeValue ( )
protectedvirtual

Definition at line 42 of file NSInternalEnergyAux.C.

Referenced by ~NSInternalEnergyAux().

43 {
44  const RealVectorValue vel(_u_vel[_qp], _v_vel[_qp], _w_vel[_qp]);
45 
46  return _rhoE[_qp] / _rho[_qp] - 0.5 * vel.norm_sq();
47 }
const VariableValue & _rho
const VariableValue & _u_vel
const VariableValue & _w_vel
const VariableValue & _v_vel
const VariableValue & _rhoE

Member Data Documentation

const VariableValue& NSInternalEnergyAux::_rho
protected

Definition at line 31 of file NSInternalEnergyAux.h.

Referenced by computeValue().

const VariableValue& NSInternalEnergyAux::_rhoE
protected

Definition at line 35 of file NSInternalEnergyAux.h.

Referenced by computeValue().

const VariableValue& NSInternalEnergyAux::_u_vel
protected

Definition at line 32 of file NSInternalEnergyAux.h.

Referenced by computeValue().

const VariableValue& NSInternalEnergyAux::_v_vel
protected

Definition at line 33 of file NSInternalEnergyAux.h.

Referenced by computeValue().

const VariableValue& NSInternalEnergyAux::_w_vel
protected

Definition at line 34 of file NSInternalEnergyAux.h.

Referenced by computeValue().


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