www.mooseframework.org
NodalVariableValue.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 NODALVARIABLEVALUE_H
16 #define NODALVARIABLEVALUE_H
17 
18 #include "GeneralPostprocessor.h"
19 
20 // Forward Declarations
21 class NodalVariableValue;
22 class MooseMesh;
23 
24 namespace libMesh
25 {
26 class Node;
27 }
28 
29 template <>
31 
37 {
38 public:
39  NodalVariableValue(const InputParameters & parameters);
40 
41  virtual void initialize() override {}
42  virtual void execute() override {}
43  virtual Real getValue() override;
44 
45 protected:
47  std::string _var_name;
48  Node * _node_ptr;
49  const Real _scale_factor;
50 };
51 
52 #endif // NODALVARIABLEVALUE_H
virtual void execute() override
Execute method.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
Sums a nodal value across all processors and multiplies the result by a scale factor.
InputParameters validParams< NodalVariableValue >()
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
Definition: MooseMesh.h:74