how to mesh a geometry from matlab in gmsh

6 views (last 30 days)
scorpio13
scorpio13 on 15 Mar 2012
Edited: Walter Roberson on 18 Mar 2025
hi...
as part of my final project i have created the geometry of the cross section of a dam, in matlab, using an isogeometric numerical method code....
i have been asked to use the control points of this geometry, to mesh it on gmsh software, so that to compare the 2 methods, by finding the nodal coordinates and the connective matrix from the gmsh...
i have never used a meshing software before and i am a bit unfamiliar with the concepts of nodal coordinates and connective matrix i am supposed to find....
i know this is a more gmsh and finite element related question, however i would appreciate any help from this blog....
thanks in advance!

Answers (1)

Jiexian Ma
Jiexian Ma on 18 Mar 2025
It is possible to generate mesh with Gmsh for a geometry from Matlab.
In Im2mesh (an open-source Matlab package), I demostrate how to define 2d geometry in Matlab and then generate mesh with Gmsh.
Please check these two examples: demo14 demo13
To run demo14, you need to install Matlab mapping toolbox, and download Im2mesh package and Gmsh sofware.

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!