[Gmsh] How to do nodes reordering in gmsh

xiang daopu xiangdaopu at gmail.com
Mon May 25 09:55:39 CEST 2015


Hi all gmsh users,

When I do 1D mesh in gmsh and then refine by splitting,
the segment nodes is wrong.


​Here is the msh file:
$MeshFormat
2.2 0 8
$EndMeshFormat
$Nodes
5
1 0 0 0
2 1 0 0
3 0.2499999999994083 0 0
4 0.4999999999986718 0 0
5 0.7499999999993359 0 0
$EndNodes
$Elements
6
1 15 2 0 1 1
2 15 2 0 2 2
3 1 2 0 1 1 3
4 1 2 0 1 3 4
5 1 2 0 1 4 5
6 1 2 0 1 5 2
$EndElements

>From the elements section we can see the segment nodes is wrong.
My question is: how to do nodes reordering in gmsh?

Thanks in advance!
Best regards!
Daopu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20150525/62724c0e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.jpg
Type: image/jpeg
Size: 28022 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20150525/62724c0e/attachment.jpg>