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

Computes specific volume. More...

#include <SpecificVolumeAux.h>

Inheritance diagram for SpecificVolumeAux:
[legend]

Public Member Functions

 SpecificVolumeAux (const InputParameters &parameters)
 

Protected Member Functions

Real computeValue ()
 

Protected Attributes

const VariableValue & _rho
 
const VariableValue & _area
 
const VariableValue & _alpha
 

Detailed Description

Computes specific volume.

Definition at line 23 of file SpecificVolumeAux.h.

Constructor & Destructor Documentation

◆ SpecificVolumeAux()

SpecificVolumeAux::SpecificVolumeAux ( const InputParameters &  parameters)

Definition at line 26 of file SpecificVolumeAux.C.

27  : AuxKernel(parameters),
28  _rho(coupledValue("rho")),
29  _area(coupledValue("area")),
30  _alpha(coupledValue("alpha"))
31 {
32 }
const VariableValue & _rho
const VariableValue & _alpha
const VariableValue & _area

Member Function Documentation

◆ computeValue()

Real SpecificVolumeAux::computeValue ( )
protected

Definition at line 35 of file SpecificVolumeAux.C.

36 {
37  mooseAssert(_rho[_qp] != 0, "Detected zero density.");
38  return _alpha[_qp] * _area[_qp] / _rho[_qp];
39 }
const VariableValue & _rho
const VariableValue & _alpha
const VariableValue & _area

Member Data Documentation

◆ _alpha

const VariableValue& SpecificVolumeAux::_alpha
protected

Definition at line 33 of file SpecificVolumeAux.h.

Referenced by computeValue().

◆ _area

const VariableValue& SpecificVolumeAux::_area
protected

Definition at line 32 of file SpecificVolumeAux.h.

Referenced by computeValue().

◆ _rho

const VariableValue& SpecificVolumeAux::_rho
protected

Definition at line 31 of file SpecificVolumeAux.h.

Referenced by computeValue().


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