Loading [MathJax]/extensions/tex2jax.js
www.mooseframework.org
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
ElementL2ErrorFunctionAux.h
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 #pragma once
11 
12 // MOOSE includes
13 #include "ElementLpNormAux.h"
14 
15 // Forward declarations
17 
18 template <>
20 
29 {
30 public:
32 
39 
40 protected:
45  virtual Real computeValue() override;
46 
48  const Function & _func;
49 };
ElementL2ErrorFunctionAux::_func
const Function & _func
Function representing the exact solution.
Definition: ElementL2ErrorFunctionAux.h:48
MooseObject::parameters
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:76
ElementLpNormAux
Compute an elemental field variable (single value per element) equal to the Lp-norm of a coupled Vari...
Definition: ElementLpNormAux.h:25
validParams< ElementL2ErrorFunctionAux >
InputParameters validParams< ElementL2ErrorFunctionAux >()
ElementL2ErrorFunctionAux::validParams
static InputParameters validParams()
Definition: ElementL2ErrorFunctionAux.C:19
InputParameters
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Definition: InputParameters.h:53
ElementL2ErrorFunctionAux::computeValue
virtual Real computeValue() override
Returns the difference between the solution variable and the exact solution Function.
Definition: ElementL2ErrorFunctionAux.C:34
ElementL2ErrorFunctionAux
A class for computing the element-wise L^2 error (actually L^p error, if you set the value of p to so...
Definition: ElementL2ErrorFunctionAux.h:28
ElementLpNormAux.h
Function
Base class for function objects.
Definition: Function.h:40
ElementL2ErrorFunctionAux::ElementL2ErrorFunctionAux
ElementL2ErrorFunctionAux(const InputParameters &parameters)
Class constructor.
Definition: ElementL2ErrorFunctionAux.C:28