www.mooseframework.org
PointValue.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 POINTVALUE_H
16 #define POINTVALUE_H
17 
18 #include "GeneralPostprocessor.h"
19 
20 // Forward Declarations
21 class PointValue;
22 
23 template <>
25 
33 {
34 public:
36 
37  virtual void initialize() override {}
38  virtual void execute() override;
39  virtual void finalize() override {}
40  virtual Real getValue() override;
41 
42 protected:
44  const unsigned int _var_number;
45 
47  const System & _system;
48 
50  const Point & _point;
51 
53  Real _value;
54 };
55 
56 #endif /* POINTVALUE_H */
PointValue(const InputParameters &parameters)
Definition: PointValue.C:37
Compute the value of a variable at a specified location.
Definition: PointValue.h:32
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const Point & _point
The point to locate.
Definition: PointValue.h:50
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
virtual Real getValue() override
This will get called to actually grab the final value the postprocessor has calculated.
Definition: PointValue.C:70
const unsigned int _var_number
The variable number of the variable we are operating on.
Definition: PointValue.h:44
const System & _system
A reference to the system containing the variable.
Definition: PointValue.h:47
virtual void finalize() override
This is called after execute() and after threadJoin()! This is probably where you want to do MPI comm...
Definition: PointValue.h:39
InputParameters validParams< PointValue >()
Definition: PointValue.C:27
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
Definition: PointValue.h:37
virtual void execute() override
Execute method.
Definition: PointValue.C:47
Real _value
The value of the variable at the desired location.
Definition: PointValue.h:53