Rf2D Tutorials SMS
Rf2D Tutorials SMS
Two-Dimensional
River Dynamics Model
TUTORIALS
December, 2017
Hydronia LLC
RiverFlow2D
c
model and documentation produced by Hydronia, LLC, Pembroke Pines, FL. USA.
Information in this document is subject to change without notice and does not represent a commitment on part of
Hydronia, LLC. The software described in this document is furnished under a license agreement.
RiverFlow2D, OilFlow2D, RiverFlow2D, and RiverFlow2D GPU are copyrighted by Hydronia, LLC. 2011-2017.
SMS is trademark of Aquaveo, LLC.
All other products or service names mentioned herein are trademarks of their respective owners.
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system or transmitted in
any form or by any means electronic, mechanical, photocopying, recording or otherwise, without the prior written
permission of Hydronia, LLC.
Last document modification date: September, 2017.
Technical Support: support@[Link]
Web site: [Link]
Contents
List of Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
List of Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 Creating your First RiverFlow2D Project . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.1 Run SMS and Open RiverFlow2D Template . . . . . . . . . . . . . . . . . . . . . . 4
2.2 Define Projections and Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.3 Read in Initial Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.3.1 Read in Aerial Image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.3.2 Read in Topographic Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.3.3 Display Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.4 Define Model Domain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.4.1 Define Coverage Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.4.2 Create a Polygon to Define the Model Extent . . . . . . . . . . . . . . . . . . 7
2.4.3 Define Arc Spacing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.4.4 Redistribute Arcs Vertices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.4.5 Define Polygon Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.5 Setting RiverFlow2D Boundary Conditions . . . . . . . . . . . . . . . . . . . . . . 10
2.5.1 Feature Arc Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.6 Generate the Mesh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.7 Assign Manning’s n to Materials . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.8 Assign RiverFlow2D Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.9 Running RiverFlow2D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3 Visualizing RiverFlow2D Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.1 Scalar Dataset Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.1.1 Vector Dataset Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4 Simulating Bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.1 Create a Bridge Geometry File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.2 Open an Existing Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
4.3 Enter the Bridge Polyline in the Default Coverage . . . . . . . . . . . . . . . . . . 23
4.4 Generate the Mesh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
4.5 Running the Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
5 Simulating Culverts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
5.1 Open an Existing RiverFlow2D Project . . . . . . . . . . . . . . . . . . . . . . . . 28
5.1.1 Create the Culvert . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
5.2 Setup Control Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
5.3 Running the Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
5.4 Review Culvert Output Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
6 Simulating Levees using Weirs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
6.1 Open an Existing Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
6.2 Import a Weir Breakline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
6.3 Convert the Weir Breakline to the Map Coverage . . . . . . . . . . . . . . . . . . . 38
ii
6.4 Generate the Mesh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
6.5 Running the Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
7 Hydrologic Simulations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
7.1 Open an Existing Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
7.2 Create New Materials Corresponding to Rainfall and Infiltration Files . . . . . . . 44
7.3 Create the Rainfall and Evaporation Time-series Data File . . . . . . . . . . . . . . 45
7.4 Create the Infiltration Parameters Data File . . . . . . . . . . . . . . . . . . . . . . 47
7.5 Create the Rainfall/Evaporation Polygons . . . . . . . . . . . . . . . . . . . . . . . 47
7.6 Create the Infiltration Polygons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
7.7 Generate the Mesh and Copy Rainfall and Infiltration Files to the Mesh Folder . . 51
7.8 Running the Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
7.9 Visualizing Rainfall/Infiltration Results . . . . . . . . . . . . . . . . . . . . . . . . 53
8 Setting up Initial Water Surface Elevations . . . . . . . . . . . . . . . . . . . . . . . . . 55
8.1 Open an Existing Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
8.2 Create New Initial Water Surface Elevation Value . . . . . . . . . . . . . . . . . . . 56
8.3 Create the Initial Water Elevation Polygon . . . . . . . . . . . . . . . . . . . . . . 57
8.4 Generate the Mesh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
8.5 Running the Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
9 Using Manning’s n Shapefiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
9.1 Open an Existing RiverFlow2D Project . . . . . . . . . . . . . . . . . . . . . . . . 61
9.2 Create a New Area Property Coverage for Manning’s n . . . . . . . . . . . . . . . 62
9.3 Read in the Shapefiles with Manning’s n Polygons . . . . . . . . . . . . . . . . . . 62
9.4 Map the Shapefile to the Manning’s n Coverage . . . . . . . . . . . . . . . . . . . . 63
9.5 Map the Manning’s n Coverage to the Existing Mesh . . . . . . . . . . . . . . . . . 64
9.6 Display the Manning’s n on the Existing Mesh . . . . . . . . . . . . . . . . . . . . 65
9.7 Enter n-values for Each Material . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
9.8 Save the Project and Check that Manning’s n have been Updated in the .2dm file . 67
10 Simulating Bed Load Sediment Transport with Limited Erosion Bed Areas . . . . . . . 69
10.1 Open an Existing Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
10.2 Create New Maximum Erosion Depth Values . . . . . . . . . . . . . . . . . . . . . 70
10.3 Create the Maximum Erosion Depth Polygon . . . . . . . . . . . . . . . . . . . . . 71
10.4 Generate the Mesh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
10.5 Set the Global Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
10.6 Running the Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
10.7 Post-processing the Model Results . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
11 Suspended Sediment Transport Simulations . . . . . . . . . . . . . . . . . . . . . . . . . 77
11.1 Run SMS and Open the Existing Project File . . . . . . . . . . . . . . . . . . . . . 77
11.2 Set suspended sediment data in the RiverFlow2D Data Input Program . . . . . . . 78
11.3 Add the Inflow Concentrations for each Fraction . . . . . . . . . . . . . . . . . . . 79
11.4 Run RiverFlow2D from the Data Input Program . . . . . . . . . . . . . . . . . . . 81
11.5 View RiverFlow2D Sediment Transport Model Results . . . . . . . . . . . . . . . . 82
12 Wind Driven Circulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
12.1 Open an Existing Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
12.2 Create New Materials Corresponding to Wind Velocity Files . . . . . . . . . . . . . 86
12.3 Create the Wind Velocity Time-series Data File . . . . . . . . . . . . . . . . . . . . 87
12.4 Create the Wind Polygons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
12.5 Generate the Mesh and Copy Wind Velocity Files to the Mesh Folder . . . . . . . 89
12.6 Running the Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
12.7 Visualizing Wind Driven Circulation Results . . . . . . . . . . . . . . . . . . . . . 92
13 Simulating an Internal Dam Breach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
13.1 Create a Breach Time Series Data File . . . . . . . . . . . . . . . . . . . . . . . . . 95
13.2 Enter the Dam Polyline in the Default Map Coverage . . . . . . . . . . . . . . . . 97
13.3 Enter the initial water surface elevations . . . . . . . . . . . . . . . . . . . . . . . . 99
13.4 Generate the Mesh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
13.5 Running the Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
14 Post-processing Calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
14.1 Creating an Observation Coverage . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
14.2 Cross Sections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
14.3 Profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
15 Interpolation Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
16 Using Huge Elevation Data Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
17 Converting .DXF Files to Scatter Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
18 Using HEC-RAS Data Extraction Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
18.1 Read HEC-RAS Geometry File and Create the X Y Z and Polygon Files . . . . . . 117
19 Investigating the Mesh Quality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
20 Refining Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
20.1 Inserting Breaklines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
20.2 Arc Inserted on the Conceptual Model Coverage . . . . . . . . . . . . . . . . . . . 124
21 Creating New Data Sets Using the Data Calculator . . . . . . . . . . . . . . . . . . . . . 127
22 Exporting Shapefiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
List of Figures
3.1 Shaded contour plot for the Water Surface Elevation dataset. . . . . . . . . . . . 18
3.2 Velocity vectors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.3 Flow trace animation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
5.1 Culvert scheme. Colors indicate the bed elevations where blue are the lowest areas
and red the highest. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
5.2 Culvert tutorial. Initial window. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
5.3 Save data to .2dm file. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
5.4 Control data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
5.5 Control data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
5.6 Graphic output. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5.7 Output file for Culvert A. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
v
6.8 Map data showing domain boundary and internal breakline. . . . . . . . . . . . . 39
6.9 Feature Arc Attributes dialog. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
6.10 Weir Boundary Conditions data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
6.11 Mesh aligned with weir polyline. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
11.1 RiverFlow2D Data Input Program with Sediment Transport Module activated. . . 78
11.2 RiverFlow2D Data Input Program with Suspended Sediment Data. . . . . . . . . 79
11.3 RiverFlow2D Data Input Program showing the Open Boundary Conditions Panel. 80
11.4 RiverFlow2D Data Input Program showing the Open Boundary Conditions Panel
with the completed concentration column. . . . . . . . . . . . . . . . . . . . . . . 81
11.5 Sediment Transport Model Run Report Window. . . . . . . . . . . . . . . . . . . 82
11.6 Sediment Transport Model run result visualization. . . . . . . . . . . . . . . . . . 83
ix
Introduction
1
This document includes instructional material and tutorials to facilitate the application of the
RiverFlow2D model using SMS.
RiverFlow2D is a combined hydrologic and hydrodynamic, mobile bed and pollutant transport
finite-volume model for rivers, estuaries, coastal areas, and floodplains. It can simulate floods
and simulate inundation over complex terrain at high resolution and with remarkable stability,
accuracy and remarkable speed. The use of adaptive triangular-cell meshes enables the flow field
to be resolved around key features in difficult river environments.
RiverFlow2D user interface is based upon Surface-Water Modeling Solution (SMS) developed
by Aquaveo. This GIS-integrated software system provides interactive functions to generate and
refine the finite-volume flexible mesh, and uses familiar GIS objects to construct a high level
representation of the model. SMS facilitates assigning boundary conditions, roughness values, and
other parameters, allowing the user to efficiently manage the entire modeling process. SMS also
offers a comprehensive set of visualization tools including 3D rendering, animations and export
graphs to Google Earth.
RiverFlow2D computation engine uses an accurate, fast and stable finite-volume solution method
that eliminates the boundary and hot start difficulties of some two-dimensional flexible mesh mod-
els. RiverFlow2D also includes capability to handle hydraulic structures such as culverts, weirs,
bridges, and gates. The hydrologic capabilities include spatially distributed rainfall, evaporation
and infiltration. This current version also includes spatially distributed wind stress on the water
surface.
1
2
Creating your First RiverFlow2D Project
2
This tutorial provides a step-by-step guide to help you setting up a new RiverFlow2D project
from scratch. These guidelines include instructions for entering terrain elevation data, running
the RiverFlow2D model and visualizing the model results. As an example, a river simulation with
available bed elevation data is used. The boundary conditions include discharge inflow and water
surface elevation outflow.
3
2.1 Run SMS and Open RiverFlow2D Template 4
All the data files required follow this tutorial are in the following directory:
...\Documents\RiverFlow2D_SMS\ExampleProjects\Hoh
Every time you start a new project, you must first import the RiverFlow2D template. This
template has been developed by Hydronia in collaboration with Aquaveo and integrates the
RiverFlow2D numerical engine into the SMS graphical user interface to pre-processing RiverFlow2D
model data and post process results. To import the template file do as follows:
10. On the File menu, click Save As... to save the project.
11. Make sure the Save as type is Project Files (.sms) and enter the name [Link].
The horizontal and vertical units in RiverFlow2D need to be the same for a given project. If the
horizontal projection is set to meters, the vertical units should also be in meters and so on. You
could import in data with different units but you would need to convert them to the appropriate
units set in your projection before running RiverFlow2D.
2. Select the file [Link] in the Folder for this tutorial, and click Open.
3. Click Yes if prompted to build image pyramids. This option creates images at various
resolutions for clearer images as you zoom in and out of your simulation. It is especially
useful with very high resolution files to improve the refresh time within SMS without losing
image details.
2. Select the file [Link] in the data files folder for this tutorial and click the Open
button.
3. Select Use Import Wizard and Click the OK to define the File Import Options for the text
(ASCII format) file.
4. The first step of the File Import Wizard gives you the option to specify delimiters and specify
a starting point for importing. The defaults are fine for this data set, so click on the Next
button.
2. Toggle off Points and select Boundary, then select Contours in the Scatter Display Tab.
3. Under the Contours tab, change the Contour Method to Color Fill and the Transparency to
30%.
The resulting graph should appear in the display window similar to Figure 2.1 below.
1. Right click on the default coverage under Map Data and select Type | Models | Generic 2D
Mesh.
2. Begin by creating a feature arc that spans across the northern most part of the channel as
shown in Figure 2.2. Click on the first vertex, move the cursor to the second vertex and
double-click to end the arc.
3. Similarly, create another arc at the southernmost part of the channel as shown in Figure 2.3.
4. Now create feature arcs connecting the two eastern nodes and two western nodes approxi-
mately following the floodplain boundary.
2.4 Define Model Domain 8
The resulting domain outline with redistributed vertices is shown in Figure 2.5.
9 2 Creating your First RiverFlow2D Project
1. On the Feature Object menu, click Build Polygons to create polygons from the defined arcs.
With polygons now created you can assign Material Types to them. First, you must specify
what Material Types you wish to define and then assign the Material Type to the different
polygons.
2. On the Edit menu, click Material Data to bring up the Material Data dialog.
3. By default there is a material named ‘material 01’. Select ‘material 01 ’ and change the name
to FloodPlain.
4. You may define a material color and display pattern if you wish by selecting the Pattern
button to the right of the material. Clicking on the button will allow you to change the
fill pattern and selecting the dropdown arrow will allow you to change the color. For this
tutorial you will leave the defaults and select OK to exit.
Further in this tutorial you will assign a Manning’s n values to this material.
9. Click OK to exit.
3. Using the Select Feature Arc Tool select the upstream cross section arc.
4. With the arc selected, on the Feature Objects menu, click Attributes...
5. Select Boundary Condition Option and click Options.
6. Select Exterior Boundary Condition and then select Discharge.
7. Click Define and use the XY Series Editor dialog to enter the hydrograph as shown:
Figure 2.8 – SMS XY Series Editor used to enter hydrograph boundary condition.
1. Select the ‘Hoh River ’ coverage under Map Data to activate it and to deselect any polygons
that might be selected.
2. On the Feature Objects menu, click Map → 2D Mesh menu item.
13 2 Creating your First RiverFlow2D Project
4. In the Project Explorer, uncheck the box next to the [Link] image, the scatter set BedEle-
vations and the map coverage(s).
You may want to adjust the mesh display settings to see the elevations contours.
1. Click the newly created Mesh coverage under Mesh Data, e.g. Hoh River
4. Toggle on Contours.
5. Under the Contours tab, select Color Fill on the Contour Method drop-down list.
13. Left click in the Graphics Window and drag to rotate the grid in 3D. You may also use the
mouse wheel to zoom in and out. See Figure 2.10.
14. You can go back to plan view by selecting the Plan View Icon in the Display Toolbar.
4. Under the Control Data tab, enter a value of 0.035 for the Manning’s n.
5. Click OK.
6. Save the project.
The material properties have now been properly defined.
The material zones can be displayed by opening the Display Options dialog and turning on the
Materials check box.
3. For this tutorial accept the default values as shown in the Control Data panel.
The following window will appear indicating that the model has started running. The window
also reports the simulation time, volume conservation error, total inflow and outflow discharge,
and other parameters as the run progresses.
This completes the Creating your First RiverFlow2D Project tutorial. You may want to follow
the next tutorial to learn how to visualize the RiverFlow2D results you have just generated.
Visualizing RiverFlow2D Results
3
This tutorial shows how to use several SMS tools to visualize RiverFlow2D results.
For this tutorial we will assume you have successfully completed the previous tutorial.
To visualize RiverFlow2D results, first you need to read in the XMDF output that RiverFlow2D
has generated.
2. Find the Hoh River_results1.hdf5 file located in the folder where your project is saved
and select the file. This folder will have the same name as the mesh (e.g. Hoh River) and
will be three directory levels below the one containing the .sms file.
Once the RiverFlow2D output file has been imported as Mesh Dataset you will have many options
to view the data. The Project Explorer may be used to select the desired Scalar and Vector output
datasets. Scalar data sets are identified by the scalar icon and the vector datasets have the vector
icon identifying them.
1. Activate the Water Surface Elevation output scalar dataset by selecting it in the Project
Explorer.
17
3.1 Scalar Dataset Options 18
3. In the 2D Mesh tab, click the All off button to turn off current display options.
4. Turn on the Contours, and Mesh boundary.
5. Under the Contours tab, change the Contour Method to Color Fill.
6. For the Number of contours, enter 25.
7. Click OK to exit the dialog box
8. Select Time step ‘0 [Link]’.
Figure 3.1 – Shaded contour plot for the Water Surface Elevation dataset.
1. Activate the Velocity output vector dataset by selecting Velocity (ft) in the Project Explorer.
2. Open the Display Options. In the 2D Mesh options turn on the Vectors.
19 3 Visualizing RiverFlow2D Results
3. Go to the Vectors tab and under Vector Display Placement and Filter, change the Display
to “at each node”.
4. Enter 5 in the Offset and click the OK button. The Z-offset raises the origin of the vectors
so that they are completely visible.
2. In the Film Loop Setup dialog, select the Flow Trace Type. Click the Next > button.
3.1 Scalar Dataset Options 20
3. Click the Next > button twice, then the Finish button.
SMS now starts constructing the film loop adding one frame at a time. Once the last frame has
been added to the loop, an AVI Application will open and the animation will start automatically.
Click the Close button when finished. The film loop has been saved as [Link].
You may continue to explore other film loop features if desired. We suggest trying the Flow
Trace option that will generate animations similar to the one depicted in Figure 3.3 and the Create
Google Earth KMZ File to view results in the Google Earth Environment.
Simulating Bridges
4
This tutorial illustrates how to incorporate a bridge to an existing RiverFlow2D project using the
Bridges Component. The procedure involves the following steps:
The files required to follow this tutorial can be found in the following directory:
...\Documents\RiverFlow2D_SMS\ExampleProjects\BridgesTutorial
21
4.1 Create a Bridge Geometry File 22
It represents the cross section of a bridge with only one central pier, although this is just for
the purpose of illustrating the Bridges component in this tutorial since the actual bridge in this
location has about 12 sets of piers. This geometry is represented in the RiverFlow2D model using
the bridge geometry file shown below, where the header row are presented only to describe the
parameters but they should not be included in the actual data:
You may use the Bridges panel in RiverFlow2D Data Input Program to create a bridge geometry
file (see Figure 4.2). The program lets you enter data in tabular form and view a graph of the
bridge geometry. You may also manipulate the graphical lines, which will make that the tabular
data be modified.
23 4 Simulating Bridges
An alternative way to create the bridge geometry file is to use a spreadsheet. In the example
folder there is a MS-Excel sheet ([Link]) that allows editing and plotting
bridge geometry files.
Before running the model you will need to manually copy the bridge geometry file to your mesh
folder.
4. Now select the polyline again using the Select Feature Arc.
5. Right click and select Attributes...
Make sure to copy the [Link] file to your mesh folder before running the model.
1. Select the Mesh Data in the Project explorer to make the Mesh Module the active module.
2. On the RiverFlow2D Menu menu, click Run RiverFlow2D
This will bring up the RiverFlow2D Data Input Program in which you can set all the run
control parameters for RiverFlow2D.
3. Make sure that the Bridges component is selected n the Control Data panel:
Leave all other parameters at their default values.
To run the model, click Run RiverFlow2D button on the lower section of the Data Input
Program. A window will appear indicating that the model has started running. The window also
reports the simulation time, volume conservation error, total inflow and outflow discharge, and
other parameters as the run progresses.
Simulating Culverts
5
This tutorial demonstrates how to incorporate culverts in a RiverFlow2D two-dimensional mesh.
The problem consists of a natural channel crossed by a road embankment. A culvert structure is to
be used to connect the upstream and downstream parts of the channel divided by the embankment
as shown in the following figure:
Figure 5.1 – Culvert scheme. Colors indicate the bed elevations where blue are the lowest areas and
red the highest.
27
5.1 Open an Existing RiverFlow2D Project 28
The water enters from upstream with a constant discharge of 1000 cfs, and outflows downstream
along the indicated section. The area is initially dry.
The culvert will have a circular cross section with other characteristics summarized in Table 5.1
(CulvertA). CulvertB data is provided in case that you wanted to extend the tutorial adding a
second culvert to the project.
The procedure to integrate this culvert in a RiverFlow2D simulation involves the following steps:
2. Create new culvert inlet and outlet nodes in the Map Coverage.
3. Generate the mesh to ensure that the culvert are properly indentified.
4. Export the data and setup model parameters.
The files required to follow this tutorial can be found in the following directory:
...\Documents\RiverFlow2D_SMS\ExampleProjects\Culverts
The embankment has been included in the bed elevation scatter set and is visible in the middle
of the area. The project also includes an upstream discharge boundary condition and uniform flow
downstream.
1. Click on the Create Feature Point icon and click on the location where you want to enter
the inlet point.
2. Click on the location where you want to enter the outlet point
4. Click and then right-click on the point entered in the previous step.
6. Select Elem BC and click Options... button. Unselect Create mesh node at the location:
5.1 Open an Existing RiverFlow2D Project 30
7. Click Options...
8. Select Culvert Inlet, enter the Culvert ID name (CulvertA) and enter the culvert data as
shown
10. Go back to the location where you entered the Culvert Outlet Element, click and then right-
click on it, and on the Feature Objects menu, click Node Attributes...
11. Select Elem BC and click Options... button. Unselect Create mesh node at the location and
click Options... as you did with the inlet node.
12. Select Culvert Inlet, and enter the Culvert Inlet Name exactly the same as the inlet name:
CulvertA
31 5 Simulating Culverts
Note that which point you select as inlet and which as outlet is irrelevant. The model will
dynamically make this assignment during computation, based on the actual flow direction at any
given time.
Repeat the culvert creation process as above for a second culvert (CulvertB) if desired.
To save the data to the project (.2dm file), on the File menu, click Save Project.
It is always recommended to re-generate the mesh after inputting the culverts. This will ensure
that SMS will be correctly integrate the culvert data to the mesh.
Now select the Components Controls tab and then the Culverts component :
If after the first run you want to change any culvert parameter, it is better to do so in the
Data Input Program and not in the SMS dialogs. The data in SMS dialogs will be erased every
time you regenerate the mesh, while you will be always be able to keep the non-spatial data (e.g.
culvert parameters) using the Data Input Program.
• You do not need to refine the mesh to account for the high elevations along the levee/wall.
• Can account for vertical walls.
• More accurate computations of the discharge over the structure in case of flow overtopping.
The files required to follow this tutorial can be found in the following directory:
...\Documents\RiverFlow2D_SMS\ExampleProjects\WeirsTutorial
35
6.2 Import a Weir Breakline 36
The inflow boundary conditions is a hydrograph reaching 200,000 cfs upstream and the outflow
condition is set to Uniform Flow Outflow downstream.
An additional column of data defines the breakline name that is leveeRB in this example. In
the import wizard, this column should be mapped as Breakline as explained below.
37 6 Simulating Levees using Weirs
3. In the File Import Wizard dialog select Space as shown and click Next.
4. Select Breakline in the 4th column drop down list as shown in Figure 6.4 and Select Names
as Breakline Delimiters as in Figure 6.5.
The breakline will be imported and a new Levee RB Breakline scatter dataset will be created.
1. To transfer the imported breakline to the Map Coverage, right-click on the LeveeRB Breakline
scatter,
2. Then click on Convert... and click on Scatter Breaklines → Map as shown in Figure 6.6.
3. To complete transferring the weir crest elevations, in the Scatter Menu click Interpolate to
Map:
39 6 Simulating Levees using Weirs
4. Now select the Mesh1 coverage under Map Data, and using the Select Feature Arc, first click
and then then right-click on the weir breakline.
5. Click on Redistribute vertices... on the pop-up menu, and in the dialog enter a node spacing
of 200 ft. You should see the weir polyline as shown in Figure 6.8.
Figure 6.8 – Map data showing domain boundary and internal breakline.
6. Now right-click again on the weir breakline and in the pop-up menu, click Attributes. Then
select Boundary conditions and click Options...
6.4 Generate the Mesh 40
7. In the Nodestring Boundary Conditions dialog select Weir and enter the weir name: LeveeRB
and Weir Coefficient 3.2 as shown in Figure 6.10. The Crest Elevation parameter is not used
since the elevations will be taken from the imported breakline crest elevations.
1. Select the Mesh Data in the Project explorer to make the Mesh Module the active module.
This tutorial illustrates how to perform a hydrologic simulation accounting for rainfall, evapo-
ration and infiltration. The procedure includes the following steps:
The files required to follow this tutorial can be found in the following directory:
...\Documents\RiverFlow2D_SMS\ExampleProjects\RainfallInfiltrationTutorial
43
7.1 Open an Existing Project 44
This project already contains a terrain elevation dataset, a model domain extent polygon, out-
flow boundary conditions, and empty rainfall/evaporation (RainEvap) and infiltration (Infiltration)
area coverages.
2. To add new data file names, use the New button, and enter Material names that will cor-
respond with the rainfall/evaporation and infiltration data files that you want to associate
with each polygon. In this tutorial we will enter [Link], [Link] and
[Link] as shown:
45 7 Hydrologic Simulations
Figure 7.2 – Materials Data Dialog to enter Rainfall/Evaporation and Infiltration data file names.
NPRE
The following table is an excerpt of the [Link] file that is included in the folder for
this tutorial. In this example, the evaporation is assumed to be 0 for all times.
Figure 7.3 depicts the graphical representation of the rainfall time series in [Link] file.
46 7 Hydrologic Simulations
49
0.00 0.00 0.00
0.50 1.53 0.00
1.00 1.53 0.00
1.50 1.53 0.00
2.00 1.53 0.00
2.50 1.84 0.00
3.00 1.84 0.00
...
21.50 1.53 0.00
22.00 1.84 0.00
22.50 1.53 0.00
23.00 1.53 0.00
23.50 1.84 0.00
24.00 1.53 0.00
Note that the RainEvap coverage name should not be changed. If you use a different name for
this coverage, the model will not be able recognize the rainfall/evaporation polygons.
1. First click on the on the RainEvap coverage to make sure it is the active layer.
2. Using the Create Feature Arc tool, draw a polygon similar to the one shown in Figure 7.4.
If you are creating more than one polygon, make sure that they do not have common edges.
If you need to have side-by-side polygons, create each one independently in such a way that
even though they may have overlapping edges, the polygons are unique (see Figure 7.5).
7.5 Create the Rainfall/Evaporation Polygons 48
3. On the Feature Objects menu, click Build Polygons to finalize the polygon.
To generate the data structures correctly, the polygon needs to be defined by nodes instead
of vertices. To enforce this, click on the Select Feature Vertex icon , on the Edit menu,
click Select All, then right-click on the plot window. On the pop-up menu, click Convert to
Nodes to convert all vertices to nodes.
4. Now, click the Polygon Selection icon , click inside the polygon to select it, and right click.
On the pop-up menu, click Attributes:
5. In the dialog select Material, [Link] from the drop-down material list, and click
OK:
49 7 Hydrologic Simulations
Note that the coverage name: Infiltration, should not be changed. If you use a different name for
this coverage, the model will not be able recognize the infiltration polygons.
1. To create the polygons, first click on the on the Infiltration coverage to make sure it is the
active layer.
3. On the Feature Objects menu, click Build Polygons to finalize the polygon.
7.6 Create the Infiltration Polygons 50
To generate the data structures correctly, the polygon needs to be defined by nodes instead
of vertices. To enforce this,
7. Use the Polygon Selection icon , click inside the polygon to select it, and right click. On
the pop-up menu, click Attributes:
8. In the dialog select Material, [Link] from the drop-down material list, and
click OK:
9. Now click on the Infiltration coverage again and using the Create Feature Arc draw a second
polygon as shown:
51 7 Hydrologic Simulations
Make sure that the polygons you draw do not overlap. Overlapping polygons create in-
tersected areas that will confuse the algorithm used to define the infiltration and rain-
fall/evaporation areas.
10. Repeat the procedure as explained before to assign the [Link] to the second
polygon.
This completes the creation of the infiltration polygons.
Note that when SMS creates a mesh it assigns to it a name under the Mesh data coverage group
as shown in Figure 10.8. The project folder always has the same name as the mesh name.
Figure 7.14 – The project folder and the mesh share the same name.
2. Click Run RiverFlow2D on the RiverFlow2D menu. The Data Input Program will appear.
3. Select Rainfall and Infiltration on the Control Data panel, set the simulation time to 12 hours
as shown in Figure 7.15.
4. Save the project.
5. Finally, click the Run RiverFlow2D button. Figure 7.16 shows the dynamic window at the
end of the run.
53 7 Hydrologic Simulations
Figure 7.16 – RiverFlow2D window at the end of the Rainfall/Infiltration tutorial run.
6. Click Stop and close the window using the Close Window icon on the upper right of the
window.
The files required to follow this tutorial can be found in the following directory:
...\Documents\RiverFlow2D_SMS\ExampleProjects\IntialConditionTutorial
55
8.2 Create New Initial Water Surface Elevation Value 56
This project already contains a terrain elevation dataset, a model domain extent polygon,
outflow boundary conditions, and empty InitialConditions coverage.
If you are starting a new project that does not include the Initial Condition Coverage you may
create one as follows:
Note that the InitialConditions coverage name should not be changed. If you use a different name
for this coverage, the model will not be able recognize the polygons.
To create the polygon, first click on the on the InitialConditions coverage to make sure it is
the active layer, and using the Create Feature Arc tool, draw a polygon as shown:
On the Feature Objects menu, click Build Polygons to finalize the polygon.
To generate the data structures correctly, the polygon needs to be defined by nodes instead
of vertices. To enforce this, click on the Select Feature Vertex icon , on the Edit menu, click
8.3 Create the Initial Water Elevation Polygon 58
Select All, then right-click on the plot window and on the pop-up menu, click Convert to Nodes to
convert all vertices to nodes.
If you are entering more than one initial conditions polygon, make sure that they do not have
common edges. If you need to have side-by-side polygons, create each one independently in such a
way that even though they may have overlapping edges, the polygons are unique (see Figure 8.5).
Use the Polygon Selection icon , click inside the polygon to select it, and right click. On the
pop-up menu, click Attributes:
In the dialog select Material, 60 from the drop-down material list, and click OK:
59 8 Setting up Initial Water Surface Elevations
Figure 8.8 – The project folder and the mesh share the same name.
1. Select the Mesh Data in the Project explorer to make the Mesh Module the active module.
2. On the RiverFlow2D Menu menu, click Run RiverFlow2D
This will bring up the RiverFlow2D Data Input Program in which you can set all the run
control parameters for RiverFlow2D.
3. Set the simulation time to 2 hours
4. Select the Read initial water elevations from .FED file in the Initial conditions frame
Leave all other parameters at their default values.
Finally, click the Run RiverFlow2D button on the lower section of the Data Input Program.
When the model finishes the execution, you can use the visualization tools to explore results.
This concludes the Setting Initial Water Surface Elevations Condition tutorial.
8.5 Running the Model 60
Using Manning’s n Shapefiles
9
This tutorial illustrates how to use Manning’s n shapefiles to assign n values to an existing
RiverFlow2D project. The procedure includes the following steps:
8. Save the project and check that Manning’s n have been updated in the .2dm file.
The files required to follow this tutorial can be found in the following directory:
...\Documents\RiverFlow2D_SMS\ExampleProjects\ManningsNShapefileTutorial
Files for a completed tutorial are also included in the following folder:
...\Documents\RiverFlow2D_SMS\ExampleProjects\ManningsNShapefileTutorialFinal
61
9.2 Create a New Area Property Coverage for Manning’s n 62
1. Open SMS
2. On the File menu, click Open. Find the file [Link] in the data files folder
for this tutorial. Select Open.
If you have selected any number of shapes in the shapefile, SMS will not prompt you to use
all shapes within visible shapefiles. Instead, it will only convert those selected shapes into
feature objects. This is useful if you only plan on using a few selected shapes from a large
shapefile.
9.5 Map the Manning’s n Coverage to the Existing Mesh 64
2. Select the ManningsN coverage and click Next to bring up the GIS Feature Objects Wizard
table.
3. In the Description column N Value, select Material from the Mapping drop-down list. SMS
will assign the polygon description to each polygon mapped to the active coverage.
4. Click Next then Finish.
1. Select the mesh you want to assign (since there can be more than one). In our case select as
follows:
65 9 Using Manning’s n Shapefiles
2. Right-click on the ManningsN area property coverage you want to use as a source and on
the pop-up menu, click Convert and then Map → 2D Mesh. Since this is an area property
coverage, it will not create elements, it will only assign material types to the elements.
1. Open the Display Options dialog clicking Display Options on the Display menu.
3. Unselect Contours.
5. Click OK
The display will look similar to the one shown on the following Figure.
3. In the Material Properties dialog enter the Manning’s n values for each material as shown.
67 9 Using Manning’s n Shapefiles
2. Open the mesh1.2dm file using Notepad or any text editor. The file is in the following folder:
...\Documents\RiverFlow2D_SMS\ExampleProjects\ManningsNShapefileTutorial\RiverFlow2D\
Mesh1\
3. Go to the final part of the file and look for the MAT VAL entries. They will look like these:
MAT 11 “0.03”
MAT 4 “0.035”
MAT 7 “0.04”
MAT 12 “0.05”
MAT 8 “0.055”
MAT 9 “0.06”
MAT 6 “0.085”
MAT 3 “0.09”
MAT 10 “0.115”
MAT 5 “0.13”
MAT 1 “Material 01”
MAT 2 “Material 02”
MAT MULTI 0
9.8 Save the Project and Check that Manning’s n have been Updated in the .2dm file 68
This concludes the Manning’s n shapefile tutorial. You may continue to experiment with
shapefiles in RiverFlow2D SMS by adding other pertinent GIS data into your projects.
Simulating Bed Load Sediment Transport with
Limited Erosion Bed Areas
10
In the Sediment Transport model you can define areas with a maximum erosion depth. This is
useful to represent pavements, rock outcrops or any surface that does not erode or that it has a
known erodible layer of sediment above it.
This tutorial illustrates how to perform a sediment transport simulation in which there is a
non-erodible area. The procedure includes the following steps:
3. Create a MaximumErosionDepth coverage and the polygons defining the limited erosion
areas.
4. Generate the mesh.
5. Run the model.
The files required to follow this tutorial can be found in the following directory:
...\Documents\RiverFlow2D_SMS\ExampleProjects\MaxErosionDepth
69
10.2 Create New Maximum Erosion Depth Values 70
This project already contains a terrain elevation dataset, a model domain extent polygon,
outflow boundary conditions, and empty MaximumErosionDepth coverage.
If you are starting a new project that does not include the MaximumErosionDepth Coverage
you may create one as follows:
4. Click OK.
Note that the MaximumErosionDepth coverage name should not be changed. If you use a different
name for this coverage, the model will not be able recognize the polygons.
1. To create the polygon, first click on the on the MaximumErosionDepth coverage to make
sure it is the active layer.
2. Using the Create Feature Arc tool, draw a polygon as shown:
3. On the Feature Objects menu, click Build Polygons to finalize the polygon.
If you are entering more than one polygon, make sure that they do not have common edges.
If you need to have side-by-side polygons, create each one independently in such a way that
even though they may have coincident edge, the polygons are unique (see Figure 10.4).
4. To generate the data structures correctly, the polygon needs to be defined by nodes instead
of vertices. To enforce this, click on the Select Feature Vertex icon , on the Edit menu,
click Select All, then right-click on the plot window and on the pop-up menu, click Convert
to Nodes to convert all vertices to nodes.
5. Use the Polygon Selection icon , click inside the polygon to select it, and right click. On
the pop-up menu, click Attributes:
73 10 Simulating Bed Load Sediment Transport with Limited Erosion Bed Areas
6. In the dialog select Material 0 from the drop-down material list, and click OK:
Figure 10.8 – The project folder and the mesh share the same name.
Make sure to set the Erosion Depth Options to Defined as Dataset as shown.
2. Then, on the Control Data tab, set the simulation time to 12 hours, and save the project.
1. Select the Mesh Data in the Project explorer to make the Mesh Module the active module.
2. On the RiverFlow2D Menu menu, click Run RiverFlow2D. This will bring up the RiverFlow2D
Data Input Program in which you can set all the run control parameters for the RiverFlow2D
including the Bed Load Sediment Transport parameters in the Sediment Transport Panel:
75 10 Simulating Bed Load Sediment Transport with Limited Erosion Bed Areas
3. Click the Run RiverFlow2D button on the lower section of the main DIP window to run the
program. You will see a the dynamic window similar to this:
Hovering the cursor over the non-erodible area will show a 0.0 erosion depth on the lower left
part of the window.
Suspended Sediment Transport Simulations
11
This tutorial presents an application of the RiverFlow2D ST module to perform a suspended
sediment transport simulation. It assumes that you have completed a simulation similar to the
one described in the Creating your First RiverFlow2D Project tutorial presented earlier in this
document. For convenience a completed simulation is included in the tutorial folder indicated
below.
The following steps are discussed:
1. Open SMS
2. Open [Link]
3. Set suspended sediment data in the RiverFlow2D Data Input Program
4. Add the inflow concentrations for each suspended sediment fraction
5. Run RiverFlow2D from the Data Input Program
6. View RiverFlow2D Sediment Transport Model results
All the data files required to follow this tutorial are in the following directory:
...\Documents\RiverFlow2D_SMS\ExampleProjects\SuspendedSedimentTutorial
1. Open the SMS Program double-clicking the SMS icon on your desktop .
2. On the File menu, click Open.
3. Search for the Select the file [Link] in the folder for this tutorial
and click the Open button.
77
11.2 Set suspended sediment data in the RiverFlow2D Data Input Program 78
Figure 11.1 – RiverFlow2D Data Input Program with Sediment Transport Module activated.
In the Sediment Transport Panel, enter the suspended sediment data as shown. Note that the
Suspended Sediment mode is selected and Bed Load is turned off.
79 11 Suspended Sediment Transport Simulations
Figure 11.2 – RiverFlow2D Data Input Program with Suspended Sediment Data.
4
0.0 1000. 0.001
1.5 10000. 0.001
2.0 67000. 0.001
12.0 67000. 0.001
Where the first line indicates that there are 4 times. The first column corresponds to the time
in hours: 0, 1.5, 2 and 12 hours in this example. The second column is the water discharge in
f t3 /s. The third column indicate the sediment volume concentrations for the given fraction.
To enter this data first select the sediment transport panel. Only the inflow discharge will
appear initially as shown:
11.3 Add the Inflow Concentrations for each Fraction 80
Figure 11.3 – RiverFlow2D Data Input Program showing the Open Boundary Conditions Panel.
Now click on the INFLOW_1.QVT file. A message box will remind you that you need to add one
volumetric suspended sediment concentration for every fraction selected. You will need to enter
the data for one column and all times as depicted:
81 11 Suspended Sediment Transport Simulations
Figure 11.4 – RiverFlow2D Data Input Program showing the Open Boundary Conditions Panel with
the completed concentration column.
1. On the lower frame of the RiverFlow2D Data Input Program, click Run RiverFlow2D.
2. In the following dialog, click Yes to save your changes.
The window shown in the figure below will appear indicating that the model has started running.
The window also reports the simulation time, volume conservation errors for both water and
sediment, total inflow and outflow discharges, and other parameters as the run progresses.
11.5 View RiverFlow2D Sediment Transport Model Results 82
When the simulation finishes, close the dialog using the X icon on the upper right corner of
the window. Another window will report on the final generation of post processing files.
2. Find the MESH1_RESULTS.HDF5 file located in the folder where your project is saved and
select the file. This folder will have the same name as the mesh (e.g. MESH1 ) and will be
three directory levels below the one containing the .sms file.
Once the RiverFlow2D output file has been imported as Mesh Dataset you must decide on how to
view the data. The Project Explorer may be used to select the desired Scalar and Vector output
datasets. Scalar data sets are identified by the scalar icon and the vector datasets have the vector
icon identifying them.
83 11 Suspended Sediment Transport Simulations
A convenient way to render the model results is to output the bed elevation changes editing
the contour display options.
1. Activate the Delta Bed Elev (ft) output scalar dataset by selecting it in the Project Explorer.
2. Select the Display Options macro in the Display Toolbar.
3. In the 2D Mesh tab, click the All off button to turn off current display options.
This tutorial illustrates how to perform a wind drive simulation. The procedure includes the
following steps:
The files required to follow this tutorial can be found in the following directory:
...\Documents\RiverFlow2D_SMS\ExampleProjects\WindTutorial
85
12.1 Open an Existing Project 86
This project represents a simulation of wind driven circulation in Lake Champlain in the USA,
and already contains a bed elevation dataset, a model domain extent polygon, and an empty Wind
area coverage.
Figure 12.2 – Materials Data Dialog to enter wind velocity data file names.
NP
NP lines containing:
where Wvx is the wind velocity vector component in the x direction, and Wvy is the wind velocity
vector component in the y direction.
The following table is an excerpt of the [Link] file that is included in the Data
folder for this tutorial.
6544
0 5.971128609 -2.165354331
1 5.085301837 8.825459318
2 3.838582677 6.627296588
3 5.872703412 4.921259843
...
12.4 Create the Wind Polygons 88
Note that the Wind coverage name should not be changed. If you use a different name for this
coverage, the model will not be able recognize the wind polygons.
1. First click on the on the Wind coverage to make sure it is the active layer.
2. Using the Create Feature Arc tool, draw a polygon similar to the one shown in Figure 12.3.
In this tutorial we assume that the wind velocity is uniform over the whole mesh area.
However, in other cases you may have as many polygons as needed.
3. On the Feature Objects menu, click Build Polygons to finalize the polygon.
89 12 Wind Driven Circulation
To generate the data structures correctly, the polygon needs to be defined by nodes instead
of vertices. To enforce this, click on the Select Feature Vertex icon , on the Edit menu,
click Select All, then right-click on the plot window. On the pop-up menu, click Convert to
Nodes to convert all vertices to nodes.
4. Now, click the Polygon Selection icon , click inside the polygon to select it, and right click.
On the pop-up menu, click Attributes:
5. In the dialog select Material, [Link] from the drop-down material list, and
click OK:
Figure 12.6 – Select wind velocity data file name for polygon.
Please, ignore the Mesh boundary conditions incomplete warning. It just indicates that you
have no open boundaries in this mesh, which is correct in this case since this is a lake.
6. Finally, click the Run RiverFlow2D button. Figure 12.9 shows the dynamic window at the
end of the run.
12.7 Visualizing Wind Driven Circulation Results 92
Figure 12.9 – RiverFlow2D window at the end of the Wind Simulation tutorial run.
7. Close the window using the Close Window icon on the upper right of the window.
The files required to follow this tutorial can be found in the following directory:
...\Documents\RiverFlow2D_SMS\ExampleProjects\DamBreachTutorial
95
13.1 Create a Breach Time Series Data File 96
This file can have any name. The first line represents the number of times or lines in the file,
and then follows as many lines with the time (hrs) b (ft or m) and height Hb (ft or m). For instance
the following file has 3 times: 0.0, 0.5 and 24.0 hours. For time 0, the breach width and heght is
0, so the breach has not started to form. Then for time 0.5 hours the breach width is 20m and
the breach height is 2m. For intermediate times the model interpolates between the previous and
following times.
3
0.0 0.0 0.0
0.5 20.0 2.0
24.0 20.0 14.0
You may use the Dam Breach panel in RiverFlow2D Data Input Program to create a dam
breach time series file and lets you edit the time, width and height values (see Figure 13.2).
97 13 Simulating an Internal Dam Breach
Figure 13.2 – Dam Breach panel in the RiverFlow2D Data Input Program.
2. Using the Create Feature Arc draw the polyline at the dam location.
3. Select the polyline using the Select Feature Arc and redistribute the vertices so that the
spacing is 50 m. You should see the dam polyline as shown in Figure 13.3.
13.2 Enter the Dam Polyline in the Default Map Coverage 98
4. Now select the polyline again using the Select Feature Arc.
5. Right click and select Attributes...
Figure 13.6 – Polygon used to set the initial water elevations on the reservoir.
Use the Material Data Command in the Edit menu to create new Material Data entries with
numeric values that will correspond with the initial water elevation that you want to associate
with each polygons. To add new values, use the New button, and enter Material values. In this
case we will enter 115.0:
13.3 Enter the initial water surface elevations 100
We will create an initial water elevation polygon in the InitialConditions area coverage.
Note that the InitialConditions coverage name should not be changed. If you use a different name
for this coverage, the model will not be able recognize the polygons.
To create the polygon, first click on the on the InitialConditions coverage to make sure it is
the active layer, and using the Create Feature Arc tool, draw a polygon as shown:
On the Feature Objects menu, click Build Polygons to finalize the polygon.
To generate the data structures correctly, the polygon needs to be defined by nodes instead
of vertices. To enforce this, click on the Select Feature Vertex icon , on the Edit menu, click
Select All, then right-click on the plot window and on the pop-up menu, click Convert to Nodes to
convert all vertices to nodes.
Use the Polygon Selection icon , click inside the polygon to select it, and right click. On the
pop-up menu, click Attributes:
101 13 Simulating an Internal Dam Breach
In the dialog select Material, 60 from the drop-down material list, and click OK:
1. Select the Mesh Data in the Project explorer to make the Mesh Module the active module.
2. On the RiverFlow2D Menu menu, click Global Parameters
This will bring up the RiverFlow2D Global Parameters dialog in which you can set the run
control parameters for RiverFlow2D.
3. Make sure that the Dam Breach component is selected n the Control Data panel:
4. On the Control Data tab, enter the options as shown below. Note that the Initial Conditions
should be set as Define Initial WSE as Dataset in order to capture the initial water surface
elevation that was specified for the reservoir in the InitialConditions coverage
To run the model, click Run RiverFlow2D button on the lower section of the Data Input
Program. A window will appear indicating that the model has started running. The window also
reports the simulation time, volume conservation error, total inflow and outflow discharge, and
other parameters as the run progresses.
13.5 Running the Model 104
Note that the Simulation Status frame indicates that the Dambreach file has been read and
that the Dam Breach component is ready before the simulation started.
Post-processing Calculations
14
14.1 Creating an Observation Coverage
Observation coverages can be created to facilitate the model verification and calibration process,
allowing users to verify simulation results with observed data.
• Observation points are created at locations where calibration data such as the velocity or
water surface elevation has been measured in the field. Each observation point is used to
compare the measured values with the values computed by the model at the x, y location.
Creating an observation point is just like creating a feature point in any other coverage type:
1. Select the Create Feature Point tool from the Toolbar.
2. Click the location for the feature point.
• Observation arcs, to view the results at a cross section or along the river profile. You can
also compute fluxes across the arc that can be compared to measured discharge. Creating
an observation arc is just like creating a feature arc in any other coverage type:
105
14.2 Cross Sections 106
1. Right click on the Map Data object in the Project Explorer and create a new coverage. Make
the type an Observation coverage by right clicking and selecting Type | Generic | Observation
and make its name ‘Observation Plots’. Click on this new coverage to make the Map module
active. (SMS creates a separate coverage to keep the observation arcs separate from the
exiting observation points. When an observation arc is being created, observation points
may be clicked joining them to the arc. Observation points and arcs can exist on the same
coverage.)
2. Select the Create Feature Arcs tool from the Toolbox.
3. With the cross sections created, open the Observation Coverage dialog and assign a unique
color and an appropriate name to each arc.
107 14 Post-processing Calculations
With the arcs created, the plots can now be generated as follows:
3. Turn on the Specified option, and check only the Bed elevation data set in the Generic
Solution and the water surface elevation data set in the .hdf5 solution.
4. Turn off the three cross-section arcs in the Arcs spreadsheet by turning off their corresponding
Show toggles.
5. Click Finish to close the Plot Wizard and generate the plot.
The profile plot of the geometry of the stream will of appear as shown in Figure 14.2.
14.3 Profiles
Profiles can be created using observation arcs in SMS. Profiles attributes in SMS can be set up
once the model has been run and the results are read. To create a profile of the river:
1. Right click on the Map Data object in the Project Explorer and create a new coverage.
2. Make the type Observation coverage and make its name Profiles’.
3. Click on this new coverage to make the Map module active. User can create a separate
coverage to keep the cross section arcs separate from the exiting profiles. Profiles and cross
section arcs can exist on the same coverage.
5. Create an arc down the main channel. Remember to double-click the last point to end the
arc.
When the plots are drawn, they will use the name and color associated with the observation
arc. To change the name and color of the arc:
With the arcs created, the plots can now be generated. To do this:
• New dataset name: name of the new dataset (or function) created by interpolation.
• Map Elevation: only for interpolation to mesh nodes, the new dataset is mapped to
be the elevation function.
• Interpolation Method: the supported interpolation methods in SMS include:
(a) Linear
(b) Inverse Distance Weighted (IDW)
(c) Natural Neighbor (NN)
• Default Extrapolation Value: for linear and NN interpolation methods, if the scatter
set does not bound the data being interpolated to, the extrapolation value is used.
• Existing Dataset Value: corresponding value from a specified existing dataset can
be used for locations outside of the bounds of the scatter set. The dataset must be from
the same object being interpolated to and must be of the same type (i.e. scalar, vector).
111
112
1. Use the import wizard tools to only bring in a portion of the data generally divided up by
area (bounding box). Second step of the import wizard choose the filter options button.
2. Filter the scatter set using the filter tool in SMS. Scatter module choose Data | Filter.
6. Load each of the files and merge them into a single scatter set. The best way to do this
might be to start with the first scatterset, load another file, merge it into the merged scatter
set, delete it, and repeat. Doing this SMS will only have the merged scatterset and one other
scatterset at the same time.
7. If the total number of points is still too large, you may have to filter the individual scattersets
further.
ASCII Elevation data files with more than 750 million of points will need to be filtered using
the SMS Scatter module. The points can be filtered within the import wizard in SMS. Processing
and filtering that many points will require a lot of memory and CPU time.
Another option to import large elevation datasets available from SMS v11.0 is to use the new
Raster Module that is designed for handling elevation datasets with many more points than what
are typically found. Each point in the Raster module requires much less memory than the Scatter
module since the data are on a regular grid and SMS doesn’t have to store triangulation data.
Data in the Raster module can also be interpolated to a mesh.
113
114
Converting .DXF Files to Scatter Data
17
Drawing Exchange Format (DXF) files are AutoCAD files that contain vector drawing data. They
can be imported for background display or for conversion to feature objects as a scatter data set.
The following steps summarize the procedure that has to be following to convert a DXF to a scatter
data set:
4. Right-click on CAD layer in the Project Explorer and select Convert → CAD → Map from
the drop-down menu. A new coverage named CAD will be created. Select this coverage to
make the Map Module active.
5. Right-click on the CAD coverage and select Convert → Map → 2D Scatter.
6. Click OK in Map → Scatter dialog. This process can take a few minutes since the spacing
of the points along the contours is high resolution.
7. Turn off the CAD map coverage and zoom in to the scatter set.
115
116
Using HEC-RAS Data Extraction Tool
18
This tutorial explains how to use the HEC-RAS Data Extraction Tool to read elevation data from
HEC-RAS cross sections and use the elevations in RiverFlow2D.
The steps used in this tutorial extract HEC-RAS elevation data and use it in RiverFlow2D are
as follows:
1. Use HEC-RAS Data Extraction Tool to read the geometry file and create the X Y Z and
polygon files.
2. Open SMS and import new data for the elevation points.
The files required to follow this tutorial can be found in the following directory:
...\Documents\RiverFlow2D_SMS\ExampleProjects\HEC-RASDataExtractionTool
117
18.1 Read HEC-RAS Geometry File and Create the X Y Z and Polygon Files 118
The program reports the number of cross sections, cut-lines and banks found:
Click OK, and select the directory where you want the output files. In this case, we will put
these files in the same directory of the HEC-RAS geometry file:
119 18 Using HEC-RAS Data Extraction Tool
Click OK and the following dialog reports that the output files were created:
The generated X,Y,Z can be imported in SMS to complement other elevation data.
18.1 Read HEC-RAS Geometry File and Create the X Y Z and Polygon Files 120
Investigating the Mesh Quality
19
Mesh quality can be checked on an existing mesh in SMS:
The display will refresh without contours and depicting problematic areas. A legend shows the
color corresponding with each quality category.
The quality checks that are displayed on the mesh are shown in figure 19.2.
121
122 19 Investigating the Mesh Quality
Sometimes it is needed to increase the mesh resolution on some areas of the mesh. The gradient
of the physical quantities on the mesh might be large or there are sensitive areas that might need
more detail. It is important to understand that refining the mesh too much, will generate a mesh
with more nodes and elements, and that will lead to increased computational time.
After creating the first node, assign the bed elevation value in the edit window to be 171.0.
This will assign the elevation of the new nodes to be similar to the existing nodes. A nodestring
can now be created from one of these new nodes to the other. This nodestring will be used as a
breakline.
123
20.2 Arc Inserted on the Conceptual Model Coverage 124
After the nodestring is used as a breakline, it is no longer needed and it should be deleted.
Figure 20.4 – Feature Arc created near to the boundary to refine the mesh.
Then activate the conceptual model and create a new 2D mesh. The areas around the Feature
Arc will be refined using the defined spacing:
The nodes will be forced to pass through the defined feature arc.
V =velocity magnitude.
g=gravitational acceleration.
h=depth.
4. Click the divide button. Click the sqrt(x) operation. Enter 32.2 for the constant g.
5. Click the multiply button, then highlight the water depth data set and click the Add to
Expression button.
127
128
6. Enter the name of the field in the Output dataset, enter Computation of Froude and then
click Compute button. SMS will take a few moments to create the data set.
7. Click the Done button to exit the Data Calculator dialog.
The new data set is automatically placed to a .sol file by default, to be edited with any of the
other tools in SMS or saved in a generic data set.
22
Exporting Shapefiles
To create a shapefile, just use the Save as Shapefile... Command from the File Menu.
129