Waterversity
    Plant Design Studio

    Model assurance record

    What has been demonstrated about the correctness, limitations and benchmark performance of the Plant Design Studio computational implementation. Which models exist, which benchmark cases have been run against them, what those runs produced, and where the implementation deviates from the reference. Deviations are listed whether or not they are resolved.

    Plant Design Studio is built for teaching process behavior, exploring scenarios, and training engineers. It is not a design-of-record tool and is not intended for permitting submittals, professional design deliverables, or predicting the performance of a specific existing facility.

    Model assurance is not facility validation

    Model assurance establishes what the Plant Design Studio computational implementation has demonstrated against declared benchmarks. It does not establish that an authored plant represents a physical facility. Facility validation occurs in Digital Twin Builder, through reconciliation against facility evidence.

    • — A passing ASM1 or BSM1 benchmark does not validate a customer’s aeration basin.
    • — A converged Waterville run does not make Waterville a real facility.
    • — A mathematically correct Takács implementation does not establish the settling behaviour of a customer’s clarifier.

    Every claim on this page is read from repository artifacts at render time — the benchmark table is generated from a committed fixture that a CI drift gate re-runs against the live engine. If the engine changes and the fixture is not regenerated, the gate fails. No sentence on this page is hand-authored marketing copy.Artifact: bsm1ValidationReport.json · generated 2026-06-24 · reference Alex, J. et al. (2008). Benchmark Simulation Model No. 1 (BSM1), Table 6.

    Models implemented

    IWA Activated Sludge Model No. 1

    Henze et al., IWA Scientific & Technical Report No. 9 (1987, repub. 2000)

    • — 13 state variables: S_I, S_S, X_I, X_S, X_BH, X_BA, X_P, S_O, S_NO, S_NH, S_ND, X_ND, S_ALK.
    • — 8 biochemical processes evaluated through the Peterson stoichiometric / kinetic matrix.
    • — Default kinetic and stoichiometric parameters transcribed verbatim from STR9 at 20 °C neutral pH.
    • — Arrhenius temperature correction θ^(T−20) with STR9 Table 8 θ values.
    • — Explicit-Euler integration with CFL sub-stepping.

    src/lib/plantSim/physics/asm1.ts

    Takács double-exponential layered secondary settler

    Takács, Patry & Nolasco (1991), Water Research 25(10):1263–1271

    • — 10-layer 1-D solids flux model, feed layer 5, BSM1 default parameters (v0 474, v0′ 250, r_h 5.76e-4, r_p 2.86e-3, f_ns 2.28e-3).
    • — Bulk plus gravity flux per layer, explicit Euler with CFL sub-stepping.
    • — Pure separator: no biological reaction is modelled inside the clarifier.

    src/lib/plantSim/physics/takacs.ts

    BSM1 closed-loop plant configuration

    Copp (2002) / Alex et al. (2008), Benchmark Simulation Model No. 1

    • — Five reactors in series (2 anoxic + 3 aerobic) coupled to the Takács settler.
    • — Internal nitrate recycle drawn from reactor 5 mixed liquor; RAS drawn from the settler underflow — the two streams are not conflated.
    • — Routing identities Q1 = Q0 + QRAS + Qint, Qf = Q1 − Qint, Qe = Qf − (QRAS + QW) hold to machine precision.
    • — Pinned COD↔TSS seam factor shared by the reactor and settler boundaries.

    src/lib/plantSim/physics/bsm1Harness.ts, bsm1Loop.ts

    Waterville reference-plant runtime adapter

    Waterville design basis v0.1 (fictional facility) — STD-1 … STD-7

    • — Configures the same BSM1 harness code path from Waterville SCENARIO and CONFIGURED values — it introduces no additional solver.
    • — Closed-loop wastage control on the CONFIGURED design SRT.
    • — One of four identical trains integrated at Q/4.
    • — BSM1 conformance is topological, not dimensional: BSM1 is defined at 4.87 MGD, Waterville runs at 28 MGD.

    src/lib/waterville/runtime.ts

    Benchmark cases run

    Each case names the reference, the code path exercised, and the result produced. No pass/fail grade is asserted against a published benchmark; deviations are reported per variable.

    BSM1 open-loop steady state, constant dry-weather influent, 15 °C

    Model tested
    ASM1 (5 reactors) + Takács settler, BSM1 topology
    Expected
    Per-zone SNH / SNO / SO and effluent profile per Alex, J. et al. (2008). Benchmark Simulation Model No. 1 (BSM1), Table 6.
    Result
    Converged=true after 80 integrated days at dt=45 s. Worst scored per-variable deviation 41.2 %. 18 scored records.
    Tolerance
    No pass/fail tolerance is claimed against the reference. Deviations are reported per variable.

    src/lib/plantSim/physics/__tests__/bsm1Harness.test.ts

    BSM1 committed-fixture drift gate (CI)

    Model tested
    Full harness re-run diffed against the committed artifact
    Expected
    Every numeric record reproduces the committed fixture on a fresh run
    Result
    Gate active; fixture generated 2026-06-24.
    Tolerance
    max(0.05 absolute, 2 % relative) per record

    src/lib/plantSim/physics/__tests__/bsm1FixtureGate.test.ts

    Settler cross-boundary mass-balance closure

    Model tested
    Takács settler coupled to the reactor train
    Expected
    Qf·Xf − (Qe·Xe + Qu·Xu) − d(inventory)/dt ≈ 0
    Result
    Residual below 1 % of throughput at steady state.
    Tolerance
    < 1 % of solids throughput

    src/lib/plantSim/physics/__tests__/takacs.test.ts, plantClosure.test.ts

    ASM1 autotroph stoichiometry identity

    Model tested
    ASM1 Peterson matrix, process 3 (autotrophic growth)
    Expected
    O₂/ρ₃, NO₃/ρ₃ and NH₄/ρ₃ coefficients equal their closed-form values
    Result
    Exact.
    Tolerance
    Machine precision

    src/lib/plantSim/physics/__tests__/asm1.test.ts

    Waterville reference-plant runtime integrity

    Model tested
    Waterville adapter over the BSM1 harness
    Expected
    Waterville configures the validated code path, converges, produces only DERIVED values, and can never emit a measured value or residual
    Result
    Enforced by test.
    Tolerance
    Structural assertions; no numeric reference exists for a fictional plant.

    src/lib/waterville/__tests__/watervilleRuntime.test.ts

    Scored records

    Open-loop BSM1 reproduction (Alex et al. 2008, Table 6). Topology and mass balance reproduce the reference; effluent nitrogen deviates (SNH +41.2%, SNO -14.4%, Ntot -15.1%) with a diagnosed mechanism, not an unexplained gap. Worst per-variable deviation on scored variables: 41.2%.

    VariableZoneReferenceThis engineDeviation
    SNHA17.928.525257313571477.6 %
    SNHA28.348.9541206069319677.4 %
    SNHA35.556.0584559037907629.2 %
    SNHA42.973.41407606369578515.0 %
    SNHA51.732.442316421580071241.2 %
    SNOA15.374.082039664041369-24.0 %
    SNOA23.662.426688820974428-33.7 %
    SNOA36.545.414113075263058-17.2 %
    SNOA49.38.237290075087152-11.4 %
    SNOA510.48.906200068380954-14.4 %
    SOA31.722.03933561003817718.6 %
    SOA42.432.5171816629597263.6 %
    SOA50.490.29162819258432787-40.5 %
    SNHeffluent1.732.442316421580071241.2 %
    SNOeffluent10.48.906200068380954-14.4 %
    TSSeffluent12.512.498176566352445-0.0 %
    CODeffluent4847.577504679630266-0.9 %
    Ntoteffluent15.613.245447458580513-15.1 %

    “This engine” is the value the code path produces, not a measurement. Model

    Internal consistency (not agreement with a reference)

    • — OUR(A5) balance: supply KLa·(Ssat−SO) = demand ρ1+ρ3 = 647.5 g O₂/m³/d (residual 0.00). This is integrator self-consistency, not agreement with the BSM1 reference.

    Reproduced against the reference

    • — Routing identities Q1, Qf, Qe (machine precision)
    • — Settler cross-boundary mass-balance residual < 1% of throughput
    • — ASM1 autotroph stoichiometry (O₂/ρ3, NO₃/ρ3, NH₄/ρ3 exact)
    • — SRT ≈ 9.2 d (target ~9 d)
    • — MLSS(A5) within ~0.5% of reference
    • — Effluent COD -0.9%, TSS -0.0%
    • — Qualitative SNO denitrification fingerprint (A1→A2 drop)
    • — Qualitative SS profile shape (monotone decay across train)

    Known deviations

    Listed whether or not they are resolved.

    • Effluent SNH +41.2% (2.44 vs ref 1.73 mg N/L)

    • Effluent SNO -14.4% (8.91 vs ref 10.40 mg N/L)

    • Effluent Ntot -15.1% (13.25 vs ref 15.60 mg N/L)

    • Carbonaceous OUR fraction at A5: 39% vs reference ~8% — this is the reference comparison; the SNH/SNO/Ntot residuals are its downstream consequence.

    • BSM1 conformance in the Waterville model is topological, not dimensional.

      BSM1 is defined at 18,446 m³/d (4.87 MGD). Waterville runs at 28 MGD across four trains. The drift gate validates the kernel at BSM1's own numbers; BSM1 reference values are never rescaled into Waterville comparisons.

    • Waterville's aeration KLa profile is adopted from BSM1, not derived from the Waterville design basis.

      NOT from the Waterville design basis. Blower and diffuser sizing are UNAVAILABLE in the v0.1 model (see aeration_energy). The BSM1 default KLa profile (Alex et al. 2008) is adopted so the reactor has a defined oxygen supply. Absolute DO and OUR are therefore not Waterville results.

    • Waterville's converged model MLSS does not equal the CONFIGURED design MLSS of 3,200 mg/L.

      Wastage is controlled to hold the design SRT, so solids inventory — not MLSS — is the controlled variable. MLSS is therefore an OUTPUT of the kinetics, yield and influent fractionation, and it lands where the model puts it. The design MLSS remains a CONFIGURED sizing criterion; it is not back-fitted into the simulation, and the simulation is not adjusted to reproduce it.

    • The Waterville v0.1 seasonal narrative (winter ammonia rise in carbon-removal mode) is NOT reproduced by the kernel.

      At the CONFIGURED winter SRT of 12 d with every zone aerated at the adopted BSM1 KLa, the model nitrifies and effluent ammonia stays low. The declared seasonal effluent expectations are a narrative premise, not a model output, and are labelled as such wherever they appear. The model has not been adjusted to match the narrative; the driver is the KLa profile, which is a disclosed assumption outside the Waterville design basis.

    • Species-resolved primary removal is a declared assumption, not a Waterville design criterion.

      Declared modelling assumption. The Waterville design basis states a TSS removal fraction (STD-4) but does not state a species-resolved primary removal. Resulting BOD removal is a consequence of this assumption, not an independent criterion.

    Open items

    Unresolved work and capabilities the model does not cover. A capability listed here is never rendered as a number anywhere in the product — it renders as UNRESOLVED.

    • Carbonaceous OUR excess at reactor A5 (≈39 % vs reference ≈8 %) is unresolved.

      Structural, under investigation — not a calibration. All ASM1 kinetic and stoichiometric parameters are at BSM1 default (η_g 0.8, η_h 0.8, K_NO 0.5, μ_H 4.0, verified vs Alex 2008 Tables 1 & 4), so there is no parameter offset to fit. The carbonaceous OUR excess at A5 (≈39% vs ref ≈8%) and the SNH/SNO/Ntot effluent residuals are produced by the default parameter set, which points at an integrator or implementation discrepancy rather than calibration. Per-zone ρ1/ρ2/ρ7/XBH/SO are now surfaced as reported records to discriminate (a) residual sub-step SO keeping aerobic growth active in anoxic zones, (b) aerobic-zone hydrolysis regenerating SS, or (c) mis-distributed XBH inventory. Mechanism verdict pending those numbers; the fix will be a numerical-accuracy change (e.g. implicit/stiff DO integration), never a physics deletion (no hard-zeroing SO when KLa=0, which would remove the real O₂ flux the A5→A1 recycle carries).

    • Validation scope is narrower than the product surface.

      Open-loop, constant dry-weather influent (BSM1_DRY_INFLUENT), 15 °C. Does NOT include: dynamic/storm influent, closed-loop DO or SRT control, temperature sweep.

    • Waterville v0.1 sizing has not been reviewed by a qualified engineer.

      All standard editions and page references remain unverified until a reviewer signs them. Every Waterville surface carries the DRAFT banner.

    • Not modelled: Biological phosphorus removal.

      ASM1 has no phosphorus. Influent TP is declared; effluent TP is not modeled.

    • Not modelled: Anaerobic digestion kinetics (gas, VS destruction).

      ASM1 is not ADM1. Digester geometry and loading are sized; gas production and VS destruction are not solver outputs.

    • Not modelled: Thickening and dewatering performance.

      No kernel in the Waterville v0.1 model.

    • Not modelled: SVI and settleability.

      Takács parameters are configured inputs. The model does not predict them.

    • Not modelled: Aeration energy, blower performance, odor control.

      Out of the liquid-train model.

    See the reference plant this record governs: Waterville Regional Water Reclamation Facility.