Define the location and dimensions of the 2D grid
-
In the GIS, import the “2d_loc_empty.mif” layer from the “..\model\mi\empty” folder and save as “2d_loc_my_model.tab” in the “..\model\mi” same folder. Make this layer editable and digitise a straight line (two vertices only) starting at the bottom left corner of the 2D grid and finishing anywhere on the line defining the X-axis (bottom border) of the grid. Save the layer and export as .mif/.mid files.
-
Create a .tgc text file (eg. my_model.tgc) in the “..\model” folder. Set the 2D grid origin and orientation using Read MI Location and the 2d_loc layer, the cell size using Cell Size, and the grid dimensions using Grid Size (N,M) or Grid Size (X,Y) as follows:
.tgc file:
! Set the grid location and dimensions
Read MI Location == mi\2d_loc_my_model.mif
Cell Size == 10. ! cell size in meters
Grid Size (X,Y) == 200, 100 ! grid dimensions in meters
Create the Zpts
-
In the .tgc file, enter the line Set Code == 1 to set all cells to Code 1 (ie. active cells). TUFLOW only exports Zpts at active cells, hence the need to set all cells to active.
-
To request TUFLOW to write .mif/.mid files containing the Zpts use Write MI Zpts then stop the process using Stop (at this stage we are only interested in writing the Zpt GIS layer and therefore need to stop the simulation at this point). These commands, as shown below, must occur in the .tgc file after setting the code values as discussed above.
Dostları ilə paylaş: |