hello! in the documentation , it's said in the case of mesh with moved vertices is refined a few step later, should do as follows: 1. save the offset applied to every vertex, 2. call communicate_locally_moved_vertices function 3. apply the opposite offset 4. call communicate_local refining or coarsening the meshly_moved_vertices function 5. refining or coarsening the mesh
i don't quite understand the 5 step. 1. what's the meaning of offset here? is it the move vector for every vectices in this step, or the whole move vector which will make the mesh return to original mesh? 2. we add the opposite offset , does this means we need apply the offset again after refining or coarsening ? 在 2016年11月17日星期四 UTC+8下午8:15:24,Daniel Arndt写道: > > Rajat, > > 1. After the p:d:triangulation is created and >> triangulation.global_refine(2) is used, the locally owned cells on each >> mesh will divide in 2^dim elements each but does that also mean that the >> ghost cells or artificial cells on each processor also gets refined ? >> > All ghost cells look the same as on the owning processor while this is not > true for artificial cells. When the mesh is refined a new partitioning > between processors is used. Therefore, ghost cells and artificial are not > really refined but set accordingly after the mesh is refined. > > >> 2. To move the ghost cells on the domain as well, is it just sufficient >>> to replace the* if condition* above with >> >> if (cell->is_locally_owned()) => if (cell->is_ghost()) ? >> and the displacement is a ghosted vector. >> > You don't need to do this yourself. If you are using a > parallel::distributed Triangulation and move vertices that are in someone's > ghost layer, you should call > Triangulation::communicate_locally_moved_vertices [1] to have a consistent > mesh. You need to be careful if you want to refine the mesh > after you have moved vertices as noted in the documentary of that function. > > Best, > Daniel > > [1] > https://www.dealii.org/8.4.1/doxygen/deal.II/classparallel_1_1distributed_1_1Triangulation.html#a247598f1323a9f847832e60d6c840469 > > -- 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" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/f84f4519-e336-4632-a6fc-1ce94501e428%40googlegroups.com.