www.mooseframework.org
LaplacianJumpIndicator.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 "LaplacianJumpIndicator.h"
16 
17 template <>
20 {
22  return params;
23 }
24 
26  : InternalSideIndicator(parameters), _second_u(second()), _second_u_neighbor(neighborSecond())
27 {
28 }
29 
30 Real
32 {
33  Real jump = (_second_u[_qp].tr() - _second_u_neighbor[_qp].tr());
34 
35  return jump * jump;
36 }
const VariableSecond & _second_u
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const VariableSecond & _second_u_neighbor
virtual Real computeQpIntegral() override
The virtual function you will want to override to compute error contributions.
The InternalSideIndicator class is responsible for calculating the residuals for various physics on i...
InputParameters validParams< LaplacianJumpIndicator >()
InputParameters validParams< InternalSideIndicator >()
LaplacianJumpIndicator(const InputParameters &parameters)