23 "v",
"var_name_base",
"op_num",
"Array of coupled variable names");
24 params.
addParam<std::string>(
"base_name",
25 "Optional parameter that allows the user to define "
26 "type of force density under consideration");
28 "translation_constant", 500,
"constant value characterizing grain translation");
29 params.
addParam<Real>(
"rotation_constant", 1.0,
"constant value characterizing grain rotation");
31 "grain_force",
"UserObject for getting force and torque acting on grains");
33 "The FeatureFloodCount UserObject to get values from.");
35 "The feature volume VectorPostprocessorValue.");
41 _var_dofs(_var.dofIndices()),
43 _c(coupledValue(
"c")),
44 _grad_c(coupledGradient(
"c")),
45 _c_dofs(getVar(
"c", 0)->dofIndices()),
46 _op_num(coupledComponents(
"v")),
47 _vals(coupledValues(
"v")),
48 _vals_var(coupledIndices(
"v")),
49 _grad_vals(coupledGradients(
"v")),
50 _base_name(isParamValid(
"base_name") ? getParam<
std::string>(
"base_name") +
"_" :
""),
52 _grain_forces(_grain_force_torque.getForceValues()),
53 _grain_torques(_grain_force_torque.getTorqueValues()),
54 _grain_force_c_jacobians(_grain_force_torque.getForceCJacobians()),
55 _grain_force_eta_jacobians(_grain_force_torque.getForceEtaJacobians()),
56 _mt(getParam<Real>(
"translation_constant")),
57 _mr(getParam<Real>(
"rotation_constant")),
59 _grain_volumes(getVectorPostprocessorValue(
"grain_volumes",
"feature_volumes"))
This class provides interface for extracting the forces and torques computed in other UserObjects.
RealGradient _velocity_advection_jacobian
GrainRigidBodyMotionBase(const InputParameters ¶meters)
virtual void precalculateOffDiagJacobian(unsigned int jvar)
virtual void timestepSetup()
static InputParameters validParams()
virtual void precalculateResidual()
virtual bool globalDoFEnabled(MooseVariableFEBase &, dof_id_type)
virtual void precalculateJacobian()
virtual void calculateAdvectionVelocity()
unsigned int _total_dofs
get the total no. of dofs in the system
This class defines the interface for the GrainTracking objects.
static InputParameters validParams()
virtual libMesh::EquationSystems & es()=0
std::size_t n_dofs() const