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 24 of file NSSpecificVolumeAux.h.

Constructor & Destructor Documentation

◆ NSSpecificVolumeAux()

NSSpecificVolumeAux::NSSpecificVolumeAux ( const InputParameters &  parameters)

Definition at line 32 of file NSSpecificVolumeAux.C.

33  : AuxKernel(parameters), _rho(coupledValue(NS::density))
34 {
35 }
const std::string density
Definition: NS.h:17
const VariableValue & _rho

◆ ~NSSpecificVolumeAux()

virtual NSSpecificVolumeAux::~NSSpecificVolumeAux ( )
inlinevirtual

Definition at line 29 of file NSSpecificVolumeAux.h.

29 {}

Member Function Documentation

◆ computeValue()

Real NSSpecificVolumeAux::computeValue ( )
protectedvirtual

Definition at line 38 of file NSSpecificVolumeAux.C.

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

Member Data Documentation

◆ _rho

const VariableValue& NSSpecificVolumeAux::_rho
protected

Definition at line 34 of file NSSpecificVolumeAux.h.

Referenced by computeValue().


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