1. Home
  2. Knowledge Base
  3. 2D Modeling
  4. HEC-RAS 2D Mesh Generation Errors & Corrections
  1. Home
  2. Knowledge Base
  3. Exporting Data
  4. HEC-RAS 2D Mesh Generation Errors & Corrections
  1. Home
  2. Knowledge Base
  3. GeoHECRAS
  4. HEC-RAS 2D Mesh Generation Errors & Corrections
  1. Home
  2. Knowledge Base
  3. HEC-RAS Model Troubleshooting
  4. HEC-RAS 2D Mesh Generation Errors & Corrections
  1. Home
  2. Knowledge Base
  3. Importing Data
  4. HEC-RAS 2D Mesh Generation Errors & Corrections

HEC-RAS 2D Mesh Generation Errors & Corrections

Creating a HEC-RAS 2D mesh that correctly represents the flow area being modeled can take some time due to the need to add the appropriate details to the model to represent the components and due to the terrain data to be included.

When working with complex meshes, there may be times when the mesh generation fails to run. When this situation occurs, the user will need to review the data that has been assigned to construct the mesh.

For example, the below 2D mesh fails to correctly generate an adaptive mesh.
2D mesh generation fail

However, upon review of the polygon boundary used to define the mesh, it becomes evident that the upper boundary contains a large number of unnecessary and redundant vertices.
Simplify elements

In this situation, the Simplify Elements command of the Map Edit ribbon menu can be used to correct this issue by removing the redundant vertices along the 2D mesh boundary.

The following sections describe how to perform this task.

Export 2D Flow Area Mesh as Shapefile

To be able to simplify the 2D flow area mesh boundary, it needs to be exported as a shapefile. Follow the steps below:

  1. From the Input ribbon menu, click the Export Data dropdown menu, and then select the Export HEC-RAS to Shapefiles command.
    Export HEC-RAS to Shapefiles input ribbon menu command
  2. The Export HEC-RAS to Shapefiles dialog box will be displayed.
    Export HEC-RAS to Shapefiles dialog boxThe Export HEC-RAS to Shapefiles dialog box is used to export a HEC-RAS model to GIS shapefiles allowing the HEC-RAS model data to be shared with GIS software. Refer to this article in our knowledge base for further discussion on how to export the HEC-RAS elements.
  3. Click the […] button adjacent to the HEC-RAS shapefiles folder entry and then choose the directory to save the exported shapefiles.
  4. Under the HEC-RAS Input Data section, turn off all the HEC-RAS element checkboxes except for the 2D flow area boundaries checkbox.
    HEC-RAS Input Data section
  5. Click the [Export] button.
    [Export] button
  6. The software will export the 2D flow area mesh boundary as a polygon shapefile.

Import Polygon Shapefile

Next, we need to import the polygon shapefile that was exported. Follow the steps below to import the polygon shapefile.

  1. Right-click on the Map Data Layers panel and then select Add Layers from the displayed context menu.
    Add Layers displayed context menu command
  2. Browse and select the exported polygon shapefile, and then click the [Open] button.
    Add Layers - [Open] button
  3. The selected shapefile should be loaded and correctly overlay the HEC-RAS model area.

Polygon Simplification

The imported polygon shapefile will be used to recreate the 2D flow area for the HEC-RAS model. However, the number of vertices that define the shapefile polygon first needs to be simplified. For this, the Simplify Elements command can be used. Refer to this article in our knowledge base to learn how to use the Simplify Elements command.

Upon using the Simplify Elements command, the polygon will be simplified, reducing the number of redundant vertices used to describe the polygon boundary.
Simplified Polygon boundary

Assigning Polygon as 2D Flow Area Mesh

After simplifying the polygon, it can be used to define the 2D mesh. In HEC-RAS, generation of the 2D mesh for 2D modeling begins with the 2D flow area. The 2D flow area defines the boundary for which the computation will occur. The user can use the Assign 2D Flow Areas command for assigning the simplified polygon as a 2D flow area. Refer to this article in our knowledge base to learn how to use the Assign 2D Flow Areas command.

After the 2D flow area polygon boundary is created, the next step is to begin generating the 2D mesh. Follow the steps below to generate the 2D mesh:

  1. Double-click on the 2D flow area on the Map View to display the 2D Flow Area Data dialog box.
    2D Flow Area Data dialog box
  2. Click the [Update] button.
    [Update] button
  3. The software will generate the 2D mesh without the previously reported error.
    generated 2D mesh without the previously reported error

 

About the Author Chris Maeder

  • Was this Helpful?
  • YesNo

Was this article helpful?

Related Articles