21 params.addClassDescription(
"Access a component of a RankTwoTensor");
22 params.addRequiredParam<MaterialPropertyName>(
"rank_two_tensor",
23 "The rank two material tensor name");
24 params.addRequiredRangeCheckedParam<
unsigned int>(
26 "index_i >= 0 & index_i <= 2",
27 "The index i of ij for the tensor to output (0, 1, 2)");
28 params.addRequiredRangeCheckedParam<
unsigned int>(
30 "index_j >= 0 & index_j <= 2",
31 "The index j of ij for the tensor to output (0, 1, 2)");
32 params.addParam<
unsigned int>(
"selected_qp",
"Evaluate the tensor at this specific quadpoint");
33 params.addParamNamesToGroup(
"selected_qp",
"Advanced");
38 : NodalPatchRecovery(parameters),
39 _tensor(getMaterialProperty<
RankTwoTensor>(
"rank_two_tensor")),
40 _i(getParam<unsigned int>(
"index_i")),
41 _j(getParam<unsigned int>(
"index_j")),
42 _has_selected_qp(isParamValid(
"selected_qp")),
43 _selected_qp(_has_selected_qp ? getParam<unsigned int>(
"selected_qp") : 0)
50 unsigned int qp = _qp;
55 Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
56 mooseError(
"RankTwoAux. selected_qp specified as ",
58 " but there are only ",
60 " quadpoints in the element");