# ErrorFractionMarker

Marks elements for refinement or coarsening based on the fraction of the min/max error from the supplied indicator.

Description

The ErrorFractionMarker utilizes the value from an Indicator as a measure of "error" on each element. Using this error approximation the following algorithm is applied:

ErrorFractionMarker example calculation.

  1. The elements are sorted by increasing error.

  2. The elements comprising the "refine" fraction, from highest error to lowest, of the total error are marked for refinement.

  3. The elements comprising the "coarsen" fraction, from lowest error to highest, of the total error are marked for refinement.

Example Input Syntax


[Adaptivity]
  [./Indicators]
    [./error]
      type = AnalyticalIndicator
      variable = u
      function = solution
    [../]
  [../]
  [./Markers]
    [./marker]
      type = ErrorFractionMarker
      coarsen = 0.1
      indicator = error
      refine = 0.3
    [../]
  [../]
[]
(../moose/test/tests/markers/error_fraction_marker/error_fraction_marker_test.i)

Input Parameters

  • indicatorThe name of the Indicator that this Marker uses.

    C++ Type:IndicatorName

    Description:The name of the Indicator that this Marker uses.

Required Parameters

  • coarsen0Elements within this percentage of the min error will be coarsened. Must be between 0 and 1!

    Default:0

    C++ Type:double

    Description:Elements within this percentage of the min error will be coarsened. Must be between 0 and 1!

  • clear_extremesTrueWhether or not to clear the extremes during each error calculation. Changing this to `false` will result in the global extremes ever encountered during the run to be used as the min and max error.

    Default:True

    C++ Type:bool

    Description:Whether or not to clear the extremes during each error calculation. Changing this to `false` will result in the global extremes ever encountered during the run to be used as the min and max error.

  • refine0Elements within this percentage of the max error will be refined. Must be between 0 and 1!

    Default:0

    C++ Type:double

    Description:Elements within this percentage of the max error will be refined. Must be between 0 and 1!

  • blockThe list of block ids (SubdomainID) that this object will be applied

    C++ Type:std::vector

    Description:The list of block ids (SubdomainID) that this object will be applied

Optional Parameters

  • control_tagsAdds user-defined labels for accessing object parameters via control logic.

    C++ Type:std::vector

    Description:Adds user-defined labels for accessing object parameters via control logic.

  • enableTrueSet the enabled status of the MooseObject.

    Default:True

    C++ Type:bool

    Description:Set the enabled status of the MooseObject.

  • outputsVector of output names were you would like to restrict the output of variables(s) associated with this object

    C++ Type:std::vector

    Description:Vector of output names were you would like to restrict the output of variables(s) associated with this object

Advanced Parameters