How to mesh Solid objects in step-54?

89 views
Skip to first unread message

HIMAL MAGAR

unread,
Nov 7, 2022, 12:16:19 AM11/7/22
to deal.II User Group
Hello,
I am trying to mesh an oxygen gas cylinder(which is part of our project in our University) using step-54. For simplicity, I have generated a coarse mesh(cuboid) using step-1 and prepared .IGS file of a cuboid of same dimension. But , I have encountered following error while running it:
Screenshot from 2022-11-07 10-47-49.png
PS: After this error, I have done/tried following things:
1. changed the scale among 1e-3, 1 and 1e+3
2. increased the tolerance up to 100.
...but the error is still present.
Thanks,
Himal.

Marc Fehling

unread,
Nov 9, 2022, 4:20:49 PM11/9/22
to deal.II User Group
Hi Himal,

the vertices of your coarse mesh must be located on the geometry provided by the IGES file.

It is hard to tell from that amount of information where exactly your error comes from. I advise you to draw a sketch of both your IGES cylinder and your coarse mesh. Usually you should find out this way what the error message is about.

On a different note: Creating a cylinder out of a cuboid is general not a good idea, as your cells near the corner vertices get distorted. I would rather advise you to choose a coarse cylinder from our GridGenerator namespace instead.

Marc

HIMAL MAGAR

unread,
Nov 12, 2022, 1:51:30 PM11/12/22
to dea...@googlegroups.com
Thank you for your response. Actually I was trying to learn the code by testing simple case(i.e a cuboid). Here is another problem:
I made a mesh surf.vtk in gmsh from a step file. When exporting from gmsh, the vtk version in the file was 2.0. So, I changed it to 3.0 and still I have got the following error:
Screenshot from 2022-11-11 10-39-03.png
The surf.vtk file contains following mesh:
Screenshot from 2022-11-11 10-43-01.png
Thanks!
Himal.

--
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 a topic in the Google Groups "deal.II User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/ZHitiBZDLDw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/2175b1ab-0392-489b-94f8-206d938648fen%40googlegroups.com.

Marc Fehling

unread,
Nov 12, 2022, 2:24:44 PM11/12/22
to deal.II User Group
Hi Himal,

please double check if you are loading the correct vtk file. Because that line is clearly present in the screenshot you posted.

In step-49 we are using the msh file format when working with Gmsh. Maybe you have more success with this format?

Marc

HIMAL MAGAR

unread,
Nov 14, 2022, 8:34:05 AM11/14/22
to dea...@googlegroups.com
Dear Sir,
As you suggested, I worked on the .msh format. And it WORKED!!. Thank you so much.
0-02-03-6e93bc00f0a4dda1496a4e494c98a47ae70f7a77c613f5fe0f9e37a4b34d06be_4f06409b1db8e8f9.png
0-02-03-3af1bb23ee6374e1ce4f6244605cb046b8f125299e7e54f4fe6cc433c8de4b4f_d4ceefb5a560240e.png

 A quick question, while working on 3d meshes, I frequently encounter the error " the point(...) is not on the manifold". I know what the error is about and I have confirmed the vertices of the coarse mesh are on the manifold. However, the error pertains. Are there any other sources that this error might have happened?
Thanks again.
Himal.

Marc Fehling

unread,
Nov 15, 2022, 12:43:59 PM11/15/22
to deal.II User Group
Hi Himal,

I'm glad it works now with the msh format.

You can look at the implementation of the "the point (...) is not on the manifold" check and convince yourself that if you encounter the error, then it is because the point is not on the manifold within the given tolerance. How did you confirm that the vertices are on the mesh? I would not try to silence the error by increasing the tolerance. Usually it indicates that something is wrong with your setup, and you should investigate the cause of the error.

Marc

HIMAL MAGAR

unread,
Nov 16, 2022, 8:36:20 AM11/16/22
to dea...@googlegroups.com
Hi Marc
Thank you for your reply. I had confirmed that the vertices were on the manifold by visualizing the coarse mesh( in .vtk format) and .iges file in gmsh together.

 Thanks.
Himal.



Reply all
Reply to author
Forward
0 new messages