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

Auxiliary kernel for computing the Mach number assuming an ideal gas. More...

#include <NSMachAux.h>

Inheritance diagram for NSMachAux:
[legend]

Public Member Functions

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

Protected Member Functions

virtual Real computeValue ()
 

Protected Attributes

const VariableValue & _u_vel
 
const VariableValue & _v_vel
 
const VariableValue & _w_vel
 
const VariableValue & _specific_volume
 
const VariableValue & _internal_energy
 
const IdealGasFluidProperties_fp
 

Detailed Description

Auxiliary kernel for computing the Mach number assuming an ideal gas.

Definition at line 23 of file NSMachAux.h.

Constructor & Destructor Documentation

NSMachAux::NSMachAux ( const InputParameters &  parameters)

Definition at line 37 of file NSMachAux.C.

38  : AuxKernel(parameters),
39  _u_vel(coupledValue(NS::velocity_x)),
40  _v_vel(_mesh.dimension() >= 2 ? coupledValue(NS::velocity_y) : _zero),
41  _w_vel(_mesh.dimension() == 3 ? coupledValue(NS::velocity_z) : _zero),
42  _specific_volume(coupledValue(NS::specific_volume)),
43  _internal_energy(coupledValue(NS::internal_energy)),
44  _fp(getUserObject<IdealGasFluidProperties>("fluid_properties"))
45 {
46 }
Definition: NS.h:13
const VariableValue & _w_vel
Definition: NSMachAux.h:35
const IdealGasFluidProperties & _fp
Definition: NSMachAux.h:40
const std::string velocity_z
Definition: NS.h:23
const std::string velocity_x
Definition: NS.h:21
const VariableValue & _v_vel
Definition: NSMachAux.h:34
const std::string specific_volume
Definition: NS.h:29
const std::string velocity_y
Definition: NS.h:22
const VariableValue & _internal_energy
Definition: NSMachAux.h:37
const VariableValue & _u_vel
Definition: NSMachAux.h:33
const std::string internal_energy
Definition: NS.h:28
Ideal gas fluid properties.
const VariableValue & _specific_volume
Definition: NSMachAux.h:36
virtual NSMachAux::~NSMachAux ( )
inlinevirtual

Definition at line 28 of file NSMachAux.h.

28 {}

Member Function Documentation

Real NSMachAux::computeValue ( )
protectedvirtual

Definition at line 49 of file NSMachAux.C.

Referenced by ~NSMachAux().

50 {
51  return RealVectorValue(_u_vel[_qp], _v_vel[_qp], _w_vel[_qp]).norm() /
53 }
const VariableValue & _w_vel
Definition: NSMachAux.h:35
const IdealGasFluidProperties & _fp
Definition: NSMachAux.h:40
const VariableValue & _v_vel
Definition: NSMachAux.h:34
virtual Real c(Real v, Real u) const override
Sound speed.
const VariableValue & _internal_energy
Definition: NSMachAux.h:37
const VariableValue & _u_vel
Definition: NSMachAux.h:33
const VariableValue & _specific_volume
Definition: NSMachAux.h:36

Member Data Documentation

const IdealGasFluidProperties& NSMachAux::_fp
protected

Definition at line 40 of file NSMachAux.h.

Referenced by computeValue().

const VariableValue& NSMachAux::_internal_energy
protected

Definition at line 37 of file NSMachAux.h.

Referenced by computeValue().

const VariableValue& NSMachAux::_specific_volume
protected

Definition at line 36 of file NSMachAux.h.

Referenced by computeValue().

const VariableValue& NSMachAux::_u_vel
protected

Definition at line 33 of file NSMachAux.h.

Referenced by computeValue().

const VariableValue& NSMachAux::_v_vel
protected

Definition at line 34 of file NSMachAux.h.

Referenced by computeValue().

const VariableValue& NSMachAux::_w_vel
protected

Definition at line 35 of file NSMachAux.h.

Referenced by computeValue().


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