Hi Bruno, hi Wolfgang,

thank you for the replies.

Unfortunately, using GridGenerator::hyper_shell() is not an option, as it 
does not allow
the inner radius to be zero. Adding spacedim != dim to 
GridGenerator::hyper_ball() is
a good I idea and something I might consider doing in a couple of months, 
once I have
gained a better understanding of the more fundamental parts of deal.ii.

Best regards
Jasper

Wolfgang Bangerth schrieb am Montag, 19. August 2024 um 23:32:00 UTC+2:

>
>
> On 8/19/24 03:46, jaosch wrote:
> > 
> > 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?
>
> For some of the other functions in namespace GridGenerator, if you 
> declare the triangulation as
> Triangulation<2,3> my_triangulation;
> then everything just magically works. I recognize that 
> GridGenerator::hyper_ball() is one of those functions that do not take a 
> second template argument for spacedim!=dim.
>
> Rather than think about how to work around this limitation, would you 
> perhaps be interested in simply adding the spacedim argument to the 
> implementation of this function and create a pull request that adds this 
> functionality? In the end, all that needs to happen is that the last 
> component of all vertex locations needs to be set to zero. We would, of 
> course, be quite happy to walk you through the process of creating a 
> pull request!
>
> Best
> Wolfgang
>

-- 
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/f8d7cbb3-346a-43b5-929e-5c7234e2543cn%40googlegroups.com.

Reply via email to