www.mooseframework.org
Postprocessor.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef POSTPROCESSOR_H
16 #define POSTPROCESSOR_H
17 
18 // MOOSE includes
19 #include "OutputInterface.h"
20 
21 // libMesh
22 #include "libmesh/parallel.h"
23 
24 // Forward declarations
25 class Postprocessor;
26 
27 template <>
29 
36 {
37 public:
38  Postprocessor(const InputParameters & parameters);
39 
43  virtual PostprocessorValue getValue() = 0;
44 
48  std::string PPName() { return _pp_name; }
49 
50 protected:
51  std::string _pp_name;
52 };
53 
54 #endif
virtual PostprocessorValue getValue()=0
This will get called to actually grab the final value the postprocessor has calculated.
A class to provide an common interface to objects requiring "outputs" option.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
std::string PPName()
Returns the name of the Postprocessor.
Definition: Postprocessor.h:48
InputParameters validParams< Postprocessor >()
Definition: Postprocessor.C:20
Real PostprocessorValue
MOOSE typedefs.
Definition: MooseTypes.h:73
Base class for all Postprocessors.
Definition: Postprocessor.h:35
std::string _pp_name
Definition: Postprocessor.h:51
Postprocessor(const InputParameters &parameters)
Definition: Postprocessor.C:30