20 "Random noise with different min/max inside/outside of a bounding box");
22 params.
addRequiredParam<
Real>(
"x1",
"The x coordinate of the lower left-hand corner of the box");
23 params.
addRequiredParam<
Real>(
"y1",
"The y coordinate of the lower left-hand corner of the box");
24 params.
addParam<
Real>(
"z1", 0.0,
"The z coordinate of the lower left-hand corner of the box");
26 params.
addRequiredParam<
Real>(
"x2",
"The x coordinate of the upper right-hand corner of the box");
27 params.
addRequiredParam<
Real>(
"y2",
"The y coordinate of the upper right-hand corner of the box");
28 params.
addParam<
Real>(
"z2", 0.0,
"The z coordinate of the upper right-hand corner of the box");
33 params.
addParam<
Real>(
"mn_invalue", 0.0,
"The min value of the variable invalue the box");
34 params.
addParam<
Real>(
"mn_outvalue", 0.0,
"The min value of the variable outvalue the box");
40 _x1(parameters.
get<
Real>(
"x1")),
41 _y1(parameters.
get<
Real>(
"y1")),
42 _z1(parameters.
get<
Real>(
"z1")),
43 _x2(parameters.
get<
Real>(
"x2")),
44 _y2(parameters.
get<
Real>(
"y2")),
45 _z2(parameters.
get<
Real>(
"z2")),
46 _mx_invalue(parameters.
get<
Real>(
"mx_invalue")),
47 _mx_outvalue(parameters.
get<
Real>(
"mx_outvalue")),
48 _mn_invalue(parameters.
get<
Real>(
"mn_invalue")),
49 _mn_outvalue(parameters.
get<
Real>(
"mn_outvalue")),
50 _range_invalue(_mx_invalue - _mn_invalue),
51 _range_outvalue(_mx_outvalue - _mn_outvalue),
52 _bottom_left(_x1, _y1, _z1),
53 _top_right(_x2, _y2, _z2)
55 mooseAssert(
_range_invalue >= 0.0,
"Inside Min > Inside Max for RandomIC!");
56 mooseAssert(
_range_outvalue >= 0.0,
"Outside Min > Outside Max for RandomIC!");
registerMooseObject("PhaseFieldApp", RndBoundingBoxIC)
RndBoundingBoxIC(const InputParameters ¶meters)
RndBoundingBoxIC allows setting the initial condition of a value inside and outside of a specified bo...
const Real _range_outvalue
static constexpr std::size_t dim
static InputParameters validParams()
const Real _range_invalue
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
IntRange< T > make_range(T beg, T end)
virtual Real value(const Point &p)
const Elem & get(const ElemType type_in)