CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

Dirty STL with small gaps

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

Like Tree3Likes
  • 3 Post By novak1203

Reply
 
LinkBack Thread Tools Display Modes
Old   November 30, 2011, 08:58
Default Dirty STL with small gaps
  #1
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 647
Rep Power: 11
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 13:03.
dmoroian is offline   Reply With Quote

Old   November 30, 2011, 10:42
Default Re:
  #2
New Member
 
nbak skmt
Join Date: Nov 2011
Posts: 5
Rep Power: 5
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 and s.m like this.
novak1203 is offline   Reply With Quote

Old   November 30, 2011, 13:04
Default
  #3
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 647
Rep Power: 11
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, 03:11
Default Not yet successful
  #4
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 647
Rep Power: 11
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, 04:06
Default
  #5
New Member
 
nbak skmt
Join Date: Nov 2011
Posts: 5
Rep Power: 5
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: 5
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: 4
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: 647
Rep Power: 11
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
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make boundary patches in STL file nzy102 OpenFOAM Mesh Utilities 3 January 8, 2015 08:56
External mesh crawls into car model. Holes in STL model? MadsR OpenFOAM Native Meshers: snappyHexMesh and Others 8 October 26, 2013 10:21
close stl file, inflow calculation, how to generete mesh? lixuethermal OpenFOAM Meshing & Mesh Conversion 3 November 9, 2011 07:05
SnappyHexMesh meshes inside and outside of an STL geometry villier OpenFOAM Mesh Utilities 17 June 15, 2010 19:51
Gaps in between surfaces Vidya Raja FLUENT 5 May 29, 2006 09:37


All times are GMT -4. The time now is 22:39.