Welcome to the RAS Solution Forums HECRAS Controller ReachOutput and NodeOutput in RAS 4.1

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8160
    Anonymous
    Guest

    I’m having trouble with some of the output functions and subroutines in RAS 4.1. Specifically, I’m trying to retrieve values for stream power.

    I have a steady flow model with one river, one reach, and one profile. At first the Output_ReachOutput subroutine seemed to be working fine. I wrote a subroutine to grab every single variable and populate successive columns in a spreadsheet, skipping over the columns where Output_ReachOutput fails completely. Some of the output values look like garbage, but I figured those were mostly explained by the the lack of structures or other features in certain sections. I noticed, however, that the values it retrieves for stream power are completely wrong. “Power Total” values are all 0, “Power LOB” values range from 290.4 and 2237.3 (not even close), “Power Chan” values are all 0, and “Power ROB” values are all 0. Obviously these results don’t match the values shown in the RAS output table. Even stranger is the fact that these extracted stream power values match the extracted levee stationing values (nVar 263 to 266) precisely.

    To get around this I’ve been trying to call the NodeOutputfunction, but I just can’t get it to work. My inputs are: riv=1, rch=1, n=1, updn=1, prof=1, nVar=154. I’ve tried all different values for n, updn, and nVar with no luck.

    Has anyone run into the same problems? In the meantime I’m continuing to look for problems with my own code.

    #13471
    Anonymous
    Guest

    Nevermind on the NodeOutput function – I had forgotten to call Project_Open. Now I can retrieve the correct values for stream power on a cross-section by cross-section basis. Still baffled by the resulted extracted with ReachOutput. I would really prefer to use ReachOuput instead of building a workaround for fussier variables.

    #13472
    Chris G.
    Keymaster

    Thanks for sharing this Thomas. I trust you got it to work.

    #13473
    Anonymous
    Guest

    NodeOutput seems fine, but I’m still having the same problems with ReachOutput. It’s not returning the correct values for stream power (154-157).

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