18 params.
addClassDescription(
"Access a component of a RealVectorValue defined on a cohesive zone");
19 params.
addRequiredParam<std::string>(
"real_vector_value",
"The vector material name");
21 "property_name",
"Name of the material property computed by this model");
23 "index",
"index >= 0 & index <= 2",
"The vector component output (0, 1, 2)");
24 params.
addParam<std::string>(
"base_name",
"Material property base name");
30 _base_name(isParamValid(
"base_name") && !getParam<
std::string>(
"base_name").empty()
31 ? getParam<
std::string>(
"base_name") +
"_"
33 _property(declarePropertyByName<Real>(getParam<MaterialPropertyName>(
"property_name"))),
34 _vector(getMaterialPropertyByName<RealVectorValue>(_base_name +
35 getParam<
std::string>(
"real_vector_value"))),
36 _index(getParam<unsigned
int>(
"index"))
registerMooseObject("SolidMechanicsApp", CZMRealVectorCartesianComponent)
void ErrorVector unsigned int
This interface material class extract a cartesiona component from a vector materail property defined ...
const MaterialProperty< RealVectorValue > & _vector
the vector material property
CZMRealVectorCartesianComponent(const InputParameters ¶meters)
void computeQpProperties() override
MaterialProperty< Real > & _property
the property created by this material
static InputParameters validParams()
const unsigned int _index
the component of vector we want to extract
static InputParameters validParams()