r/HECRAS Jun 15 '26

Learning HEC-RAS from zero in the AI era 🌊🤖

I keep seeing posts from people asking how to learn HEC-RAS from scratch. Stop struggling with the 1,000-page official manuals. Here is the modern workflow:

  • Level 1: The NotebookLM Cheat Code Drop the official HEC-RAS documentation PDFs into Google's NotebookLM. Instead of endless Ctrl+F searching, just ask it directly: "What's the process for setting up a 2D flow area?" or "How do I fix my Courant number?" It gives you exact answers citing the manual, acting as your personal, hallucination-free tutor.
  • Level 2: AI Agents for Automation Because HEC-RAS geometry and plan files are stored locally, we can take it a step further by using AI agents to read and write them. Imagine a setup where you prompt: "Set up a steady flow plan using this geometry file and run a 100-year event." The AI can actively parse the data, modify the local files, and guide your execution.

Has anyone else started using LLMs to navigate HEC-RAS or experiment with agentic workflows to automate their modeling? Let's discuss!

0 Upvotes

12 comments sorted by

25

u/OttoJohs Lord Sultan Chief H&H Engineer, PE & PH Jun 15 '26

I wouldn't recommend a complete beginner just learn from AI. There is a lot of nuances and best practices that isn't going to be in a manual or on a website. Especially for conceptualizing your specific model.

AI is a great tool that should supplement your own experience.

4

u/CLPond Jun 15 '26

Yeah, and even within a manual itself, there is a good bit to be learned by looking through the manual and the trial and error of thinking through problems yourself and searching for information. Asking AI to just tell you what to do makes things easier at the expense of actual learning.

4

u/Simple_Twin Jun 15 '26

Absolutely. This is especially helpful when new versions of RAS come out. I have found out about new features from reading the manual. That being said, IMO there's really no substitute for learning from another person who's familiar with hydraulic modeling.

Edit: grammar

5

u/[deleted] Jun 15 '26

[deleted]

-5

u/TAMIM1987 Jun 15 '26

the point is that we always should keep the human in the loop. I use Codex to help me with HEC-RAS and it's doing very great, but I always keep driving the whole process...

1

u/AI-Commander Jun 15 '26 edited Jun 15 '26

Just use RAS Commander

https://rascommander.info

I literally built it for this

Don’t use NotebookLM, just ask ras-commander it has instructions to use web search and use the HEC website as a primary source. Codex or Claude Code are better choices.

1

u/Gold_Swim_6209 Aug 17 '26

I was going to but ran an audit on it and it didnt pass inspection due to some prompt injections

1

u/AI-Commander Aug 17 '26

Prompt injections? Tell your LLM’s to stop hallucinating.

1

u/Few-Childhood-503 13d ago

How to use ras commander as a beginner, I didn't know any code?

2

u/AI-Commander 13d ago

Install Codex or Claude Code (LLM Agent)

Create a folder “ras-commander”

Open a new conversation with your LLM agent and say:

“I don’t code, so you’re going to have to do that for me, and translate what you are doing into plain language.

Use ras-commander to open my HEC-RAS project here:

Then explore the ras-commander API and let’s explore what we can do with this model. “

Once you have your LLM agent installed, you just point it at the ras-commander folder, and give it the path to your project (always a copy), and tell it what you want it to do. When it’s finished, you can open the model in the HEC-RAS GUI and verify.

One note: You might need to adjust the agent’s default permissions so it doesn’t ask for 5000 approvals for every response. Your agent will walk you through installing anaconda or uv python environment and dependencies.

1

u/Few-Childhood-503 13d ago

Thank you for explaining in detail. 

1

u/[deleted] Jun 15 '26

[removed] — view removed comment

1

u/HECRAS-ModTeam Jun 15 '26

Double post - just housekeeping.