Jasper, You don't want to use GridGenerator::hyper_ball. Instead try:
Triangulation<2,3> my_triangulation; GridGenerator::hyper_shell(my_triangulation); Note that you need to use a triangulation where dim is different than spacedim. Best, Bruno On Monday, August 19, 2024 at 8:48:54 AM UTC-4 jaosch wrote: > Hello, > > I am new to deal.ii and try to create a simple 2D mesh that lives in 3D > space. > > My starting point is the following code: > > Triangulation<2> my_triangulation; > GridGenerator::hyper_ball(my_triangulation); > > Is there a built-in function to convert my_triangulation to type > Triangulation<2,3> so I end up with a 2D surface in 3D space? > > Best regards > Jasper > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/38225442-bbe0-44c1-b24b-d6ead17aeb83n%40googlegroups.com.
