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

This postprocessor computes the fluid mass by integrating the density over the volume. More...

#include <RichardsMass.h>

Inheritance diagram for RichardsMass:
[legend]

Public Member Functions

 RichardsMass (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpIntegral ()
 

Protected Attributes

const RichardsVarNames_richards_name_UO
 userobject that holds Richards variable names More...
 
unsigned int _pvar
 Richards variable number that we want the mass for. More...
 
const MaterialProperty< std::vector< Real > > & _mass
 Mass, or vector of masses in multicomponent situation. More...
 

Detailed Description

This postprocessor computes the fluid mass by integrating the density over the volume.

Definition at line 24 of file RichardsMass.h.

Constructor & Destructor Documentation

RichardsMass::RichardsMass ( const InputParameters &  parameters)

Definition at line 24 of file RichardsMass.C.

25  : ElementIntegralVariablePostprocessor(parameters),
26 
27  _richards_name_UO(getUserObject<RichardsVarNames>("richardsVarNames_UO")),
28  _pvar(_richards_name_UO.richards_var_num(coupled("variable"))),
29 
30  _mass(getMaterialProperty<std::vector<Real>>("mass"))
31 {
32 }
const RichardsVarNames & _richards_name_UO
userobject that holds Richards variable names
Definition: RichardsMass.h:33
const MaterialProperty< std::vector< Real > > & _mass
Mass, or vector of masses in multicomponent situation.
Definition: RichardsMass.h:39
unsigned int _pvar
Richards variable number that we want the mass for.
Definition: RichardsMass.h:36
unsigned int richards_var_num(unsigned int moose_var_num) const
the richards variable number

Member Function Documentation

Real RichardsMass::computeQpIntegral ( )
protectedvirtual

Definition at line 35 of file RichardsMass.C.

36 {
37  return _mass[_qp][_pvar];
38 }
const MaterialProperty< std::vector< Real > > & _mass
Mass, or vector of masses in multicomponent situation.
Definition: RichardsMass.h:39
unsigned int _pvar
Richards variable number that we want the mass for.
Definition: RichardsMass.h:36

Member Data Documentation

const MaterialProperty<std::vector<Real> >& RichardsMass::_mass
protected

Mass, or vector of masses in multicomponent situation.

Definition at line 39 of file RichardsMass.h.

Referenced by computeQpIntegral().

unsigned int RichardsMass::_pvar
protected

Richards variable number that we want the mass for.

Definition at line 36 of file RichardsMass.h.

Referenced by computeQpIntegral().

const RichardsVarNames& RichardsMass::_richards_name_UO
protected

userobject that holds Richards variable names

Definition at line 33 of file RichardsMass.h.


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