Engineering With Large Language Models

William Mark Katzenmeyer, P.E., C.F.M.

AI/LLM Innovator and H&H Modeling Expert

📍 New Haven, Connecticut | LinkedIn Profile

About Me

Bill Katzenmeyer Photo

Welcome to my page, EngineeringwithLLMs.info. My name is William Katzenmeyer, P.E., C.F.M. and I am a Senior Water Resources Engineer with over 16 years of experience across multiple disciplines including hydraulic and hydrologic modeling and automation development, flood risk management, FEMA grant management (HMGP/PA/BRIC), Benfit Cost Analysis (BCA) technical assistance, snd civil site and utility design. My passion lies at the intersection of civil engineering and the frontier of artificial intelligence: Large Language Models (LLM's). I've pioneered and shared innovative approaches to streamline and enhance traditional water resources workflows, as well as sharing my methods in an open-source manner to foster exploration and responsible adoption of large langauge models across the civil engineering profession.

While facing my own challenges of tackling complex hydraulic modeling projects that demanded intense computational resources, Large Language Models (LLMs) burst into existence and enabled me to tackle increasingly complex scripting tasks. This ultimately led me to create and share the HEC-Commander tools repository: an open-source collection of Python notebooks developed with AI assistance that dramatically improves efficiency in HEC-RAS and HEC-HMS calibration and validation workflows, blogs and ChatGPT examples, as well as providing the only open source method for paralell execution of HEC-RAS instances across multiple networked windows machines, directly from a jupyter notebook without containerization or use of expensive cloud compute platforms.

My work represents a new paradigm in civil engineering: leveraging Large Language Models (LLMs) to provide targeted assistance, help with research and learning, and automating repetitive tasks and unlock new capabilities for practicing engineers to creatively solve complex problems. The thoughtful application of LLM capabilities combined with traditional engineering expertise holds immense potential, especially where ideas can be quickly and transparently implemented to assist practicing engineers with completing their everyday tasks as well as exapanding the frontier of what they can achieve by allowing the innvoation of new capabilities through code.

As an open source developer, educator and speaker, I'm committed to sharing these innovations with the broader engineering community. Through presentations, workshops, and instructional content, I have helped other engineers adopt AI-driven approaches that can transform their own workflows and projects. I look forward to contributing to the ongoing evolution of how civil engineers leverage technology to enhance their work. See my "Upcoming Appearances" section below to see where to find me next!

RAS-Commander Library NEW

RAS-Commander Library Logo

RAS-Commander is a comprehensive Python library for automating HEC-RAS operations, providing a modern alternative to the HECRASController API. Building on the foundation of my HEC-Commander tools, this library offers powerful capabilities for water resources engineers, including project management, HDF data access, and ASCII file operations.

RAS-Commander is designed from the ground up to be used in conjunction with Large Language Models for scripting support. The library features purpose-built knowledge bases, Cursor IDE instructions, a specialized library assistant and a ChatGPT assistant. Whether you're managing multiple model scenarios, extracting detailed results data, or implementing automated QA/QC processes, this library provides the tools you need to work more efficiently with HEC-RAS.

Comprehensive Library Guide

Complete documentation of RAS-Commander's features, modules, classes, and usage patterns, including best practices and troubleshooting tips for effectively leveraging the library in your projects.

View Comprehensive Library Guide

Example Notebooks with Results

A collection of Jupyter notebooks demonstrating RAS-Commander capabilities, from basic project initialization to advanced parallel execution, with complete working examples using HEC-RAS sample projects.

Review Example Notebooks

LLM Knowledge Bases

Purpose-built summaries of the codebase and documentation optimized for use with Large Language Models like Claude, ChatGPT, and Gemini, enabling AI-assisted coding and workflow development.

Explore Knowledge Bases

ChatGPT Assistant

A specialized ChatGPT model with access to the RAS-Commander codebase, capable of answering queries, providing code suggestions, and helping analyze HEC-RAS files and results data.

RAS-Commander Library GPT

GitHub Repository

Access the complete source code, documentation, and development tools for RAS-Commander on GitHub. Star the repository to receive updates on new features and improvements.

RAS-Commander Libraryon GitHub

HEC-Commander Tools

HEC-Commander Logo

HEC-Commander Tools is a suite of Python notebooks developed with AI assistance for water resource engineering workflows, primarily focused on providing automation for HEC-RAS and HEC-HMS through Jupyter Notebooks. This open-source project includes tools, blogs, and ChatGPT assistants relevant to H&H modeling, automation, and the use of LLMs for water resources workflows.

RAS-Commander 1.0 Notebook

Python notebook built to support HEC-RAS automation with parallel execution of HEC-RAS unsteady plans and construction of plan files, with the option of utilizing DSS inputs to build iterative plans. Supports both 1D and 2D model formats and 2D infiltration overrides.

View RAS-Commander

HMS-Commander Notebook

Python notebook for HEC-HMS that enable generation of multiple DSS output files with user-defined calibration parameters. Supports 1D HEC-RAS calibration and validation workflows using deficit and constant loss methods with optional recession baseflow.

View HMS-Commander

DSS-Commander Notebook

Python notebook for plotting 1D HEC-RAS results from DSS against gauge results, creating zoomable HTML plots with Bokeh. Calculates calibration statistics (RMSE, r, PBIAS, NSE) for each plotted location.

View DSS-Commander

ChatGPT Examples for Water Resources

A collection of specialized GPTs designed for Water Resources Engineers. Each GPT offers unique functionalities and knowledge bases, ranging from document compilation and flood damage estimation to GIS assistance and script translation.

Explore GPTs

HEC-Commander Blog

Technical articles on water resources engineering, including topics like "Avoiding The Bitter Lesson in HEC-RAS Modeling," "Deep Dive: HEC-RAS 2D Infiltration," and "Balancing Accuracy, Resolution, and Efficiency in Large-Scale HEC-RAS Modeling."

Read Blog

Featured Media Appearances

Full Momentum VODCast with Chris Goodell

Episode 33: The Future of Leveraging HEC-RAS with Automation and AI

Australian Water School - July 2024

Applying AI to HEC-RAS Modelling Workflows

Australian Water School - February 2024

AI Tools for Modelling Innovation

Instructional Videos

RAS Commander 2D Demo with Infiltration Overrides

Demonstration of HEC-RAS 2D automation functionality with infiltration override capabilities

RAS Commander 1D Demo

Step-by-step demonstration of using RAS-Commander for 1D HEC-RAS model automation

HMS-Commander Script Demonstration

Tutorial showcasing the HMS-Commander tool capabilities and workflow automation

GPT-Commander YouTube Channel

Access all instructional videos, demonstrations, and tutorials for HEC-Commander tools

Visit YouTube Channel

Recent Presentations & Appearances

ASFPM 2025 (Upcoming)

Presenting a 30-minute introduction of the RAS-Commander library, a nearly feature-complete replacement for the HECRASController for HEC-RAS 6.x, an outgrowth of the 2024 Australian Water School course series.

Instructing a 2-hour workshop with FLO2D on Sunday May 25 at ASPFM covering how to use ChatGPT and other LLM tools to write scripts for data management in flood modeling, including the use of the RAS-Commander library to simplify HEC-RAS HDF data extraction and run automation.

ASFPM 2025 Conference Schedule

WEF Webinar: AI/ML Through A Watershed Lens

February 18, 2025

Discussion on how to apply LLMs in engineering practice through a watershed lens, exploring the broad innovation surface of LLMs and approaches to use in professional practice.

WEF Presentation

ASFPM 2024

Presented HEC-Commander Tools and AI-assisted scripting at the Association of State Floodplain Managers (ASFPM) Annual Conference in Salt Lake City on June 27, 2024.

View Presentation PDF

Additional Resources

Premium Course: AI Applications to HEC-RAS

A comprehensive 6-hour course on applying AI to HEC-RAS workflows, developed for the Australian Water School.

View Course

HEC-Commander YouTube Channel

Instructional videos to accompany the HEC-Commander repository, providing step-by-step tutorials and demonstrations.

Visit Channel

Blog Details: Avoiding The Bitter Lesson in HEC-RAS Modeling

This article draws parallels between breakthroughs in AI and computational challenges in hydraulic modeling, particularly in the 2D modeling era post version 6.0. It explores how scaling through parallelism and brute force can lead to significant improvements in modeling efficiency.

Read Article

Blog Details: Courant Rules Everything Around Me

This article highlights the need for balancing cell size and time step in large scale HEC-RAS models, as well as common pitfalls of over-reliance on adaptive timestep. Essential reading for anyone with a model that takes more than 24 hours to run.

Read Article