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

Constructor & Destructor Documentation

NSVelocityAux::NSVelocityAux ( const InputParameters &  parameters)

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

Definition at line 23 of file NSVelocityAux.C.

24  : AuxKernel(parameters), _rho(coupledValue(NS::density)), _momentum(coupledValue("momentum"))
25 {
26 }
const std::string density
Definition: NS.h:15
const VariableValue & _momentum
Definition: NSVelocityAux.h:36
const VariableValue & _rho
Definition: NSVelocityAux.h:35
virtual NSVelocityAux::~NSVelocityAux ( )
inlinevirtual

Definition at line 30 of file NSVelocityAux.h.

30 {}

Member Function Documentation

Real NSVelocityAux::computeValue ( )
protectedvirtual

Definition at line 29 of file NSVelocityAux.C.

Referenced by ~NSVelocityAux().

30 {
31  return _momentum[_qp] / _rho[_qp];
32 }
const VariableValue & _momentum
Definition: NSVelocityAux.h:36
const VariableValue & _rho
Definition: NSVelocityAux.h:35

Member Data Documentation

const VariableValue& NSVelocityAux::_momentum
protected

Definition at line 36 of file NSVelocityAux.h.

Referenced by computeValue().

const VariableValue& NSVelocityAux::_rho
protected

Definition at line 35 of file NSVelocityAux.h.

Referenced by computeValue().


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