21 params.
addRequiredParam<Real>(
"lower_bound",
"The lower bound value for the range.");
22 params.
addRequiredParam<Real>(
"upper_bound",
"The upper bound value for the range.");
25 "A buffer zone value added to both ends of the range "
26 "where a third_state marker can be returned.");
28 params.
addClassDescription(
"Mark elements for adaptivity based on the supplied upper and lower "
29 "bounds and the specified variable.");
35 _lower_bound(parameters.get<Real>(
"lower_bound")),
36 _upper_bound(parameters.get<Real>(
"upper_bound")),
37 _buffer_size(parameters.get<Real>(
"buffer_size")),
38 _inside(getParam<bool>(
"invert") ? COARSEN : REFINE),
39 _outside(getParam<bool>(
"invert") ? REFINE : COARSEN)
42 mooseError(
"Invalid bounds specified (upper_bound < lower_bound)");
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
registerMooseObject("MooseApp", ValueRangeMarker)
MarkerValue
This mirrors the main refinement flag values in libMesh in Elem::RefinementState but adds "dont_mark"...
static InputParameters validParams()
const VariableValue & _u
Holds the solution at current quadrature points.
MarkerValue _third_state
The behavior to use when "in-between" other states (what to do on the fringe)
unsigned int _qp
The current quadrature point.
virtual MarkerValue computeQpMarker() override
Override this to compute a marker value at each quadrature point.
ValueRangeMarker(const InputParameters ¶meters)
static InputParameters validParams()