19 "Compute the jump of the solution gradient across element boundaries.");
20 params.
addParam<
bool>(
"variable_is_FV",
22 "Whether the solution variable is using a finite volume discretization");
30 rm_params.
set<
unsigned short>(
"layers") =
31 obj_params.
get<
bool>(
"variable_is_FV") ? 2 : 1;
registerMooseObject("MooseApp", GradientJumpIndicator)
bool hasBlocks(const SubdomainName &name) const
Test if the supplied block name is valid for this object.
virtual Real computeQpIntegral() override
The virtual function you will want to override to compute error contributions.
GradientJumpIndicator(const InputParameters ¶meters)
static InputParameters validParams()
const MooseArray< Point > & _normals
Normal vectors at the quadrature points.
unsigned int _qp
The current quadrature point.
const Elem *const & _neighbor_elem
The neighbor element across from the current side.
The InternalSideIndicator class is responsible for calculating the residuals for various physics on i...
const OutputTools< ComputeValueType >::VariableGradient & _grad_u_neighbor
Holds the current solution gradient at the current quadrature point.
const OutputTools< ComputeValueType >::VariableGradient & _grad_u
Holds the current solution gradient at the current quadrature point on the face.
MooseVariableField< ComputeValueType > & _var
static InputParameters validParams()
Factory constructor initializes all internal references needed for indicator computation.
virtual bool isFV() const
bool hasBlocks(const SubdomainID id) const override
Returns whether the functor is defined on this block.
GradientType gradient(const ElemArg &elem, const StateArg &state) const
Same as their evaluateGradient overloads with the same arguments but allows for caching implementatio...
A structure that is used to evaluate Moose functors logically at an element/cell center.