[Gmsh] plot3d problem

H.deVries-1 at utwente.nl H.deVries-1 at utwente.nl
Mon Jun 18 11:57:54 CEST 2012


Hello,

I'm trying to read a 2D mesh in plot3d single-block format, which looks something like

Nblocks(=1)
Ni Nj Nk(=1)
List_of_x_coordinates
List_of_y_coordinates
List_of_z_coordinates

Each list of coordinates is ordered as follows:
For k=1 to k=Nk{
  For j=1 to j=Nj{
    For i=1 to i=Ni{
      List_of_*_coordinates(i,j,k)
    }
  }
}

However, gmsh seems to switch the order, i.e.
For k=1 to k=Nk{
  For i=1 to i=Ni{     <--!
    For j=1 to j=Nj{   <--!
      List_of_*_coordinates(i,j,k)
    }
  }
}

Have any of you ever used the plot3d format and observed this problem?
Regards,
Hein de Vries

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20120618/b6627361/attachment.html>