|
[Sponsors] |
[Other] how to convert a mesh drawn in matlab to a format which can be used in OpenFOAM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 7, 2014, 01:32 |
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: 14 |
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. |
|
April 23, 2014, 12:35 |
|
#2 |
New Member
Join Date: Jan 2014
Location: South Florida
Posts: 20
Rep Power: 12 |
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 |
|
July 19, 2017, 15:16 |
|
#3 |
New Member
Marco Mamone
Join Date: Jul 2017
Posts: 3
Rep Power: 9 |
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! |
|
July 19, 2017, 21:16 |
|
#4 |
New Member
Zhenquan Li
Join Date: Oct 2012
Location: Australia
Posts: 6
Rep Power: 14 |
Hi CoolHand, it is very appreciated if you could share your Matlab code with us.
|
|
Tags |
openfoam, quadrilateral mesh |
|
|
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 06:29 |
[CAD formats] Can OpenFOAM convert foam mesh to stl? | liying02ts | OpenFOAM Meshing & Mesh Conversion | 10 | December 30, 2018 11:03 |
Conversion of OpenFoam mesh to .SU2 format | harsha_kulkarni | SU2 Shape Design | 0 | December 14, 2018 02:43 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |
[Other] How to convert a mesh into openfoam format | jr33 | OpenFOAM Meshing & Mesh Conversion | 1 | October 2, 2012 18:20 |