www.mooseframework.org
ElementVariablePostprocessor.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "ElementPostprocessor.h"
13 #include "MooseVariableInterface.h"
14 
16  public MooseVariableInterface<Real>
17 {
18 public:
20 
22 
23  virtual void execute() override;
24 
25 protected:
27  virtual void computeQpValue() = 0;
28 
30  const VariableValue & _u;
31 
34 
36  unsigned int _qp;
37 };
OutputTools< Real >::VariableGradient VariableGradient
Definition: MooseTypes.h:303
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...
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.
forward declarations
Definition: MooseArray.h:17
Interface for objects that need to get values of MooseVariables.
const InputParameters & parameters() const
Get the parameters of the object.
ElementVariablePostprocessor(const InputParameters &parameters)