Welcome to the RAS Solution Forums HEC-RAS Help 2D model terrain association changes on model run

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #7718
    ryanoceros
    Participant

    Hi,

    I have a 2D RAS model with a proposed conditions scenario that I need to perform a sensitivity analysis on. I’ve changed the terrain in manage terrain associations, but when I run the scenario it changes pack to the previous terrain association. What is going on here? Is this a bug or am I doing something wrong? This behavior seems bizarre.

    Thank you!

    Ryan

    #12878
    cameron
    Participant

    This has happened to me a few times. Is the proposed terrain name similar to the existing terrain name? Have you tried closing mapper and updating the .rasmap file manually?

    #18354
    alister.hood
    Participant

    4.5 years later and here we’re finding this very frustrating. Check the terrain association and start a model running overnight, come back the next day and find it has run with the wrong terrain. In my case it always seems that if I set the terrain association, save, close and reopen HEC-RAS and it remembers the terrain association I’ll be able to run it successfully.

    But I have a colleague with one particular project that is causing him trouble. He can change the terrain association, close and reopen, and it shows the correct terrain still, but when he runs a simulation the geometry changes back to the previous terrain association. Or if he has deleted that, it changes back to “Terrain.hdf”, which is the first terrain that was created in the project.
    This happens reliably on his computer, but if we copy the project to my computer I can change the terrain association and run it fine.

    Trying to investigate further, it seems the .prj and .rasmap files don’t store any information about terrain associations, it is simply written into the geometry .hdf file. But when my colleague changes the terrain association it isn’t written to the file, so when he closes and reopens I don’t know how RAS Mapper is remembering that he’s changed it…

    #18355
    alister.hood
    Participant

    OK, I think I mostly understand the problem.
    HEC-RAS cannot write to the geometry .hdf if some other process is also using it, but it fails silently.
    I tested by opening it in hdfview, but the problem could potentially be the geometry editor, another instance of RAS Mapper, (I know I sometimes open the same project twice by mistake), or maybe an antivirus scanner or something.
    So I think most likely my colleague is mistaken when he thinks he closes and reopens and the terrain association is correct. Maybe he has had the project open in two instances of HEC-RAS at the same time and is somehow getting confused.

    #18356
    alister.hood
    Participant

    I did also notice that there was something strange about the geometry file my colleague has been having problems working with, but I don’t know if it is related.
    Generally inspecting the geometry .hdf files with HDFview shows that they claim their “File Type” is “HEC-RAS Geometry”. But this one said it was “HEC-RAS Results”, and it also had the “Projection” saved in it like a results file does.
    I don’t know what caused this, but fiddling around with a bunch of stuff has actually fixed it somehow.

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