www.mooseframework.org
Mass.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #ifndef MASS_H
8 #define MASS_H
9 
10 #include "ElementIntegralVariablePostprocessor.h"
11 
12 // Forward Declarations
13 class Mass;
14 
15 template <>
16 InputParameters validParams<Mass>();
17 
22 class Mass : public ElementIntegralVariablePostprocessor
23 {
24 public:
25  Mass(const InputParameters & parameters);
26 
27 protected:
28  virtual Real computeQpIntegral();
29  const MaterialProperty<Real> & _density;
30 };
31 
32 #endif // MASS_H
virtual Real computeQpIntegral()
Definition: Mass.C:28
InputParameters validParams< Mass >()
Definition: Mass.C:15
const MaterialProperty< Real > & _density
Definition: Mass.h:29
This postprocessor computes the mass by integrating the density over the volume.
Definition: Mass.h:22
Mass(const InputParameters &parameters)
Definition: Mass.C:22