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

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

#include <Mass.h>

Inheritance diagram for Mass:
[legend]

Public Member Functions

 Mass (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpIntegral ()
 

Protected Attributes

const MaterialProperty< Real > & _density
 

Detailed Description

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

Definition at line 22 of file Mass.h.

Constructor & Destructor Documentation

Mass::Mass ( const InputParameters &  parameters)

Definition at line 22 of file Mass.C.

23  : ElementIntegralVariablePostprocessor(parameters), _density(getMaterialProperty<Real>("density"))
24 {
25 }
const MaterialProperty< Real > & _density
Definition: Mass.h:29

Member Function Documentation

Real Mass::computeQpIntegral ( )
protectedvirtual

Definition at line 28 of file Mass.C.

29 {
30  return _density[_qp];
31 }
const MaterialProperty< Real > & _density
Definition: Mass.h:29

Member Data Documentation

const MaterialProperty<Real>& Mass::_density
protected

Definition at line 29 of file Mass.h.

Referenced by computeQpIntegral().


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