24 "vector-valued properties specified");
37 paramError(
"property",
"variable_base and property must be vectors of the same size");
40 unsigned int dim =
_mesh->dimension();
42 const std::vector<char> suffix = {
'x',
'y',
'z'};
44 for (
unsigned int gr = 0; gr <
_grain_num; ++gr)
45 for (
unsigned int val = 0; val <
_num_var; ++val)
46 for (
unsigned int x = 0;
x <
dim; ++
x)
51 params.
set<AuxVariableName>(
"variable") = var_name;
52 params.
set<MaterialPropertyName>(
"property") =
_prop[val];
53 params.
set<
unsigned int>(
"component") =
x;
54 params.
set<
unsigned int>(
"index") = gr;
55 params.
set<
bool>(
"use_displaced_mesh") = getParam<bool>(
"use_displaced_mesh");
57 std::string aux_kernel_name = var_name;
58 _problem->addAuxKernel(
"MaterialStdVectorRealGradientAux", aux_kernel_name, params);
const unsigned int _grain_num
number of grains to create
const std::vector< MaterialPropertyName > & _prop
list of material properties to be used
const unsigned int _num_prop
number of properties
static InputParameters validParams()
const unsigned int _num_var
number of auxvariables
InputParameters getValidParams(const std::string &name) const
MaterialVectorGradAuxKernelAction(const InputParameters ¶ms)
const std::vector< std::string > & _var_name_base
base name for the auxvariables
const std::vector< double > x
static InputParameters validParams()
void paramError(const std::string ¶m, Args... args) const
std::string stringify(const T &t)
std::shared_ptr< MooseMesh > & _mesh
registerMooseAction("PhaseFieldApp", MaterialVectorGradAuxKernelAction, "add_aux_kernel")
std::shared_ptr< FEProblemBase > & _problem