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 // Forward declarations
21 class ElementIndicator;
22 template <typename>
26 
27 template <>
29 
30 class ElementIndicator : public Indicator,
31  public TransientInterface,
33  public Coupleable,
34  public ScalarCoupleable,
35  public MooseVariableInterface<Real>
36 {
37 public:
39 
40 protected:
42 
43  const Elem * const & _current_elem;
45  const Real & _current_elem_volume;
46 
47  unsigned int _qp;
49  const QBase * const & _qrule;
52 
54 
56  const VariableValue & _u;
57 
60 
62  DenseVector<Number> _local_indtr;
63 };
64 
const MooseArray< Real > & _coord
Class for stuff related to variables.
Definition: Adaptivity.h:29
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 InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:65
const VariableGradient & _grad_u
Holds the solution gradient at the current quadrature points.
MooseVariableFE< VectorValue< Real > > VectorMooseVariable
MooseVariable & _field_var
MooseVariable & _var
OutputTools< Real >::VariableValue VariableValue
Definition: MooseTypes.h:197
Interface for objects that needs coupling capabilities.
Definition: Coupleable.h:62
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.
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 >()