SEUPharma
Launch the app
§ The intelligence

13 engines. One page.

13 engines. All of them run in this page — no inference server, no API call, nothing leaving your device. Below is the machinery by name — what each engine does, the published ground it stands on, and one fact you can check. We improve them engine by engine; the registry is public code.

§ 01 · src/lib/calculations.ts

Physics Engine

Solves every asset from first principles — steam tables, combustion balances, part-load curves, moist-air states.

rests on · IAPWS-IF97 · ASME PTC 4 · AHRI 550/590 · ASHRAE psychrometrics

35+ equipment models; worked examples printed in every audit (Appendix C)

§ 02 · src/lib/simulation/tmy.ts

Weather Engine

Integrates every coil and free-cooling decision across all 8,760 hours of a synthetic meteorological year.

rests on · TMY synthesis · degree-hour integration over the operating window

AHU heating and cooling are climate-true; monthly energy shapes feed the seasonal closure

§ 03 · src/lib/nn/architect.ts

Schematic Engine

Turns a description into a living P&ID — topology, stream states, propagation — and keeps it solved on every edit.

rests on · Topological propagation · researched segment twins · deterministic parsing

Plain words → a calculated plant; every answer in the interview moves the model live

§ 04 · src/lib/nn/index.ts

Neural Surrogate

A network distilled from the physics engine — the first-phone-call instinct: bills in, end-use split and savings band out.

rests on · Distillation from engine-solved plants; the engine stays the source of truth

trained on 3,780 engine-solved plants · validation R² 0.83 · runs in ~3.4k multiply-adds

§ 05 · src/lib/nn/field-priors.ts

Prior Engine

The expert eye at data entry — every load-bearing field checked against pharma-typical and plants-like-yours bands.

rests on · CTV052 · AHRI envelopes · CAGI · CTG024 · CIBSE TM22 — each band cites its source

Segment-conditional: 78% boiler efficiency passes pharma at large, flags on a sterile plant

§ 06 · src/lib/opportunities.ts

Opportunity Engine

Finds the measures a billable audit leads with, then chains them so savings can never exceed the bill they save against.

rests on · Carbon Trust CTG024/CTV052 · EiiF · ASHRAE · ISPE — two-stage interaction honesty

NPV-ranked with GMP change-control triage; identified portfolios bounded by vector chaining

§ 07 · src/lib/mv/billing.ts

Reconciliation Engine

Holds the model against your meters — annual closure, month-by-month shape, and per-asset residuals.

rests on · IPMVP Option C · seasonal swing decomposition

Names level vs shape errors: a model can fake an annual total, not January and July at once

§ 08 · src/lib/mv/diagnose.ts

Diagnosis Engine

When the bills don’t close, it names the suspects — which parameters most plausibly explain the gap, and what to measure.

rests on · Exact engine perturbation (~15 local solves) · bounded ridge fit

Closed-loop tested: bills forged from a known distortion must point at the knob that was turned

§ 09 · src/lib/mv/calibrate.ts

Calibration Engine

Converges the model onto your bills — as a reviewable changeset you accept or discard, never a silent edit.

rests on · Iterated diagnosis · plausibility-bounded descent · provenance stamping

Closes within ±5% or refuses honestly, naming the residual un-modelled load

§ 10 · src/lib/analytics/completeness.ts

Compliance Engine

Grades the audit against the regulation, clause by clause — including the clause a remote audit honestly cannot meet.

rests on · EN 16247-1 · EED 2023/1791 Annex VI · ISO 50001 §6.3

Eight cited rules; the field-work clause stays open by construction — never 100% remotely

§ 11 · src/lib/narrator/index.ts

Narrator Engine

Writes the audit’s prose from the computed facts — engineer’s tone, same plant in, same words out, no language model.

rests on · Deterministic template grammar over engine outputs

Byte-identical on re-run; every sentence traceable to a number in the model

§ 12 · src/lib/mv/uncertainty.ts

Uncertainty Engine

Puts error bars on every headline number — input provenance becomes arithmetic, and the improvement plan becomes a priced ranking of what each measurement buys.

rests on · First-order propagation: provenance-class σ × exact engine sensitivities

Measured ±3% → assumed ±20%; same plant on measured inputs carries strictly tighter bands (closed-loop tested)

§ 13 · src/app/report/page.tsx

Audit Engine

Assembles the deliverable — balance, energy review, closures, measures, regulations, worked examples, signatures.

rests on · EN 16247-1 report structure · document control (doc no., revision, signatories)

11 numbered sections + 5 appendices, print-perfect, regenerable any day the plant changes

The one external call in the whole product is the optional AI assistant — off by default, never load-bearing. Every figure in your audit comes from the engines above, on your device.

Watch them work together.

Describe your plant in plain words — the schematic engine drafts it, the network reads it, the interview refines it, the audit engine binds it.