25template <
typename T,
bool is_ad>
30 params.addClassDescription(
31 "Picks a component of an indexable material property to get projected on an elemental "
32 "Auxvariable. For use by ProjectedStatefulMaterialStorageAction.");
33 params.addRequiredParam<MaterialPropertyName>(
34 "prop",
"material property to project onto an elemental aux variable");
35 params.addRequiredParam<
unsigned int>(
"component",
"scalar component of the property to fetch");
39template <
typename T,
bool is_ad>
43 _current_subdomain_id(_assembly.currentSubdomainID()),
44 _prop(getGenericMaterialProperty<T, is_ad>(
"prop")),
45 _component(getParam<unsigned
int>(
"component"))
49template <
typename T,
bool is_ad>
56 _required_materials = buildRequiredMaterials();
59template <
typename T,
bool is_ad>
64 for (
const auto & mat : _required_materials[_current_subdomain_id])
65 mat->initStatefulProperties(_qrule->size());
registerMooseObject("MooseApp", ProjectedStatefulMaterialRealAux)
void ErrorVector unsigned int
virtual void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job.
static InputParameters validParams()
virtual Real computeValue() override
Compute and return the value of the aux variable.
virtual void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job.
ProjectedStatefulMaterialAuxTempl(const InputParameters ¶meters)
static InputParameters validParams()
SerialAccessRange< T > serialAccess(T &obj)