forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ElementIntegralArrayVariablePostprocessor.h
45 lines (37 loc) · 1.43 KB
/
ElementIntegralArrayVariablePostprocessor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgpl-2.1.html
#ifndef ELEMENTINTEGRALVARIABLEARRAYPOSTPROCESSOR_H
#define ELEMENTINTEGRALVARIABLEARRAYPOSTPROCESSOR_H
#include "ElementIntegralPostprocessor.h"
#include "MooseVariableInterface.h"
// Forward Declarations
class ElementIntegralArrayVariablePostprocessor;
template <>
InputParameters validParams<ElementIntegralArrayVariablePostprocessor>();
/**
* This postprocessor computes a volume integral of the specified variable.
*
* Note that specializations of this integral are possible by deriving from this
* class and overriding computeQpIntegral().
*/
class ElementIntegralArrayVariablePostprocessor : public ElementIntegralPostprocessor,
public MooseVariableInterface<RealArrayValue>
{
public:
ElementIntegralArrayVariablePostprocessor(const InputParameters & parameters);
protected:
virtual Real computeQpIntegral() override;
/// Holds the solution at current quadrature points
const ArrayVariableValue & _u;
/// Holds the solution gradient at the current quadrature points
const ArrayVariableGradient & _grad_u;
/// The component
const unsigned int _component;
};
#endif