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

Velocity auxiliary value. More...

#include <NSVelocityAux.h>

Inheritance diagram for NSVelocityAux:
[legend]

Public Member Functions

 NSVelocityAux (const InputParameters &parameters)
 Factory constructor, takes parameters so that all derived classes can be built using the same constructor. More...
 
virtual ~NSVelocityAux ()
 

Protected Member Functions

virtual Real computeValue ()
 

Protected Attributes

const VariableValue & _rho
 
const VariableValue & _momentum
 

Detailed Description

Velocity auxiliary value.

Definition at line 24 of file NSVelocityAux.h.

Constructor & Destructor Documentation

◆ NSVelocityAux()

NSVelocityAux::NSVelocityAux ( const InputParameters &  parameters)

Factory constructor, takes parameters so that all derived classes can be built using the same constructor.

Definition at line 29 of file NSVelocityAux.C.

30  : AuxKernel(parameters), _rho(coupledValue(NS::density)), _momentum(coupledValue("momentum"))
31 {
32 }
const std::string density
Definition: NS.h:17
const VariableValue & _momentum
Definition: NSVelocityAux.h:39
const VariableValue & _rho
Definition: NSVelocityAux.h:38

◆ ~NSVelocityAux()

virtual NSVelocityAux::~NSVelocityAux ( )
inlinevirtual

Definition at line 33 of file NSVelocityAux.h.

33 {}

Member Function Documentation

◆ computeValue()

Real NSVelocityAux::computeValue ( )
protectedvirtual

Definition at line 35 of file NSVelocityAux.C.

36 {
37  return _momentum[_qp] / _rho[_qp];
38 }
const VariableValue & _momentum
Definition: NSVelocityAux.h:39
const VariableValue & _rho
Definition: NSVelocityAux.h:38

Member Data Documentation

◆ _momentum

const VariableValue& NSVelocityAux::_momentum
protected

Definition at line 39 of file NSVelocityAux.h.

Referenced by computeValue().

◆ _rho

const VariableValue& NSVelocityAux::_rho
protected

Definition at line 38 of file NSVelocityAux.h.

Referenced by computeValue().


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