|
[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 |
|
|
|
#1 |
|
New Member
Zhenquan Li
Join Date: Oct 2012
Location: Australia
Posts: 6
Rep Power: 15 ![]() |
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. |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Join Date: Jan 2014
Location: South Florida
Posts: 20
Rep Power: 13 ![]() |
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 |
|
|
|
|
|
|
|
|
#3 |
|
New Member
Marco Mamone
Join Date: Jul 2017
Posts: 3
Rep Power: 10 ![]() |
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! |
|
|
|
|
|
|
|
|
#4 |
|
New Member
Zhenquan Li
Join Date: Oct 2012
Location: Australia
Posts: 6
Rep Power: 15 ![]() |
Hi CoolHand, it is very appreciated if you could share your Matlab code with us.
|
|
|
|
|
|
![]() |
| Tags |
| openfoam, quadrilateral mesh |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |