https://mooseframework.inl.gov
include
postprocessors
ElementVectorL2Error.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 "
ElementIntegralPostprocessor.h
"
13
14
class
Function
;
15
21
class
ElementVectorL2Error
:
public
ElementIntegralPostprocessor
22
{
23
public
:
24
static
InputParameters
validParams
();
25
26
ElementVectorL2Error
(
const
InputParameters
&
parameters
);
27
28
virtual
Real
getValue
()
const override
;
29
30
protected
:
31
virtual
Real
computeQpIntegral
()
override
;
32
34
const
Function
&
_func
;
35
const
Function
&
_funcx
;
36
const
Function
&
_funcy
;
37
const
Function
&
_funcz
;
38
40
const
VectorVariableValue
&
_u
;
41
const
VariableValue
&
_ux
;
42
const
VariableValue
&
_uy
;
43
const
VariableValue
&
_uz
;
44
46
const
bool
_has_vector_function
;
47
const
bool
_has_scalar_function
;
48
const
bool
_has_vector_variable
;
49
const
bool
_has_scalar_variable
;
50
};
ElementIntegralPostprocessor
This postprocessor computes a volume integral of the specified variable.
Definition:
ElementIntegralPostprocessor.h:20
ElementVectorL2Error::_u
const VectorVariableValue & _u
vector or component-wise variable values
Definition:
ElementVectorL2Error.h:40
Function
Base class for function objects.
Definition:
Function.h:29
ElementVectorL2Error::_has_scalar_function
const bool _has_scalar_function
Definition:
ElementVectorL2Error.h:47
MooseBase::parameters
const InputParameters & parameters() const
Get the parameters of the object.
Definition:
MooseBase.h:131
VectorVariableValue
OutputTools< RealVectorValue >::VariableValue VectorVariableValue
Definition:
MooseTypes.h:360
ElementVectorL2Error::_funcy
const Function & _funcy
Definition:
ElementVectorL2Error.h:36
ElementVectorL2Error
This postprocessor will print out the L2-seminorm of the difference between the computed solution and...
Definition:
ElementVectorL2Error.h:21
InputParameters
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Definition:
InputParameters.h:66
ElementIntegralPostprocessor.h
ElementVectorL2Error::validParams
static InputParameters validParams()
Definition:
ElementVectorL2Error.C:16
ElementVectorL2Error::_funcz
const Function & _funcz
Definition:
ElementVectorL2Error.h:37
ElementVectorL2Error::_ux
const VariableValue & _ux
Definition:
ElementVectorL2Error.h:41
ElementVectorL2Error::_has_vector_variable
const bool _has_vector_variable
Definition:
ElementVectorL2Error.h:48
ElementVectorL2Error::_uy
const VariableValue & _uy
Definition:
ElementVectorL2Error.h:42
ElementVectorL2Error::computeQpIntegral
virtual Real computeQpIntegral() override
Definition:
ElementVectorL2Error.C:73
ElementVectorL2Error::_funcx
const Function & _funcx
Definition:
ElementVectorL2Error.h:35
ElementVectorL2Error::ElementVectorL2Error
ElementVectorL2Error(const InputParameters ¶meters)
Definition:
ElementVectorL2Error.C:35
ElementVectorL2Error::_has_vector_function
const bool _has_vector_function
whether the user chose to use a vector or component-wise solution/variable
Definition:
ElementVectorL2Error.h:46
MooseArray
forward declarations
Definition:
DiffusionLHDGAssemblyHelper.h:25
Real
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
ElementVectorL2Error::_uz
const VariableValue & _uz
Definition:
ElementVectorL2Error.h:43
ElementVectorL2Error::_has_scalar_variable
const bool _has_scalar_variable
Definition:
ElementVectorL2Error.h:49
ElementVectorL2Error::getValue
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
Definition:
ElementVectorL2Error.C:67
ElementVectorL2Error::_func
const Function & _func
vector or component-wise analytical solution to compare against
Definition:
ElementVectorL2Error.h:34
Generated on Wed Nov 19 2025 20:05:40 for https://mooseframework.inl.gov by
1.8.14