15 const Particles::ParticleHandler<dim> &particle_handler,
17 &boundary_cells_with_points,
19 &particle_point_contact_candidates)
22 particle_point_contact_candidates.clear();
26 int contact_candidate_counter = 0;
33 for (
auto map_iterator = boundary_cells_with_points.begin();
34 map_iterator != boundary_cells_with_points.end();
41 typename Particles::ParticleHandler<dim>::particle_iterator_range
42 particles_in_cell = particle_handler.particles_in_cell(
43 cells_with_boundary_points_information.
cell);
45 for (
typename Particles::ParticleHandler<dim>::particle_iterator_range::
46 iterator particles_in_cell_iterator = particles_in_cell.begin();
47 particles_in_cell_iterator != particles_in_cell.end();
48 ++particles_in_cell_iterator)
53 particle_point_contact_candidates.emplace(
54 contact_candidate_counter,
56 particles_in_cell_iterator,
57 cells_with_boundary_points_information.
point});
58 ++contact_candidate_counter;
63template <
int dim,
typename PropertiesIndex>
66 const Particles::ParticleHandler<dim> &particle_handler,
68 &boundary_cells_with_points,
70 &particle_point_contact_candidates,
74 particle_point_contact_candidates.clear();
78 int contact_candidate_counter = 0;
85 for (
auto map_iterator = boundary_cells_with_points.begin();
86 map_iterator != boundary_cells_with_points.end();
93 unsigned int main_cell_mobility_status =
95 cells_with_boundary_points_information.
cell);
96 if (main_cell_mobility_status !=
101 typename Particles::ParticleHandler<dim>::particle_iterator_range
102 particles_in_cell = particle_handler.particles_in_cell(
103 cells_with_boundary_points_information.
cell);
105 for (
typename Particles::ParticleHandler<dim>::particle_iterator_range::
106 iterator particles_in_cell_iterator = particles_in_cell.begin();
107 particles_in_cell_iterator != particles_in_cell.end();
108 ++particles_in_cell_iterator)
113 particle_point_contact_candidates.emplace(
114 contact_candidate_counter,
116 particles_in_cell_iterator,
117 cells_with_boundary_points_information.
point});
118 ++contact_candidate_counter;
127 const Particles::ParticleHandler<dim> &particle_handler,
129 &boundary_cells_with_lines,
131 &particle_line_contact_candidates)
134 particle_line_contact_candidates.clear();
138 unsigned int contact_candidate_counter = 0;
145 for (
auto map_iterator = boundary_cells_with_lines.begin();
146 map_iterator != boundary_cells_with_lines.end();
150 map_iterator->second;
153 typename Particles::ParticleHandler<dim>::particle_iterator_range
154 particles_in_cell = particle_handler.particles_in_cell(
155 cells_with_boundary_lines_info.
cell);
157 for (
auto particles_in_cell_iterator = particles_in_cell.begin();
158 particles_in_cell_iterator != particles_in_cell.end();
159 ++particles_in_cell_iterator)
163 particle_line_contact_candidates.emplace(
164 contact_candidate_counter,
166 particles_in_cell_iterator,
167 cells_with_boundary_lines_info.
point_one,
168 cells_with_boundary_lines_info.
point_two});
169 ++contact_candidate_counter;
174template <
int dim,
typename PropertiesIndex>
177 const Particles::ParticleHandler<dim> &particle_handler,
179 &boundary_cells_with_lines,
181 &particle_line_contact_candidates,
185 particle_line_contact_candidates.clear();
189 unsigned int contact_candidate_counter = 0;
196 for (
auto map_iterator = boundary_cells_with_lines.begin();
197 map_iterator != boundary_cells_with_lines.end();
201 map_iterator->second;
204 unsigned int main_cell_mobility_status =
206 cells_with_boundary_lines_info.
cell);
207 if (main_cell_mobility_status !=
212 typename Particles::ParticleHandler<dim>::particle_iterator_range
213 particles_in_cell = particle_handler.particles_in_cell(
214 cells_with_boundary_lines_info.
cell);
216 for (
auto particles_in_cell_iterator = particles_in_cell.begin();
217 particles_in_cell_iterator != particles_in_cell.end();
218 ++particles_in_cell_iterator)
222 particle_line_contact_candidates.emplace(
223 contact_candidate_counter,
225 particles_in_cell_iterator,
226 cells_with_boundary_lines_info.
point_one,
227 cells_with_boundary_lines_info.
point_two});
228 ++contact_candidate_counter;
235 const Particles::ParticleHandler<2> &particle_handler,
237 &boundary_cells_with_lines,
239 &particle_line_contact_candidates);
243 const Particles::ParticleHandler<3> &particle_handler,
245 &boundary_cells_with_lines,
247 &particle_line_contact_candidates);
251 const Particles::ParticleHandler<2> &particle_handler,
253 &boundary_cells_with_lines,
255 &particle_line_contact_candidates,
257 &sparse_contacts_object);
261 const Particles::ParticleHandler<3> &particle_handler,
263 &boundary_cells_with_lines,
265 &particle_line_contact_candidates,
267 &sparse_contacts_object);
271 const Particles::ParticleHandler<2> &particle_handler,
273 &boundary_cells_with_lines,
275 &particle_line_contact_candidates,
277 &sparse_contacts_object);
281 const Particles::ParticleHandler<3> &particle_handler,
283 &boundary_cells_with_lines,
285 &particle_line_contact_candidates,
287 &sparse_contacts_object);
291 const Particles::ParticleHandler<2> &particle_handler,
293 &boundary_cells_with_lines,
295 &particle_line_contact_candidates,
297 &sparse_contacts_object);
301 const Particles::ParticleHandler<2> &particle_handler,
303 &boundary_cells_with_lines,
305 &particle_line_contact_candidates,
307 &sparse_contacts_object);
311 const Particles::ParticleHandler<3> &particle_handler,
313 &boundary_cells_with_lines,
315 &particle_line_contact_candidates,
317 &sparse_contacts_object);
321 const Particles::ParticleHandler<3> &particle_handler,
323 &boundary_cells_with_lines,
325 &particle_line_contact_candidates,
327 &sparse_contacts_object);
331 const Particles::ParticleHandler<2> &particle_handler,
333 &boundary_cells_with_points,
335 &particle_point_contact_candidates);
339 const Particles::ParticleHandler<3> &particle_handler,
341 &boundary_cells_with_points,
343 &particle_point_contact_candidates);
347 const Particles::ParticleHandler<2> &particle_handler,
349 &boundary_cells_with_points,
351 &particle_point_contact_candidates,
353 &sparse_contacts_object);
357 const Particles::ParticleHandler<3> &particle_handler,
359 &boundary_cells_with_points,
361 &particle_point_contact_candidates,
363 &sparse_contacts_object);
367 const Particles::ParticleHandler<2> &particle_handler,
369 &boundary_cells_with_points,
371 &particle_point_contact_candidates,
373 &sparse_contacts_object);
377 const Particles::ParticleHandler<3> &particle_handler,
379 &boundary_cells_with_points,
381 &particle_point_contact_candidates,
383 &sparse_contacts_object);
387 const Particles::ParticleHandler<2> &particle_handler,
389 &boundary_cells_with_points,
391 &particle_point_contact_candidates,
393 &sparse_contacts_object);
397 const Particles::ParticleHandler<2> &particle_handler,
399 &boundary_cells_with_points,
401 &particle_point_contact_candidates,
403 &sparse_contacts_object);
407 const Particles::ParticleHandler<3> &particle_handler,
409 &boundary_cells_with_points,
411 &particle_point_contact_candidates,
413 &sparse_contacts_object);
417 const Particles::ParticleHandler<3> &particle_handler,
419 &boundary_cells_with_points,
421 &particle_point_contact_candidates,
423 &sparse_contacts_object);
DEM particle property definitions and output name management.
This namespace defines all the data containers and required operations on these containers for the DE...
template void find_particle_line_contact_pairs< 3, DEM::DEMMPProperties::PropertiesIndex >(const Particles::ParticleHandler< 3 > &particle_handler, const std::unordered_map< std::string, cell_line_info< 3 > > &boundary_cells_with_lines, DEM::dem_data_structures< 3 >::particle_line_candidates &particle_line_contact_candidates, const AdaptiveSparseContacts< 3, DEM::DEMMPProperties::PropertiesIndex > &sparse_contacts_object)
template void find_particle_line_contact_pairs< 2, DEM::CFDDEMProperties::PropertiesIndex >(const Particles::ParticleHandler< 2 > &particle_handler, const std::unordered_map< std::string, cell_line_info< 2 > > &boundary_cells_with_lines, DEM::dem_data_structures< 2 >::particle_line_candidates &particle_line_contact_candidates, const AdaptiveSparseContacts< 2, DEM::CFDDEMProperties::PropertiesIndex > &sparse_contacts_object)
void find_particle_line_contact_pairs(const Particles::ParticleHandler< dim > &particle_handler, const std::unordered_map< std::string, cell_line_info< dim > > &boundary_cells_with_lines, typename DEM::dem_data_structures< dim >::particle_line_candidates &particle_line_contact_candidates)
Find a map of tuples (tuple of particle and the locations of beginning and ending vertices of the bou...
void find_particle_point_contact_pairs(const Particles::ParticleHandler< dim > &particle_handler, const std::unordered_map< std::string, cell_point_info< dim > > &boundary_cells_with_points, typename DEM::dem_data_structures< dim >::particle_point_candidates &particle_point_contact_candidates)
Find a map of pairs (pair of particle and the boundary vertex location) which shows the candidate par...
template void find_particle_line_contact_pairs< 2, DEM::CFDDEMMPProperties::PropertiesIndex >(const Particles::ParticleHandler< 2 > &particle_handler, const std::unordered_map< std::string, cell_line_info< 2 > > &boundary_cells_with_lines, DEM::dem_data_structures< 2 >::particle_line_candidates &particle_line_contact_candidates, const AdaptiveSparseContacts< 2, DEM::CFDDEMMPProperties::PropertiesIndex > &sparse_contacts_object)
template void find_particle_point_contact_pairs< 3 >(const Particles::ParticleHandler< 3 > &particle_handler, const std::unordered_map< std::string, cell_point_info< 3 > > &boundary_cells_with_points, DEM::dem_data_structures< 3 >::particle_point_candidates &particle_point_contact_candidates)
template void find_particle_line_contact_pairs< 3, DEM::DEMProperties::PropertiesIndex >(const Particles::ParticleHandler< 3 > &particle_handler, const std::unordered_map< std::string, cell_line_info< 3 > > &boundary_cells_with_lines, DEM::dem_data_structures< 3 >::particle_line_candidates &particle_line_contact_candidates, const AdaptiveSparseContacts< 3, DEM::DEMProperties::PropertiesIndex > &sparse_contacts_object)
template void find_particle_line_contact_pairs< 3, DEM::CFDDEMMPProperties::PropertiesIndex >(const Particles::ParticleHandler< 3 > &particle_handler, const std::unordered_map< std::string, cell_line_info< 3 > > &boundary_cells_with_lines, DEM::dem_data_structures< 3 >::particle_line_candidates &particle_line_contact_candidates, const AdaptiveSparseContacts< 3, DEM::CFDDEMMPProperties::PropertiesIndex > &sparse_contacts_object)
template void find_particle_line_contact_pairs< 2, DEM::DEMMPProperties::PropertiesIndex >(const Particles::ParticleHandler< 2 > &particle_handler, const std::unordered_map< std::string, cell_line_info< 2 > > &boundary_cells_with_lines, DEM::dem_data_structures< 2 >::particle_line_candidates &particle_line_contact_candidates, const AdaptiveSparseContacts< 2, DEM::DEMMPProperties::PropertiesIndex > &sparse_contacts_object)
template void find_particle_line_contact_pairs< 2, DEM::DEMProperties::PropertiesIndex >(const Particles::ParticleHandler< 2 > &particle_handler, const std::unordered_map< std::string, cell_line_info< 2 > > &boundary_cells_with_lines, DEM::dem_data_structures< 2 >::particle_line_candidates &particle_line_contact_candidates, const AdaptiveSparseContacts< 2, DEM::DEMProperties::PropertiesIndex > &sparse_contacts_object)
template void find_particle_line_contact_pairs< 2 >(const Particles::ParticleHandler< 2 > &particle_handler, const std::unordered_map< std::string, cell_line_info< 2 > > &boundary_cells_with_lines, DEM::dem_data_structures< 2 >::particle_line_candidates &particle_line_contact_candidates)
template void find_particle_point_contact_pairs< 2 >(const Particles::ParticleHandler< 2 > &particle_handler, const std::unordered_map< std::string, cell_point_info< 2 > > &boundary_cells_with_points, DEM::dem_data_structures< 2 >::particle_point_candidates &particle_point_contact_candidates)
template void find_particle_line_contact_pairs< 3, DEM::CFDDEMProperties::PropertiesIndex >(const Particles::ParticleHandler< 3 > &particle_handler, const std::unordered_map< std::string, cell_line_info< 3 > > &boundary_cells_with_lines, DEM::dem_data_structures< 3 >::particle_line_candidates &particle_line_contact_candidates, const AdaptiveSparseContacts< 3, DEM::CFDDEMProperties::PropertiesIndex > &sparse_contacts_object)
template void find_particle_line_contact_pairs< 3 >(const Particles::ParticleHandler< 3 > &particle_handler, const std::unordered_map< std::string, cell_line_info< 3 > > &boundary_cells_with_lines, DEM::dem_data_structures< 3 >::particle_line_candidates &particle_line_contact_candidates)
std::unordered_map< types::particle_index, particle_line_contact_info< dim > > particle_line_candidates
std::unordered_map< types::particle_index, particle_point_contact_info< dim > > particle_point_candidates
Handle information related to the cell-line matching.
Triangulation< dim >::active_cell_iterator cell
Handle information related to the cell-point matching.
Triangulation< dim >::active_cell_iterator cell
Handle information related to the calculation of the particle-line contact forces.
Handle information related to the calculation of the particle-point contact forces.