CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] Dirty STL with small gaps

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree4Likes
  • 4 Post By novak1203

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 30, 2011, 07:58
Default Dirty STL with small gaps
  #1
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 16
dmoroian is on a distinguished road
Hello foam-ers,
I would like to study the flow around a volume which has an exterior shape describe by an STL surface. The STL is rather dirty and has gaps (in other words it leaks). However, I want to use snappyHexMesh to generate a mesh on the outside of this surface.
What is the usual way of closing the gaps? Otherwise I end up with mesh in both sides of the surface.

I've seen an undocumented option "gap 0.005" (documents snappyHexMesh) but I cannot understand how to use it.

Thanks,
Dragos

Last edited by dmoroian; November 30, 2011 at 12:03.
dmoroian is offline   Reply With Quote

Old   November 30, 2011, 09:42
Default Re:
  #2
New Member
 
nbak skmt
Join Date: Nov 2011
Posts: 5
Rep Power: 10
novak1203 is on a distinguished road
Hello Dragos,

I don't know if you've already tested the following or not;

I usually use adMesh to fix incomplete STL file automatically.
If you work on Linux machine, (assuming Ubuntu or Debian) the software is wuite easy to get installed, e.g.

>sudo apt-get install admesh

Once you install it in your machine,

>admesh --help

will provide you detail instruction to use.

Hope it works.

Best,
Novak
Thom, calim_cfd, s.m and 1 others like this.
novak1203 is offline   Reply With Quote

Old   November 30, 2011, 12:04
Default
  #3
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 16
dmoroian is on a distinguished road
Thanks Novak, I will definitely give it a try.

Dragos
dmoroian is offline   Reply With Quote

Old   December 1, 2011, 02:11
Default Not yet successful
  #4
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 16
dmoroian is on a distinguished road
Well I tried it, but it changes structure of the surface. My original stl surface is composed out of many different surfaces, whereas the final output has only one (all the initial surfaces get merged into one).
Is there any way to keep the original surfaces (I think they are called parts in admesh)?

Dragos
dmoroian is offline   Reply With Quote

Old   December 1, 2011, 03:06
Default
  #5
New Member
 
nbak skmt
Join Date: Nov 2011
Posts: 5
Rep Power: 10
novak1203 is on a distinguished road
Dragos,

Well, so far I've just worked only on simple geometry (like bare ship hull without any appendages) and am afraid I have no idea to fix STL for complex geometries... Thanks.

Novak
novak1203 is offline   Reply With Quote

Old   August 13, 2013, 18:15
Default
  #6
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 11
s.m is on a distinguished road
Quote:
Originally Posted by novak1203 View Post
Hello Dragos,

I don't know if you've already tested the following or not;

I usually use adMesh to fix incomplete STL file automatically.
If you work on Linux machine, (assuming Ubuntu or Debian) the software is wuite easy to get installed, e.g.

>sudo apt-get install admesh

Once you install it in your machine,

>admesh --help

will provide you detail instruction to use.

Hope it works.

Best,
Novak
Hi,
by executing the first step " sudo apt-get install admesh"
i give this error,
"sudo: apt-get: command not found"
can you guide me more obvious that what is the steps for installing admesh?
thank you very much.
s.m is offline   Reply With Quote

Old   August 14, 2013, 05:08
Default
  #7
New Member
 
anonymous
Join Date: May 2013
Posts: 6
Rep Power: 9
aCFDuser is on a distinguished road
Hi Dragos,

You can manually edit your .stl file with remesh (http://remesh.sourceforge.net/). It works well under Windows and Linux (32bits, I think). It is very easy to use and the resulting .stl are usable by SHM. Another option is to use MeshLab (http://meshlab.sourceforge.net/), but I've had many problems with hole filling tool.
aCFDuser is offline   Reply With Quote

Old   August 18, 2013, 03:05
Default
  #8
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 16
dmoroian is on a distinguished road
Well thanks,
I will definitely give it a try as soon as I'm in front of my desktop.
dmoroian is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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] Problems with stl from dem and background mesh VLima OpenFOAM Meshing & Mesh Conversion 1 May 4, 2020 12:04
[snappyHexMesh] What CAD software do you use to define STL surfaces? Awak OpenFOAM Meshing & Mesh Conversion 6 April 8, 2016 04:35
[DesignModeler] Design Modeler to Stl format natantyt ANSYS Meshing & Geometry 0 December 9, 2013 15:55
[ANSYS Meshing] problem volume mesh with STL hadrien51 ANSYS Meshing & Geometry 0 June 5, 2013 10:34
[snappyHexMesh] orthogonality problem with raw STL file tellico OpenFOAM Meshing & Mesh Conversion 1 April 16, 2013 03:18


All times are GMT -4. The time now is 17:51.