https://mooseframework.inl.gov
include
postprocessors
ElementL2FunctorError.h
Go to the documentation of this file.
1
//* This file is part of the MOOSE framework
2
//* https://mooseframework.inl.gov
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
#include "
ElementIntegralVariablePostprocessor.h
"
13
17
template
<
bool
is_ad>
18
class
ElementL2FunctorErrorTempl
:
public
ElementIntegralPostprocessor
19
{
20
public
:
21
static
InputParameters
validParams
();
22
23
ElementL2FunctorErrorTempl
(
const
InputParameters
&
parameters
);
24
25
virtual
Real
getValue
()
const override
;
26
27
protected
:
28
virtual
Real
computeQpIntegral
()
override
;
29
31
const
Moose::Functor<ADReal>
&
_approx
;
32
34
const
Moose::Functor<GenericReal<is_ad>
> &
_exact
;
35
};
36
37
typedef
ElementL2FunctorErrorTempl<false>
ElementL2FunctorError
;
38
typedef
ElementL2FunctorErrorTempl<true>
ADElementL2FunctorError
;
ElementIntegralPostprocessor
This postprocessor computes a volume integral of the specified variable.
Definition:
ElementIntegralPostprocessor.h:20
ElementL2FunctorErrorTempl::validParams
static InputParameters validParams()
Definition:
ElementL2FunctorError.C:19
ElementL2FunctorErrorTempl::computeQpIntegral
virtual Real computeQpIntegral() override
Definition:
ElementL2FunctorError.C:48
ElementL2FunctorErrorTempl::getValue
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
Definition:
ElementL2FunctorError.C:41
ElementIntegralVariablePostprocessor.h
Moose::FunctorEnvelope
This is a wrapper that forwards calls to the implementation, which can be switched out at any time wi...
Definition:
MooseFunctor.h:1040
InputParameters
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Definition:
InputParameters.h:66
ElementL2FunctorError
ElementL2FunctorErrorTempl< false > ElementL2FunctorError
Definition:
ElementL2FunctorError.h:37
ElementL2FunctorErrorTempl::_approx
const Moose::Functor< ADReal > & _approx
The approximate functor.
Definition:
ElementL2FunctorError.h:31
ElementL2FunctorErrorTempl::_exact
const Moose::Functor< GenericReal< is_ad > > & _exact
The analytical functor.
Definition:
ElementL2FunctorError.h:34
ElementL2FunctorErrorTempl
Computes L2 error between an 'approximate' functor and an 'exact' functor.
Definition:
ElementL2FunctorError.h:18
Real
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
ElementL2FunctorErrorTempl::ElementL2FunctorErrorTempl
ElementL2FunctorErrorTempl(const InputParameters ¶meters)
Definition:
ElementL2FunctorError.C:32
MooseBaseParameterInterface::parameters
const InputParameters & parameters() const
Get the parameters of the object.
Definition:
MooseBaseParameterInterface.h:62
ADElementL2FunctorError
ElementL2FunctorErrorTempl< true > ADElementL2FunctorError
Definition:
ElementL2FunctorError.h:38
Generated on Thu Jul 17 2025 01:32:07 for https://mooseframework.inl.gov by
1.8.14