https://mooseframework.inl.gov
Loading...
Searching...
No Matches
include
mfem
postprocessors
MFEMVectorL2Error.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
#ifdef MOOSE_MFEM_ENABLED
11
12
#pragma once
13
14
#include "
MFEMPostprocessor.h
"
15
19
class
MFEMVectorL2Error
:
public
MFEMPostprocessor
20
{
21
public
:
22
static
InputParameters
validParams
();
23
24
MFEMVectorL2Error
(
const
InputParameters
&
parameters
);
25
26
virtual
void
initialize
()
override
;
27
virtual
void
execute
()
override
;
28
32
virtual
PostprocessorValue
getValue
()
const
override
final
;
33
34
private
:
35
mfem::VectorCoefficient &
_vec_coeff
;
36
mfem::GridFunction &
_var
;
37
};
38
39
#endif
MFEMPostprocessor.h
PostprocessorValue
Real PostprocessorValue
various MOOSE typedefs
Definition
MooseTypes.h:230
InputParameters
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Definition
InputParameters.h:68
MFEMPostprocessor
Postprocessor for MFEM results.
Definition
MFEMPostprocessor.h:22
MFEMVectorL2Error
Compute the L2 error for a vector variable.
Definition
MFEMVectorL2Error.h:20
MFEMVectorL2Error::validParams
static InputParameters validParams()
Definition
MFEMVectorL2Error.C:18
MFEMVectorL2Error::initialize
virtual void initialize() override
Perform any pre-execution setup for this object.
Definition
MFEMVectorL2Error.C:39
MFEMVectorL2Error::_var
mfem::GridFunction & _var
Definition
MFEMVectorL2Error.h:36
MFEMVectorL2Error::execute
virtual void execute() override
Perform the main work for this object.
Definition
MFEMVectorL2Error.C:44
MFEMVectorL2Error::getValue
virtual PostprocessorValue getValue() const override final
Get the L2 Error.
Definition
MFEMVectorL2Error.C:49
MFEMVectorL2Error::_vec_coeff
mfem::VectorCoefficient & _vec_coeff
Definition
MFEMVectorL2Error.h:35
MooseBase::parameters
const InputParameters & parameters() const
Get the parameters of the object.
Definition
MooseBase.h:131
Generated on Fri Aug 21 2026 13:33:50 for https://mooseframework.inl.gov by
1.9.8