Feb 2003HEC-RAS Version 3.11 Slides adapted from HEC Unsteady Flow Course Unsteady Flow Course
Feb 2003HEC-RAS Version 3.12 Unsteady Flow Documentation l Technical/theoretical - Chapters 2 and 5 from EM l - click on TECHINFO, then Engineering Publications, then Engineering Manuals, scroll for manual l HEC-RAS User’s Manual - Chapter 8 (data input and window operations) l HEC-RAS Application Guide - Chapter 17 (example application)
Feb 2003HEC-RAS Version 3.13 When to use Unsteady Flow l Tidal/estuary fluctuation l Off-channel storage l Dam breach routing l Channels with flat slopes l Levee overtopping l Hydraulic structures affected by changing backwater l Large amounts of storage behind roads or culverts
Feb 2003HEC-RAS Version 3.14 Steady vs. Unsteady l Difference in handling boundary friction and other losses l Difference in numerical solution algorithm l Difference in handling non-flow areas l Difference in flow and boundary condition data requirements l Difference in calibration strategy l Difference in application strategy
Feb 2003HEC-RAS Version 3.15 Momentum Equation: Continuity Equation: Unsteady Flow Equations
Feb 2003HEC-RAS Version 3.16 Energy (momentum) Equation: Continuity Equation: Steady Flow Equations
Feb 2003HEC-RAS Version 3.17 Distance vs Time Solution Grid l X = distance, feet l t = time, seconds t x 1,1 2,1 1,2 2,2
Feb 2003HEC-RAS Version 3.18 Finite Difference Term Q Q (2,2) - Q(1,2) Q(2,1) - Q(1,1) = ( 1 - ) X X X = theta weighting factor 0.5 < < 1.0
Feb 2003HEC-RAS Version 3.19 Steady – Compute exact hydraulic properties at a section for each trial water surface elevation from the elevation/station points, n-values. Unsteady – Hydraulic properties are pre-computed for all possible water surface elevations at each cross section (hydraulic table) Pre-Computation of Hydraulic Properties
Feb 2003HEC-RAS Version Data Requirements (Flow and Boundary Conditions) Steady: Discharge (Q) at each cross section. Unsteady: Inflow hydrograph(s) which are routed by the model.
Feb 2003HEC-RAS Version Prepare hydrographs (boundary conditions) Upstream flows Tributary (local flows) Ungaged/unmodeled flows Downstream (rating curve?)
Feb 2003HEC-RAS Version HEC-RAS Main Window
Feb 2003HEC-RAS Version Entering Geometric Parameters
Feb 2003HEC-RAS Version Cross Section Table Properties
Feb 2003HEC-RAS Version Pre-processing Geometry l For unsteady flow, geometry is pre- processed into tables and rating curves n Cross sections are processed into tables of area, conveyance, and storage n Bridges and culverts are processed into a family of rating curves for each structure n Weirs and gated structures are calculated on the fly during unsteady flow calculations n Pre-processor results can be viewed in graphs and tables
Feb 2003HEC-RAS Version Cross Section Properties Plot Property Table RS = Conveyance/1000 (cfs) Storage (cu ft) Elevation (ft) Legend Conv. Channel Conv. Valley Conv. Total Storage
Feb 2003HEC-RAS Version Geometry Preprocessor l What does it do? Processes geometric data into a series of hydraulic tables and rating curves. l Why do we use it for unsteady flow? Instead of calculating hydraulic variables for each cross-section during each iteration, the program interpolates the hydraulic variables from the tables.
Feb 2003HEC-RAS Version Conveyance Calculations Manning Equation 1/2 Q = K Sf K = Conveyance Sf = friction/energy slope
Feb 2003HEC-RAS Version Conveyance Calculations
Feb 2003HEC-RAS Version Cross Section Example
Feb 2003HEC-RAS Version Geometry Preprocessor
Feb 2003HEC-RAS Version Hydraulic Property Plot
Feb 2003HEC-RAS Version Cross Section Properties Table
Feb 2003HEC-RAS Version Conveyance Subdivisions
Feb 2003HEC-RAS Version Conveyance Subdivisions
Feb 2003HEC-RAS Version Conveyance Subdivisions
Feb 2003HEC-RAS Version Conveyance Subdivisions
Boundary and Initial Conditions Objectives: l Know boundary condition options l Know initial condition requirements l Sources of data for both
Feb 2003HEC-RAS Version Unsteady Flow Data l External Boundaries required n Upstream and Downstream ends of the river n Typically flow or stage hydrograph upstream n Typically rating or “normal depth” downstream l Internal Boundaries can be added n Add flow within the river system n Define gate operation l Initial Conditions - at the start of simulation
Feb 2003HEC-RAS Version Unsteady Flow Data Editor
Feb 2003HEC-RAS Version Boundary Conditions l Editor shows required external boundaries l Boundary Type shows available options l Upstream options: n Stage Hydrograph n Flow Hydrograph n Stage & Flow Hydrograph
Feb 2003HEC-RAS Version Boundary Conditions - continued l Downstream Boundary Options: n Stage Hydrograph n Flow Hydrograph n Stage & Flow Hydrograph n Rating Curve n Normal Depth
Feb 2003HEC-RAS Version Flow Hydrograph l Read from DSS n Select DSS file n Select Pathname l Enter in Table n Select time interval n Select start date/time n Enter flow data - or cut & paste
Feb 2003HEC-RAS Version Sources of Time-Series Data l Historic Records (USGS) n Stage Hydrographs n Flow Hydrographs l Computed Synthetic Floods l Rainfall-runoff modeling l Peak Discharge with assumed time distribution l Others?
Feb 2003HEC-RAS Version Normal Depth l Enter Friction (energy) Slope l Program uses Manning’s equation to compute stage l Provides semi-dynamic downstream boundary
Feb 2003HEC-RAS Version Initial Conditions l Requires an initial flow for all reaches l Restart file can be read from DSS l Enter steady-flow at upstream boundary l Can add a flow- change location l Pool elevation for storage areas
Feb 2003HEC-RAS Version File and Options Menus
Feb 2003HEC-RAS Version Unsteady Flow Simulation Simulation Manager 1. Define a Plan 2. Select which programs to run 3. Enter a starting and ending date and time 4. Set the computation settings 5. Press the Compute button
Feb 2003HEC-RAS Version Output Selection l Unsteady Flow Output n Stage and Flow Hydrographs n Log File Output l Post Processor n Detailed output –Max Stage –Selected Time Intervals
Feb 2003HEC-RAS Version Stage and Flow Hydrographs User Selected Locations
Feb 2003HEC-RAS Version Viewing Unsteady Flow Results l All of the output that was available for steady flow computations is available for unsteady flow (cross sections, profile, and 3D plots and tables). l Stage and flow hydrographs l Time series tables l Animation of cross section, profile and 3- dimensional graphic
Feb 2003HEC-RAS Version Stage and Flow Plot Stage
Feb 2003HEC-RAS Version Unsteady Flow Rating Curve
Feb 2003HEC-RAS Version Log File Output l can be generated during computations l information about progression of simulation l can make a large, large file n are you sure you want to open it?
Feb 2003HEC-RAS Version Post Processor l Can be run after the unsteady simulation is completed l Provides profiles for the maximum stage and at regular intervals l All regular graphics and tables can be used to view the post process results l Graphics can “animate” the simulation
Feb 2003HEC-RAS Version Profile Animation
Feb 2003HEC-RAS Version Accuracy/Stability/Sensitivity Objective l For students to have a better understanding of model accuracy, stability, and sensitivity. l To become familiar with the available parameters within HEC-RAS that will allow you to develop a stable and accurate model. l To learn how to detect, find, and fix model stability problems.
Feb 2003HEC-RAS Version Overview l Model Accuracy l Model Stability l Factors Affecting Accuracy and Stability n Cross section spacing n Computational time step selection n Practical delta t, hydrograph rise time / 20 l Common Stability Problems l Detecting Stability Problems l Model Sensitivity
Feb 2003HEC-RAS Version Model Accuracy l Accuracy can be defined as the degree of closeness of the numerical solution to the true solution. l Accuracy depends upon the following: n Assumptions and limitations of the model (i.e. one dimensional model, subcritical flow only for unsteady flow) n Accuracy of the geometric Data (cross sections, Manning’s n values, bridges, culverts, etc…) n Accuracy of the flow data and boundary conditions n Numerical Accuracy of the solution scheme
Feb 2003HEC-RAS Version Numerical Accuracy l If we assume that the 1-dimensional unsteady flow equations are a true representation of flow moving through a river system, then only an analytical solution of these equations will yield an exact solution. l Finite difference solutions are approximate. l An exact solution of the equations is not feasible for complex river systems, so HEC- RAS uses a finite difference scheme.
Feb 2003HEC-RAS Version Model Stability l An unstable numerical model is one for which certain types of numerical errors grow to the extent at which the solution begins to oscillate, or the errors become so large that the computations can not continue.
Feb 2003HEC-RAS Version 3.152
Feb 2003HEC-RAS Version Factors Affecting Model Stability and Numerical Accuracy l Cross Section Spacing l Computation time step l Theta weighting factor l Solution iterations l Solution tolerances
Feb 2003HEC-RAS Version Calculation Options and Tolerances
Feb 2003HEC-RAS Version Cross Section Spacing l Cross sections should be placed at representative locations to describe the changes in geometry. l Additional cross sections should be added at locations where changes occur in discharge, slope, velocity, and roughness. l Cross sections must also be added at levees, bridges, culverts, and other structures.
Feb 2003HEC-RAS Version Cross Section Spacing - Slope l Bed slope plays an important role in cross section spacing. n Steeper slopes require more cross sections n Streams flowing at high velocities may require cross sections on the order of 100 feet or less. n Larger uniform rivers with flat slopes may only require cross sections on the order of 1000 ft or more.
Feb 2003HEC-RAS Version Cross Section Spacing - How do you know if you have enough XS: l Use the HEC-RAS cross section interpolation. l Make a new plan and run the model. l Compare the before and after. l If no significant difference, then OK!
Feb 2003HEC-RAS Version Theta Weighting Factor l Theta is a weighting applied to the finite difference approximations when solving the unsteady flow equations. l Theoretically Theta can vary from 0.5 to 1.0. However a practical limit is from 0.6 to 1.0 l Theta of 1.0 provides the most stability. Theta of 0.6 provides the most accuracy. l The default in HEC-RAS is 1.0. Once you have your model developed, reduce theta towards 0.6, as long as the model stays stable.
Feb 2003HEC-RAS Version Common Stability Problems l Too large of a time step. l Not enough cross sections l Model goes to critical depth – RAS is limited to subcritcal flow for unsteady flow simulations l Bad downstream boundary condition (i.e. rating curve or slope for normal depth) l Bad cross section properties, commonly caused by: levee options, ineffective flow areas, Manning’s n values, etc..
Feb 2003HEC-RAS Version Common Stability Problems - Continued l Cross section properties that do not go high enough, or are way to high (curves are spread to far apart). l Bad bridge/culvert family of rating curves. l Wide and flat lateral weirs/spillways – send to much flow over a given time step. l Gated spillways that are opened or closed to fast.
Feb 2003HEC-RAS Version Detecting Stability Problems l How do you know you have a stability problem? n Program completely blows up during run n Program goes to maximum number of iterations for several time steps in a row. n Program has oscillations in the computed stage and flow hydrographs
Feb 2003HEC-RAS Version Detecting Stability Problems - Continued l What do you do when this happens? n Note the simulation time when the program either blew up or first started to oscillate. n Turn on the “Detailed Output for Debugging” option and re-run the program. n View the text file that contains the detailed log output of the computations. Locate the simulation output at the simulation time when the solution first started to go bad. n Find the river station locations that did not meet the solution tolerances. Then check the data in this general area.
Feb 2003HEC-RAS Version Turning on Detailed Output for Debugging
Feb 2003HEC-RAS Version Viewing Detailed Log Output
Feb 2003HEC-RAS Version Model Sensitivity l Numerical sensitivity: n Computation time step – try a smaller value to see if the output changes significantly. n Theta – start at 1.0, after you have a working model then try to reduce it towards 0.6. n Weir/Spillway stability factors – if you are using stability factors, try to reduce them to the lowest value you can get away with. n Weir/Spillway exponential decay factors – in general I would leave them alone, they will not effect the sensitivity of the output much.
Feb 2003HEC-RAS Version Model Sensitivity - Continued l Physical Parameter Sensitivity: n Manning’s n Values – What if the true n values were 10% higher or Lower? n Cross Section Spacing – Test by interpolating n Cross Section Storage – What if there is really more or less storage in the cross sections (I.e. ineffective flow areas, etc…) n Weir/Spillway coefficients – For lateral weirs/spillways the coefficient selected can have a great impact on the results. n Bridge/Culvert Parameters – normally only effect the locally computed stages, unless it is a flat area in which the bridge causes great backwater.
The End