Welcome to the RAS Solution Forums HECRAS Controller running 2 automatical HECRAS simulations at the same time (pyhton)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8179
    Anonymous
    Guest

    If I want to start up 2 HEC-RAS simulations through the HECRAS Controler object at the same time, the first simulation stops when the second starts. All information from the second run is passed through first com object. So it looks like it’s only possible to run 1 simulation at a time. But If I start two simulations up manually in the HEC-RAS gui, I can run them at the same time. Is there a way to automatically run two HECRAS simulations at the same time through the com object or in another way?

    I made an example simulation with code that can be downloaded from: https://drive.google.com/file/d/0B1j-F5PUzc5kT3lud0NjTkg1TFE/view?usp=sharing
    In their you can find zip file with two dummy Hecras models and some python code to automatically start them up with the com object. This code is written in python 2.7
    2. Step 1: unzip the zip file
    3. Step 2: start simulation 1 by double clicking start_simulation_1.bat
    4. Step 3: start simulation 2 by double clicking start_simulation_2.bat shortly after simulation 1 so they both run at the same time
    5. Step 4: Check the printouts in the bat file and the run folders of the simulations. Simulation 1 will not have produced a dss file

    #13505
    Anonymous
    Guest

    There is probably a way to do it, but it would be something programmed exterior to the HECRASController. To my knowledge, there is no procedure or setting within the HECRASController that allows you to run two simultaneous simulations. I’m sure you could do it though. Let us all know if you figure it out.

    Thanks-
    Chris

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