www.mooseframework.org
ElementVariablePostprocessor.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 ELEMENTVARIABLEPOSTPROCESSOR_H
16 #define ELEMENTVARIABLEPOSTPROCESSOR_H
17 
18 #include "ElementPostprocessor.h"
19 #include "MooseVariableInterface.h"
20 
21 // Forward Declarations
23 
24 template <>
26 
28 {
29 public:
31 
32  virtual void execute() override;
33 
34 protected:
36  virtual void computeQpValue() = 0;
37 
39  const VariableValue & _u;
40 
43 
46 
48  unsigned int _qp;
49 };
50 
51 #endif
const VariableGradient & _grad_u
Holds the solution gradient at the current quadrature points.
const VariableValue & _u
Holds the solution at current quadrature points.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const VariableValue & _u_dot
Holds the solution derivative at the current quadrature points.
virtual void computeQpValue()=0
This is what derived classes should override to do something on every quadrature point on every eleme...
virtual void execute() override
Execute method.
unsigned int _qp
The current quadrature point.
InputParameters validParams< ElementVariablePostprocessor >()
Interface for objects that need to get values of MooseVariables.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
ElementVariablePostprocessor(const InputParameters &parameters)