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 25 of file Mass.h.

Constructor & Destructor Documentation

◆ Mass()

Mass::Mass ( const InputParameters &  parameters)

Definition at line 27 of file Mass.C.

28  : ElementIntegralVariablePostprocessor(parameters), _density(getMaterialProperty<Real>("density"))
29 {
30 }
const MaterialProperty< Real > & _density
Definition: Mass.h:32

Member Function Documentation

◆ computeQpIntegral()

Real Mass::computeQpIntegral ( )
protectedvirtual

Definition at line 33 of file Mass.C.

34 {
35  return _density[_qp];
36 }
const MaterialProperty< Real > & _density
Definition: Mass.h:32

Member Data Documentation

◆ _density

const MaterialProperty<Real>& Mass::_density
protected

Definition at line 32 of file Mass.h.

Referenced by computeQpIntegral().


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