Reading *.msh files (Higher-order curved triangles) in Matlab

Hi,
I need to get the number of nodes, node numbers of each element, boundary edges and nodes of the higher-order triangular elements from Gmsh in Matlab (using load_gmsh4 or by any other method). How can I do that?
Please help.
Thanks in advance.
Smitha

回答 (1 件)

Tanmay Das
Tanmay Das 2021 年 12 月 28 日
編集済み: Tanmay Das 2021 年 12 月 28 日

0 投票

Hi,
I found a similar question in the MATLAB Central which may solve your problem:
You may also refer to the following link for further clarification:

3 件のコメント

Smitha T V
Smitha T V 2021 年 12 月 29 日
Hi, Tanmay Visualizing GMSH .msh file in MATLAB using TRIPLOT reads only triangular elements and plots triagular mesh from Gmsh. I want to read and visualize the higher-order curved triangular elements from Gmsh in MATLAB. I looking for help towards that.
Thank you.
Tanmay Das
Tanmay Das 2021 年 12 月 30 日
If you use quadratic or higher order meshes, the number of columns in msh.TETs will change, for a quadratic mesh:
elements = msh.TETS10; elements = elements(:,1:10); elements =elements';
This is discussed in comments section of the following question:
Smitha T V
Smitha T V 2021 年 12 月 31 日
Hi Tanmay,
Thanks for your suggestion, but I am working on 2D curved higher-order triangular elements and not on 3D tetraheral elements. So to be specific, I am seeking help in visulalizing 2D curved higher-order (form cubic order onwards) triangular elements from GMSH in MATLAB. Also, I need to get the number of nodes, node numbers of each element, boundary edges and nodes from these elements from Gmsh in Matlab.
Thanks in Advance.
Smitha

サインインしてコメントする。

質問済み:

2021 年 12 月 26 日

編集済み:

2021 年 12 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by