Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
update_local_particle_containers.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) 2020, 2022-2025 The Lethe Authors
2// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
3
4#ifndef lethe_update_local_particle_containers_h
5#define lethe_update_local_particle_containers_h
6
7#include <dem/contact_info.h>
8#include <dem/contact_type.h>
10
11#include <deal.II/particles/particle_handler.h>
12
13using namespace dealii;
14
15/**
16 * @brief Update the iterators to local particles in a map of particles
17 * (particle_container)
18 *
19 * @tparam dim Dimensionality of the geometry which contains the particles
20 *
21 * @param particle_container A map of particles which is used to update
22 * the iterators to particles in particle-particle and particle-wall fine search
23 * outputs after calling sort particles into cells function
24 * @param particle_handler Particle handler to access all the particles in the
25 * system
26 */
27template <int dim>
28void
31 &particle_container,
32 const Particles::ParticleHandler<dim> *particle_handler);
33
34/**
35 * @brief Update the iterators to particles in pairs_in_contact
36 * (output of particle-object fine search)
37 *
38 * @tparam dim Dimensionality of the geometry which contains the particles
39 * @tparam pairs_structure Adjacent particle-object pairs container type.
40 * @tparam contact_type Label of contact type to apply proper manipulation of
41 * contact removal in containers.
42 *
43 * @param pairs_in_contact Output of particle-object fine search.
44 * @param particle_container Output of update_particle_container function.
45 */
46template <int dim, typename pairs_structure, ContactType contact_type>
47void
49 pairs_structure &pairs_in_contact,
51 &particle_container);
52
53
54#endif
ankerl::unordered_dense::map< types::particle_index, Particles::ParticleIterator< dim > > particle_index_iterator_map
void update_contact_container_iterators(pairs_structure &pairs_in_contact, const typename DEM::dem_data_structures< dim >::particle_index_iterator_map &particle_container)
Update the iterators to particles in pairs_in_contact (output of particle-object fine search).
void update_particle_container(typename DEM::dem_data_structures< dim >::particle_index_iterator_map &particle_container, const Particles::ParticleHandler< dim > *particle_handler)
Update the iterators to local particles in a map of particles (particle_container).