www.mooseframework.org
ElementIndicator.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 ELEMENTINDICATOR_H
16 #define ELEMENTINDICATOR_H
17 
18 #include "Indicator.h"
19 #include "TransientInterface.h"
20 #include "PostprocessorInterface.h"
21 #include "Coupleable.h"
22 #include "ScalarCoupleable.h"
23 #include "MooseVariableInterface.h"
25 #include "ZeroInterface.h"
26 
27 // Forward declarations
28 class ElementIndicator;
29 class MooseVariable;
30 
31 template <>
33 
34 class ElementIndicator : public Indicator,
35  public TransientInterface,
37  public Coupleable,
38  public ScalarCoupleable,
40  public ZeroInterface
41 {
42 public:
44 
45 protected:
47 
48  const Elem *& _current_elem;
50  const Real & _current_elem_volume;
51 
52  unsigned int _qp;
54  QBase *& _qrule;
57 
59 
61  const VariableValue & _u;
62 
65 
68 
71 
73  DenseVector<Number> _local_indtr;
74 };
75 
76 #endif /* ELEMENTINDICATOR_H */
const Elem *& _current_elem
const MooseArray< Real > & _coord
Class for stuff related to variables.
Definition: MooseVariable.h:43
const VariableValue & _u_dot
Time derivative of u.
const Real & _current_elem_volume
Volume of the current element.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const MooseArray< Real > & _JxW
Interface for objects that needs transient capabilities.
const VariableValue & _du_dot_du
Derivative of u_dot wrt u.
const VariableGradient & _grad_u
Holds the solution gradient at the current quadrature points.
MooseVariable & _field_var
MooseVariable & _var
Interface for objects that needs coupling capabilities.
Definition: Coupleable.h:35
Interface to bring zero values inside objects.
Definition: ZeroInterface.h:35
DenseVector< Number > _local_indtr
Holds local indicator entries as their accumulated by this ElementIndicator.
Interface for objects that need to get values of MooseVariables.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
Interface for objects that needs scalar coupling capabilities.
unsigned int _qp
const MooseArray< Point > & _q_point
ElementIndicator(const InputParameters &parameters)
const VariableValue & _u
Holds the solution at current quadrature points.
Interface class for classes which interact with Postprocessors.
InputParameters validParams< ElementIndicator >()