22 "MaterialProperty<std::vector<data_type> > for polycrystal sample.");
24 "grain_num",
"Specifies the number of grains to create the aux variables for.");
26 "variable_base",
"Vector that specifies the base name of the variables.");
31 "Specifying data type of the materials property, variables are created accordingly");
37 _grain_num(getParam<unsigned
int>(
"grain_num")),
38 _var_name_base(getParam<
std::vector<
std::string>>(
"variable_base")),
39 _num_var(_var_name_base.size()),
41 _data_size(_data_type.size())
51 mooseError(
"Data type not provided for all the AuxVariables in MultiAuxVariablesAction");
54 const unsigned int dim =
_mesh->dimension();
55 const std::vector<char> suffix = {
'x',
'y',
'z'};
58 for (
unsigned int val = 0; val <
_num_var; ++val)
59 for (
unsigned int gr = 0; gr <
_grain_num; ++gr)
72 for (
unsigned int x = 0;
x <
dim; ++
x)
const MultiMooseEnum & _data_type
list of material properties to be used
const std::vector< std::string > & _var_name_base
base name for the auxvariables
const unsigned int _num_var
number of auxvariables
static InputParameters validParams()
registerMooseAction("PhaseFieldApp", MultiAuxVariablesAction, "add_aux_variable")
const std::vector< double > x
std::string stringify(const T &t)
std::shared_ptr< MooseMesh > & _mesh
InputParameters _moose_object_pars
void mooseError(Args &&... args) const
std::shared_ptr< FEProblemBase > & _problem
const unsigned int _grain_num
number of grains to create
Automatically generates all auxvariables given vectors telling it the names and how many to create...
const unsigned int _data_size
number of properties
MultiAuxVariablesAction(const InputParameters ¶ms)
void ErrorVector unsigned int
static InputParameters validParams()