MFEMComplexL2Error

Overview

Postprocessor for calculating the L2 error of a complex scalar or conforming source variable compared to a complex scalar function.

where and is a complex scalar 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

  • 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.

Required 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

    Options:XFEM_MARK, FORWARD, ADJOINT, HOMOGENEOUS_FORWARD, ADJOINT_TIMESTEP_BEGIN, ADJOINT_TIMESTEP_END, NONE, INITIAL, LINEAR, LINEAR_CONVERGENCE, NONLINEAR, NONLINEAR_CONVERGENCE, POSTCHECK, TIMESTEP_END, TIMESTEP_BEGIN, MULTIAPP_FIXED_POINT_END, MULTIAPP_FIXED_POINT_BEGIN, MULTIAPP_FIXED_POINT_CONVERGENCE, MULTISYSTEM_FIXED_POINT_ITERATION_END, FINAL, CUSTOM

    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 number.

    C++ Type:MFEMScalarCoefficientName

    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 number.

  • 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 number.

    C++ Type:MFEMScalarCoefficientName

    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 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