Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Flood Modelling
Tutorial
HEC-RAS 2D Flood Modelling Tutorial
If you are using Civil Site Design, you now have functionality to work
with HECRAS input and output files via the Export HECRAS 2D and
Import HECRAS 2D commands.
This drawing file includes a surface and is located in the MGA-55 Coordinate system.
At this stage, there is no surface associated with the data set. This can be remedied
using Model Viewer. To do this:
Start the ribbon command Roads Tab > Select Panel >
Model Viewer. This will start Model Viewer and populate
the existing surface name into the Toggle Display form
Under Base Surface, click on the picklist dropdown for
Style and select Image from Satellite (Aerial Photo)
The Satellite Setup
form will display. Firstly
click on the … button, select
Australia MGA-55.prj from
the list and click OK.
Click on Confirm
Satellite Data to see the imagery available under the surface location.
Roll the mouse to zoom out once only (the more zoom out, the
less quality) and click the Accept button top left.
Click OK to exit the Toggle Display form. An image is associated
with the surface in Model Viewer.
For AutoCAD and Civil 3D users, an image is also inserted in the drawing.
HEC-RAS 2D Flood Modelling Tutorial
For BricsCAD users, an image is saved to the –Data folder. When inserted into the drawing it will automatically
position itself correctly.
If you opt to run the command from the CAD ribbon interface, the Toggle Display form will display for you to
confirm what surface data to bring across to HECRAS - you can opt to just include the existing surface conditions,
or you could send across a combined surface containing the existing surface as well as your design surfaces. This
would enable you to analyse pre and post development conditions. If you run the command from inside Model
Viewer, you get the benefit of directly reviewing the surface before export across to HECRAS.
In the Export HECRAS 2D command you need to specify a location and name for the geotiff you are exporting, as
well as a grid spacing. Set a grid spacing that matches the accuracy of the data you have, to ensure you don't lose
information and, conversely, you don't include unnecessary data.
Once you have a geotiff file you can use this to generate terrain data in HECRAS.
Steps:
1. If you closed Model Viewer, click on the ribbon command Roads Tab > Select Panel > Model Viewer. This
will start Model Viewer.
HEC-RAS 2D Flood Modelling Tutorial
2. If required, confirm the settings via Toggle Display. If the previous steps are complete, the surface and
image required to be analysed in HECRAS should already by shown.
Note: in the above image the exaggeration has been set to 5 to accentuate the shape of the terrain.
Exaggeration must be set to 1 before exporting
3. Click on the Analyse Tab > HECRAS 2D Panel > Export button
In the Export form you confirm the location, name and grid size of the file to export.
4. Leave the Grid Spacing to the default of 1
5. Note the path to the output HECRAS file, then click Export to create a HECRAS input file.
HEC-RAS 2D Flood Modelling Tutorial
6. Click on File > New. Select a location and name for the new project.
7. Click on Options > Unit System to confirm the units (this example is using Metric units).
8. From the HEC-RAS interface, select GIS Tools > RAS Mapper… or else click on the RAS Mapper
button.
The RAS Mspper form will display with a menu at the top and a list of layers along the side. The first task is to
populate the Terrain layer using the .tif created by Civil Site Design. Optionally, a Map Layer can be included for
the aerial photo.
Assigning a Projection
Before creating a terrain, a projection must be set. This is controlled by a projection file, extensIon .prj. Some
typical Australian and other country specific .prj files are contained in the Civil Site Design Settings folder, in the
Visualisation and then Projections folders. There is also a website where you can generate .prj files by typing in
your location.
9. From the Ras Mapper form, click on Tools > Set Projection for Project.
For this example, a .prj has been provided in the same directory as the tutorial drawing: C:\CSS Training Data\Civil
Site Design\HEC-RAS
10. Navigate to the above folder location and open Australia MGA-55.prj.
12. Click on + to add a new data source for the terrain. Navigate to the output location of the .tif and open
that file
This data will be used to create a Terrain – in HECRAS the terrain is saved as a file with extension .hdf.
15. Right click on Map Layers and select Add map data layers…
When prompted to select a file, use the file type dropdown bottom right to select images. Selecting a .jpg
file will then insert it into HECRAS so long as it is accompanied by a world file (.jgw file contains the spatial
location for a .jpg file).
16. Select the file C:\CSS Training Data\Civil Site Design\HEC-RAS\Google_Colour.jpg
Tick on the image to display it in RAS Mapper. Right click on the image name to edit the Image Display
Properties – a transparency can be assigned here.
HEC-RAS 2D Flood Modelling Tutorial
After importing data into RAS Mapper it will become available in the HECRAS Geometry Editor. In here you can
assign flood data along the boundaries, establish the model grid size for flood analysis, edit the surface breaklines,
assign different surface Manning's n values and more.
A new form will display entitled Geometric Data. The surface will initially display with the colours representing
elevations. To show the aerial photo, click on and tick on to display the Map Layer you added.
HEC-RAS 2D Flood Modelling Tutorial
The linework in your original drawing can be included in the Geometric data as a layer, after exporting it out from
the drawing in an appropriate format for HECRAS.
Now to create a 2D flow area for analysis. To keep it simple, select the extents of the terrain as the boundary.
This is a relatively well defined basin, so the extents of the boundary are typically much higher than the creek
(excepting the inflow and outflow locations north and south). When you select the area you can establish a
calculation mesh across the surface. In our example, a 10m mesh is suitable and matches with the existing
surface triangulation.
18. Click on the 2D Flow Area button. Use the left mouse button to sketch the boundaries of a flow
area. Double click on the start of the first line drawn to close the area.
19. At the prompt, name the area Total Flow Area and click OK.
HEC-RAS 2D Flood Modelling Tutorial
20. Left click on the new area and select Edit 2D Flow Area …
In the 2D Flow Areas form you apply a computational mesh across the surface, as well as establish Manning’s n
values to apply for the default area and for any other Land Cover areas added.
21. Click on Generate Computation Points on Regular Interval with All Breaklines…
22. Set DX and DY both to 10 and click Generate Points in 2D Flow Area
The 2D Area Breaklines command can be used to incorporate breaklines into the flow area to better
represent ridge and valley lines for the surface.
Note: Where a boundary is not specified, water is assumed to well up along the boundary as if the boundary edge
was a wall.
30. From the HECRAS menu click on View/Edit Unsteady Flow data
A new form will display entitled Unsteady Flow Data. The form will list the
two Boundary Conditions set for the 2D area.
31. Under Add Boundary Condition Location, click on Add SA/2D Flow
Area… to include the Total Flow area
32. Click on the -> arrow to include the Total Flow Area for analysis and click OK.
33. Under Storage/2D Flow Area, click the flow area entitled Outflow
34. Click on Normal Depth at the top to establish the outflow conditions along this line
35. Type in a Friction Slope of 0.1 and click OK
The Boundary Condition for the Inflow will be set to Normal Depth.
Now we need to assign incoming flows into the system.
36. Under Storage/2D Flow Area, click on the flow entitled Inflow
37. Click on Flow Hydrograph to assign a time dependent flow to this inflow line
HEC-RAS 2D Flood Modelling Tutorial
38. For Data Time Interval, set the value to 1 hr using the pick list
To add flows you can type in a Flow for each time step (0 to 48hrs) and
set for a build up to a peak flow of 10m3/s, however it is often quicker to
spreadsheet out the required flow characteristics, copy them from
Excel, and use the paste command to paste them into the Flow column.
For this purpose, you may wish to open the file Storm Input
Calculator.xls file located in the same directory as the source drawing.
In this file, you can type in the Minimum and Maximum flow values at
the top of the form and it will populate values for 1hr increments.
Set the Maximum Flow to 10m3/s. Then highlight the values in the Flow
column and copy to clipboard (Ctrl + C or right click and select Copy). In
the Flow Hydrograph form, highlight all Flow cells from 0:00 to 48:00
and press Ctrl+V
39. For EG Slope for distributing flow along BC Line, type in 0.1
The Computation Interval is very important – if it is too large or too small you will generate instability in your
model or miss important calculation outcomes. Because we are on a steep site with fast flow in sections, a small
Computation Interval is required – we’ll be going for 3 seconds.
49. From the HECRAS menu click on Perform and Unsteady Flow Simulation button.
If you receive any information in red text, it is likely that some data has not been saved, data hasn’t been
fully added or there is an error in the mesh or data input.
Review the above steps, ensuring you (again) Save Geometry Data and Save Unsteady Flow Data, and try
computing again.
You can view the results directly inside HECRAS via RAS Mapper. As well, you can generate lines for the flood
extents and other flow outcomes and export this to a geospatial file format suitable for import using the Map 3D
tools in Civil 3D.
Tick on the Depth layer to show the depth of water. Use the slider at the top to change the flow time to see
development of flow over time. The play button will animate the flow.
The Import HECRAS 2D command lets you import the HECRAS output file (which is a file with extension
p##.hdf). After running the command and selecting the file, a new form displays with the calculated time stamps
included.
58. Select a time stamp and see the extents of flooding at that time. You can play and pause the
results to see the development of flooding over time and assess, in 3D, how the flooding may impact
downstream properties and infrastructure.
HEC-RAS 2D Flood Modelling Tutorial
Video Output
From the Outputs tab, click on Record Video to create an animated video file (.avi) of the water.
HEC-RAS 2D Flood Modelling Tutorial
Since HEC-RAS interfaces with geospatial systems, you will be generating a geospatial file (ESRI .shp) describing
the linework. This needs to then be imported into your drawing.
Civil 3D and Map 3D include tools to read .shp files and create objects in the drawing from the file/s. AutoCAD
and BricsCAD do not natively have functionality to interface with geospatial files such as .shp. There are third
party applications, such as Spatial Manager, that deliver functionality to import, export and interrogate geospatial
data.
To generate the .shp file of the water extents you need to:
1. Open HEC-RAS and go into RAS Mapper. You should see all the results in RAS mapper from your analysis.
2. In the Selected Layer list, right click on the Results Layer (Plan 01) and select Add new results map layer…
The following form will display:
3. You can creae a new layer displaying any of the Map Type information, at any particular time. To
generate the maximum inundatation
a. Select the Map type Inundation Boundary
b. Under Unsteady Profile, click on Maximum
c. Confirm to create a Polygon Boundary
d. Click on Add Map
The new layer shows the inundation extents
4. Right click on the new layer and select Export Layer > Save Feature to
Shapefile (or KMZ if viewing in Google Earth)
HEC-RAS 2D Flood Modelling Tutorial
5. Save the file and then it can be imported into your drawing via a .shp import.
If using Civil 3D, the command MAPIMPORT can be used to include the linework from the file.
If using Spatial Manager there are tools to read in the layer of data and display as linework in the drawing.
This creates polygons or poylines – in the image below hatching has been applied in AutoCAD: