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

Can OpenFOAM convert foam mesh to stl?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By olesen
  • 1 Post By eugene

Reply
 
LinkBack Thread Tools Display Modes
Old   February 10, 2010, 00:48
Default Can OpenFOAM convert foam mesh to stl?
  #1
New Member
 
liying
Join Date: Apr 2009
Posts: 6
Rep Power: 8
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 ~~
liying02ts is offline   Reply With Quote

Old   February 10, 2010, 03:29
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
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.
alsaeng likes this.
olesen is offline   Reply With Quote

Old   February 10, 2010, 05:04
Default
  #3
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 12
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 likes this.
eugene is offline   Reply With Quote

Old   February 10, 2010, 05:08
Default
  #4
New Member
 
liying
Join Date: Apr 2009
Posts: 6
Rep Power: 8
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, 05:11
Default
  #5
New Member
 
liying
Join Date: Apr 2009
Posts: 6
Rep Power: 8
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, 04:34
Default
  #6
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
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: 7
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

Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot read a Spider mesh into Foam evrikon OpenFOAM Meshing & Mesh Conversion 1 March 14, 2012 11:13
Netgen mesh settings for STL geometries lucchini Open Source Meshers: Gmsh, Netgen, CGNS, ... 3 March 7, 2011 02:02
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09


All times are GMT -4. The time now is 05:58.