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

[Other] how to convert a mesh drawn in matlab to a format which can be used in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 7, 2014, 00:32
Question how to convert a mesh drawn in matlab to a format which can be used in OpenFOAM
  #1
New Member
 
Zhenquan Li
Join Date: Oct 2012
Location: Australia
Posts: 6
Rep Power: 13
jali is on a distinguished road
I have a refined quadrilateral mesh in 2D which is shown in a figure generated by matlab. Could any one give me some idea about how to convert the figure into a mesh file which can be used in OpenFOAM?
Thank you for your help.
jali is offline   Reply With Quote

Old   April 23, 2014, 11:35
Default
  #2
New Member
 
Join Date: Jan 2014
Location: South Florida
Posts: 20
Rep Power: 12
CoolHand is on a distinguished road
This is what I'm doing right now and has taken a few months to get right. I created a MatLab code that writes a .msh ASCII file. Then I use gmshToFoam to convert it to the OpenFOAM format. Be warned: This is not a simple thing to do. Here is the GMSH documentation on how the file is formatted.

http://www.geuz.org/gmsh/doc/texinfo...II-file-format
CoolHand is offline   Reply With Quote

Old   July 19, 2017, 14:16
Default
  #3
New Member
 
Marco Mamone
Join Date: Jul 2017
Posts: 3
Rep Power: 8
mm1993 is on a distinguished road
Hi CoolHand , could you give me the Matlab code that convert a Matlab mesh in a .msh ASCII file? If for you it is not a problem .
Tanks a lot!
mm1993 is offline   Reply With Quote

Old   July 19, 2017, 20:16
Default
  #4
New Member
 
Zhenquan Li
Join Date: Oct 2012
Location: Australia
Posts: 6
Rep Power: 13
jali is on a distinguished road
Hi CoolHand, it is very appreciated if you could share your Matlab code with us.
jali is offline   Reply With Quote

Reply

Tags
openfoam, quadrilateral mesh


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
[CAD formats] Can OpenFOAM convert foam mesh to stl? liying02ts OpenFOAM Meshing & Mesh Conversion 10 December 30, 2018 10:03
Conversion of OpenFoam mesh to .SU2 format harsha_kulkarni SU2 Shape Design 0 December 14, 2018 01:43
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
[Other] How to convert a mesh into openfoam format jr33 OpenFOAM Meshing & Mesh Conversion 1 October 2, 2012 17:20


All times are GMT -4. The time now is 20:40.