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"))),
35 getParam<
std::string>(
"real_vector_value"))),
36 _index(getParam<unsigned
int>(
"index"))
MaterialProperty< Real > & _property
the property created by this material
const MaterialProperty< RealVectorValue > & _vector
the vector material property
static InputParameters validParams()
const unsigned int _index
the component of vector we want to extract
registerMooseObject("SolidMechanicsApp", CZMRealVectorCartesianComponent)
void computeQpProperties() override
CZMRealVectorCartesianComponent(const InputParameters ¶meters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
This interface material class extract a cartesiona component from a vector materail property defined ...
void ErrorVector unsigned int