www.mooseframework.org
ElementL2Norm.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 "ElementL2Norm.h"
16 
17 template <>
20 {
22  return params;
23 }
24 
27 {
28 }
29 
30 Real
32 {
34 }
35 
36 Real
38 {
39  Real val = _u[_qp];
40  return val * val;
41 }
ElementL2Norm(const InputParameters &parameters)
Definition: ElementL2Norm.C:25
This postprocessor computes a volume integral of the specified variable.
virtual Real getValue() override
This will get called to actually grab the final value the postprocessor has calculated.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
InputParameters validParams< ElementL2Norm >()
Definition: ElementL2Norm.C:19
const VariableValue & _u
Holds the solution at current quadrature points.
InputParameters validParams< ElementIntegralVariablePostprocessor >()
virtual Real computeQpIntegral() override
Definition: ElementL2Norm.C:37
virtual Real getValue() override
This will get called to actually grab the final value the postprocessor has calculated.
Definition: ElementL2Norm.C:31