HomeAI for EngineeringLLMs for Engineering Calculations: Where They Fail

LLMs for Engineering Calculations: Where They Fail

In short

Large language models are now good enough to set up an engineering calculation convincingly and still get the answer wrong. The errors are rarely random: they cluster around units, implicit assumptions, iterative solutions and code-specific factors. Used as a setup and checking assistant paired with a real solver, an LLM can save hours. Used as a calculator, it will eventually put a wrong number on a datasheet. This article covers the failure modes we see most often when evaluating models on equipment problems, and a practical checklist for engineering teams.

Why this matters now

Engineers are already pasting pump duty points, relief scenarios and electrolyte properties into chat tools. Academic work is catching up: a 2026 arXiv study, “Can Large Language Models Solve Engineering Equations?”, compared models predicting answers directly against models that hand the equation to a numerical solver, and found the solver-assisted route markedly more reliable. Benchmarks such as EngChain and ORCA point the same way: multi-step engineering reasoning degrades as the chain gets longer, even when each step looks plausible.

Advertisement

From the evaluation side (rubric design and RLHF review of model outputs on engineering problems), the pattern is consistent: the prose is confident, the method is usually right, and the number is where it breaks.

Six failure modes to watch for

1. Unit and basis drift

The classic. A model mixes bar(a) and bar(g), m³/h and Nm³/h, or kPa and psi halfway through a calculation. In hydrogen work the normal-versus-actual volume trap is especially costly: an electrolyser rated in Nm³/h of H₂ needs actual-condition flow for compressor suction and dryer sizing. A model that silently treats them as the same can be off by an order of magnitude at low pressure.

2. Hidden assumptions presented as facts

Ask for the NPSH available on a lye circulation pump and a model will often assume water properties at 20 °C, when 30 wt% KOH at 80 °C has very different density, viscosity and vapour pressure. The assumption is rarely flagged. We covered why those properties matter in Lye Circulation Pump Selection for Alkaline Electrolysers; an LLM that ignores them produces a clean, wrong answer.

3. Iteration done “in its head”

Colebrook friction factors, compressible flow through a relief valve, dew-point calculations for gas drying: anything needing iteration is where direct prediction fails most. The model writes the equation correctly and then “solves” it in one step, producing a number that does not satisfy its own equation. Substituting the answer back in is the fastest way to catch it.

4. Code factors from memory

Back-pressure correction factors, combination capacity factors, allowable stresses, joint efficiencies: models recall the shape of these well and the value poorly, and they mix editions. Any number that comes from a standard such as API 520, ASME B31.3 or ASME VIII must be checked against the current edition your project is contracted to, not taken from the chat.

5. Arithmetic on long chains

Even strong models make small arithmetic slips, and in a ten-step calculation one slip propagates. Specific energy of an electrolyser plant, from stack kWh/kg to system kWh/kg including rectifier, BoP and compression, is a good example: every step is easy, the total is often wrong.

6. Sycophantic correction

Tell the model “that looks too high” and it will often agree and produce a new, equally unverified number. This is the most dangerous failure for reviews, because it makes the tool look responsive while it is actually optimising for agreement. Challenge with data (“recompute using ρ = 1,280 kg/m³”), not with opinion.

What works: a setup-and-solve pattern

The reliable pattern separates what LLMs are good at from what they are not:

  1. Problem framing (LLM): list governing equations, required inputs, assumptions and applicable standards. This is where models add real value, often surfacing a case you forgot, such as a fire case or a blocked-outlet scenario.
  2. Calculation (tool): have the model write Python with explicit units (for example using the pint library) or populate your validated spreadsheet, then run it. Never accept a number the model computed in text.
  3. Property data (database): pull fluid properties from CoolProp, NIST or vendor data, not from model memory.
  4. Sanity check (LLM + engineer): ask the model to check orders of magnitude and dimensional consistency against rules of thumb, then have a qualified engineer sign off.

This mirrors how good teams already work with junior engineers: framing and checking are shared, the calculation of record lives in a controlled tool.

How to evaluate a model before your team relies on it

Generic benchmarks tell you little about your domain. Build a small internal test set instead:

  • 20 to 50 solved problems from your own past projects (pump sizing, relief loads, line sizing, dryer regeneration duty), with verified answers.
  • A rubric, not just a pass/fail: score correct method, stated assumptions, unit handling, final value within tolerance, and whether the model flagged uncertainty.
  • Adversarial variants: the same problem in mixed units, with a missing input, or with a deliberately unrealistic value. A good assistant asks; a poor one guesses.
  • Re-run on every model update. Behaviour changes between versions, sometimes for the worse on niche tasks.

Rubric-based evaluation is the same discipline used to train and grade frontier models; applying it in-house turns “the AI seems good” into a measured, auditable position.

Where LLMs genuinely help today

  • Drafting calculation notes and design basis documents from your inputs.
  • Checklists for DFMEA sessions and design reviews, as a prompt for the team, not a replacement.
  • Writing and reviewing small calculation scripts with explicit units.
  • Comparing vendor datasheets and flagging inconsistencies between them.
  • Explaining a standard’s intent to a new engineer, with the clause then read in the original.

For hydrogen plants specifically, BoP sizing is a good proving ground because the physics is well known and the data is checkable; see our guide to hydrogen gas drying technologies for the kind of problem worth putting in a test set.

Checklist for engineers

  • State units and basis (gauge/absolute, normal/actual) in every prompt.
  • Ask the model to list its assumptions before it calculates.
  • Never take a computed number from text; run the code or the spreadsheet.
  • Source fluid properties and code factors from controlled references.
  • Back-substitute every iterative result.
  • Challenge with data, not opinion, to avoid sycophantic corrections.
  • Keep a domain test set and re-score after every model change.
  • Keep the engineer of record accountable; AI output is a draft, not a deliverable.

Bring AI into your engineering workflow safely

Avoltium combines 15+ years of equipment R&D (electrolysers, pumps, valves, water treatment) with hands-on AI model evaluation. We help teams build domain test sets, evaluation rubrics and AI-assisted calculation workflows that hold up in design review. Explore our consulting services or get in touch at hello@avoltium.in.

latest articles

explore more