22 *particle_point_pairs_in_contact,
25 std::vector<Tensor<1, 3>> &force)
29 for (
auto pairs_in_contact_iterator =
30 particle_point_pairs_in_contact->begin();
31 pairs_in_contact_iterator != particle_point_pairs_in_contact->end();
32 ++pairs_in_contact_iterator)
36 auto contact_information = &pairs_in_contact_iterator->second;
39 auto &particle = contact_information->particle;
40 auto particle_properties = particle->get_properties();
41 Point<3> particle_location_3d;
43 if constexpr (dim == 3)
44 particle_location_3d = particle->get_location();
46 if constexpr (dim == 2)
49 const Point<3> point = contact_information->point;
50 double normal_overlap = ((particle_properties[PropertiesIndex::dp]) / 2) -
51 point.distance(particle_location_3d);
53 if (normal_overlap > 0)
57 Tensor<1, 3> point_to_particle_vector = particle_location_3d - point;
58 Tensor<1, 3> normal_vector =
59 point_to_particle_vector / point_to_particle_vector.norm();
61 Tensor<1, 3> particle_velocity;
62 particle_velocity[0] = particle_properties[PropertiesIndex::v_x];
63 particle_velocity[1] = particle_properties[PropertiesIndex::v_y];
64 particle_velocity[2] = particle_properties[PropertiesIndex::v_z];
66 Tensor<1, 3> particle_omega;
67 particle_omega[0] = particle_properties[PropertiesIndex::omega_x];
68 particle_omega[1] = particle_properties[PropertiesIndex::omega_y];
69 particle_omega[2] = particle_properties[PropertiesIndex::omega_z];
72 Tensor<1, 3> contact_relative_velocity =
74 cross_product_3d((((particle_properties[PropertiesIndex::dp]) / 2) *
79 double normal_relative_velocity =
80 contact_relative_velocity * normal_vector;
83 double effective_youngs_modulus =
90 double model_parameter_beta =
94 double model_parameter_sn =
95 2 * effective_youngs_modulus *
96 sqrt(particle_properties[PropertiesIndex::dp] * normal_overlap);
100 double normal_spring_constant =
101 1.3333 * effective_youngs_modulus *
102 sqrt(particle_properties[PropertiesIndex::dp] / 2 * normal_overlap);
103 double normal_damping_constant =
104 -1.8257 * model_parameter_beta *
105 sqrt(model_parameter_sn *
106 particle_properties[PropertiesIndex::mass]);
109 Tensor<1, 3> spring_normal_force =
110 (normal_spring_constant * normal_overlap) * normal_vector;
112 Tensor<1, 3> dashpot_normal_force =
113 (normal_damping_constant * normal_relative_velocity) *
118 Tensor<1, 3> total_force = spring_normal_force - dashpot_normal_force;
121 Tensor<1, 3> &particle_force = force[particle->get_local_index()];
124 particle_force += total_force;
136 *particle_line_pairs_in_contact,
138 &physical_properties,
139 std::vector<Tensor<1, 3>> &force)
142 for (
auto pairs_in_contact_iterator = particle_line_pairs_in_contact->begin();
143 pairs_in_contact_iterator != particle_line_pairs_in_contact->end();
144 ++pairs_in_contact_iterator)
148 auto contact_information = &pairs_in_contact_iterator->second;
151 auto particle = contact_information->particle;
152 auto particle_properties = particle->get_properties();
153 Point<3> particle_location_3d;
155 if constexpr (dim == 3)
156 particle_location_3d = particle->get_location();
158 if constexpr (dim == 2)
161 Point<3> point_one = contact_information->point_one;
162 Point<3> point_two = contact_information->point_two;
166 Point<3> projection =
170 const double normal_overlap =
171 ((particle_properties[PropertiesIndex::dp]) / 2) -
172 projection.distance(particle_location_3d);
174 if (normal_overlap > 0)
178 Tensor<1, 3> point_to_particle_vector =
179 particle_location_3d - projection;
180 Tensor<1, 3> normal_vector =
181 point_to_particle_vector / point_to_particle_vector.norm();
183 Tensor<1, 3> particle_velocity;
184 particle_velocity[0] = particle_properties[PropertiesIndex::v_x];
185 particle_velocity[1] = particle_properties[PropertiesIndex::v_y];
186 particle_velocity[2] = particle_properties[PropertiesIndex::v_z];
189 Tensor<1, 3> particle_omega;
190 particle_omega[0] = particle_properties[PropertiesIndex::omega_x];
191 particle_omega[1] = particle_properties[PropertiesIndex::omega_y];
192 particle_omega[2] = particle_properties[PropertiesIndex::omega_z];
196 Tensor<1, 3> contact_relative_velocity =
198 cross_product_3d((((particle_properties[PropertiesIndex::dp]) / 2) *
204 double normal_relative_velocity =
205 contact_relative_velocity * normal_vector;
208 double effective_youngs_modulus =
215 double model_parameter_beta =
219 double model_parameter_sn =
220 2 * effective_youngs_modulus *
221 sqrt(particle_properties[PropertiesIndex::dp] * normal_overlap);
225 double normal_spring_constant =
226 1.3333 * effective_youngs_modulus *
227 sqrt(particle_properties[PropertiesIndex::dp] / 2 * normal_overlap);
228 double normal_damping_constant =
229 -1.8257 * model_parameter_beta *
230 sqrt(model_parameter_sn *
231 particle_properties[PropertiesIndex::mass]);
234 Tensor<1, 3> spring_normal_force =
235 (normal_spring_constant * normal_overlap) * normal_vector;
237 Tensor<1, 3> dashpot_normal_force =
238 (normal_damping_constant * normal_relative_velocity) *
243 Tensor<1, 3> total_force = spring_normal_force - dashpot_normal_force;
246 Tensor<1, 3> &particle_force = force[particle->get_local_index()];
249 particle_force += total_force;
259 &particle_point_pairs_in_contact,
260 std::vector<Tensor<1, 3>> &displacement)
262 for (
const auto &pair_in_contact : particle_point_pairs_in_contact)
264 const auto &contact_information = pair_in_contact.second;
265 const auto &particle = contact_information.particle;
267 Point<3> particle_location_3d;
269 if constexpr (dim == 3)
270 particle_location_3d = particle->get_location();
272 if constexpr (dim == 2)
276 particle_location_3d,
277 contact_information.point,
287 &particle_line_pairs_in_contact,
288 std::vector<Tensor<1, 3>> &displacement)
290 for (
const auto &pair_in_contact : particle_line_pairs_in_contact)
292 const auto &contact_information = pair_in_contact.second;
293 const auto &particle = contact_information.particle;
295 Point<3> particle_location_3d;
297 if constexpr (dim == 3)
298 particle_location_3d = particle->get_location();
300 if constexpr (dim == 2)
305 const Point<3> projection =
307 contact_information.point_one,
308 contact_information.point_two);
311 particle_location_3d,
320 const Particles::ParticleIterator<dim> &particle,
321 const Point<3> &particle_location,
322 const Point<3> &contact_point,
323 std::vector<Tensor<1, 3>> &displacement)
325 const double particle_diameter =
326 particle->get_properties()[PropertiesIndex::dp];
327 const double distance = contact_point.distance(particle_location);
328 const double normal_overlap = 0.5 * particle_diameter - distance;
330 if (normal_overlap <= 0.)
336 const Tensor<1, 3> normal_vector =
337 (particle_location - contact_point) / distance;
341 displacement[particle->get_local_index()] +=
342 (1.02 * normal_overlap + 0.01 * particle_diameter) * normal_vector;
Calculate the non-linear particle-point and particle-line contact force using the information obtaine...
void add_shift_displacement(const Particles::ParticleIterator< dim > &particle, const Point< 3 > &particle_location, const Point< 3 > &contact_point, std::vector< Tensor< 1, 3 > > &displacement)
Add the displacement that separates a particle from the boundary point or line it overlaps to the dis...
void calculate_particle_line_contact_force(const typename DEM::dem_data_structures< dim >::particle_line_in_contact *particle_line_pairs_in_contact, const Parameters::Lagrangian::LagrangianPhysicalProperties &physical_properties, std::vector< Tensor< 1, 3 > > &force)
Calculate of the particle-line contact force using non-linear (Hertzian) model.
void calculate_particle_point_shift_displacement(const typename DEM::dem_data_structures< dim >::particle_point_in_contact &particle_point_pairs_in_contact, std::vector< Tensor< 1, 3 > > &displacement)
Calculate the displacements that separate the particles from the boundary points they overlap....
Point< 3 > find_projection_point(const Point< 3 > &point_p, const Point< 3 > &point_a, const Point< 3 > &point_b)
This private function is used to find the projection of point_p on a line with beginning and ending v...
unsigned int n_contacts
Number of particle-point and particle-line contacts in the present pseudo-time step when using the pa...
void calculate_particle_point_contact_force(const typename DEM::dem_data_structures< dim >::particle_point_in_contact *particle_point_pairs_in_contact, const Parameters::Lagrangian::LagrangianPhysicalProperties &physical_properties, std::vector< Tensor< 1, 3 > > &force)
Calculate of the particle-point contact force using non-linear (Hertzian) model.
void calculate_particle_line_shift_displacement(const typename DEM::dem_data_structures< dim >::particle_line_in_contact &particle_line_pairs_in_contact, std::vector< Tensor< 1, 3 > > &displacement)
Calculate the displacements that separate the particles from the boundary lines they overlap....
Point< 3 > find_projection_point(const Point< 3 > &point_p, const Point< 3 > &point_a, const Point< 3 > &point_b)
This private function is used to find the projection of point_p on a line with beginning and ending v...