CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[CAD formats] Can OpenFOAM convert foam mesh to stl?

Register Blogs Community New Posts Updated Threads Search

Like Tree11Likes
  • 2 Post By liying02ts
  • 4 Post By olesen
  • 2 Post By eugene
  • 2 Post By olesen
  • 1 Post By olesen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2010, 23:48
Default Can OpenFOAM convert foam mesh to stl?
  #1
New Member
 
liying
Join Date: Apr 2009
Posts: 6
Rep Power: 17
liying02ts is on a distinguished road
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 ~~
amuzeshi and ordinary like this.
liying02ts is offline   Reply With Quote

Old   February 10, 2010, 02:29
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by liying02ts View Post
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.
olesen is offline   Reply With Quote

Old   February 10, 2010, 04:04
Default
  #3
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
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.
maryCFD and amuzeshi like this.
eugene is offline   Reply With Quote

Old   February 10, 2010, 04:08
Default
  #4
New Member
 
liying
Join Date: Apr 2009
Posts: 6
Rep Power: 17
liying02ts is on a distinguished road
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 View Post
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 is offline   Reply With Quote

Old   February 10, 2010, 04:11
Default
  #5
New Member
 
liying
Join Date: Apr 2009
Posts: 6
Rep Power: 17
liying02ts is on a distinguished road
Oh, It is just what I want.

Thank you very much


Quote:
Originally Posted by eugene View Post
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 is offline   Reply With Quote

Old   February 11, 2010, 03:34
Default
  #6
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by liying02ts View Post
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.
olesen is offline   Reply With Quote

Old   July 15, 2010, 05:08
Default
  #7
New Member
 
Sofia
Join Date: May 2010
Location: Toulouse, France
Posts: 14
Rep Power: 15
Sofia is on a distinguished road
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
Sofia is offline   Reply With Quote

Old   November 21, 2016, 12:55
Default
  #8
Member
 
Emre
Join Date: Nov 2015
Location: Izmir, Turkey
Posts: 97
Rep Power: 10
ordinary is on a distinguished road
Quote:
Originally Posted by olesen View Post
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.
I tried this method. It did not work for my 3D surface body (zero volume) which is in MSH and MESHDAT file format from Ansys.
ordinary is offline   Reply With Quote

Old   October 10, 2017, 04:26
Default
  #9
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by ordinary View Post
I tried this method. It did not work for my 3D surface body (zero volume) which is in MSH and MESHDAT file format from Ansys.

The conversion utils only work to export from OpenFOAM format. In the meantime (since the first post), there is a foamToSurface utility to export the mesh boundaries directly.
ordinary and MTomić like this.
olesen is offline   Reply With Quote

Old   December 5, 2018, 06:58
Default
  #10
New Member
 
wenhui
Join Date: Dec 2018
Posts: 1
Rep Power: 0
wenhuicc is on a distinguished road
Quote:
Originally Posted by olesen View Post
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.
I tried this on my 3D.msh. But the size of created surfExport.inp is zero and the created meshExport.stl showed nothing.
OpenFOAM i used is v5.
Can you please give some comments? thanks
wenhuicc is offline   Reply With Quote

Old   December 30, 2018, 10:03
Default
  #11
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Did you try with surfaceMeshTriangulate? The name is misleading (will be updated soon). Exports OpenFOAM patches (all, or just some) to various surface formats, including stl, obj etc
fumiya likes this.
olesen is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 05:38
[Commercial meshers] COnvert FLuent MEsh to openfoam with interface manuc OpenFOAM Meshing & Mesh Conversion 1 July 25, 2017 03:13
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 05:42
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11


All times are GMT -4. The time now is 06:16.