CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Native Meshers: snappyHexMesh and Others (http://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/)
-   -   Dirty STL with small gaps (http://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/94928-dirty-stl-small-gaps.html)

dmoroian November 30, 2011 08:58

Dirty STL with small gaps
 
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

novak1203 November 30, 2011 10:42

Re:
 
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

dmoroian November 30, 2011 13:04

Thanks Novak, I will definitely give it a try.

Dragos

dmoroian December 1, 2011 03:11

Not yet successful
 
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

novak1203 December 1, 2011 04:06

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

s.m August 13, 2013 18:15

Quote:

Originally Posted by novak1203 (Post 334133)
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.

aCFDuser August 14, 2013 05:08

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.

dmoroian August 18, 2013 03:05

Well thanks,
I will definitely give it a try as soon as I'm in front of my desktop.


All times are GMT -4. The time now is 14:40.