22 params.
addClassDescription(
"Action to create ICs for polycrystal variables from a UserObject");
23 params.
addRequiredParam<
unsigned int>(
"op_num",
"number of order parameters to create");
24 params.
addRequiredParam<std::string>(
"var_name_base",
"specifies the base name of the variables");
25 params.
addRequiredParam<UserObjectName>(
"polycrystal_ic_uo",
"Optional: TODO");
26 params.
addParam<std::vector<SubdomainName>>(
27 "block", {},
"Block restriction for the initial condition");
29 "linearized_interface",
false,
"Whether to use linearized interface or the standard model");
32 "Bound value used to keep variable " 33 "between +/-bound. Must be positive.");
42 _op_num(getParam<unsigned
int>(
"op_num")),
43 _var_name_base(getParam<
std::string>(
"var_name_base")),
44 _linearized_interface(getParam<bool>(
"linearized_interface"))
52 for (
unsigned int op = 0; op <
_op_num; op++)
54 std::string IC_type =
"PolycrystalColoringIC";
56 IC_type =
"PolycrystalColoringICLinearizedInterface";
61 poly_params.
set<
unsigned int>(
"op_index") = op;
63 poly_params.
set<UserObjectName>(
"polycrystal_ic_uo") =
64 getParam<UserObjectName>(
"polycrystal_ic_uo");
67 {
"polycrystal_ic_uo",
"block",
"bound_value"});
const bool _linearized_interface
virtual void act() override
PolycrystalColoringICAction(const InputParameters ¶ms)
InputParameters getValidParams(const std::string &name) const
static InputParameters validParams()
static InputParameters validParams()
registerMooseAction("PhaseFieldApp", PolycrystalColoringICAction, "add_ic")
const unsigned int _op_num
std::string stringify(const T &t)
Random Voronoi tesselation polycrystal action.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::shared_ptr< FEProblemBase > & _problem
const InputParameters & parameters() const
void ErrorVector unsigned int
const std::string _var_name_base