www.mooseframework.org
Public Member Functions | Static 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)
 

Static Public Member Functions

static InputParameters validParams ()
 

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

Constructor & Destructor Documentation

◆ Mass()

Mass::Mass ( const InputParameters &  parameters)

Definition at line 28 of file Mass.C.

29  : ElementIntegralVariablePostprocessor(parameters), _density(getMaterialProperty<Real>("density"))
30 {
31 }

Member Function Documentation

◆ computeQpIntegral()

Real Mass::computeQpIntegral ( )
protectedvirtual

Definition at line 34 of file Mass.C.

35 {
36  return _density[_qp];
37 }

◆ validParams()

InputParameters Mass::validParams ( )
static

Definition at line 21 of file Mass.C.

22 {
23  InputParameters params = ElementIntegralVariablePostprocessor::validParams();
24  params.set<bool>("use_displaced_mesh") = true;
25  return params;
26 }

Member Data Documentation

◆ _density

const MaterialProperty<Real>& Mass::_density
protected

Definition at line 33 of file Mass.h.

Referenced by computeQpIntegral().


The documentation for this class was generated from the following files:
Mass::_density
const MaterialProperty< Real > & _density
Definition: Mass.h:33
validParams
InputParameters validParams()