Pages

Showing posts with label Weir. Show all posts
Showing posts with label Weir. Show all posts

Monday, February 3, 2020

1D/2D Offline Connection Issues

Written by Chris Goodell | Kleinschmidt Associates
Copyright © The RAS Solution.  All rights reserved. 

I’ve mentioned this before, but I am thoroughly impressed with the robustness of the finite volume solution scheme used in 2D areas in HEC-RAS.  As long as your Courant Numbers are in a good spot, you rarely get errors and instabilities in 2D areas.  HOWEVER, the transition from 1D to 2D and back is another story.  In fact, the majority of errors I get in 1D/2D models occur there (either at the cross section to 2D area interface for inline connections, or in the cells adjacent to the lateral structure for offline connections).  In this post, I’m going to talk about the errors next to lateral structures at 1D/2D boundaries.

Take this for example.  The model runs well with friendly blue bars everywhere.  But I just can’t let go of the 5.154-ft error.  It only happens once and obviously doesn’t cause the model to crash.  But it’s there, and a 5-ft error is a little more than I can stomach. 

My usual go-to output for cross section errors, the water surface profile plot, gives me no clues as to what is wrong.  In RAS Mapper, I have what appears to be a flooded situation around the time where the error occurs, but reasonable looking results.  I turned on the Update per Screen option in the Velocity Layer Properties window, so that I could optimize the velocity scale for this view.  Here I noticed that the maximum velocity is 11.5 feet per second (fps) (which is about 3.5 meters per second).  This is way too high for this river, and in fact while hovering around the centerline of the river, I get maximum velocities of around 2.8 to 2.9 fps.  But since the Update per Screen option is turned on for velocity here, that indicates that there is a hotspot velocity of 11.5 fps somewhere in this view.  I just have to find it. 

On closer inspection, I can see some lighter shades of blue and green (i.e. higher velocities) in the floodplain adjacent to the lateral structures (as highlighted in the white circles).  Knowing that cells adjacent to lateral structures are typically going to be the culprits in 1D/2D models, I zoomed in to the cells around the lateral structures to get a closer look.  I started with the circled area to the right, since that was closest to the cross section that generated the numerical error of 5.154 ft.    



While zoomed in, it was hard to see at first, with the terrain turned on, so I turned off the terrain and noticed this little sliver of high velocity right at the boundary of the 1D river and the 2D area.


Turning the velocity off and the terrain back on, you can see how the 2D area dips into the main channel just slightly, and in fact it overlaps the lateral structure as well.  This reveals a very typical problem that you can run into with 1D/2D offline connections with lateral structures.  For a given timestep, RAS will compute a volume of water going over (or through in the case of gates and culverts) the lateral structure into a given cell.  But if the receiving cell has a small sliver of low lying area, like in this example, that relatively small amount of volume could be enough to significantly raise the water surface in the cell.  Perhaps enough so that it is even higher than the water surface adjacent to it in the 1D reach.  This would then send water back the other direction the next time step.  Besides the numerical shock of a sudden and large rise in stage, the oscillating effect of sending water back and forth can set up errors that persist, grow, and lead to an instability.

Now if you’re using the weir equation on the lateral structure, you could change your weir submergence decay exponent from the default value of 1 to 3 (1 is the most accurate, 3 is the most stable).  This has a dampening effect on the oscillations and errors you get from this situation.  Read more about the weir submergence decay exponent in the HEC-RAS User's Manual on page 8-41.  You might also reduce the weir coefficient.  This will reduce the volume of water that transfers from the river to the cell for a given timestep.  If there is no elevated feature represented by the lateral structure (e.g. it is not a levee), you would want to use a very low weir coefficient on the order of 0.1 to 0.5, as discussed in the 2D Modeling User's Manual on page 3-50.  However, in this case, it might be better to just use the 2D equations over the lateral structure instead of the weir equation.  Using the “Normal 2D Equation Domain” (this is just a funny way of saying “Use 2D Equations”) is a relatively new feature available in lateral structures.  But if your lateral structure does not represent an elevated terrain feature (e.g. a weir or levee), then this might be the better option to use. 



However, in recognizing that the 2D area perimeter and the lateral structure are poorly located, I will fix this first to see if that’s all that is needed to solve the problem. 
First, I’ll pull in the 2D area to just beyond the high ground.  This can easily be done in RAS Mapper on the 2D Area Perimeter Layer while in edit mode.  Next, I’ll pull over the lateral structure so that it resides ON the high ground. 


In the current version of HEC-RAS (as I type this post), Version 5.0.7, you cannot edit lateral structures in RAS Mapper.  So you have to do it in the Geometry Editor for now, using the Edit…Move Points/Objects command.  After moving the lateral structure, I adjusted the location of the 2D perimeter again, so it is just inside the lateral structure.  Here you can see a much better placement of both the 2D perimeter and lateral structure. 



And don’t forget, since I moved the lateral structure placement, I have to re-extract the terrain onto it.  Fortunately, HEC-RAS gives us a short cut to do this with the Terrain Profile button. 


After re-running, the error is gone and the results look much better.  Notice the peak velocity in the scale is back to a normal value of 2.6 fps.  And the 5.154-ft error is gone!





Monday, July 11, 2016

Weir Equations in HEC-RAS

Written by Christopher Goodell, P.E., D.WRE
Copyright © The RAS Solution 2016.  All rights reserved. 


HEC-RAS has the ability to simulate flow at hydraulic controls in a variety of ways.  
Bridges, culverts, inline structures, lateral structures, and SA/2D area connections can all act as hydraulic controls.  Effectively, they break up the conservation equations used between cross sections in a 1D reach and/or cells in a 2D area with empirically derived (and usually very stable!) equations.  Weir equations can be used to define flow over an obstruction and are available with all of the 5 hydraulic controls identified above.  However, there are a number of options to consider when selecting simulating weir flow in HEC-RAS.  HEC-RAS approaches weir flow with three different cases:  Ungated Inline Weirs, Ungated Lateral Weirs, and Gated Weirs.  They all begin with the same standard equation:

                                                                  (1)

Where:  Q = discharge, C =weir coefficient, L = weir crest length, H = Energy head over the weir crest.

But each of the three cases apply the weir equation slightly differently. 

Before I continue, I should discuss the difference between the weir coefficient and the discharge coefficient.  I see both of them used interchangeably, but they ARE different.  The weir coefficient (as shown above in the weir equation) is a lumped parameter that includes the discharge coefficient, the gravitational constant, and constants based on geometric properties. 
                                                                                   
                                                                                                                              (2)
Where Cd is the discharge coefficient.  

The discharge coefficient is dimensionless and therefore it is the same in both English (U.S. Customary) Units and SI Units.  The weir coefficient, since it is a function of the gravitational constant, is not dimensionless and therefore has different values depending on which unit system you are using.  For example, a weir coefficient (C) of 3.00 in English Units would be 1.66 in SI units.  But both share the same discharge coefficient (Cd) of 0.56.  For convenience, to convert an English weir coefficient to an equivalent SI weir coefficient, multiply the English weir coefficient by 0.552.  
Be very cautious when considering C versus Cd.  They are different but are often mistakenly used interchangeably.  In fact, you’ll see the coefficient Cd labeled occasionally in the HEC-RAS software and literature when discussing weir coefficient. 

Ungated Inline Weirs. 
When defining inline flow over an “ungated” obstruction (bridge, culvert embankment, inline structure, SA/2D area connection), you have two options for computing weir flow:  Broad Crested and Ogee.   
Figure 1.  Inline structure weir embankment editor.

Both use the same standard weir equation presented above in equation (1).

The only difference between the Broad Crested Option and the Ogee Option is that for the Broad Crested option, the user enters a weir coefficient for C.  For the Ogee option, the user enters a spillway approach height and the ogee’s design energy head, and HEC-RAS will compute the weir coefficient for you.  This may sound convenient, but as the name implies, this option should really be used only for ogee-shaped spillways.  And you would have to know what the design energy head is, a design parameter that is not usually easy to come by, unless you have the hydraulic design report for the spillway.  With both options, submergence reduction of the discharge is automatically calculated with their own respective methods (FHWA ,1978 for broad crested, and COE, 1965 for ogee).

Ungated Lateral Weirs.
Lateral weirs are entered in the lateral structure editor.  Inside the lateral structure’s weir embankment editor, you’ll see two options for weir computations:  Standard Weir Eqn. and Hager’s Eqn.

Figure 2.  Lateral Weir Embankment Editor.

In version 5.0.1, the Standard Weir Eqn. provides four options for the weir crest shape:  Broad Crested, Ogee, Sharp Crested, and Zero Height.  Caution!  Zero Height is NOT used when Standard Weir Eqn. is selected.  This is a bug and will most likely be fixed for future versions.  If you do select Zero Height and Standard Weir Eqn. together, HEC-RAS will just use the weir coefficient you provide with the broad crested methodology.  Sharp Crested is not fully functional in Lateral Structures for version 5.0.1.  You’ll notice that no additional input options (like Rehbock and Kindsvater-Carter, as discussed under the next section, “Gated Weirs) are available when you select Sharp Crested in the lateral weir embankment editor.  My guess is that if you select Sharp Crested, it too will default to the broad crested methodology. 

Broad Crested and Ogee work the same as with the ungated inline structures.

With Hager’s Equation, all four weir crest shapes are available, including the zero-height weir.  The same weir equation is used, but an adjusted weir coefficient is computed based on physical and hydraulic properties.  Each of the four weir types has its own method for computing the adjusted weir coefficient.  There is an input box for “default weir coefficient”.  This is only used for the first iteration of solving Hager’s Equation.  Since Hager is a function of hydraulic properties, it must be solved in an iterative fashion.  After the first iteration, the adjusted weir coefficient will be computed and used.  Page 8-18 of the Hydraulic reference manual discusses Hager’s equation and how the adjusted weir coefficient is computed. 

Zero-height weirs are used for cases where flow will leave a channel laterally, but there is no defined obstruction or hydraulic control separating the two.  Commonly this is used to simulate flow from a main channel up a tributary that is being modeled using a lateral structure and a storage or 2D area.  The HEC-RAS 2D manual has a table of lateral weir coefficients (Table 1). 

Table 1.  Lateral Weir Coefficients (from the HEC-RAS 2D Manual, page 3-50).

Notice the last category is “non elevated” overbank terrain.  If you wish to use the weir coefficients in this table to simulate a non-elevated weir, do not use the Zero-Height weir.  That is strictly for Hager’s equation and Hager’s method automatically computes the weir coefficient.  Instead, use the broad crested standard equation and enter in the non-elevated weir coefficient there. 

Gated Weirs. 

When modeling gated spillways at inline structures or lateral structures, users can provide a weir coefficient for flow over the spillway when the gate is completely opened, and out of contact with the flow (Figure 3). This is different from the discharge coefficient used for flow over the top of the inline structure (Figure 1). 

Figure 3. Inline Gate Editor

With gated spillways, the user has three options for the weir shape:  Broad Crested, Sharp Crested, and Ogee (Figure 4).  Broad Crested and Ogee work the same as previously discussed.  The Sharp Crested option also uses the standard weir equation but gives you three options for determining the discharge coefficient:  user-entered, compute with the Rehbock equation, or compute with the Kindsvater-Carter equation.  For both the Rehbock and Kinsvater-Carter methods, the weir coefficient will be computed independently at each time step. So you can have a varying discharge coefficient for varying heads. 

Figure 4.  Inline Gate Editor.

The Rehbock equation for the discharge coefficient was developed for rectangular weirs and is as follows:
                                                                                                                 (3)
Where P = Spillway approach height.  This value must be entered to use the Rehbock equation.  HEC-RAS will then compute the weir coefficient, C using equation (2).   According to Ippen (1950), this equation holds up well for values of H/P up to 5.  And it performs with fair approximation for H/P values up to 10. 

The Kindsvater-Carter method was developed in English units only and is as follows:

                                                                                                        (4)

Where Ce = effective weir coefficient, ft1/2/s
                kb = a correction factor to obtain effective weir crest length, ft
            kh = a correction factor with a constant value of 0.003 ft

The effective weir coefficient, Ce is a function of two ratios:  L/B and H/P, 

Where  L = Weir crest length
            B = Average width of the approach channel
            H = Energy head over the weir crest
            P = Spillway approach height

Ce is a function of both the relative width and relative depth of the approach channel and is taken from the following chart (note that the chart uses the variable h1 for H.  They are the same):

Figure 5.  Effective Weir Coefficient

kb is used to determine the effective length of the weir crest and is a function of the relative width of the approach channel.  It is taken from the following chart:

Figure 6.  Correction factor kb.

To use the Kindsvater-Carter method in HEC-RAS for a gated spillway, first select the weir shape as “Sharp Crested”.  Then select “Compute with Kinsvater-Carter eqn as the Weir Method.  You must then choose a relative approach channel width (L/b) and enter the spillway approach height, P (note, b is used in the HEC-RAS Inline Gate Editor for B.  They are the same). 

Figure 7.  Kindsvater-Carter Weir Method.

Remember, the Kindsvater-Carter equation was developed and is presented here in English units.  When using SI units, HEC-RAS will automatically convert the units appropriately.  So you can still enter a spillway approach height in meters if you are using SI units. 

The Kindsvater-Carter weir equation is built for rectangular weirs and “is particularly useful for installations where full crest contractions or full end contractions are difficult to achieve.”  (USBR 2001)  More information on the Kindsvater-Carter equation, including its limitations, can be found here:  http://www.usbr.gov/tsc/techreferences/mands/wmm/chap07_06.html

References:
Federal Highway Administration (FHWA), 1978.  Hydraulics of Bridge Waterways, Hydraulic Design Series No. 1, by Joseph N. Bradley, U.S. Department of Transportation, Second Edition, revised March 1978, Washington D.C.

Ippen, A.T. ,1950.  Channel Transitions and Controls, Chap. VIII in Hunter Rouse (editor): Engineering Hydraulics,” John Wiley & Sons, Inc., New York.  pp.496-588.

Unites State Bureau of Reclamation (USBR), 2001.  Water Measurement Manual, http://www.usbr.gov/tsc/techreferences/mands/wmm/

U.S. Army Corps of Engineers (COE), 1965.  Hydraulic Design of Spillways, EM 1110-2-1603, Plate 33.




Tuesday, December 8, 2015

Pressure and Weir Flow

Here’s a video of pressure and weir flow yesterday at a bridge near my house.  This was brought on by some very intense rainfall over a short period of time.  What do you think the weir coefficient would be?



‘Tis the season in many parts of the world for heavy rains and high water.  This is a good reminder to always try to get out and view your rivers and streams when they are flooding.  There is nothing like a first-hand view of a flood to understand how water interacts around our infrastructure.  This is invaluable information for setting up and calibrating your HEC-RAS models.