22 "the box and the other grain is the outside of the box");
23 params.
addRequiredParam<std::string>(
"var_name_base",
"specifies the base name of the variables");
24 params.
addRequiredParam<
unsigned int>(
"op_num",
"Number of grains, should be 2");
25 params.
addRequiredParam<
Real>(
"x1",
"The x coordinate of the lower left-hand corner of the box");
26 params.
addRequiredParam<
Real>(
"y1",
"The y coordinate of the lower left-hand corner of the box");
27 params.
addParam<
Real>(
"z1", 0.0,
"The z coordinate of the lower left-hand corner of the box");
28 params.
addRequiredParam<
Real>(
"x2",
"The x coordinate of the upper right-hand corner of the box");
29 params.
addRequiredParam<
Real>(
"y2",
"The y coordinate of the upper right-hand corner of the box");
30 params.
addParam<
Real>(
"z2", 0.0,
"The z coordinate of the upper right-hand corner of the box");
31 params.
addParam<std::vector<SubdomainName>>(
"block",
32 "Block restriction for the initial condition");
39 _var_name_base(getParam<
std::string>(
"var_name_base")),
40 _op_num(getParam<unsigned
int>(
"op_num"))
43 paramError(
"op_num",
"Must equal 2 for bicrystal ICs");
50 Moose::err <<
"Inside the BicrystalBoundingBoxICAction Object" << std::endl;
54 for (
unsigned int op = 0; op <
_op_num; ++op)
62 poly_params.
set<VariableName>(
"variable") = var_name;
66 poly_params.
set<
Real>(
"inside") = 1.0;
67 poly_params.
set<
Real>(
"outside") = 0.0;
72 poly_params.
set<
Real>(
"inside") = 0.0;
73 poly_params.
set<
Real>(
"outside") = 1.0;
78 "BoundingBoxIC",
"BicrystalBoundingBoxIC_" +
Moose::stringify(op), poly_params);
const std::string _var_name_base
InputParameters getValidParams(const std::string &name) const
registerMooseAction("PhaseFieldApp", BicrystalBoundingBoxICAction, "add_ic")
const unsigned int _op_num
static InputParameters validParams()
void paramError(const std::string ¶m, Args... args) const
std::string stringify(const T &t)
static InputParameters validParams()
Bicrystal using a bounding box.
BicrystalBoundingBoxICAction(const InputParameters ¶ms)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::shared_ptr< FEProblemBase > & _problem
const InputParameters & parameters() const
void ErrorVector unsigned int