Hi! Thanks for reply. Following to 1) I have built my square pyramid from 2 simplexes end merged them. Next problem arose immediately. I realized that I did not quite understand which of set_boundary functions to use. Is the following code enough or I should use some more sophisticated approach? Maybe set_all_boundary_ids will do better? <https://www.dealii.org/8.4.1/doxygen/deal.II/group__boundary.html#ga8fd51eb24101d7eec9a0337dc667e9a9> typename Triangulation<dim>::active_cell_iterator <https://www.dealii.org/8.4.1/doxygen/deal.II/classTriaActiveIterator.html> cell = tria.begin_active <https://www.dealii.org/8.4.1/doxygen/deal.II/classTriangulation.html#abef8795e729458954fd7301214012665> (), endc = tria.end <https://www.dealii.org/8.4.1/doxygen/deal.II/classTriangulation.html#a55aebb671467ea1367153f81463855ca> (); for (; cell!=endc; ++cell) { for (unsigned int face=0; face<GeometryInfo<dim>::faces_per_cell; ++face) { if (cell->face(face)->at_boundary()) cell->face(face)->set_boundary_id(1); } }
Dear Loylick, > > For these more complex grids that are not defined in GridGenerator, you > have a few options. You can: > 1. Use other GridGenerator functions in conjunction with the > GridGenerator::merge_triangulations > <https://www.dealii.org/8.4.1/doxygen/deal.II/namespaceGridGenerator.html#a0dace8884c1510160d7b6cbb313523e9> > > function so assemble it piece-wise > 2. Use external meshing software, such as GMsh or Cubit > 3. Construct the grid by hand, such as is demonstrated in step-14 > <https://www.dealii.org/8.4.1/doxygen/deal.II/step_14.html#TheExercise_2_3class> > . > > Regards, > Jean-Paul > > On Monday, December 12, 2016 at 4:31:18 AM UTC+1, Loylick wrote: >> >> Hi Wolfgang! >> To be precise I need the Triangulation object if it is what you call a >> *mesh*, that is it. >> > -- 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. For more options, visit https://groups.google.com/d/optout.