"Structured" file not producing desired result
Thanks for getting to my last question. And thank you more generally for very well-documented software. It has been very easy to get started with working with gmsh given the tutorials and documentation. But I find myself a bit stuck with this structured field and background mesh problem.
This gmsh workshop worksheet has instructions that should be reasonably easy to replicate with different circumstances. From what I can gather, it happened quite a long time ago but most of the commands have not changed.
I suspect that it is the construction of the 'Structured' bathymetry file that is causing issues, as everything else seems to be set up OK. Setting the background mesh to field 2 produces a reasonable mesh but when it is set to field 5, the mesh does not form properly.
Is there something very obviously wrong with the format of the bathymetry text file? I have checked that there are n values in the x and y directions and have tried various different configurations to no avail.
Included in the zipped folder is a .asc file of the bathymetry to compare with the data structured with gmsh, which starts with the lower left corner and runs through each digit from the bottom to the top of a column (ny) before moving right one column to the right-most side (nx), as is the implied structure in the 'structured' file help:
Ox Oy Oz
Dx Dy Dz
nx ny nz
v(0,0,0) v(0,0,1) v(0,0,2) ...
v(0,1,0) v(0,1,1) v(0,1,2) ...
v(0,2,0) v(0,2,1) v(0,2,2) ...
... ... ...
v(1,0,0) ... ...
Any help or hints you are able to provide would be appreciated.
Regards, Ben