01simulation2026

Cryogenic Flow Simulation

Rust process simulation informed by Siemens and Rockwell PLC experience: 29,500 entities at 30 Hz with fixed-seed replay.

The scaled system ran 29,500 entities at 30 Hz and recovered to 30 Hz after deliberate overload. Its fixed-seed deterministic capture produced 1,800 frames with raw output pinned by SHA-256 inside the same executable, seed, GPU-adapter, and driver scope. Coordinated close, open, and restore waves moved across all 15,000 valves; the shipped video changed 24.3% of label-excluded fleet pixels versus a legacy 1.0% whole-percent comparator. A measured warmed 5.29 MB full JSON state snapshot compared with a 6.8 KB representative warmed binary delta, about 779× smaller, with static layout retained separately.

Open the project video
Deterministic Stage 1 capture at 1920 by 1080.
Role
Controls-domain translation, Rust workspace architecture, simulation implementation, capture pipeline, and artifact validation.
System boundary
A Rust workspace drives three crates: cryo-core owns the physics domain model, cryo-service exposes an Axum HTTP layer, and cryo-web serves the browser-rendered SVG/HTML/CSS dashboard. Playwright orchestrates the Stage 1 capture scenario and validates the artifact.
Primary constraint
All behavior must be deterministic from a fixed seed so artifacts are reproducible and auditable.
Strongest evidence
Measured scale, real-time recovery, and byte-identical deterministic replay for the 29,500-entity generated plant.

The situation

Control sequences are difficult to rehearse when the real facility is unavailable, incomplete, or too costly to place into every fault and boundary condition. The simulator needed reproducible state transitions across valves, tanks, pipes, and instrumentation without depending on live hardware.

A simulation that hides its assumptions can create false confidence at the exact conditions where engineering errors are most costly: low temperatures, pressure differentials, actuator timing, alarms, and recovery sequences.

Constraints

  • All behavior must be deterministic from a fixed seed so artifacts are reproducible and auditable.
  • No live hardware dependency; the simulation must run entirely from a Rust service with a browser-rendered UI.
  • The capture pipeline must verify its own output with measurable thresholds, not just visual inspection.
  • The current demonstration is not plant-calibrated, connected to PLC or DCS control logic, safety-authoritative, or an operational digital twin.

My responsibility

Controls-domain translation, Rust workspace architecture, simulation implementation, capture pipeline, and artifact validation.

The system

A Rust workspace drives three crates: cryo-core owns the physics domain model, cryo-service exposes an Axum HTTP layer, and cryo-web serves the browser-rendered SVG/HTML/CSS dashboard. Playwright orchestrates the Stage 1 capture scenario and validates the artifact.

Architecture descriptionA three-crate Rust workspace with a physics core, Axum service layer, and browser-rendered SVG/HTML/CSS dashboard captured by a Playwright scenario harness.

Critical decisions

01

Fixed-seed capture

Choice
Drive the Stage 1 scenario from a fixed seed and scenario name.
Alternatives considered
  • Depend on live hardware or an unpredictable animation loop.
Tradeoff
The capture favors reproducibility and auditability over live-system variability.

02

Threshold-based validation

Choice
Validate OCR, motion, flow, tank, pipe, telemetry, and clamp thresholds after capture.
Alternatives considered
  • Rely on visual inspection alone.
Tradeoff
Thresholds are more trustworthy than inspection alone but require calibration against known-good runs.

03

Sell a bounded outcome before a platform

Choice
Start with a facility-specific control-sequence rehearsal engagement built from approved customer engineering information and acceptance scenarios.
Alternatives considered
  • Build a general simulation platform or multi-tenant SaaS before proving paid customer demand.
Tradeoff
Manual customer translation limits early software scale, but it tests the buyer, inputs, fidelity, acceptance criteria, and delivery economics before making a larger product commitment.

Proof

Scale simulation proofMeasured scale, real-time recovery, and byte-identical deterministic replay for the 29,500-entity generated plant.

Evidence boundary
Generated-scale evidence combines a deterministic offline capture from a fixed seed with a separately measured live real-time run; source commits and measured validation thresholds are recorded.
Known limits
Byte determinism is scoped to the same executable, seed, GPU adapter, and driver; the deterministic offline capture does not claim wall-clock real-time performance.

Engineering signal

Why this matters to engineering teams

CryoSim connects practical controls-engineering experience with a deterministic software architecture that makes facility behavior easier to rehearse, inspect, and explain.

Controls experience

Earlier facility simulation in integrated Siemens and Rockwell PLC logic modeled commodity inventories, temperatures, pressures, and other sensor and actuator feedback for sequence, interlock, alarm, and recovery rehearsal.

Testable domain core

The no-I/O Rust core keeps state transitions deterministic and directly testable before service or browser code is involved.

Measured scale

Generated topology, compact transport, and semantic rendering sustain an operator-readable 29,500-entity demonstration.

Evidence boundaries

Offline determinism, live runtime behavior, and future facility integration are reported as separate claims.

Reflection

The scaled system ran 29,500 entities at 30 Hz and recovered to 30 Hz after deliberate overload. Its fixed-seed deterministic capture produced 1,800 frames with raw output pinned by SHA-256 inside the same executable, seed, GPU-adapter, and driver scope. Coordinated close, open, and restore waves moved across all 15,000 valves; the shipped video changed 24.3% of label-excluded fleet pixels versus a legacy 1.0% whole-percent comparator. A measured warmed 5.29 MB full JSON state snapshot compared with a 6.8 KB representative warmed binary delta, about 779× smaller, with static layout retained separately.

  • Deterministic seeds make simulation artifacts auditable in a way that live hardware captures cannot be.
  • Separating domain logic into a no-I/O core crate forces the physics model to be fully unit-testable before any service or UI code depends on it.
  • Threshold-based artifact validation is more trustworthy than visual inspection alone, but the thresholds need calibration against known-good runs.