20 params.
addRequiredParam<
unsigned int>(
"op_num",
"Number of order parameters");
21 params.
addRequiredParam<
unsigned int>(
"op_index",
"The index for the current order parameter");
22 params.
addRequiredParam<
unsigned int>(
"random_type",
"Type of random grain structure");
28 _op_num(getParam<unsigned
int>(
"op_num")),
29 _op_index(getParam<unsigned
int>(
"op_index")),
30 _random_type(getParam<unsigned
int>(
"random_type"))
46 unsigned int rndind =
_op_num * val;
55 paramError(
"random_type",
"Bad type passed in PolycrystalRandomIC");
const unsigned int _op_num
registerMooseObject("PhaseFieldApp", PolycrystalRandomIC)
Random initial condition for a polycrystalline material.
PolycrystalRandomIC(const InputParameters ¶meters)
void paramError(const std::string ¶m, Args... args) const
const unsigned int _random_type
const unsigned int _op_index
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real value(const Point &p)
static InputParameters validParams()
void ErrorVector unsigned int
static InputParameters validParams()