https://mooseframework.inl.gov
include
mfem
postprocessors
MFEML2Error.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
#include "
MFEMPostprocessor.h
"
14
#include "
MFEMGeneralUserObject.h
"
15
19
class
MFEML2Error
:
public
MFEMPostprocessor
20
{
21
public
:
22
static
InputParameters
validParams
();
23
24
MFEML2Error
(
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::Coefficient &
_coeff
;
36
mfem::GridFunction &
_var
;
37
};
38
39
#endif
MFEML2Error::_var
mfem::GridFunction & _var
Definition:
MFEML2Error.h:36
MFEML2Error::initialize
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
Definition:
MFEML2Error.C:39
MFEMGeneralUserObject.h
InputParameters
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Definition:
InputParameters.h:66
MFEML2Error::getValue
virtual PostprocessorValue getValue() const override final
Get the L2 Error.
Definition:
MFEML2Error.C:49
MFEML2Error
Compute the L2 error for a variable.
Definition:
MFEML2Error.h:19
MFEML2Error::validParams
static InputParameters validParams()
Definition:
MFEML2Error.C:18
MFEMPostprocessor
Postprocessor for MFEM results.
Definition:
MFEMPostprocessor.h:23
MFEML2Error::execute
virtual void execute() override
Execute method.
Definition:
MFEML2Error.C:44
MFEML2Error::_coeff
mfem::Coefficient & _coeff
Definition:
MFEML2Error.h:35
PostprocessorValue
Real PostprocessorValue
various MOOSE typedefs
Definition:
MooseTypes.h:202
MFEMPostprocessor.h
MFEML2Error::MFEML2Error
MFEML2Error(const InputParameters ¶meters)
Definition:
MFEML2Error.C:31
MooseBaseParameterInterface::parameters
const InputParameters & parameters() const
Get the parameters of the object.
Definition:
MooseBaseParameterInterface.h:62
Generated on Wed Aug 6 2025 14:23:52 for https://mooseframework.inl.gov by
1.8.14