Welcome to the RAS Solution Forums HEC-RAS Help Gate operation rules for HEC-RAS 2D

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15844
    Nurlan Ongdas
    Participant

    Hey everyone,

    Did anyone have experience using the reference points for controlling the gates of the hydraulic structure. I basically want the gates to open when the WSEL at Reference point 1 reaches a certain level. The gates in the model are closed in the beginning. So far this is my code:
    ‘rp1’ = Reference Points:WS Elevation(reference point 1,Value at current time step)
    If (‘rp1’ > 351) Then
    Gate.Opening(Gate #1) = 2
    Else
    Gate.Opening(Gate #1) = 0
    End If

    As you can see it’s a pretty simple line. However, the model isn’t opening the gates when the water level is right. I can’t seem to understand the reason. Did anyone have such problem? Or would you suggest any changes in my line?

    Mfg,
    Nurlan

    #17652
    Zain
    Participant

    Hi Nurlan

    Does RAS allow applying rules on a 2D mesh? Were you able to control your gate operations referring to water levels in a particular cell? and if yes, how do you call-in particular cell number in the rules code?

    Looking forward.

    #17653
    Nurlan Ongdas
    Participant

    Hi Zain,

    yeah, I was able to sort this thing. For that particular cell (you need elevation data from) you need to create a reference point in the geometry editor. Then during the Rules writing, you should choose that specific reference point (available at the bottom of Simulation variables tab). For more information you can check the following paper of mine: https://www.mdpi.com/2079-3197/11/2/27

    Below is my script that I used to give you an idea. Hope this helps

    ‘rp26-1′ = Reference Points: WS Elevation(rp26-1, Value at current time step)
    ‘rp26-2′ = Reference Points: WS Elevation(rp26-2, Value at current time step)
    If (‘rp26-1′ > Elevation 1) And (‘rp26-2′ < Elevation 2) Then
    Gate.Opening(Gate 26) = 0.89
    Else
    Gate.Opening(Gate 26) = 0
    End If

    Mfg,
    Nurlan

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.