www.mooseframework.org
ElementalVariableValue.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 ELEMENTALVARIABLEVALUE_H
16 #define ELEMENTALVARIABLEVALUE_H
17 
18 // MOOSE includes
19 #include "GeneralPostprocessor.h"
20 
21 // Forward Declarations
23 class MooseMesh;
24 
25 namespace libMesh
26 {
27 class Elem;
28 }
29 
30 template <>
32 
34 {
35 public:
36  ElementalVariableValue(const InputParameters & parameters);
37 
38  virtual void initialize() override {}
39  virtual void execute() override {}
40  virtual Real getValue() override;
41 
42 protected:
44  std::string _var_name;
45  Elem * _element;
46 };
47 
48 #endif // ELEMENTALVARIABLEVALUE_H
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...
virtual void execute() override
Execute method.
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.
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
Definition: MooseMesh.h:74
InputParameters validParams< ElementalVariableValue >()