Mesh Development Intro Workshop
Note: This workshop is designed for the February+ build with major mesh updates
Objective - This tutorial will take the user through steps and options for creating a mesh in HEC-RAS.
It will introduce the different mesh types, the options and parameters associated with them, and a few common errors.
Data Files
For this workshop you will need this terrain file:
These data are for demonstration purposes only and should not be used for engineering analysis.
Steps
If you are in the class and have access to the workshop credentials you can download your starting files from the model library.
Select Development Tools

Select the Model Library and then select 2_1_MeshWorkshop

Create your model and import your terrain
We only provided you with a terrain so you will need to start with a new model
- Open RAS2025 and Press the New Project button

- Give the project a name like "Mesh Workshop"
- You will need a projection before you can Create your project
- Pull your terrain (Tiff file) into the Drop a file here zone under Projection


- Pull your terrain (Tiff file) into the Drop a file here zone under Projection
4. Press the Create button to generate your project. ![]()
5. Create a Terrain by pressing the "+" next to Terrain in the tree: ![]()
6. Give your Terrain a name ("Terrain is fine for this exercise").
7. Turn your Terrain on by selecting the check box.
8. Select the Components tab in the Terrain editor on the right tab.
9. Drag your GeoTiff onto the blue "+" button or press it and navigate to your terrain file. ![]()
10. The importer will show you a preview. Press Import to bring the terrain in. ![]()

Try Quads, Cartesian, and Triangles in the Straight Channel
First we are going to experiment with the three main meshing techniques in one of the simplest possible configurations: a straight (but angled) channel.
- Create a Geometry File by pressing the "+" button next to Geometry
- Give it a name and select Create
- Click the check box next to Conceptual Mesh to turn it on.

- Click on the Conceptual Mesh node to select it.
- Select the Editing tool in the tool bar at the top of the display.


- Draw four connected Arcs that form a diagonal rectangular Region around the straight channel.
- Start and end each Arc by double clicking.
- End the final Arc where the first one started.

- All four Arcs RAS will create a Region.
- Build a Simple Triangular Mesh
- Hover over the Region to access the quick meshing utility.
- Click on the meshing utility and select the triangle
and set the cell size to 20. - To make a mesh, press the Regenerate Mesh button on the top of the Project Tree (upper left)


- You can also just type 20 into the blank cell under the Quick Edit Picker since triangles are default.

- Hover over the Region to access the quick meshing utility.
- Build a Cartesian mesh
- Click on the meshing utility and select the Cartesian option
and set the cell size to 20. - Note: For now the Cartesian and Quad options are both represented with squares...Cartesian is more of a "Grid"
- Regenerate mesh.

- This will give you a classic vertical/horizontal Cartesian mesh. We want to align it with flow
- In the Components tab on the right click on the Region tab.
- Select your Region (there should only be one)
- Enter a Rotation angle to try to align these cells with flow.

- Stretch the cells in the direction of flow.
- Give them a Cell Size of 40 in the Components Pane and set the Secondary Cell Size to 20.
- Regenerate the mesh.

- Experiment with different primary and secondary cell sizes.
Cartesian meshes use triangles to make the structured mesh conform to irregular boundaries.
- Click on the meshing utility and select the Cartesian option
- Build a mesh with Quads
- From the meshing utility choose a Quad cell type
. - Lets start with symmetrical quads, so leave the Cell Size as 40 but delete the secondary cell size.

- Press the Regenerate Mesh Button.
- Now add a smaller, Secondary Cell Size like you did with the Cartesian meshes.

- Regenerate mesh.

- From the meshing utility choose a Quad cell type
The Quad mesh automatically aligns with the channel and fills the whole region to accommodate boundaries that are not exactly aligned and uses Laplacian contouring which can align with curves and expand/contract. Most of these advantages are not apparent in this straight channel, though.
While both the Quad and Cartesian give you asymmetrical cells aligned with flow in this rare, straight channel system, but the Laplacian contouring of the Quad cells will work best to align cells with flow in most channels.
Add a Contraction Sections
Next add the contraction section upstream of the straight channel, where the wide debris basin transitions to the narrow straight channel.
Quads make sense in this transition because it is still essentially channel but has to go through a rapid contraction.
Quadrilateral cells are good at maintaining flow alignment and cell size while they pass through a contraction.
- Start with the Quad channel in the previous section and add three arcs upstream that include the contraction and structure to make a second region.
- Select the Conceptual Mesh in the tree on the right and the editing tool
from the toolbar at the top of the map. - Start by double clicking on one of the existing, upstream nodes from the channelized reach
- Finish by double clicking on the other upstream node so that the two regions share an Arc.
- Make sure your new region has 4 Arcs and 4 Nodes.
- Select the Conceptual Mesh in the tree on the right and the editing tool
- Generate a Quad Mesh in the new region.
- Click on the Quick Edit Picker
in this new region.
- Select the quad option
but do not give it any cell size information. - Regenerate the mesh.
HEC-RAS is trying to adopt the cell spacing of the adjacent region in this new region, which includes a cell width of 20. In order to keep a cell width of 20 through an expansion, the mesh generator has to add some transitional triangles.

Define the cell count on the arcs on both ends of the expansion region.
Follow the instructions below to try this.
- Click on the Quick Edit Picker
- Instead of defining the cell width as a length, define the number of cells we want across the channel on the upstream and downstream end of the expansion zone..
- Hover over the upstream arc until you see the Arc Utility of the downstream (upper-right) arc

- Click the arc utility
on the upstream arc and change the type from size
to count
. - Set the count to 8.

- Regenerate the mesh.

- Hover over the upstream arc until you see the Arc Utility of the downstream (upper-right) arc
Use Triangles for the North Floodplain
Next, you will build a floodplain mesh upstream (left bank) of the channel with a Triangular mesh.
We are using the "Inside-Out" meshing approach in this workshop, defining the channel first and then the floodplain.
We will use the "Outside-In" approach in other workshops.
Note: To keep the terrain light we did not include the full floodplain. Build your floodplain region to include as much of it as you can, but make sure your whole region is included in the Terrain.
- Add a bounding region.
- You can technically use a single Arc to connect the upstream left channel Node to the downstream left Channel Node since you are using triangles.
Triangles regions do not need four sides. However, it is often good practice to build your overbank regions with four Arcs in case you want to switch to Quads at some point. - Select the Conceptual Mesh in the tree on the right and the editing tool
from the toolbar at the top of the map. - Double click on the upstream, left, node to start digitizing the floodplain and end on the downstream, left, node.

- You can technically use a single Arc to connect the upstream left channel Node to the downstream left Channel Node since you are using triangles.
- Build and evaluate a coarse (for this project scale) triangular mesh.
- Select the Quick Edit Picker
tool and select Triangles .
- (Or just type the cell size below the quick edit picker since triangles are default).
- We want a coarser spacing here, so try 200.

- Regenerate the mesh.

No. The new region has to accommodate the existing cell spacing at the shared boundary with the quads in the channel, so those will start smaller and transition to larger cells as it gets farther away from the shared Arc so cells have to start at 40.

Then, there is not enough space for them to stretch at the default 0.2 (20% increase each cell) to more than 100.
- Turn on the Global Size Function to evaluate the cell size.
- Click on the Layer tab on the right associated with the Conceptual Mesh.
- Click the Show Global Size Function feature.
- Pan around this new floodplain region to see the computed cell sizes.

Increasing your cell size won't work here. Your stretching rate is controlling. At the current stretching rate (0.2 or 20% increase per cell) there is not enough room for the cells to fully expand. To reduce the number of cells you need to increase your stretching rate.
- Select your region and increase the Stretching Rate to 0.3.

- Regenerate the mesh.

- Try it again at 0.4 and 0.5. What do you think of these different meshes?
- Select the Quick Edit Picker
Use a Cartesian Mesh for the Southern Floodplain
Next, digitize a floodplain mesh south (right bank) of the channel with a Cartesian mesh.
- Add a bounding region.
- Select your conceptual mesh and the edit tool and draw a floodplain region with Arcs in the left (southern) floodplain.
- Select the Cartesian mesh type and set the cell size to 150 for the Region.
- Regenerate the mesh.
There is not room to transition from 40ft cells at the channel boundary to 200ft Cartesian cells so the mesh only generates big triangles:

This is not a good mesh
- Try adjusting the region parameters until you are using the largest possible Cartesian cells in this floodplain.

If you have extra time, experiment with using quads in that right overbank region. What constrains your cell size in that case?