Gridgenerator Trapezoids?

31 views
Skip to first unread message

Earl Fairall

unread,
May 28, 2018, 2:00:40 PM5/28/18
to dea...@googlegroups.com
Hi everyone,

I am playing with the grid generator functions and I don't see one for trapezoids. Is that correct? Perhaps I am missing something.

I am trying to build a gear shaped geometry. Perhaps there is an easier way to do this?


Earl

David Wells

unread,
May 29, 2018, 12:03:31 PM5/29/18
to deal.II User Group
Hi Earl,

I think the best way to do generate a trapezoidal grid would be to use GridGenerator::general_cell. That function gives you a one-cell grid with caller-specified vertices.

> I am trying to build a gear shaped geometry. Perhaps there is an easier way to do this?

The answer depends on how many gears or their spacing, but I would try to solve this problem in the following way:
1. Generate a disk grid and refine it until we have enough boundary faces to reasonably place teeth around it. For example, if there should be four teeth, then we should refine the (2D) grid once so we have eight boundary faces.
2. Convert the refined triangulation into a triangulation with only coarse cells. There must be a better way to do this, but saving the grid to some external format (like GMSH) and then loading it again should work.
3. Use GridGenerator::merge_triangulation to attach the teeth to the disk grid. That can only merge two grids at once, so it will (wastefully) generate a lot of temporary Triangulations, but it should work.

This is an interesting problem. I hope you will post the grid you get as a result!

Thanks,
David Wells

Earl Fairall

unread,
May 29, 2018, 12:54:52 PM5/29/18
to dea...@googlegroups.com
Hi David, 

Thanks for the detailed response.
Yes, my plan was to generate the tooth geometry and use merge triangulations. Hopefully this is not too computationally expensive, but that is what I am testing to discover. 

Sure, I can post it if I can achieve a result. There are many applications which open up if I can get deal.ii to do some not unreasonably  complex axisymmetric geometries.


I hadn’t considered the general cell, but that looks like an excellent suggestion. I was attempting simplexes merged with a square, but this is probably better. 

I was having some issues yesterday getting my simplexes to generate, but let me look into this and report back.

Any other comments are welcome

Kind regards,





--
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+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Earl Fairall

unread,
Jun 3, 2018, 11:32:59 PM6/3/18
to dea...@googlegroups.com
This isn't exactly what I am hoping for in the end, but it is a good start using general_cell:


I should be able to parameterize this and I think it will work fairly well. It seems general_cell trapezoids can have curved edges too. Not the result I was expecting to get, but that's an important feature, too.

To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages