InputParameters
validParams<ValueThresholdMarker>()
{
  InputParameters params = validParams<Marker>();

  MooseEnum third_state("DONT_MARK=-1 COARSEN DO_NOTHING REFINE", "DONT_MARK");
  params.addParam<MooseEnum>(
      "third_state",
      third_state,
      "The Marker state to apply to values falling in-between the coarsen and refine thresholds.");
  params.addParam<Real>("coarsen",
                        "The threshold value for coarsening.  Elements with variable "
                        "values beyond this will be marked for coarsening.");
  params.addParam<Real>("refine",
                        "The threshold value for refinement.  Elements with variable "
                        "values beyond this will be marked for refinement.");
  params.addParam<bool>("invert",
                        false,
                        "If this is true then values _below_ 'refine' will be "
                        "refined and _above_ 'coarsen' will be coarsened.");
  params.addRequiredCoupledVar("variable",
                               "The values of this variable will be compared to "
                               "'refine' and 'coarsen' to see what should be done with "
                               "the element");
  params.addClassDescription(
      "The the refinement state based on a threshold value compared to the specified variable.");
  return params;
}
InputParameters validParams<QuadraturePointMarker>()
{
  InputParameters params = validParams<Marker>();

  MooseEnum third_state("DONT_MARK=-1 COARSEN DO_NOTHING REFINE", "DONT_MARK");
  params.addParam<MooseEnum>("third_state", third_state, "The Marker state to apply to values falling in-between the coarsen and refine thresholds.");
  params.addParam<Real>("coarsen", "The threshold value for coarsening.  Elements with variable values beyond this will be marked for coarsening.");
  params.addParam<Real>("refine", "The threshold value for refinement.  Elements with variable values beyond this will be marked for refinement.");
  params.addParam<bool>("invert", false, "If this is true then values _below_ 'refine' will be refined and _above_ 'coarsen' will be coarsened.");
  params.addRequiredParam<VariableName>("variable", "The values of this variable will be compared to 'refine' and 'coarsen' to see what should be done with the element");
  return params;
}
Exemple #3
0
InputParameters validParams<ValueRangeMarker>()
{
  InputParameters params = validParams<Marker>();

  MooseEnum third_state("DONT_MARK=-1 COARSEN DO_NOTHING REFINE", "DONT_MARK");
  params.addParam<MooseEnum>("third_state", third_state, "The Marker state to apply to values in the buffer zone (both ends of the range).");
  params.addRequiredParam<Real>("lower_bound", "The lower bound value for the range.");
  params.addRequiredParam<Real>("upper_bound", "The upper bound value for the range.");
  params.addParam<Real>("buffer_size", 0.0, "A buffer zone value added to both ends of the range where a third_state marker can be returned.");
  params.addParam<bool>("invert", false, "If this is true then values inside the range will be coarsened, and values outside the range will be refined.");
  params.addRequiredCoupledVar("variable", "The variable whose values are used in this marker.");
  return params;
}