- variableName of the variable of which to find the norm of the error.
C++ Type:VariableName
Unit:(no unit assumed)
Controllable:No
Description:Name of the variable of which to find the norm of the error.
MFEML2Error
Overview
Postprocessor for calculating the L2 error of a scalar or conforming source variable compared to a scalar function.
where and is a scalar function.
Example Input File Syntax
[Postprocessors<<<{"href": "../../../syntax/Postprocessors/index.html"}>>>]
[potential_error]
type = MFEML2Error<<<{"description": "Computes L2 error $\\left\\Vert u_{ex} - u_{h}\\right\\Vert_{\\rm L2}$ for gridfunctions using H1 or L2 elements.", "href": "MFEML2Error.html"}>>>
variable<<<{"description": "Name of the variable of which to find the norm of the error."}>>> = velocity_potential
function<<<{"description": "The analytic solution to compare against. A functor is any of the following: a variable, an MFEM material property, a function, a postprocessor or a number."}>>> = theta
[]
[velocity_error]
type = MFEMVectorL2Error<<<{"description": "Computes L2 error $\\left\\Vert \\vec u_{ex} - \\vec u_{h}\\right\\Vert_{\\rm L2}$ for vector gridfunctions.", "href": "MFEMVectorL2Error.html"}>>>
variable<<<{"description": "Name of the vector variable of which to find the norm of the error."}>>> = velocity
function<<<{"description": "The analytic solution to compare against. A functor is any of the following: a variable, an MFEM material property, a function, a postprocessor or a numeric vector value (enclosed in curly braces)."}>>> = exact_velocity
[]
[](test/tests/mfem/kernels/irrotational.i)Input Parameters
- execute_onTIMESTEP_ENDThe list of flag(s) indicating when this object should be executed. For a description of each flag, see https://mooseframework.inl.gov/source/interfaces/SetupInterface.html.
Default:TIMESTEP_END
C++ Type:ExecFlagEnum
Controllable:No
Description:The list of flag(s) indicating when this object should be executed. For a description of each flag, see https://mooseframework.inl.gov/source/interfaces/SetupInterface.html.
- functionThe analytic solution to compare against. A functor is any of the following: a variable, an MFEM material property, a function, a postprocessor or a number.
C++ Type:MFEMScalarCoefficientName
Controllable:No
Description:The analytic solution to compare against. A functor is any of the following: a variable, an MFEM material property, a function, a postprocessor or a number.
Optional Parameters
- control_tagsAdds user-defined labels for accessing object parameters via control logic.
C++ Type:std::vector<std::string>
Controllable:No
Description:Adds user-defined labels for accessing object parameters via control logic.
- enableTrueSet the enabled status of the MooseObject.
Default:True
C++ Type:bool
Controllable:No
Description:Set the enabled status of the MooseObject.
- outputsVector of output names where you would like to restrict the output of variables(s) associated with this object
C++ Type:std::vector<OutputName>
Controllable:No
Description:Vector of output names where you would like to restrict the output of variables(s) associated with this object
Advanced Parameters
Input Files
- (test/tests/mfem/kernels/diffusion_amr.i)
- (test/tests/mfem/kernels/irrotational.i)
- (test/tests/mfem/kernels/darcy.i)
- (test/tests/mfem/transfers/l2_mfem_parent_libmesh_sub/mfem_parent_scalar.i)
- (test/tests/mfem/functions/parsed_function_source.i)
- (test/tests/mfem/transfers/h1_mfem_parent_libmesh_sub/mfem_parent_scalar.i)