18 InputParameters params = validParams<GeneralUserObject>();
19 params.addClassDescription(
"Userobject for calculating force and torque acting on a grain");
20 params.addParam<std::vector<Real>>(
"force",
"force acting on grains");
21 params.addParam<std::vector<Real>>(
"torque",
"torque acting on grains");
27 GeneralUserObject(parameters),
28 _F(getParam<std::vector<Real>>(
"force")),
29 _M(getParam<std::vector<Real>>(
"torque")),
30 _grain_num(_F.size() / 3),
31 _ncomp(6 * _grain_num),
32 _force_values(_grain_num),
33 _torque_values(_grain_num)
40 unsigned int total_dofs = _subproblem.es().n_dofs();
51 if (_fe_problem.currentlyComputingJacobian())
60 const std::vector<RealGradient> &
66 const std::vector<RealGradient> &
72 const std::vector<Real> &
78 const std::vector<std::vector<Real>> &