Re: [deal.II] Re: Particle contact detection

2019-10-28 Thread Shahab Golshan
Very helpful. Thank you so much again. Best, Shahab -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group"

Re: [deal.II] Re: Particle contact detection

2019-10-25 Thread Rene Gassmoeller
Hi Shahab, I think this problem does not come from the vertex_to_cell_map but from the way you try to use it to find the neighbors. After calling vertex_to_cell_map you do not need to call GridTools::find_active_cell_around_point, because you already now the cells a vertex belongs to. Try the

[deal.II] Re: Particle contact detection

2019-10-25 Thread Shahab Golshan
Hi Rene, I have a problem in finding the list neighbor cells. This is the code I wrote: * int iter3=0; for (Triangulation<3>::active_cell_iterator cell = tr.begin_active(); cell != tr.end(); ++cell) { for (unsigned int v = 0; v < GeometryInfo<3>::vertices_per_cell;

[deal.II] Re: Particle contact detection

2019-10-18 Thread Shahab Golshan
Hi Rene, Thank you very much for your answer, it was very helpful. Best, Shahab On Tuesday, October 15, 2019 at 4:53:23 PM UTC-4, Rene Gassmöller wrote: > > Hi Shahab, > > Adding to Luca's reply you probably want to look into the > `ParticleHandler` class, in particular the `particles_in_cell` fu

[deal.II] Re: Particle contact detection

2019-10-15 Thread Rene Gassmöller
Hi Shahab, Adding to Luca's reply you probably want to look into the `ParticleHandler` class, in particular the `particles_in_cell` function that returns you all particles in a given cell (https://dealii.org/developer/doxygen/deal.II/classParticles_1_1ParticleHandler.html#acaf1232ffce0746baa641