- variableName of the vector variable of which to find the norm of the error.
C++ Type:VariableName
Unit:(no unit assumed)
Controllable:No
Description:Name of the vector variable of which to find the norm of the error.
MFEMComplexVectorL2Error
Overview
Postprocessor for calculating the L2 error of a complex vector , , , or conforming source variable compared to a complex vector function.
where and is a vector function.
Example Input File Syntax
[Postprocessors<<<{"href": "../../../syntax/Postprocessors/index.html"}>>>]
[error_V]
type = MFEMComplexL2Error<<<{"description": "Computes L2 error $\\left\\Vert u_{ex} - u_{h}\\right\\Vert_{\\rm L2}$ for complex gridfunctions using H1 or L2 elements.", "href": "MFEMComplexL2Error.html"}>>>
variable<<<{"description": "Name of the variable of which to find the norm of the error."}>>> = V
function_real<<<{"description": "The real part of 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."}>>> = V_exact_real
function_imag<<<{"description": "The imaginary part of 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."}>>> = 0.0
[]
[error_A]
type = MFEMComplexVectorL2Error<<<{"description": "Computes L2 error $\\left\\Vert \\vec u_{ex} - \\vec u_{h}\\right\\Vert_{\\rm L2}$ for complex vector gridfunctions.", "href": "MFEMComplexVectorL2Error.html"}>>>
variable<<<{"description": "Name of the vector variable of which to find the norm of the error."}>>> = A
function_real<<<{"description": "The real part of 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)."}>>> = '0 0 0'
function_imag<<<{"description": "The imaginary part of 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)."}>>> = A_exact_imag
[]
[](test/tests/mfem/complex/mixed_sesquilinear.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.
- function_imagThe imaginary part of 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).
C++ Type:MFEMVectorCoefficientName
Controllable:No
Description:The imaginary part of 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).
- function_realThe real part of 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).
C++ Type:MFEMVectorCoefficientName
Controllable:No
Description:The real part of 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).
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