|
[Sponsors] |
August 5, 2009, 16:39 |
STL to gmsh
|
#1 |
Member
John
Join Date: Aug 2009
Posts: 92
Rep Power: 17 |
Hi,
I'm trying to import a simple 3-d cube from SolidWorks (saved as STL) into gmsh, but I get the error: 'No facets found in STL file for solid 0' I would eventually like to import complex structures into gmsh. Please help. Thanks. |
|
August 5, 2009, 19:22 |
|
#2 |
Member
John
Join Date: Aug 2009
Posts: 92
Rep Power: 17 |
Hi,
The STL that is saved in SolidWorks has a weird wireframe as can be seen in the attachment. Is there any way of deleting the diagonal lines that extend from the cylinder to the corners of the block so that they don't have to be deleted individually in gmsh. Also, gmsh assigns a uniform mesh. Is there a way to refine the mesh in gmsh so that it is finer around the cylinder, or would I have to do this in OpenFOAM. Thanks. |
|
August 10, 2009, 05:09 |
|
#3 | ||
Member
Etienne Lorriaux
Join Date: Mar 2009
Location: Compiegne, France
Posts: 45
Rep Power: 17 |
Hi,
Quote:
I am regularly loading STL surfaces (generated with OCC) into gmsh without any problems. Maybe there is a little problem with the Solidworks STL export. Are you using Gmsh under Linux ? If so, don't forget to launch a dos2unix on your STL file. If you compile gmsh with OCC support, you can also load your surfaces in gmsh as STEP or IGES files. Quote:
Your case can also be easily meshed in OF with blockMesh. Regards, Etienne. |
|||
Tags |
error, facets, gmsh, stl |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[surface handling] How to make boundary patches in STL file | nzy102 | OpenFOAM Meshing & Mesh Conversion | 4 | January 22, 2018 16:03 |
CAD -> gMsh -> enGrid -> OpenFOAM Problem | AlGates | OpenFOAM | 7 | August 6, 2010 13:46 |
[snappyHexMesh] SnappyHexMesh meshes inside and outside of an STL geometry | villier | OpenFOAM Meshing & Mesh Conversion | 17 | June 15, 2010 20:51 |
[Gmsh] How does Gmsh deal with overlap boundaries? | yuhai | OpenFOAM Meshing & Mesh Conversion | 1 | April 24, 2009 14:34 |
Importing and cleaning STL files | Peter | FLUENT | 2 | October 13, 2006 06:41 |