creating mesh from geo file in gmsh using matlab?

Hello All,
I am trying to create a mesh file from a geo file that is created by MATLAB. Can I directly call gmsh and do meshing through some command in MATLAB?
I have seen few examples but not so clear. It will be great if someone can help me to do the meshing. I have attached my geo file. Its a txt version.
Thanking you in advance, km

1 comentario

If the .geo file is valid you should be able to mesh it in Gmsh directly (or use a system call from Matlab like is done in the FEATool toobox).

Iniciar sesión para comentar.

Respuestas (1)

Jiexian Ma
Jiexian Ma el 18 de Mzo. de 2025
Editada: Jiexian Ma el 14 de Jun. de 2026

0 votos

In Matlab, you can send the geo file to Gmsh via some operating system command.
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: demo11 demo12
To run demo, you need to download Im2mesh package and Gmsh sofware.

Categorías

Más información sobre Files and Folders en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

@km
el 13 de Nov. de 2017

Editada:

el 14 de Jun. de 2026

Community Treasure Hunt

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

Start Hunting!

Translated by