www.mooseframework.org
GradientJumpIndicator.C
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 #include "GradientJumpIndicator.h"
11 
13 
14 template <>
17 {
19  params.addClassDescription("Compute the jump of the solution gradient across element bondaries.");
20  return params;
21 }
22 
24  : InternalSideIndicator(parameters)
25 {
26 }
27 
28 Real
30 {
31  Real jump = (_grad_u[_qp] - _grad_u_neighbor[_qp]) * _normals[_qp];
32 
33  return jump * jump;
34 }
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
InputParameters validParams< GradientJumpIndicator >()
const VariableGradient & _grad_u_neighbor
Holds the current solution gradient at the current quadrature point.
GradientJumpIndicator(const InputParameters &parameters)
registerMooseObject("MooseApp", GradientJumpIndicator)
The InternalSideIndicator class is responsible for calculating the residuals for various physics on i...
const VariableGradient & _grad_u
Holds the current solution gradient at the current quadrature point on the face.
const MooseArray< Point > & _normals
Normal vectors at the quadrature points.
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...
InputParameters validParams< InternalSideIndicator >()
virtual Real computeQpIntegral() override
The virtual function you will want to override to compute error contributions.