Welcome to the RAS Solution Forums HECRAS Controller Auto Calibration for 2d using python

  • This topic has 2 replies, 1,062 voices, and was last updated 7 years ago by Anonymous.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8205
    Anonymous
    Guest

    Greetings All, lately I have been digging alot to control hec ras with python, I was able to write a code to auto calibrate 1d models, and almost 2d models but the main problem with 2d models is that I cannot change manning in every run.
    As I understand geometric data is updated by changing the g01, saving this file will change geometric hdf file which then will be used in pre processing then results will be written in the plan hdf file.
    The problem is when you change the g01 file or even the geometric hdf file using a code it doesnt force the hecras to pre processing, you only have to change it in GUI to be able to do that.
    My question is how to force the hec ras to do preprocessing after changing g01 file with the controller.

    #13565
    Chris G.
    Keymaster

    Why not use the Compute_CurrentPlan procedure after you make changes to the g01 file in your code? If you only want to preprocess geometry, not rerun the simulation, you can always programatically change the “programs to run” in the plan input file.

    #13566
    Anonymous
    Guest

    Hi Tarek,

    I would be interested in understanding your approach to autocalibration using python. This is something I have been thinking about for a while now, but have limited programming skills. I have recently started using python and been able to get output from RAS using PyFloods. Would you be willing to share (some of) your code to help me get started?

    Thanks,
    Chris

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