How to use a structured field on a sphere to define element sizes?
Hi all,
I am trying to reproduce the following mesh presented at the GMSH workshop a few years ago.
I have created a sphere of radius 1.0. I am now trying to figure out how to map the bathymetry from the ETOPO file. Pb is I don't have the ETOPO file used at the workshop and it clearly needs to be formatted to match the format of a 3D structured field:
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) ... ...
Now the ETOPO file is in lat/lon coordinates (decimal degrees). What do I need to do to use it as a field to define the element sizes.
I have tried to write my own fields in the hope I will figure out what is needed but...no luck:
0 -90. 1.0
180. 90. 0
2 3 1
0.1 0.1 0.2 0.2 0.3 0.3
or
0 -90. 1.0
180. 90. 0
2 3 1
0.1
0.1
0.2
0.2
0.3
0.3
Can someone help please?