CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [CAD formats] application of ASCII STL in different systems (https://www.cfd-online.com/Forums/openfoam-meshing/140964-application-ascii-stl-different-systems.html)

ljjouc August 27, 2014 04:14

application of ASCII STL in different systems
 
Hi, everyone,

I plan to use snappyHexMesh utility to produce computation grids, and first, a geometrical ascii stl file is needed.

Now, I use a CAD software in a Windows system to produce the stl file. However. the openFoam has been intalled in the Opensuse Linux system. So, my question is whether the stl file can be directly recognized and used by the snappyHexMesh? If not, what procedures shall I take to make use of this stl file ?

Any help is greatly appreciated.

Kai

jokerito August 29, 2014 03:50

Hello Kai

The stl file from Windows works perfectly with Linux. But you should export the stl file as ASCII stl (you can choose between binary and ASCII in your CAD program). After that the ASCII should look like the following

Code:

solid
 facet normal  8.829476e-01 -0.000000e+00  4.694716e-01
  outer loop
    vertex  1.371324e+01  1.850000e+00  1.531920e+01
    vertex  2.008395e+01 -3.011765e+00  3.337644e+00
    vertex  2.008395e+01  1.850000e+00  3.337644e+00
  endloop
 endfacet
endsolid

and you can add it in your snappyHexMeshDict.

Please feel free to ask if you have any further questions.

Best Regards,
Mike

ljjouc August 29, 2014 04:14

Hi. Mike.

Thanks very much for your kind help. I guess that you have
made a test to validate the perfect suitability of ascii stl file in windows to linux.
Next. I will confidently constuct my model in a CAD software.

Best wishes.
Kai


All times are GMT -4. The time now is 10:07.