22 "The names of the properties this material will have");
24 "The values associated with the named properties");
27 "A material evaluating one material property in type of RealEigenMatrix");
35 _prop_name(getParam<
std::string>(
"prop_name")),
36 _prop_value(getParam<RealEigenMatrix>(
"prop_value")),
37 _property(declareGenericProperty<RealEigenMatrix, is_ad>(_prop_name))
45 computeQpProperties();
52 auto & qp_prop = _property[_qp];
53 const auto m = _prop_value.rows(), n = _prop_value.cols();
55 for (
const auto i : make_range(m))
56 for (
const auto j : make_range(n))
57 qp_prop(i, j) = _prop_value(i, j);
registerMooseObject("MooseApp", GenericConstant2DArray)
Template for defining a constant array material property, using automatic differentiation or not.
static InputParameters validParams()
GenericConstant2DArrayTempl(const InputParameters ¶meters)
virtual void initQpStatefulProperties() override
Initialize stateful properties at quadrature points.
virtual void computeQpProperties() override
Users must override this method.
Materials compute MaterialProperties.
static InputParameters validParams()
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...