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 SinglePhaseFluidProperties_fp
 

Detailed Description

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

Definition at line 26 of file NSMachAux.h.

Constructor & Destructor Documentation

◆ NSMachAux()

NSMachAux::NSMachAux ( const InputParameters &  parameters)

Definition at line 41 of file NSMachAux.C.

42  : AuxKernel(parameters),
43  _u_vel(coupledValue(NS::velocity_x)),
44  _v_vel(_mesh.dimension() >= 2 ? coupledValue(NS::velocity_y) : _zero),
45  _w_vel(_mesh.dimension() == 3 ? coupledValue(NS::velocity_z) : _zero),
46  _specific_volume(coupledValue(NS::specific_volume)),
47  _internal_energy(coupledValue(NS::internal_energy)),
48  _fp(getUserObject<SinglePhaseFluidProperties>("fluid_properties"))
49 {
50 }
Definition: NS.h:15
const VariableValue & _w_vel
Definition: NSMachAux.h:38
const std::string velocity_z
Definition: NS.h:25
const std::string velocity_x
Definition: NS.h:23
const SinglePhaseFluidProperties & _fp
Definition: NSMachAux.h:43
const VariableValue & _v_vel
Definition: NSMachAux.h:37
const std::string specific_volume
Definition: NS.h:31
Common class for single phase fluid properties.
const std::string velocity_y
Definition: NS.h:24
const VariableValue & _internal_energy
Definition: NSMachAux.h:40
const VariableValue & _u_vel
Definition: NSMachAux.h:36
const std::string internal_energy
Definition: NS.h:30
const VariableValue & _specific_volume
Definition: NSMachAux.h:39

◆ ~NSMachAux()

virtual NSMachAux::~NSMachAux ( )
inlinevirtual

Definition at line 31 of file NSMachAux.h.

31 {}

Member Function Documentation

◆ computeValue()

Real NSMachAux::computeValue ( )
protectedvirtual

Definition at line 53 of file NSMachAux.C.

54 {
55  return RealVectorValue(_u_vel[_qp], _v_vel[_qp], _w_vel[_qp]).norm() /
57 }
const VariableValue & _w_vel
Definition: NSMachAux.h:38
const SinglePhaseFluidProperties & _fp
Definition: NSMachAux.h:43
const VariableValue & _v_vel
Definition: NSMachAux.h:37
const VariableValue & _internal_energy
Definition: NSMachAux.h:40
const VariableValue & _u_vel
Definition: NSMachAux.h:36
const VariableValue & _specific_volume
Definition: NSMachAux.h:39
virtual Real c_from_v_e(Real v, Real e) const
Sound speed from specific volume and specific internal energy.

Member Data Documentation

◆ _fp

const SinglePhaseFluidProperties& NSMachAux::_fp
protected

Definition at line 43 of file NSMachAux.h.

Referenced by computeValue().

◆ _internal_energy

const VariableValue& NSMachAux::_internal_energy
protected

Definition at line 40 of file NSMachAux.h.

Referenced by computeValue().

◆ _specific_volume

const VariableValue& NSMachAux::_specific_volume
protected

Definition at line 39 of file NSMachAux.h.

Referenced by computeValue().

◆ _u_vel

const VariableValue& NSMachAux::_u_vel
protected

Definition at line 36 of file NSMachAux.h.

Referenced by computeValue().

◆ _v_vel

const VariableValue& NSMachAux::_v_vel
protected

Definition at line 37 of file NSMachAux.h.

Referenced by computeValue().

◆ _w_vel

const VariableValue& NSMachAux::_w_vel
protected

Definition at line 38 of file NSMachAux.h.

Referenced by computeValue().


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