CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

how to handle non-closed surfaces in STL

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By zannatul

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 30, 2014, 05:28
Default how to handle non-closed surfaces in STL
  #1
Member
 
DongHo
Join Date: Jul 2013
Posts: 51
Rep Power: 12
eddykendo is on a distinguished road
Hi Foamers

I will use a STL file with snappyHexMesh, though.
But I came to know that there were non-closed surfaces on STL file after using surfaceCheck.
I know there are some of utilities concerning STL like surfaceHookUp, etc.
Which one is the best way to fix the non-closed surfaces? otherwise, I will need to use a third party CAD software?
I hope I will be able to handle this matter without using third party programs like ANSA, Hypermesh, etc
Please let me know it if you have experiences like that.

Thank you.
eddykendo is offline   Reply With Quote

Old   July 1, 2014, 02:27
Default
  #2
Senior Member
 
Franjo Juretic
Join Date: Aug 2011
Location: Velika Gorica, Croatia
Posts: 124
Rep Power: 16
franjo_j is on a distinguished road
Send a message via Skype™ to franjo_j
Hello,

The holes/cracks shall not be a problem if they are smaller than the cell size you apply locally.
You can close holes in meshLab, which is a nice open-source tool for processing and editing of surface meshes.

Regards,

Franjo
franjo_j is offline   Reply With Quote

Old   February 1, 2016, 00:20
Default
  #3
New Member
 
Nila
Join Date: Oct 2014
Posts: 24
Rep Power: 11
zannatul is on a distinguished road
Hi Dustin. I know it is a very old thread. But I really need help. I need to mesh a wedge shaped geometry. I have seven different patches for that. I am willing to use snappy hex mesh. I prepared 7 different stl files. But when I used cat command, the single stl file is not closed. What should I do now. Please help me.
[Moderator note: moved from http://www.cfd-online.com/Forums/ope...hexmesh-2.html]

________
When I join my stl files of different boundary patches the joined surface is not closed but it should be. What should I do now. Please help me.
[Moderator note: moved from http://www.cfd-online.com/Forums/ope...surface-2.html]

________
Quote:
Originally Posted by franjo_j View Post
Hello,

The holes/cracks shall not be a problem if they are smaller than the cell size you apply locally.
You can close holes in meshLab, which is a nice open-source tool for processing and editing of surface meshes.

Regards,

Franjo
Hi Franjo
I have the same problem. I have prepared 7 different stl files for 7 boundary patches. But when I check to see if they together make a watertight body it says not all surface closed. In Meshlab I could not see any holes. Can you please help me how I can solve this problem?

Last edited by wyldckat; February 6, 2016 at 05:44.
zannatul is offline   Reply With Quote

Old   February 6, 2016, 05:47
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick question @zannatul: What does this command give you?
Code:
surfaceCheck your_stl_file_name.stl
Note: Replace "your_stl_file_name.stl" with your STL file name
__________________
wyldckat is offline   Reply With Quote

Old   February 8, 2016, 16:13
Default
  #5
New Member
 
Nila
Join Date: Oct 2014
Posts: 24
Rep Power: 11
zannatul is on a distinguished road
Hi Bruno
Thanks for your response. Earlier surface check command was showing that surface is not closed. Now I have solved the problem and its showing surface is closed, all surfaces are connected to two faces.
wyldckat likes this.
zannatul is offline   Reply With Quote

Old   March 20, 2016, 21:40
Default
  #6
New Member
 
Thazin
Join Date: Mar 2016
Posts: 8
Rep Power: 10
Txinsoulkg is on a distinguished road
Hi zannatul!
I hv a problem juz like you..how did you do that...plz advice me....
Txinsoulkg is offline   Reply With Quote

Old   March 23, 2016, 01:49
Default
  #7
New Member
 
Nila
Join Date: Oct 2014
Posts: 24
Rep Power: 11
zannatul is on a distinguished road
Quote:
Originally Posted by Txinsoulkg View Post
Hi zannatul!
I hv a problem juz like you..how did you do that...plz advice me....
Hi Thazin

At first I was exporting my CAD geometry in stl format and then I was dividing it into different patches. I had a very fine opening in my geometry and by exporting it in stl format I was not being able to find that hole. Then I exported it in step file format. After that when I selected my patches I could identify where is the problem in my geometry. So I Redraw my geometry and could export different patches directly from solidworks. Then I used cat commend and checked again. It was closed. I hope this could help you. Good luck!

Zannatul
zannatul is offline   Reply With Quote

Old   April 14, 2016, 15:38
Default
  #8
New Member
 
Thazin
Join Date: Mar 2016
Posts: 8
Rep Power: 10
Txinsoulkg is on a distinguished road
Thanks!!
But I'm not like you cuz I'm using meshlab. And I can't redraw my geometry because it's changed DEM( digital elevation model) into stl format.
Txinsoulkg is offline   Reply With Quote

Old   April 14, 2016, 15:57
Default
  #9
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Quote:
Originally Posted by franjo_j View Post
Hello,

The holes/cracks shall not be a problem if they are smaller than the cell size you apply locally.
You can close holes in meshLab, which is a nice open-source tool for processing and editing of surface meshes.

Regards,

Franjo
Hi Franjo,

you are right that if the cell size is bigger than the gap it should not be a problem BUT after the last few years I realized that you can get crazy meshing results if you have non-closed stl's. My collegue also used non closed STL's (complex casting stuff) and got crazy results and unexpected behavior all the time. After I fixed the STL with my tools (Blender + SALOME), meshing was so nice and the results.

I only can recommend to have a good triangulated (not CAD exported) STL. Anyway this is my personal opinion (:

For reparing you can use SALOME or BLENDER.

PS: If someone send me a case to check and I see that the surfaceCheck gives a not closed surface, I will not investigate further (:
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   January 9, 2019, 13:26
Default
  #10
New Member
 
David
Join Date: Oct 2018
Posts: 27
Rep Power: 7
Fool is on a distinguished road
Hi together

I think I have a similar problem with my STL's. I created my geometry with Autodesk Inventor and then imported it to Salome to subdevide some regions and export them as STL like in this video https://www.youtube.com/watch?v=ObsFQUiVi1U&t=180s .

Now the problem is that after I've used the cat tool in Linux on my subdivided regions and used surfaceCheck on it it says that the surface is not closed. But when I check the whole STL from Salome it says the surface is closed. So I guess the problem is somewhere in the cutting process with salome.

I've tried to fix it with meshlab but there I don't even see any holes. Is it possible that there went something wrong in the cat process? I would be very thankful if someone would be so kind and take a look at my STL.

triSurface.zip


Edit: found this post of you and will try it this way first

https://www.cfd-online.com/Forums/op...sh-salome.html

Edit 2: Well it works but only if I just use groups of faces. Not when I use operation tools like cut, fuse and so on. Isn't that possible?

Last edited by Fool; January 10, 2019 at 10:46.
Fool is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] Experimentally obtained STL file for internal Flow SnappyHexMesh Irish09 OpenFOAM Meshing & Mesh Conversion 9 April 7, 2012 08:50
[ICEM] Hexa meshing a STL file in aerospace industry DavidCarlsson ANSYS Meshing & Geometry 0 January 20, 2012 04:34
[snappyHexMesh] Trouble with stl file: surface not closed (snappyHexMesh) sfalsharif OpenFOAM Meshing & Mesh Conversion 3 April 3, 2011 05:53
How does Fluent handle heat transfer and rough surfaces? SadbutTrue FLUENT 1 August 10, 2010 11:49
SnappyHexMesh and planar STL surfaces hannes OpenFOAM Bugs 1 August 1, 2008 08:47


All times are GMT -4. The time now is 13:47.