creating mesh from geo file in gmsh using matlab?

조회 수: 13 (최근 30일)
@km
@km 2017년 11월 13일
답변: Jiexian Ma 2025년 3월 18일
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
Precise Simulation
Precise Simulation 2020년 6월 4일
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).

댓글을 달려면 로그인하십시오.

답변 (1개)

Jiexian Ma
Jiexian Ma 2025년 3월 18일
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: demo14 demo13
To run demo14, you need to install Matlab mapping toolbox, and download Im2mesh package and Gmsh sofware.

카테고리

Help CenterFile Exchange에서 Networks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by