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 26 of file RichardsMass.h.

Constructor & Destructor Documentation

◆ RichardsMass()

RichardsMass::RichardsMass ( const InputParameters &  parameters)

Definition at line 28 of file RichardsMass.C.

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

Member Function Documentation

◆ computeQpIntegral()

Real RichardsMass::computeQpIntegral ( )
protectedvirtual

Definition at line 39 of file RichardsMass.C.

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

Member Data Documentation

◆ _mass

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

Mass, or vector of masses in multicomponent situation.

Definition at line 41 of file RichardsMass.h.

Referenced by computeQpIntegral().

◆ _pvar

unsigned int RichardsMass::_pvar
protected

Richards variable number that we want the mass for.

Definition at line 38 of file RichardsMass.h.

Referenced by computeQpIntegral().

◆ _richards_name_UO

const RichardsVarNames& RichardsMass::_richards_name_UO
protected

userobject that holds Richards variable names

Definition at line 35 of file RichardsMass.h.


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