www.mooseframework.org
Mass.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "ElementIntegralVariablePostprocessor.h"
13 
14 // Forward Declarations
15 class Mass;
16 
17 template <>
18 InputParameters validParams<Mass>();
19 
24 class Mass : public ElementIntegralVariablePostprocessor
25 {
26 public:
27  static InputParameters validParams();
28 
29  Mass(const InputParameters & parameters);
30 
31 protected:
32  virtual Real computeQpIntegral();
33  const MaterialProperty<Real> & _density;
34 };
Mass
This postprocessor computes the mass by integrating the density over the volume.
Definition: Mass.h:24
validParams< Mass >
InputParameters validParams< Mass >()
Mass::Mass
Mass(const InputParameters &parameters)
Definition: Mass.C:28
Mass::validParams
static InputParameters validParams()
Definition: Mass.C:21
Mass::_density
const MaterialProperty< Real > & _density
Definition: Mass.h:33
Mass::computeQpIntegral
virtual Real computeQpIntegral()
Definition: Mass.C:34