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

[CAD formats] 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 Search this Thread Display Modes
Old   June 20, 2013, 07:55
Default conversion from .stl to .msh
  #1
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 143
Rep Power: 12
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, 04:37
Default
  #2
Senior Member
 
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 184
Rep Power: 17
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, 11:19
Default
  #3
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 143
Rep Power: 12
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, 11:48
Default
  #4
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
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.

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

Old   June 25, 2013, 11:49
Default
  #5
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 143
Rep Power: 12
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, 12:10
Default
  #6
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
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.
akidess is offline   Reply With Quote

Old   July 4, 2013, 08:33
Default
  #7
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 143
Rep Power: 12
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, 10:08
Default
  #8
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
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, 04:29
Default
  #9
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 143
Rep Power: 12
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, 11:48
Default
  #10
Senior Member
 
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 15
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, 16:38
Default
  #11
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 143
Rep Power: 12
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 Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
*.msh conversion + axissymetric problem bruxellois4 OpenFOAM 18 March 5, 2020 16:48
CFD by anderson, chp 10.... supersonic flow over flat plate varunjain89 Main CFD Forum 18 May 11, 2018 08:31
[Commercial meshers] star-ccm mesh to O\/F DLC OpenFOAM Meshing & Mesh Conversion 77 September 19, 2016 10:25
[Commercial meshers] .msh conversion buaawangwei OpenFOAM Meshing & Mesh Conversion 0 April 3, 2012 10:57
.cgns to .msh conversion arapha Main CFD Forum 2 October 13, 2010 00:29


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