Welcome to the RAS Solution Forums HECRAS Controller Extracting Initial Stage for Dam Breach during Storm Event

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8186
    comets2016
    Participant

    I am trying to develop a VB script using the Controller to extract the storm stage at each cross section just before the breach occurs at the dam. It is straight forward to extract the initial stage at profile #2. However, I need the stage at profile (n). I was thinking of two different ways to approach this. One is to call up a user form with all the profiles and stages and ask the user to select the initial stage at the cross section just below the dam. then knowing which profile number was selected, tell VB to extract this stage for all XS in the model. Or, using Max.Application find the max stage and somehow find the profile # that goes it this stage and then subtract (y) time steps to get the storm initial stage before the breach.

    My problem is I’m not sure how to return the profile # in either case. Does anyone know how, given a selected stage to return the profile # that goes with it?

    #13515
    Anonymous
    Guest

    Perhaps you can run a loop to get stages from all of the profiles? Once you have all the stages for each cross section and their respective profile #’s, just run some logic to pick the one you want.

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