www.mooseframework.org
VolumePostprocessor.C
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 #include "VolumePostprocessor.h"
11 
13 
16 {
18  params.addClassDescription("Computes the volume of a specified block");
19  return params;
20 }
21 
23  : ElementIntegralPostprocessor(parameters)
24 {
25 }
26 
27 void
29 {
30  const auto & pps = static_cast<const VolumePostprocessor &>(y);
31  _integral_value += pps._integral_value;
32 }
33 
34 Real
36 {
37  return 1.0;
38 }
This postprocessor computes a volume integral of the specified variable.
This postprocessor computes the volume of a specified block.
static InputParameters validParams()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
VolumePostprocessor(const InputParameters &parameters)
virtual void threadJoin(const UserObject &y) override
Must override.
virtual Real computeQpIntegral() override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
registerMooseObject("MooseApp", VolumePostprocessor)
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...
Base class for user-specific data.
Definition: UserObject.h:39