www.mooseframework.org
ElementIndicator.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 "Indicator.h"
13 #include "TransientInterface.h"
14 #include "PostprocessorInterface.h"
15 #include "Coupleable.h"
16 #include "ScalarCoupleable.h"
17 #include "MooseVariableInterface.h"
19 
20 template <typename>
24 
25 class ElementIndicator : public Indicator,
26  public TransientInterface,
28  public Coupleable,
29  public ScalarCoupleable,
30  public MooseVariableInterface<Real>
31 {
32 public:
34 
36 
37 protected:
39 
40  const Elem * const & _current_elem;
43 
44  unsigned int _qp;
46  const QBase * const & _qrule;
49 
51 
53  const VariableValue & _u;
54 
57 
60 };
OutputTools< Real >::VariableGradient VariableGradient
Definition: MooseTypes.h:303
MooseVariableField< Real > & _var
const MooseArray< Real > & _coord
Class for stuff related to variables.
Definition: Adaptivity.h:31
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
const QBase *const & _qrule
Interface for objects that needs transient capabilities.
MooseVariableFE< Real > MooseVariable
const VariableGradient & _grad_u
Holds the solution gradient at the current quadrature points.
MooseVariableFE< VectorValue< Real > > VectorMooseVariable
MooseVariable & _field_var
Interface for objects that needs coupling capabilities.
Definition: Coupleable.h:44
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
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 Elem *const & _current_elem
Interface for objects that needs scalar coupling capabilities.
const InputParameters & parameters() const
Get the parameters of the object.
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.