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

Auxiliary kernel for computing the specific volume (1/rho) of the fluid. More...

#include <NSSpecificVolumeAux.h>

Inheritance diagram for NSSpecificVolumeAux:
[legend]

Public Member Functions

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

Protected Member Functions

virtual Real computeValue ()
 

Protected Attributes

const VariableValue & _rho
 

Detailed Description

Auxiliary kernel for computing the specific volume (1/rho) of the fluid.

Definition at line 21 of file NSSpecificVolumeAux.h.

Constructor & Destructor Documentation

NSSpecificVolumeAux::NSSpecificVolumeAux ( const InputParameters &  parameters)

Definition at line 28 of file NSSpecificVolumeAux.C.

29  : AuxKernel(parameters), _rho(coupledValue(NS::density))
30 {
31 }
const std::string density
Definition: NS.h:15
const VariableValue & _rho
virtual NSSpecificVolumeAux::~NSSpecificVolumeAux ( )
inlinevirtual

Definition at line 26 of file NSSpecificVolumeAux.h.

26 {}

Member Function Documentation

Real NSSpecificVolumeAux::computeValue ( )
protectedvirtual

Definition at line 34 of file NSSpecificVolumeAux.C.

Referenced by ~NSSpecificVolumeAux().

35 {
36  // Return a "big" value rather than dividing by zero.
37  if (_rho[_qp] == 0.)
38  return 1.e10;
39 
40  return 1. / _rho[_qp];
41 }
const VariableValue & _rho

Member Data Documentation

const VariableValue& NSSpecificVolumeAux::_rho
protected

Definition at line 31 of file NSSpecificVolumeAux.h.

Referenced by computeValue().


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