GenCade Example

From CIRPwiki
Jump to navigation Jump to search

This section includes step-by-step instruction of how to create and run a simple case in GenCade. A zip file is included at the end of this section, so that the user can reproduce the results on his or her computer.

This simple case involves a straight shoreline (no regional contour), a groin, a beach fill, and an inlet. Variable grid resolution is not used but will be discussed at the end.

After completing this example, the user should be able to setup a simple GenCade grid, understand how the steps can be applied to a more complex case, run GenCade, and review results.

Setup GenCade in the SMS

If this is the first time the GenCade interface has been used in the SMS on a specific computer, please follow the instructions in the GenCade User's Guide.

1. Open SMS 11.0 Development. Right click on default coverage under map data and scroll down to Type->Models->GenCade. Click default coverage again and notice the tools in the toolbar have changed.

2. Go to Edit->Projection. Under Horizontal, select Local Projection and change the units to U.S. Survey Feet. The vertical units should also be in U.S. Survey Feet. Click Ok.

Draw Initial Shoreline, Grid, and Other Features

1. First, draw the grid frame. Click on Create 1-D Grid Frame in the toolbar. Draw a grid frame of any shape. Once the grid frame has been created, the line should turn purple. Click on Select 1-D Grid Frame. Double-click on the square at the center of the grid frame to open the Grid Frame Properties. Change the Origin X and Origin Y values to 0. Change the Angle to 180, and assign an I size of 10000 ft. Under I Cell Options, change the cell size to 50 ft. Click Ok. Notice that the arrow next to the grid frame is pointed to the left on the computer screen. This means the water is below grid frame (if a person is walking along the grid frame, the water is to the left). Therefore, the initial shoreline should be drawn below the grid frame.


Figure 1. Grid Frame Properties


2. Click on Create Feature Arc to draw the initial shoreline. Draw the initial shoreline 200 ft below the grid frame. This can be done by using the measuring tool or looking at the x and y coordinates at the bottom of the screen. Make sure the initial shoreline extends past the grid frame. Click Select Feature Arc, double-click on the initial shoreline, and define the arc as Initial Shoreline.

Note: If the initial shoreline has already been created and is in x and y coordinates, it is very easy to drag the initial shoreline into GenCade. For this simple example, an initial shoreline (as a *.cst) can be created. Open Notepad or another text application on the computer. The first line should say COAST, and the second line should say 1. Since the initial shoreline will be a straight line, only two points are necessary. The third line should say 2 0. The first point is 100, -200 and the second point is -10100, -200. Save the file as a *.cst and drag into the SMS. Click Select Feature Arc, double-click on the initial shoreline, and define the arc as Initial Shoreline.

3. Select the Create Feature Arc button. Using the measuring tool, draw a 1000 ft arc at the center of the grid. Remember to draw the arc below the initial shoreline. Once the arc has been created, click on Select Feature Arc and double-click on the arc. Define the arc as an inlet and go to Attributes. Click on Volume. For this simple case, the initial and equilibrium volumes will be the same. See Figure X to see the input shoal volumes. Dredging will not be included in this example. Change Y Left and Y Right to 1.0. Make sure to name the inlet. If the inlet does not have a name, the inlet will be deleted.

Figure 2. Inlet Setup


4. The inlet will be structured, so click on Create Feature Arc. Draw two lines perpendicular to the inlet. Make each arc 300 feet long (from the shoreline). Do not allow the lines cross the inlet or the initial shoreline. Click on Select Feature Arc and define the arcs as Left Jetty on Inlet and Right Jetty on Inlet. Remember that on the computer screen, the left jetty will visually be on the right. Leave permeability as 0, select diffracting, and change the seaward depth to 6 ft for both jetties.

Figure 3. Left Jetty


Figure 4. Right Jetty


5. Click on Create Feature Arc to add the groin. Using the measuring tool, draw a 300 ft long groin (from the shoreline) at a distance of 2500 ft from the left extent of the grid. Again, make sure the end of the arc does not intersect the initial shoreline. This will result in the initial shoreline being divided into two separate sections which SMS cannot handle at this time. Double-click on the arc with the Select Feature Arc tool. Define the arc as a groin and click on Attributes. Keep the permeability at 0, check diffracting, and change the seaward depth to 6 ft.

Figure 5. Add Groin


6. Draw the arc for the beach fill by selecting the Create Feature Arc tool. The beach fill will be 500 ft long, and begin at 3750 ft from the left extent and end at 4250 ft from the left extent of the grid. After selecting the feature arc, define the arc as a beach fill and go to Attributes. The Begin Date is 1 April 2009, the End Date is 1 June 2009, and the Added Berm Width is 50 ft.

Figure 6. Add Beach Fill


Include Wave Gage

1. Select the Create Feature Point button. Draw the feature point for the wave gage at the center of the grid at any distance offshore.

2. Before defining the point as a wave gage, it is necessary to set up the wave information in Excel. Open Excel. The columns from left to right are the date, wave height, wave period, and direction. Right click on the first column and go to Format Cells. Under the Number tab, select Custom under Category. Type the format m/d/yyyy h:mm and click Ok. Type 1/1/2009 in the first cell. The output in the cell should be 1/1/2009 0:00. Include wave information for each hour for one year. The wave height is 0.5 m, the wave period is 6 seconds, and the direction is 10 degrees. Copy the columns and save the spreadsheet.

3. Return to the SMS. Click on the Select Feature Point button and double-click on the point representing the wave gage. Check wave gage under the Refine Point menu and click on Options. Assign a depth of 30 feet, and click on Data. Left click to highlight the first cell in the first column. Right click and scroll down to paste. It may take a minute or two to copy over the information. If any other task is performed on the computer while the wave information is being copied over, the SMS could freeze or crash. Click Ok to exit the wave data menu. Now the wave gage point will have an arrow showing the direction of the wave for the first time in the series.

Figure 7. Add Wave Information


Convert to 1-D Grid

1. Right click on default coverage and scroll to Convert->Map->1D Grid. The Map->1D Grid will open. This window is identical to the Grid Frame Properties window. No changes need to be made to the grid, so click Ok. The graphical window should look like Figure X below. Uncheck the default coverage to see only the GenCade grid.

Finish Setting Up Grid and Model Control

1. Go to the GenCade menu (between Data and Web) and go to Edit Groins. Verify the groin is in cell 51 and the length is 500 ft. Modify if necessary. The length is the distance from the grid to the end of the groin. In this case, the shoreline is 200 ft from the grid, so the groin is 300 ft.

2. Go to Edit Inlets in the GenCade menu. The inlet beginning cell should be 91 and the ending cell should be 110. Make the left and right bypass one cell wide (left bypass - cell 90 to 90; right bypass - cell 111 to 111). Click on Jetties. Ensure both the left and right jetties exist. The length of each should be 500 ft. The permeability and seaward depth should have been defined previously.

3. Go to Beach Fill. The Start Cell should be 116, and the End Cell should be 126. Double check the begin date, end date, and the added berm width.

4. Go to Model Control in the GenCade menu. The first tab is Model Setup. The simulation title does not need to be changed. Under computation time, change the Start Date to 1-Jan-09 12:00 AM and the End Date to 1-Jan-10 12:00 AM. Change the Time Step to 0.5 hour and keep the Recording Time Step as the default (168 hours).

5. Click the tab for Beach Setup. For this example, the effective grain size is 0.2 mm, the average berm height is 8 feet, and the closure depth is 25 feet. K1 is 0.5, and K2 is 0.25.

6. Go to the Seaward BC tab. Change the value of the number of cells in the offshore contour smoothing window under other options to 20. Keep all of the other defaults for this example.

7. Click on the Lateral BC tab. Leave both the left and right boundary conditions as pinned.

Run GenCade

1. Save the project before running GenCade. Make sure the files are in the proper folder. After saving the project, the *.gen, *.shi, and *.wave files should appear.

2. Go to Edit->Preferences and click on File Locations in the SMS Preferences window. Scroll down to GenCade and make sure GenCade_v1_070 is the executable is listed (as of 18 November).

3. Go to GenCade->Run GenCade. This example should only take a few minutes to run. Click Exit to close the GenCade window.

View Results

Zip File