CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (http://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   Can OpenFOAM convert foam mesh to stl? (http://www.cfd-online.com/Forums/openfoam-meshing/72553-can-openfoam-convert-foam-mesh-stl.html)

liying02ts February 10, 2010 00:48

Can OpenFOAM convert foam mesh to stl?
 
hello,everyone:
I want to convert the foam mesh to stl, it likes ICEM exporting stl file.
but, I don't know if OpenFOAM has the functions.

I find there is a utility named surfaceFeatureExtract, but it only used on surface mesh, but not a whole foam mesh.

I wonder if there a way to exporting stl file from the foam mesh by using OpenFOAM not a third soft.

thank you ~~

olesen February 10, 2010 03:29

Quote:

Originally Posted by liying02ts (Post 245547)
I wonder if there a way to exporting stl file from the foam mesh by using OpenFOAM not a third soft.

A "foamToSurface" doesn't seem to exist yet, but you can try the following:
  • foamToStarMesh -surface [-latestTime | -constant]
This should create surfExport.{cel,vrt} files
  • touch surfExport.inp
This creates a dummy file that identifies the grouping of files as proSTAR files.
  • surfaceMeshConvert surfExport.inp surfExport.stl
Convert to STL (or other) surface format.

eugene February 10, 2010 05:04

If you just want the outside of the FOAM mesh as an STL, there is a handy tool called "surfaceMeshTriangulate" that will do it for you.

liying02ts February 10, 2010 05:08

thank you for your reply:)

I tried it just now, but surfaceConvert can't read the .inp file.

The suppurted extensions are .ftr/.stl/.stlb/.gts/.obj/.ac/.off/.nas/.tri .

The OpenFOAM extension I use is OpenFOAM-1.6.




Quote:

Originally Posted by olesen (Post 245556)
A "foamToSurface" doesn't seem to exist yet, but you can try the following:
  • foamToStarMesh -surface [-latestTime | -constant]
This should create surfExport.{cel,vrt} files
  • touch surfExport.inp
This creates a dummy file that identifies the grouping of files as proSTAR files.
  • surfaceMeshConvert surfExport.inp surfExport.stl
Convert to STL (or other) surface format.


liying02ts February 10, 2010 05:11

Oh, It is just what I want.

Thank you very much:)


Quote:

Originally Posted by eugene (Post 245564)
If you just want the outside of the FOAM mesh as an STL, there is a handy tool called "surfaceMeshTriangulate" that will do it for you.


olesen February 11, 2010 04:34

Quote:

Originally Posted by liying02ts (Post 245565)
thank you for your reply:)

I tried it just now, but surfaceConvert can't read the .inp file.

Sure, but surfaceMeshConvert is what I use.

Sofia July 15, 2010 05:08

Hi everyone;

I have a .stl file which represent a body and I want to calcul a flow around it. I need to choose the dimension of my external box (in which there is my body) but I don't know how...Have you got an idea?
Thank you for your reply
Sofia


All times are GMT -4. The time now is 08:32.