21 params.
addClassDescription(
"Action that adds the contribution of stored energy associated with " 22 "dislocations to grain growth models");
24 "specifies the total number of OPs representing " 25 "all grains (deformed + undeformed " 26 "(recrystallized)) to create");
27 params.
addRequiredParam<std::string>(
"var_name_base",
"specifies the base name of the variables");
28 params.
addParam<VariableName>(
"c",
"Name of coupled concentration variable");
30 "specifies the number of deformed grains to create");
31 params.
addParam<VariableName>(
"T",
"Name of temperature variable");
33 "use_displaced_mesh",
false,
"Whether to use displaced mesh in the kernels");
35 "The GrainTracker UserObject to get values from.");
41 _op_num(getParam<unsigned
int>(
"op_num")),
42 _var_name_base(getParam<
std::string>(
"var_name_base")),
43 _deformed_grain_num(getParam<unsigned
int>(
"deformed_grain_num"))
50 for (
unsigned int op = 0; op <
_op_num; ++op)
57 std::vector<VariableName>
v;
70 params.
set<NonlinearVariableName>(
"variable") = var_name;
71 params.
set<std::vector<VariableName>>(
"v") =
v;
72 params.
set<UserObjectName>(
"grain_tracker") = getParam<UserObjectName>(
"grain_tracker");
73 params.
set<
bool>(
"use_displaced_mesh") = getParam<bool>(
"use_displaced_mesh");
74 params.
set<
unsigned int>(
"deformed_grain_num") = getParam<unsigned int>(
"deformed_grain_num");
75 params.
set<
unsigned int>(
"op_index") = op;
77 std::string kernel_name =
"ACStoredEnergy_" + var_name;
78 _problem->addKernel(
"ACSEDGPoly", kernel_name, params);
InputParameters getValidParams(const std::string &name) const
static InputParameters validParams()
const unsigned int _op_num
number of grains to create
std::string stringify(const T &t)
const std::string _var_name_base
base name for the order parameter variables
static const std::string v
std::shared_ptr< FEProblemBase > & _problem
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
registerMooseAction("PhaseFieldApp", PolycrystalStoredEnergyAction, "add_kernel")
static InputParameters validParams()
void ErrorVector unsigned int
PolycrystalStoredEnergyAction(const InputParameters ¶ms)
Action that sets up ACSEDGPoly Kernels that adds the stored energy contribution to grain growth model...