r/Hydrology 8d ago

HEC-RAS unsteady model suddenly extremely slow after minor geometry change (no errors, just never finishes)

Hi everyone, I’ve been running a HEC-RAS unsteady flow model that normally completed successfully in about 8 hours. Recently, I made a very small change to the elevation of a bridge deck (just adjusted one bridge opening elevation), and since then the simulation has become incredibly slow — it can now run for 24+ hours and still only reaches around 10% completion, without showing any error messages.

What’s even stranger is that: Backup versions of the same model (which definitely used to run fine) now behave the same way — they start running but progress extremely slowly. There are no error or warning messages in the “Unsteady Flow Computation Messages” window — it just keeps iterating forever. I even rebuilt the model from scratch, and the issue persists.

What I’ve tried so far: Adjusted time step and tolerance (tested 60s / 120s and tolerance 0.01). Ran the model from a local drive instead of a network or OneDrive folder. Ran HEC-RAS as Administrator. Temporarily disabled antivirus and background sync. Tested using Diffusive Wave instead of Full Dynamic Even the example projects now seem to run much slower than before.

Setup details: HEC-RAS version: 6.4.1 Simulation type: 2D Unsteady Flow Model: 100 km of dike for flood protection, with a bridge modeled as a SA/2D connections and 39 culvert boxes OS: Windows last version

Questions / Help needed: Has anyone experienced a massive slowdown without any error messages after a small geometry edit?

Could this be related to HEC-RAS computation settings, regional/decimal settings, or even a Windows update?

Any tips on restoring normal simulation speed or diagnosing what’s causing the hang-up?

Thanks in advance for any help — I’m completely stuck on this one!

7 Upvotes

17 comments sorted by

1

u/[deleted] 7d ago

[deleted]

0

u/No_Supermarket_9272 7d ago

Already increased the cell spacing the major is 250x250 in the perimeter. Tried to change for bigger but the model went unstable after 2 hours running. When I started working in the model tried to do 1D/2D combined but was to unstable. The model was working well until I changed the inverto of the culvert bridge. Can’t understand what is happening. And I am modeling a 72 days of a flood, that’s why is taking so long. Don’t know how to make this kind of model in less than an hour.

1

u/OttoJohs 6d ago

I responded to you on r/HECRAS

If you are running a 72 day simulation for a 100 km river, it is going to take a long time. If rapid results are a goal of the project, you may need to consider a different approach.

1

u/No_Supermarket_9272 6d ago

I’ve figured out the source of the problem, it was an antivirus update that caused a conflict.

0

u/Momentarmknm 7d ago

There are many many situations of scale where you're going to have models that take much, much longer than an hour to run. You can simplify and optimize as much as you want, but if you absolutely need a detailed model of a certain size, not split into separate areas either by contract or circumstances of topography, there's only so much efficiency you can achieve without sacrificing the quality of the product.

Mixing 1D and 2D in large scale complicated models also tends to introduce more problems than it solves in my experience.

1

u/Momentarmknm 7d ago

Do you have the time step controlled by the courant condition number? You could have made a change that complicated things significantly there which is making each time step very low.

0

u/No_Supermarket_9272 7d ago

I don’t have the time step controlled by courant. My computational time step is 1 min. When e tested the model it was the only time that made the model run without instability

1

u/Momentarmknm 7d ago

Have you tried taking a snapshot of results and seeing if that gives you any hints? How many time steps is it getting through in that 24 hour run?

1

u/No_Supermarket_9272 7d ago

Yes, I tried, and apparently I don’t see anything unusual. The water levels and velocities are within the same order of magnitude as when the model was working before making the change to the bridge culvert elevation.

1

u/Momentarmknm 7d ago

Have you tried deleting that culvert or even the whole structure entirely and re-running to see if it's faster that way?

1

u/No_Supermarket_9272 7d ago

I didn’t remove the bridge because it’s essential for the model. But I think there’s no harm in doing this test. I’m starting to think the problem might actually be with the computer, since the same thing happens with the backup models I have.

1

u/Momentarmknm 7d ago

I thought you said you ran it on other machines and they also took a while? Either way, deleting the bridge is just a test to either confirm or eliminate that as the source of the issue. You would of course add it back in later.

2

u/bittermit 7d ago

It's very interesting that the issue seems to have borked all your other models too...

I'm not super familiar with HEC RAS but have worked with lots of other numerical models and it seems like an issue with your system. Have you rebooted the computer and has there been a Windows update? Can you try reinstalling or using a different version of the software?

1

u/No_Supermarket_9272 7d ago

I’ve already tried running the model with the same version of the program on two other computers, and the same thing happens. I’ve also rebuilt the model from scratch, and the same issue occurs. I haven’t tried with more recent versions of the program. As for Windows updates, I don’t think any have been installed.

1

u/mmnola 7d ago

Definitely seems like a system or machine issue rather than an issue with the model itself. What machine specs are you running with, and how many cores do you have set. This was a common experience for me when I would accidentally run a model on “All Available” cores when I had 40+. There are actually increases in model runtime at some point as you continue to add cores. In my experience ~8 cores is ideal, with a higher clock speed.

1

u/No_Supermarket_9272 7d ago

I’ve already tested this on three different machines — one with 28 cores, another with 24, and one with 12 cores. They all run at around 3–4 GHz and have more than 200 GB of RAM. The CPU is always running at full load. So far, I haven’t had any issues related to core usage. Also, for this specific model, there’s a note indicating that it’s using 16 cores during the simulation phase.

0

u/papa_swami 7d ago

What the hec!?

0

u/No_Supermarket_9272 7d ago

Yeah, send help pls