www.mooseframework.org
GradientJumpIndicator.C
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 #include "GradientJumpIndicator.h"
16 
17 template <>
20 {
22  return params;
23 }
24 
26  : InternalSideIndicator(parameters)
27 {
28 }
29 
30 Real
32 {
33  Real jump = (_grad_u[_qp] - _grad_u_neighbor[_qp]) * _normals[_qp];
34 
35  return jump * jump;
36 }
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)
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.
InputParameters validParams< InternalSideIndicator >()
virtual Real computeQpIntegral() override
The virtual function you will want to override to compute error contributions.