forked from idaholab/moose
/
ElementIndicator.h
65 lines (52 loc) · 1.83 KB
/
ElementIndicator.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//* 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
#pragma once
#include "Indicator.h"
#include "TransientInterface.h"
#include "PostprocessorInterface.h"
#include "Coupleable.h"
#include "ScalarCoupleable.h"
#include "MooseVariableInterface.h"
#include "MaterialPropertyInterface.h"
// Forward declarations
class ElementIndicator;
template <typename>
class MooseVariableFE;
typedef MooseVariableFE<Real> MooseVariable;
typedef MooseVariableFE<VectorValue<Real>> VectorMooseVariable;
template <>
InputParameters validParams<ElementIndicator>();
class ElementIndicator : public Indicator,
public TransientInterface,
public PostprocessorInterface,
public Coupleable,
public ScalarCoupleable,
public MooseVariableInterface<Real>
{
public:
static InputParameters validParams();
ElementIndicator(const InputParameters & parameters);
protected:
MooseVariable & _field_var;
const Elem * const & _current_elem;
/// Volume of the current element
const Real & _current_elem_volume;
unsigned int _qp;
const MooseArray<Point> & _q_point;
const QBase * const & _qrule;
const MooseArray<Real> & _JxW;
const MooseArray<Real> & _coord;
// MooseVariable & _var;
/// Holds the solution at current quadrature points
const VariableValue & _u;
/// Holds the solution gradient at the current quadrature points
const VariableGradient & _grad_u;
/// Holds local indicator entries as their accumulated by this ElementIndicator
DenseVector<Number> _local_indtr;
};