This section provides step-by-step guidance on how to generate a complete grid for New Your Harbor using Grid+1.0. Necessary files for this, including a shoreline file and a label file, is available to be downloaded heresample grids, are available to download from this link (New York Harbor Grid).
Step 1: Load overlay file
After opening Grid+1.0, left-mouse-click (LMC) on the Import from a file button in the main toolbar and select Import Overlay in the drop-down menu (Figure 1).
...
Image Added
Figure 1. Importing overlay file.
In the pop-up Import Over Layer window, go to the directory where the overlay file is saved the select and open the Shoreline.p2d file. Before the shoreline is displayed, indicating the coordinate system is required. For the New York Harbor, the coordinate system, or projection, is UTM Zone 18 in the Northern Hemisphere (Figure 2).Image Removed
. Loading overlay fileImage Added
Figure 2. Loading overlay file.
Grid+1.0 shows the imported shoreline as in Figure 3. To check is the shoreline overlays the correct area in the background map, turn on the background map by clicking the lightbulb icon on its layer.
...
. Imported shorelineanchorImage Added
Figure 3. Imported shoreline.
Step 2: Draw splines
We will generate the grid based on the imported shoreline, starting from the Northern area of the harbor. To zoom in this area, press Alt key, right-mouse-click (RMC) then draw a rectangular covering the focused river branch.Image Removed
Image Added
Figure 4. Zooming in the Northern area.
In the main toolbar, LMC the Add a new spline button to activate the drawing mode (Figure 5). The user can also RMC on any layer and select Create New Spline Layer.Image Removed
. Adding a new spline Anchor |
---|
Image Added
Figure 5. Adding a new spline.
Draw the splines along the river banks (line 1 and 2 in Figure 6) and make the first grid section by adding lines 3 and 4. The splines must intersect so that a grid is generatable. Next, set the cursor to selection mode by clicking the Select object button, or us the shortcut key S.
Image Removed
. Drawn splines Anchor |
---|
Image Added
Figure 6. Drawn splines.
It is advisable to save the created splines for later reference. To do this, RMC on the spline layer and select the Export Control Points To... option; In the Save As window, give the splines a name and click Save, as shown in Figure 7.
Image Removed
. Saving splinesImage Added
Figure 7. Saving splines.
Step 3: Create grids
To create a grid based on the constructed splines, select the splines layer then click the Create grid from splines button in the main toolbar. In the pop-up Create Grid from Splines window, give the dimension properties of the grid, including the grid points in I and J direction. Click Ok and the resulting grid is shown (Figure 9).
Image RemovedImage Removed
...
.
...
...
Image Added
Figure 98. Resulting Creating grids.
Image Added
Figure 9. Resulting grids.
Step 4: Export/Save grids
After grids have been created, save them using the Export Grid option as shown in Figure 10.
Image Removed
. Saving gridsImage Added
Figure 10. Saving grids.
Step 5: Create next grids
Repeat steps 2-4 to build neighboring grids. The subsequent grids must overlay the previous ones so they can be merged at the later stage (Figure 11). Also, save the new splines.Image Removed
. Building neighboring grids Anchor |
---|
Image Added
Figure 11. Building neighboring grids.
Figure 12 shows how to merge grids. First, select the first grid, then click the Select object option and LMC on the first note of the intersection border. Next, hold the Shift key and LMC on the second node of the intersection border, and click the Merge two grids button. Grid+ will create merged grids and place them in a separate layer (Figure 13).
Image Removed
...
.
...
...
Image Added
Figure 1312. Merged Merging grids.
Image Added
Figure 13. Merged grids.
Step 6: Create branch grids
The branch grids can be built using the similar steps as for main channel grids. Note that the intersection splines and nodes are overlaid with satisfactory precision so that Grid+ can merge grids without errors.Image RemovedImage Removed
Image Added
Figure 14. Creating and connecting branch grids.
Step 7: Generate grids with islands
In conception, there are two methods to deal with this case. The first method involves generating a grid domain which covers the main river, the island and the branches, then the grid cells on the island will be deleted. The advantages of this approach is that it is easy and fast. However, it may result in inexact fitting of the grid borders along the river banks. The second method is to generate a grid domain for the main river and the branch only while the island is ignore. This guarantees a good fitting of the grid borders along the river banks but could be time-consuming and difficult to implement.
...
- The number of cells along the main river and branch must be maintained from the beginning point to the ending point.
- In this case, the shape of the branch is complex (less straight and longer) than the main river. Therefore, it is recommended to generate grid for the branch first then define the number of cells along the main river.
- Note the I, J direction at the beginning point.
...
Image Added
Figure 15. Identifying grids' location.
To expand the branch grid, the final local cell in Figure 16 must be refined so that there are at least 2 cells that go along the branch in the I/J direction.Image Removed
. Expanding the branch gridanchorImage Added
Figure 16. Expanding the branch grid.
Follow the steps described in Figure 17 to refine the branch channel.Image Removed
. Refining the branch channel Anchor |
---|
Image Added
Figure 17. Refining the branch channel.
Repeat steps 2-4 to create subsequent grids with 2 cross cells and 27 body cells, then connect them with the previous grids.Image Removed
Image Added
Figure 18. Creating and connecting grids along branch channel.
Continue the grids generation and connection until the junction. Save the layer as grid06_2.Image Removed
Image Added
Figure 19. Saving and removing layers.
Next, generate a grid block sized 30x6, as shown in Figure 20. As large spline blocks may cause uneven distribution of grids, the user can make grids from smaller, separated spline rectangles, or create multiple intersecting spline blocks by adding single splines in the middle of a large block.Image Removed
Image Added
Figure 20. Creating a large grid block along the branch channel.
Connect the newly-generated grids to grid06_2 then save them as grid06_3.Image Removed
Image Added
Figure 21. Saving branch grids.
Create the grid06_3 from the junction with steps illustrated in Figure 22.Image Removed
Image Added
Figure 22. Creating and connecting branch grids.
Step 8: Display IJ cell indices
Check the IJ cell indices of the latest updated grids by RMC on the layer, select Show Labels then select Cell I, J Indices. The I, J Indices are the displayed as in Figure 23.Image Removed
Image Added
Figure 23. Displaying I, J indices Anchor |
---|
Figure 23 | Figure 23.
Step 9: Generate grids for the main river branch
The identification of I, J indices is required for the determination of the dimension of the subsequent grid block. Click on the first and the last nodes of the branch to define the number of cells along the main river branch. Delete the cells inside the splines as indicated in Figure 24.Image Removed
Image Added
Figure 24. Calculating the number of cells along the main river branch Anchor |
---|
Figure 24 | Figure 24 | .
Generate a grid block of 115x8 cells, then connect them to grid06_4 and save the new grids as grid06_5 (Figure 25).Image Removed
Image Added
Figure 25. Generating the main river grids Anchor |
---|
Figure 25 | Figure 25 | .
Next, generate a grid block of 18x25 cells, then connect them to grid06_5 and save the new grids as grid07 (Figure 26).Image Removed
Image Added
Figure 26. Generating the last grid block Anchor |
---|
Figure 26 | Figure 26 | .
The complete grids for the New York Harbor is shown in Figure 27.Image Removed
. Completed gridsImage Added
Figure 27. Completed grids.
Step 10: Orthogonalize grids
The user can orthogonalize a grid either globally or locally. Global orthogonalization is applied for the entire gird while local orthogonalization is only applied for selected grid cells.
To implement global orthogonalization, select the grid layer then click the Orthogonalize grid button in the main toolbar (Figure 28).Image Removed
. Global orthogonalization Anchor |
---|
Image Added
Figure 28. Global orthogonalization.
To conduct local orthogonalization, first, the user need to select an area to orthogonalize using the Select object button and the Shift key. Then RMC on the selected grids and select the Orthogonalize Grid Block option (Figure 29).Image Removed
. Local orthogonalization Anchor |
---|
Image Added
Figure 29. Local orthogonalization.
Step 11. Viewing orthogonal deviation
RMC on the grid layer, go to Show Properties and select Orthogonal Deviation (Figure 30).Image Removed
. Displaying orthogonal deviation propertiesanchorImage Added
Figure 30. Displaying orthogonal deviation properties.
The average orthogonal deviation of the grids is then shown in Figure 31. The best orthogonal deviation is 0. Based on the orthogonal deviation values, the user can adjust the orthogonality of the grids where necessary.Image Removed
Image Added
Figure 31. Viewing orthogonal deviation.
Step 12: Removing in-land cells
To Finally, to remove in-land cells/nodes, use the Delete node button in the main toolbar. The user can LMC on the nodes/cells which need removing (Figure 32).Image Removed
Image Added
Figure 32. Deleting cells