HEC-RAS Subgrid Bathymetry Theory and Application

Written by Mark Forest | June 15, 2020


Mark Forest is one of the most knowledgeable H&H modelers I know.  He’s also a very experienced RAS modeler.  Here he discusses the benefits of the relatively unique subgrid bathymetric approach to terrain surface discretization that HEC-RAS uses, specifically on the topic of computational mesh cell size.  Read this.  Then read it again.  This is important stuff if you’re a 2D HEC-RAS modeler.  -Chris Goodell

During one of the 2020 ASFPM virtual conference sessions on H&H modeling a question was asked about comparing HEC-RAS to other 2D modeling tools, specifically relating to the need to compare modeling platforms using the same relative number of cells and relative cell size.   I thought it might be valuable to distribute the basic core discussion that followed the conference session for the benefit of all…

Like most 2D models, HEC-RAS performs the calculations from cell center to cell center.  HEC-RAS calculates the momentum at the cell faces which are cut from the terrain with irregular geometry at the cell face based on the underlying terrain.  Additionally, the cells are detailed elevation volume curves, also cut from the terrain.   So, the flows entering and exiting the cell (and the associated momentum) are influenced by the volume within the cell and where the flow enters and exits the cell.  The irregular cell faces will influence the velocity, pressure gradients, velocity vectors and the momentum entering and exiting the cell more accurately when using this terrain detail at the cell faces and cell volume relationships.   This allows RAS to also see a preferential flow path through the grid cell and wets only the portion of the cell that is below the computed water surface for a given time step.     The subgrid detail influences the momentum calculation by influencing where the flow is directed into and out of the cell using that terrain detail, appropriate length between cells based on a refined definition of the vectors and velocity based on the cell face details like the example below:

Most 2D models treat the cell as an average single elevation or as a sloped triangular or rectangular plane and the faces as a flat or sloped surface.  This format requires the cells to be much smaller to capture the same level of detail, volume and face velocity as HEC-RAS achieves with the subgrid terrain detail.  When a 2D model uses a single elevation to represent the grid cell, it also means that the entire cell is either wet or dry.

The use of the terrain detail in the HEC-RAS calculations allows the momentum solution to be more accurate since it is not simplifying the solution at the cell face and it can detect a preferential flow path into and out of each cell.  So, that is why larger cells can be used for a RAS simulation to get a comparable answer to a tool that simplifies the cell representation as a single elevation or a sloped triangular or rectangular plane.   The only reason to compare RAS with the same number of cells with a code that uses only average cell elevations and faces, is to compare run times only on the basis of the number of mesh elements, not run times for a solution that provides a comparable level of accuracy of the simulation (which is a more appropriate comparison).   But, if you can get an equal or even more accurate answer with HEC-RAS with fewer cells (provided that the cell faces are properly aligned with key terrain features that influence flow patterns), then a proper basis of comparison with other tools should be performed  based on a comparable representation of the terrain in the hydraulic computations rather than a comparable number of cells or nominal cell size.   Basing run time comparison only on number of elements would be misleading, and completely ignores the benefit of the subgrid terrain used for the cells and the faces.

A follow-up question was asked about the results sensitivity to cell size when using HEC-RAS.   While all 2D models need to be strategically designed to capture the hydrodynamics at the level of desired detail, the general answer is that RAS is fairly insensitive to grid size in general when the grids are properly aligned with key terrain features.   Most other 2D models require more optimization (and smaller cell sizes) of the cell sizes due to the fact that the terrain is being simplified as a flat element or plane.   This means that most 2D models will be more sensitive to cell size variation than RAS is due to the way RAS treats the underlying terrain in the computations.   I have tested grid size sensitivity with simulations that are more dynamic, such as a dam breach analysis with very rapidly varied flow, with little difference in the results with a reasonable range of grid sizes provided.  As long as elevated roads and other topographic features are captured with breaklines and an appropriate time step and range of grid sizes are used.

One of the reasons these arguments get made is to advertise model performance differences (run times), so arguing that the same number of cells should be used for this comparison is more of a sales argument than a hydraulic modeling argument.   Even this argument is becoming less relevant as HEC has continuously implemented speed enhancements with each version.    Version 5.1 will make yet another leap forward in computational speed which is important to all of us who are looking for ways to optimize model performance.   But, as you do, consider your mesh element size needs based on how the model will be used.   If you need to capture superelevation around a bend, you will need smaller mesh elements.  If you want to more accurately capture the velocity distribution around a structure, you may need smaller mesh elements.   Just keep in mind how the computations are performed, what terrain details your model is able to detect and focus on making sure your terrain is of the quality needed since RAS sees terrain details and any associated imperfections, like gaps in levees due to lack of lack of LiDAR mass points needed to capture those features.

Mark E. Forest, P.E., CFM

HDR

Vice President / Principal Professional Associate

Dam, Levee and Civil Works Sr. Business Class Leader

Surface Water Hydrology and Hydraulics

 

Gary Brunner adds: 

Another major point to consider:  Lets say we are modeling a stream where the main channel is around 500 feet wide, and is highly variable in its terrain.  In order to capture the correct volume of the channel, and the correct area/wetted perimeter, models that use flat cells or triangles must have 10 to 15 cells across the channel, or even more.  HEC-RAS can get the the correct volume and the correct area/wetted perimeter with even one cell across the channel.  If someone is interested in more than just the water surface, then they could use 5 to 7 cells across the channel, or whatever number of cells they desire, in order to get the velocity distribution at the level desired.  We have proven that this works on many studies.  We presented a paper on this at the 2017 ASCE EWRI conference “HEC-RAS Subgrid Modeling: Benefits and Limitations with Example Applications”, Sanchez, Brunner, and Chacon.  Many users have done these same tests on their own and compared there results to other models using finer meshes.  FEMA has a comparison of FLO2D, TUFLOW, and RAS, where they show RAS can use much larger cells and still get the same 1% chance floodplain and basically the same Floodway.

Copyright © 2020 The RAS Solution.  All rights reserved.

Comments

  1. Matt Marquis P.E, CFM

    on June 17, 2020

    Mark, this is a great summary. I have used multiple programs for 2d studies, but the subgrid terrain feature truly sets hecras apart from the others I have experience with. I am also impressed with how efficiently hecras can process very large terrain data sets. I’m looking forward to seeing improvements to computation speeds in 5.1.

  2. Davis Murphy

    on June 18, 2020

    Mark, Chris, or Gary–In the post above, it is stated that “Like most 2D models, HEC-RAS performs the calculations from cell center to cell center.”

    However, I have wondered if this is true for HEC-RAS if the mesh computation points are irregularly spaced. According to the model documentation, the mesh cells are generated as Thiessen poylgons which start from the computation points, therefore, a given mesh cell’s centroid is not always coincident with the computation point.

    This may seem immaterial, but I ask because I’m wondering if it has some ramifications for how floodplain mapping is handled in RAS Mapper. Specifically, using the Sloping or Hybrid render modes, as well as when floodplain mapping is performed in external GIS software.

  3. Gary Brunner

    on June 19, 2020

    Response To Davis Murphy. You are correct, RAS performs the computations from what we call the Computation points. This is the cell center when the cells are square, but not for irregular cells. So Marks comment about computations from cell center to cell center, was really meant to be from cell computation point to cell computation point. The software calculates a length from cell computation point to cell computation point across each face. This length is used for computing the friction losses across a face, as well as the spatial acceleration term in the momentum equation.

  4. Davis Murphy

    on June 19, 2020

    Awesome, thanks for clearing that one up, Gary! Definitely not trying to nitpick Mark’s post, this has just been a nagging question for me regarding RAS 2D.

  5. Tony Green

    on June 24, 2020

    Gary
    Is the paper you refer to (“HEC-RAS Subgrid Modeling: Benefits and Limitations with Example Applications”, Sanchez, Brunner, and Chacon) accessible somewhere? I couldn’t locate it and I agree the sub grid feature is quite a critical issue for the speed of flood models (and sediment) modelling and have been trialling 2-4 cells for smaller rivers in big floodplains. I think it is difficult to have only one cell when the river meanders.

    Many Thanks

  6. David Hostetler

    on June 25, 2020

    Great summary by Mark and Gary. We have run comparisons between the latest HEC-RAS 2D model and Tuflow to understand in-stream velocities and shear stresses and found that with the latest version of HEC-RAS, when the HEC-RAS parameters are correctly tweaked using Full Momentum, the shear stress results align fairly well with Tuflow.

    I know that Tuflow uses a 2nd order solution scheme, which tends to be more accurate. Does HEC-RAS use a 1st order or 2nd order solution?

  7. Chris Goodell

    on June 26, 2020

    Yes, RAS 2D is 2nd order accurate.

  8. Chris Goodell

    on June 26, 2020

    Tony, that paper is actually a presentation. I put it here on my Google Drive if you want to download it: https://drive.google.com/file/d/1zQidHOyOhxe_3TvApbA1vc6hhs2mH76J/view?usp=sharing

    -Chris

  9. Paige Brue

    on January 5, 2023

    Great summary! Thank you for providing the presentation.

Add Your Comment

Leave a Reply

4 × 3 =


Related Posts

SEE ALL BLOG POSTS