13 #include "metaphysicl/raw_type.h" 25 "The rank two material tensor name");
30 "Evaluate the tensor at this quadpoint. This option only needs to be used if " 31 "you are interested in a particular quadpoint in each element: otherwise do " 32 "not include this parameter in your input file");
38 "Start point for axis used to calculate some cylindrical material tensor quantities");
41 "End point for axis used to calculate some material tensor quantities");
42 params.
addParam<Point>(
"direction", Point(0, 0, 1),
"Direction vector");
49 _tensor(getGenericMaterialProperty<
RankTwoTensor, is_ad>(
"rank_two_tensor")),
50 _scalar_type(getParam<
MooseEnum>(
"scalar_type")),
51 _has_selected_qp(isParamValid(
"selected_qp")),
52 _selected_qp(_has_selected_qp ? getParam<unsigned
int>(
"selected_qp") : 0),
53 _point1(parameters.
get<Point>(
"point1")),
54 _point2(parameters.
get<Point>(
"point2")),
55 _input_direction(parameters.
get<Point>(
"direction") / parameters.
get<Point>(
"direction").
norm())
63 unsigned int qp = _qp;
66 if (_selected_qp >= _q_point.size())
68 Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
69 mooseError(
"RankTwoScalarAux. selected_qp specified as ",
71 " but there are only ",
73 " quadpoints in the element");
RankTwoScalarAux uses the namespace RankTwoScalarTools to compute scalar values from Rank-2 tensors...
static InputParameters validParams()
void mooseError(Args &&... args)
RankTwoScalarAuxTempl(const InputParameters ¶meters)
registerMooseObject("SolidMechanicsApp", RankTwoScalarAux)
static InputParameters validParams()
virtual Real computeValue()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void ErrorVector unsigned int
const Elem & get(const ElemType type_in)