Tutorial

HEC-RAS tutorial for beginners: your first 1D steady-flow model, step by step

Build a 1D steady-flow model in HEC-RAS following the official USACE User's Manual: new project, units, river schematic, cross sections, flow data, boundary conditions, plan, compute, and results.

Most people who search for a HEC-RAS tutorial for beginners get stuck in the same place: there are many windows, and it is not obvious in which order to open them.

The official answer is in the HEC-RAS User’s Manual, which describes five main steps for creating a hydraulic model:

  1. Starting a new project
  2. Entering geometric data
  3. Entering flow data and boundary conditions
  4. Performing the hydraulic calculations
  5. Viewing and publishing results

This tutorial walks through those five steps for the simplest useful case: one river, one reach, three cross sections, steady flow. Menu names, window names, and button names are taken from the official USACE documentation (links in the sources section). Where the manual does not name something, this article says so instead of guessing.

If you want the story of how HEC-2 became HEC-RAS first, read the history of HEC-RAS.


Before you start: what “1D steady flow” means here

A steady-flow analysis in HEC-RAS computes water surface profiles for one or more constant discharges. According to the Hydraulic Reference Manual, steady flow data consist of three things: the flow regime, the boundary conditions, and the discharge information. Keep those three in mind; they are exactly what you will enter in steps 3 and 4.

The example below is a teaching model with illustrative data. The roughness values, slope, and geometry are chosen so the model is easy to build, not to represent a real stream. For real Manning’s n selection, the HEC-RAS Help menu links to an online guide for selecting Manning’s n values.


Step 1: start a new project and set the units

  1. On the HEC-RAS main window, go to File > New Project.
  2. Select the drive and folder (the manual notes you must double-click the directory to actually select it), then enter a project title and a file name. The project file always has the extension .prj; you cannot change it.
  3. Press OK, check the confirmation message with the title and folder, and press OK again.
  4. Before entering any geometry or flow, set the unit system: Options > Unit System, and choose U.S. Customary or Metric. This tutorial uses Metric.

Step 2: enter the geometric data

Open the Geometric Data editor with Edit > Geometric Data on the main window. For a new project the drawing area is blank.

2.1 Draw the river system schematic

  1. Press the River Reach button on the tool button bar at the top of the Geometric Data editor.
  2. Click once where the reach starts — at the upstream end — and keep clicking to add points. Reaches are drawn from upstream to downstream (in the positive flow direction).
  3. Double-click to place the last point.
  4. HEC-RAS prompts for a River Name and a Reach Name. Both identifiers are limited to sixteen characters. For this example: River DemoCreek, Reach Main.

One reach is enough here. When reaches are connected, HEC-RAS forms junctions automatically and asks for a junction name; we do not need one.

2.2 Enter the cross sections

Press the Cross Section button on the Geometric Data window to open the Cross Section Data editor. Then, for each section:

  1. Select the river and reach in the River and Reach boxes.
  2. Go to Options > Add a new Cross Section and type a River Station identifier.
  3. Fill in the required data (everything shown openly in the editor).
  4. Press Apply Data.

Two rules from the manual that cause most beginner errors:

  • River stations are numeric and ordered from highest upstream to lowest downstream. The number does not have to be the real chainage, but the order matters.
  • Cross-section stationing is entered from left to right looking downstream, in increasing order (two equal stations are allowed to represent a vertical wall).

The required data for each cross section, as listed in the manual:

FieldWhat to enter in this example
River, Reach, River StationDemoCreek, Main, and 300, 200, 100 (upstream to downstream)
DescriptionFree text, e.g. “Upstream section”
Cross Section Coordinates (station / elevation)See the table below
Downstream Reach Lengths (left overbank, main channel, right overbank)100 m, 100 m, 100 m for RS 300 and RS 200
Manning’s n Values (left overbank, main channel, right overbank)0.06 / 0.035 / 0.06 (illustrative)
Main Channel Bank StationsLeft 10 m, right 25 m
Contraction & Expansion CoefficientsLeave the defaults, 0.1 and 0.3

Station–elevation data for RS 300 (illustrative, metric):

Station (m)Elevation (m)
0102.0
10100.5
1599.0
2099.0
25100.5
35102.0

For RS 200 and RS 100, use the same stations with all elevations lowered by 0.10 m and 0.20 m respectively. With 100 m between sections, that gives a uniform bed slope of 0.001 (illustrative). The editor’s Options menu also includes tools to copy a cross section and to adjust its elevations, which saves typing.

Important: Apply Data only tells the interface to accept what you typed; it does not save to disk.

RS 100 is the most downstream section, so it has no next section downstream for its reach lengths to refer to.

2.3 Save the geometry

In the Geometric Data window, use File > Save Geometry Data As, enter a title (for example Demo geometry), and press OK. After the first save, Save Geometry Data reuses the title. The manual recommends saving periodically while you work.


Step 3: enter the steady flow data and boundary conditions

From the main window, open Edit > Steady Flow Data. The manual describes three required inputs: the number of profiles, the flows, and the boundary conditions.

3.1 Profiles and flows

  1. Enter the number of profiles first. Use 2 for this example: a smaller and a larger discharge.
  2. Type the flows into the table. Flow data are entered from upstream to downstream for each reach, and at least one flow per reach is required. A flow entered at the upstream end stays constant until another flow value is found in the reach.
  3. Illustrative values at RS 300: profile 1 = 20 m³/s, profile 2 = 40 m³/s.

HEC-RAS names the profiles automatically by number (the manual writes the defaults both as “Prof #1” and as “PF#1”; your version may show either). You can rename them under Options > Edit Profile Names in the steady flow data editor.

3.2 Boundary conditions

Press the Reach Boundary Conditions button on the Steady Flow Data editor. Which ends need a boundary condition depends on the flow regime:

  • Subcritical: downstream boundary only.
  • Supercritical: upstream boundary only.
  • Mixed: both.

The Hydraulic Reference Manual lists four types of external boundary condition:

  • Known Water Surface Elevations — you enter a water surface for each profile.
  • Critical Depth — no extra data; the program computes critical depth for each profile.
  • Normal Depth — you enter an energy slope, and normal depth is computed with Manning’s equation for each profile. The manual notes the energy slope can be approximated by the average channel slope or the average water-surface slope near the section.
  • Rating Curve — you enter an elevation-versus-flow curve; the program interpolates linearly for each profile.

For this example, set the downstream boundary of reach Main to Normal Depth with a slope of 0.001 (the illustrative bed slope).

3.3 Save the flow data

In the steady flow data editor, use File > Save Flow Data As and enter a title. HEC-RAS assigns the file name automatically.


Step 4: create a plan and compute

  1. On the main window, go to Run > Steady Flow Analysis. The Steady Flow Analysis window opens.
  2. A Plan is a specific combination of geometry data and flow data. Create one with File > New Plan in the Steady Flow Analysis window, and enter a Plan Title and a Short Identifier (Short ID).
  3. Select the geometry and steady flow files you saved.
  4. Select the Flow Regime: Subcritical, Supercritical, or Mixed. Use Subcritical here, consistent with the downstream-only boundary condition.
  5. Press the Compute button at the bottom of the window.

The Options menu of this window contains simulation options (conveyance calculation, friction slope methods, calculation tolerances, critical depth options, data checking, log file level). For a first model, leave them at their defaults. Check Data Before Execution is on by default: if the data are incomplete, the run stops and lists the problems.

HEC-RAS writes the plan to a run file and runs the computation in a separate window, so you can keep working while it executes.


Step 5: view the results

All output viewers are under the View menu of the main window. For a steady-flow model, start with these:

  • Cross Sections — each section with the computed water surface for each profile. Use the River, Reach, and River Station lists at the top, or the up/down arrows to step through sections.
  • Water Surface Profiles — the longitudinal profile along the reach.
  • Detailed Output Tables — detailed hydraulic results at one cross section.
  • Profile Summary Tables — a limited set of variables for many sections and profiles at once.
  • Summary Err, Warn, Notes — read it every time.

What to look for, qualitatively, in this example:

  • The larger discharge (profile 2) should produce a higher water surface than profile 1 at every section.
  • Near the downstream end, the profile is controlled by the Normal Depth boundary you chose. Change the slope and run again to see how far upstream that choice propagates.
  • If the computed water surface rises above the ends of a section, the section is too narrow for that flow: extend the station–elevation data and read the warnings.

This article does not publish numbers for this example on purpose: it was not run for publication, and the point of a first model is that you compute and check your own.


Common beginner mistakes

  • Entering cross sections with river stations increasing downstream.
  • Entering station–elevation data from right to left looking downstream.
  • Bank stations that do not match a coordinate point (the interface offers to interpolate one).
  • Pressing Apply Data and closing the program without Save Geometry Data.
  • Choosing a boundary condition without testing how sensitive the results are to it.
  • Ignoring Summary Err, Warn, Notes.

HEC-RAS is distributed at no cost, but a clean-looking profile is not proof of a correct model. Terrain, roughness, boundary conditions, and calibration still belong to the engineer.


Sources

  1. USACE Hydrologic Engineering Center — HEC-RAS User’s Manual, Working With HEC-RAS (main window menus, five steps, new project, units, plans, Compute, viewing results).
  2. USACE HEC — HEC-RAS User’s Manual, Developing the River System Schematic.
  3. USACE HEC — HEC-RAS User’s Manual, Cross Section Data.
  4. USACE HEC — HEC-RAS User’s Manual, Saving the Geometric Data.
  5. USACE HEC — HEC-RAS User’s Manual, Performing a Steady Flow Analysis.
  6. USACE HEC — HEC-RAS Hydraulic Reference Manual, Steady Flow Data (flow regime, boundary condition types, discharge information).
  7. USACE HEC — HEC-RAS downloads (current version and operating systems).