Hello guys,
I’m trying to simulate a steady flow condition with Hec-Ras Controller (5.0.7) using Python. My intention is to simulate more than 100 flow profiles at once in the same channel, if possible.
For inputting these profiles and its flow rates (Q), I’m using the SteadyFlow_SetFlow function. However, I’m having problems to define the “Q” variable in my code, because I don’t really know how to handle such a variable in Python (I’m still a beginner, haha).
I was dealing with Q as a list, first writing the Profile ID code and then the corresponding flow rate, like this example:
Q = [1, 100, 2, 250, 3, 350]
hec.SteadyFlow_SetFlow(RivName,RchName,RScmp,Q)
The script runs well, but only the first profile is created and computed. The others are just ignored.
Anyone knows how to declare that “Q” variable for considering multiple profiles in Python?