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

conversion from .stl to .msh

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

Like Tree1Likes
  • 1 Post By akidess

Reply
 
LinkBack Thread Tools Display Modes
Old   June 20, 2013, 06:55
Default conversion from .stl to .msh
  #1
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 142
Rep Power: 4
izna is on a distinguished road
hello

how can i convert a .stl file to a .msh file??

Thanking you in advance for a reply'

Izna
izna is offline   Reply With Quote

Old   June 21, 2013, 03:37
Default
  #2
Senior Member
 
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 177
Rep Power: 8
markusrehm is on a distinguished road
Hi Izna

it is not possible. STL is a format for geometry files and msh a format for mesh files. However snappyHexMesh helps you generating an OpenFOAM mesh from a geometry. Maybe you can export this to msh format.

Markus
markusrehm is offline   Reply With Quote

Old   June 25, 2013, 10:19
Default
  #3
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 142
Rep Power: 4
izna is on a distinguished road
Hi markus

thank you for your quick reply..

.stl format is for the openfoam format right?

now i have a .stl file and i have to get a .msh file for another project.
.stl file is not a meshed file?
can you please be kind and explain more about the snappyHexMesh and the openfoam mesh i am confused..

in this below list of conversion i can not see .stl format..
Izna
izna is offline   Reply With Quote

Old   June 25, 2013, 10:48
Default
  #4
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 17
akidess will become famous soon enough
Quote:
Originally Posted by izna View Post
.stl format is for the openfoam format right?
No, its not. As Markus stated it only contains purely geometric information: http://en.wikipedia.org/wiki/STL_(file_format)
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology

Last edited by akidess; June 25, 2013 at 11:09. Reason: Fixed link
akidess is offline   Reply With Quote

Old   June 25, 2013, 10:49
Default
  #5
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 142
Rep Power: 4
izna is on a distinguished road
i can not see the file.. the website is being updated..
how do i go from .stl to snappyHexMesh?

can you please give me the command?

thanks
izna
izna is offline   Reply With Quote

Old   June 25, 2013, 11:10
Default
  #6
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 17
akidess will become famous soon enough
You will find lots of information here: http://openfoamwiki.net/index.php/SnappyHexMesh
izna likes this.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology
akidess is offline   Reply With Quote

Old   July 4, 2013, 07:33
Default
  #7
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 142
Rep Power: 4
izna is on a distinguished road
hi
i stil has not found a way to convert my .stl mesh to .msh..

can anyone give me a hand?
izna is offline   Reply With Quote

Old   July 4, 2013, 09:08
Default
  #8
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 579
Blog Entries: 5
Rep Power: 13
elvis is on a distinguished road
Hi,

does that ".msh" indicate that you are trying to produce a "fluent"-mesh, or is it a typing error?

As previous posters describe there are tools like SnappyHexMesh or itīs GUI-cousin
HELXY-OS http://sourceforge.net/projects/helyx-os/ (not to forget engrid) to produce a CFD-mesh for OpenFOAM

Further you can convert a sucessfuly created OpenFOAM mesh into a "fluent"-mesh "*.msh" using "foamMeshToFluent" which writes out the OPENFOAMŪ mesh in Fluent mesh format

take a look http://www.hpfem.jku.at/netgen/
elvis is offline   Reply With Quote

Old   July 9, 2013, 03:29
Default
  #9
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 142
Rep Power: 4
izna is on a distinguished road
hii problem resolved..

I simply had to call my file then type the command..foamMeshToFuent in terminal and it convert my .stl file which has already been meshed using snappyHexMesh....
Thanks everyone..;-)

cheers
Izna
izna is offline   Reply With Quote

Old   July 11, 2013, 10:48
Default
  #10
Senior Member
 
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 190
Blog Entries: 1
Rep Power: 7
mihaipruna is on a distinguished road
we have developed a free tool that creates meshes (SHM, not msh) and cases from STL files, please register to download here:
http://cfd.cadnexus.com/

If you are set on using .msh files, you can import your STL in GMSH and use the GUI to generate a mesh of that format.
http://geuz.org/gmsh/
mihaipruna is offline   Reply With Quote

Old   July 11, 2013, 15:38
Default
  #11
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 142
Rep Power: 4
izna is on a distinguished road
thanks for your info dear Mihai, it is indeed a useful tool....
izna 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
star-ccm mesh to O\/F DLC OpenFOAM 73 November 30, 2014 07:37
[ICEM] Edit .msh file (Fluent) in ICEM CFD Keizers ANSYS Meshing & Geometry 5 February 24, 2013 14:07
.msh conversion buaawangwei OpenFOAM Mesh Utilities 0 April 3, 2012 09:57
*.msh conversion + axissymetric problem bruxellois4 OpenFOAM 17 November 26, 2010 08:03
.cgns to .msh conversion arapha Main CFD Forum 2 October 12, 2010 23:29


All times are GMT -4. The time now is 01:52.