Mesh Development for HEC-RAS 6.x
Objective - In this tutorial you will learn how to (1) use a 1D HEC-RAS model to inform mesh development, (2) how to export a mesh and import into HEC-RAS version 6, and (3) how to add a bridge in HEC-RAS version 6.
Data Files
The data for this tutorial are provided below.
These data are for demonstration purposes only and should not be used for engineering analysis.
These data are for the confluence of the Illinois River and Fox River at Ottawa, IL.
Steps
Step 1: Export HEC-RAS 6.x Features
- Open HEC-RAS 6.x
- Open the project "1DModel.prj"
- Open RAS Mapper
- Right-click on the Cross Sections Layer and choose the Export Layer | Save Layer to Shapefile menu option

- Pick a folder and provide a Name ("crosssections")
- Start Editing the "Base" geometry
- Create Bank Lines
- Expand the Rivers layer
- Right-click on the Bank Lines layer and choose the Create Bank Lines from XS Bank Stations menu option

- Right-click on the Bank Lines layer and choose the Export Layer | Save Layer to Shapefile menu option
- Pick a folder and provide a Name ("banklines")
- Create Edge Lines
- Expand the Cross Sections layer
- Right-click on the Edge Lines layer and choose the Create Edge Lines at XS Limits menu option

- Right-click on the Edge Lines layer and choose the Export Layer | Save Layer to Shapefile menu option
- Pick a folder and provide a Name ("edgelines")
- Stop Editing the "Base" geometry
- Close RAS Mapper
- Close HEC-RAS 6.x
Step 2: Create a 2D HEC-RAS Model
- Start HEC-RAS
- Create a new Project
- Provide a Name
- Set the Projection using the provided .prj file
- Press the Create button
- Create and add the Terrain
- Create a new Terrain
- Add the tif from from the base HEC-RAS project
- Press the Import button
Import Features to Conceptual Mesh
- Create a new Geometry
- Import the shapefile features to the Conceptual Mesh
- Select the Conceptual Mesh
- Right-click on the Conceptual Mesh choose the Import | Polylines/Polygons menu item
- Browse to the GISData folder
- Select the crosssections.shp file
- Select the banklines.shp file
- Select the edgelines.shp file
- Press OK when the files are selected
- Choose the "Import and Merge"
This option will attempt to find the intersections of the lines imported and create a node-arc topology
- Press the Import button

Inspection of the Conceptual Mesh will bring several issues to light.
There are several issues to address.
- Junction - Most notable is that the conceptual mesh is not connected at the junction of the two rivers. To create a valid/connected mesh, this must be improved.
- Levees - The Edge Lines did not follow the top of levee. To create an acceptable hydraulics model, this must be improved.
- Cross sections - Do the cross sections really represent where we want arcs? No. We want an arc AT the bridge, not bounding the bridge. Further, is the floodplain one-dimensional, or two-dimensional? Since we have the capability to model it as 2D flow, why not approach the problem in that way.
Fix Conceptual Mesh
Rather than bringing all of the features at once, bring in the shapefiles that might really matter (model perimeter and bank lines).
- Create a new Geometry
- Import the Edge Lines shapefile features to the Conceptual Mesh
- Right-click on the Conceptual Mesh choose the Import | Polylines/Polygons menu item
- Browse to the GISData folder
- Select the edgelines.shp file
- Press the Import button

- Complete the Conceptual Mesh
- Create arcs that close the region at the upper end
- Connect the arcs at the junction
- Delete unnecessary nodes

- Import the Bank Lines shapefile features to the Conceptual Mesh
- Right-click on the Conceptual Mesh choose the Import | Polylines/Polygons menu item
- Browse to the GISData folder
- Select the bank lines.shp file
- Press the Import button

- Fix the end points of all of the new arcs
- Nodes will need to split existing lines and be connected
- Hanging arcs will need to be deleted
- Improve the Conceptual Mesh to follow the Levee and other high ground

Generate the Computational Mesh
- Start with creating a good mesh for the channel are defined by the bank lines.
- Use the Quad mesh type (suggest parameters are shown below)
- Main River - Length 400ft, 3 Cells wide

- Tributary - Length 400ft, 1 Cell wide

- Mesh the overbank floodplain areas
- Suggested Arc properties for the Overbank areas are 400ft on all Arcs
- Use Quads where appropriate, otherwise use Triangular meshing
- Press the Regenerate Mesh button to create the computational Mesh

- Continue to edit the mesh as desired
Export the Mesh for use in HEC-RAS 6.x
Once the mesh has been created and refined to satisfaction, export the mesh for use with HEC-RAS 6.x.
- Right-click on the Mesh and choose the Export | HEC-RAS Mesh (Version 6) menu option

The mesh will be created in the "Exports" folder in the RAS project directory
The default filename with be the Mesh name with "(Exported Mesh)" appended
Step 3: Import Mesh to HEC-RAS 6.x
- Open HEC-RAS 6.x
- Open the project
- Open RAS Mapper
- Create a new Geometry by right-clicking the Geometries group and choosing Create New Geometry.
- Associate the Geometry with the Terrain and Land Cover
- Start Editing the Geometry of interest.
- Right-click the 2D Flow Areas layer and choose the 2D Flow Area Editor menu item

- Press the Import Mesh button

- Select the exported mesh - There is a backup in the GISData folder (Mesh_Initial.hdf file)
The mesh will be imported - Stop Editing
Note that the imported mesh will be displayed in RAS Mapper. As shown below, the mesh is "Brown" color and has a Lock icon displayed indicating it cannot be edited (you can, but you should not).

The 2D Flow Area will be named "2D Area 1" by default. Further, if you look at the 2D Flow Area Editor, you will find the Mesh has been locked from editing.

You may now proceed to create Boundary Conditions and Reference Lines, enter flow data, and run the simulation.
Step 4: Mesh Limitations and Considerations
A mesh that has been imported from HEC-RAS 2025 "cannot" be modified in HEC-RAS version 6. If you choose to unlock the mesh and try editing it, you will find the RAS 6 meshing will create a different mesh. Therefore, if you want to make changes to the mesh, you should do so in RAS 25 and re-import. You may wish to modify your mesh - building a good model takes iteration and refinement.
Evaluate the difference in meshing
- In RAS Mapper, perform the following
- Save the Geometry As a new geometry
- Unlock the Mesh
- Start Editing the 2D Flow Area
- Move or Delete a computation point
- Identify how the computational mesh changes

- There may be problems with number of cell faces exceeding 8 or other issues which would need to be fixed by hand
- Stop Editing
Step 5: Add a Bridge
Most likely, you will want to model a bridge or other hydraulic structure in your 2D model. You can still do that. You can add a 2D connections (to model a bridge, culvert, or levee) just do NOT enforce the structure as a breakline. HEC-RAS 6.x will "attach" the 2D connections to the nearest set of faces. To more accurately model the bridge, use an arc in the Conceptual Mesh in HEC-RAS 2025 (to enforce cell faces) and re-export the refined mesh.
Refine the Mesh at Bridges
Some example bridge locations are shown below. Practice at these bridge locations.

- Open the HEC-RAS project
- Select the Conceptual Mesh
- Edit the Mesh with the Editing tool
- Split existing Arcs
- Add new Arcs at the bridges

- Enter parameters for each Arc/Region
- Regenerate the Mesh

- Zoom to the confluence and we will focus on the bridge on the main river.
- Add an Arc to represent the bridge

- Provide Arc (Count) and Region (Quad) properties to the new arcs/regions
- Regenerate the Mesh

Using the current set of meshing tools you can set the Arc to use Strict Spacing and you need to increase the default Laplace Resolution.
Export the New Mesh
- Export the Mesh by right-clicking on the Mesh and choosing the Export | HEC-RAS Mesh (Version 6) menu option
Import Mesh to HEC-RAS 6.x and Add Bridge
- Open the HEC-RAS version 6.x project
- Open RAS Mapper
- Create a New Geometry (name it MeshwithBridge)
- Start Editing the Geometry
- Import the mesh into the HEC-RAS version 6.x geometry
- You can just import over the existing Perimeter. (There is a backup in the GISData folder (Mesh_FinalwBridge.hdf file)
- Add the bridge location as a 2D Connections layer
- Draw the centerline of the 2D connection directly over the cell faces, making sure to connect it with high ground
- Complete the Name, Width and Structure Type (Bridge 1D - Family of RCs) data

- Stop Editing in RAS Mapper
- At this point, you need to complete the bridge parameters using the Bridge Editor in the Geometric Schematic
- Open the Geometric Schematic
- Open the newly created geometry (MeshwithBridge)

- Open the SA/2D Connection Editor
- Set n values for Bridge Cross Sections by selecting the Options | External and Internal Bridge Cross Sections

- Use an n value of 0.035

- Provide Deck and Pier information
- Top of Road Elevation - 512ft
- Deck Width - 12ft
- Piers - 2 piers, 6ft wide, spaced 600ft apart

- Set the HTab Parameters
- Set n values for Bridge Cross Sections by selecting the Options | External and Internal Bridge Cross Sections
- Close the SA/2D Connection Editor
- Close the Geometric Schematic
Step 6: Create Boundary Conditions
- Open RAS Mapper
- Start Editing the Geometry
- Create Boundary Conditions locations for each River

- Provide names for each
- Stop Editing
- Open the Unsteady Flow Editor and enter BC data (data are provided in the FlowData.xls file)
Note that the data are 6hr data starting on 01DEC2020 24:00
- Enter a Flow Hydrograph for the Fox River
- Enter a Flow Hydrograph for the Illinois River
- Provide a Normal Depth boundary on the Illinois River (slope = 0.001)

- Save the Unsteady Flow file
- Close the Unsteady Flow Editor
Step 7: Create a Plan and Simulate
- Open the Unsteady Flow Simulation window
- Select the Geometry with the Bridge
- Select the Unsteady Flow file
- Enter the Time Window Information as shown below (01-14JAN2000)
- Set the Computation and Output Interval
- Use the Diffusion Wave Equation
- Set the number of Solver Cores to 2
- Press Compute to run the simulation

Based on the flow provided, and the height of the bridge, it looks like the bridge will have an minimal impact on the resultant water surface elevation. However, we could verify this by running another plan without the bridge and investigate the impact of the piers for events that don't hit the bridge deck. The maximum water surface is plotted for the current flow conditions.

