20 "The x coordinate of the lower left-hand corner of the frozen box");
22 "The y coordinate of the lower left-hand corner of the frozen box");
23 params.
addParam<
Real>(
"z1", 0.0,
"The z coordinate of the lower left-hand corner of the box");
25 params.
addRequiredParam<
Real>(
"x2",
"The x coordinate of the upper right-hand corner of the box");
26 params.
addRequiredParam<
Real>(
"y2",
"The y coordinate of the upper right-hand corner of the box");
27 params.
addParam<
Real>(
"z2", 0.0,
"The z coordinate of the upper right-hand corner of the box");
29 params.
addParam<
Real>(
"min", 0.0,
"Lower bound of the randomly generated values");
30 params.
addParam<
Real>(
"max", 1.0,
"Upper bound of the randomly generated values");
31 params.
addParam<
Real>(
"inside", 1.0,
"Value inside sinusoids");
32 params.
addParam<
Real>(
"outside", 0.0,
"Value outside sinusoids");
38 "crystal_structure", crystal_structures,
"The type of crystal structure");
45 _x1(getParam<
Real>(
"x1")),
46 _y1(getParam<
Real>(
"y1")),
47 _z1(getParam<
Real>(
"z1")),
48 _x2(getParam<
Real>(
"x2")),
49 _y2(getParam<
Real>(
"y2")),
50 _z2(getParam<
Real>(
"z2")),
51 _lc(getParam<
Real>(
"lc")),
52 _crystal_structure(getParam<
MooseEnum>(
"crystal_structure")),
53 _bottom_left(_x1, _y1, _z1),
54 _top_right(_x2, _y2, _z2),
55 _range(_top_right - _bottom_left),
56 _min(getParam<
Real>(
"min")),
57 _max(getParam<
Real>(
"max")),
58 _val_range(_max - _min),
59 _inside(getParam<
Real>(
"inside")),
60 _outside(getParam<
Real>(
"outside"))
64 mooseError(
"x1, y1 or z1 is not less than x2, y2 or z2");
89 for (
unsigned int i = 0; i <
_icdim; i++)
96 for (
unsigned int i = 0; i <
_icdim; i++)
104 for (
unsigned int i = 0; i <
_icdim; i++)
107 val = val / 2.0 + 0.5;
static InputParameters validParams()
static constexpr std::size_t dim
MooseEnum _crystal_structure
registerMooseObject("PhaseFieldApp", PFCFreezingIC)
PFCFreezingIC creates an initial density for a PFC model that has one area of a set crystal structure...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real value(const Point &p)
IntRange< T > make_range(T beg, T end)
void mooseError(Args &&... args) const
PFCFreezingIC(const InputParameters ¶meters)
static InputParameters validParams()