44 const double effective_r,
45 const ArrayView<const double> &particle_one_properties,
46 const ArrayView<const double> &particle_two_properties,
47 const double effective_rolling_friction_coefficient,
48 const double normal_force_norm)
53 Tensor<1, 3> particle_one_angular_velocity, particle_two_angular_velocity;
54 for (
int d = 0; d < 3; ++d)
56 particle_one_angular_velocity[d] =
57 particle_one_properties[PropertiesIndex::omega_x + d];
58 particle_two_angular_velocity[d] =
59 particle_two_properties[PropertiesIndex::omega_x + d];
62 Tensor<1, 3> omega_ij =
63 particle_one_angular_velocity - particle_two_angular_velocity;
64 Tensor<1, 3> omega_ij_direction = omega_ij / (omega_ij.norm() + DBL_MIN);
67 return (-effective_rolling_friction_coefficient * effective_r *
68 normal_force_norm * omega_ij_direction);
94 const double effective_r,
95 const ArrayView<const double> &particle_one_properties,
96 const ArrayView<const double> &particle_two_properties,
97 const double effective_rolling_friction_coefficient,
98 const double normal_force_norm,
99 const Tensor<1, 3> &normal_unit_vector)
104 Tensor<1, 3> particle_one_angular_velocity, particle_two_angular_velocity;
105 for (
int d = 0; d < 3; ++d)
107 particle_one_angular_velocity[d] =
108 particle_one_properties[PropertiesIndex::omega_x + d];
109 particle_two_angular_velocity[d] =
110 particle_two_properties[PropertiesIndex::omega_x + d];
113 Tensor<1, 3> omega_ij =
114 particle_one_angular_velocity - particle_two_angular_velocity;
115 Tensor<1, 3> omega_ij_direction = omega_ij / (omega_ij.norm() + DBL_MIN);
117 Tensor<1, 3> v_omega =
118 cross_product_3d(particle_one_angular_velocity,
119 particle_one_properties[PropertiesIndex::dp] * 0.5 *
120 normal_unit_vector) -
121 cross_product_3d(particle_two_angular_velocity,
122 particle_two_properties[PropertiesIndex::dp] * 0.5 *
123 -normal_unit_vector);
126 return (-effective_rolling_friction_coefficient * effective_r *
127 normal_force_norm * v_omega.norm() * omega_ij_direction);
157 const double effective_r,
158 const ArrayView<const double> &particle_one_properties,
159 const ArrayView<const double> &particle_two_properties,
160 const double effective_rolling_friction_coefficient,
161 const double effective_rolling_viscous_damping_coefficient,
162 const double f_coefficient,
163 const double normal_force_norm,
165 const double normal_spring_constant,
166 const Tensor<1, 3> &normal_unit_vector,
167 Tensor<1, 3> &cumulative_rolling_resistance_spring_torque)
172 const double mu_r_times_R_e =
173 effective_rolling_friction_coefficient * effective_r;
179 Tensor<1, 3> omega_ij;
180 for (
int d = 0; d < 3; ++d)
182 omega_ij[d] = particle_one_properties[PropertiesIndex::omega_x + d] -
183 particle_two_properties[PropertiesIndex::omega_x + d];
186 const Tensor<1, 3> omega_ij_perpendicular =
188 scalar_product(omega_ij, normal_unit_vector) * normal_unit_vector;
191 const Tensor<1, 3> delta_theta = dt * omega_ij_perpendicular;
194 const double K_r = [&]() {
195 if constexpr (dim == 3)
196 return 2.25 * normal_spring_constant *
197 Utilities::fixed_power<2>(mu_r_times_R_e);
199 return 3. * normal_spring_constant *
200 Utilities::fixed_power<2>(mu_r_times_R_e);
204 cumulative_rolling_resistance_spring_torque -= K_r * delta_theta;
207 const double M_r_max = mu_r_times_R_e * normal_force_norm;
209 const double rolling_resistance_spring_torque_norm =
210 cumulative_rolling_resistance_spring_torque.norm();
214 const double I_i = 1.4 * particle_one_properties[PropertiesIndex::mass] *
215 Utilities::fixed_power<2>(
216 0.5 * particle_one_properties[PropertiesIndex::dp]);
220 const double I_j = 1.4 * particle_two_properties[PropertiesIndex::mass] *
221 Utilities::fixed_power<2>(
222 0.5 * particle_two_properties[PropertiesIndex::dp]);
226 const double I_e = I_i * I_j / (I_i + I_j);
231 effective_rolling_viscous_damping_coefficient * 2. * sqrt(I_e * K_r);
235 if (rolling_resistance_spring_torque_norm > M_r_max)
237 cumulative_rolling_resistance_spring_torque =
238 cumulative_rolling_resistance_spring_torque *
239 (M_r_max / rolling_resistance_spring_torque_norm);
244 return cumulative_rolling_resistance_spring_torque -
245 f_coefficient * C_r * omega_ij_perpendicular;
248 return cumulative_rolling_resistance_spring_torque -
249 C_r * omega_ij_perpendicular;
Tensor< 1, 3 > viscous_rolling_resistance_torque(const double effective_r, const ArrayView< const double > &particle_one_properties, const ArrayView< const double > &particle_two_properties, const double effective_rolling_friction_coefficient, const double normal_force_norm, const Tensor< 1, 3 > &normal_unit_vector)
Calculation of the viscous rolling resistance torque model using the information obtained from the fi...
Tensor< 1, 3 > epsd_rolling_resistance_torque(const double effective_r, const ArrayView< const double > &particle_one_properties, const ArrayView< const double > &particle_two_properties, const double effective_rolling_friction_coefficient, const double effective_rolling_viscous_damping_coefficient, const double f_coefficient, const double normal_force_norm, const double dt, const double normal_spring_constant, const Tensor< 1, 3 > &normal_unit_vector, Tensor< 1, 3 > &cumulative_rolling_resistance_spring_torque)
Tensor< 1, 3 > constant_rolling_resistance_torque(const double effective_r, const ArrayView< const double > &particle_one_properties, const ArrayView< const double > &particle_two_properties, const double effective_rolling_friction_coefficient, const double normal_force_norm)
Calculation of the constant rolling resistance torque model using the information obtained from the f...