DiscreteRate Sandbox · 3 demos
Home History Lineage Primitives vs DES FAQ Sandbox
sim time t = 0

Fast-Slow Drain · tank view

The Damiron-Nastasi 2008 §2.1 model from the scsim engine: tank fills at +1.4 ton/min, drains at −1.1 ton/min when full, oscillating across 4 complete cycles + a partial 5th. Same trajectory rendered in three worldviews. Continuous recalculates at every time slice. Discrete event fires per integer-% change. Discrete rate fires only at rate-change events — 10 total (start + 4 FULL + 4 EMPTY + end).

CONTINUOUS smooth, every time slice 0 % ~thousands of time slices DISCRETE EVENT step per drop in / out 0 % events 0 DISCRETE RATE events on rate change only 0 % events 0 current phase: FILLING (rate +)

Fast-Slow Drain · level over time

The Damiron-Nastasi 2008 §2.1 trajectory rendered by each worldview on the same time axis. Continuous is a sampled curve. Discrete event is a staircase (one step per integer-% change). Discrete rate is piecewise-linear with 10 anchor points — start, 4 FULL, 4 EMPTY, end. The fill slope (+0.7 ton/min after cycle 1) and drain slope (−1.1 ton/min) are asymmetric — that's the “fast slow” in the name.

sim time → level (%) Continuous Discrete Event Discrete Rate

Hamburger Duo · line view

The 5-stage hamburger line, modeled two ways simultaneously on the same simulated clock. DES (top, amber) tracks each individual burger as a discrete event. DRS (bottom, blue) models the flow as a continuous rate, with fill bars rising stage by stage.

DES DRS Defrost Cooker Seasoning Served Out Defrost Cooker Seasoning Served Out events 0 events 0

Hamburger Duo · cumulative throughput

Same plant, same simulated clock, both worldviews. DES renders as a staircase (one step per burger arrival). DRS renders as a smooth diagonal (continuous flow). Both reach the same place at the same time — calibration holds.

sim time → burgers served DES staircase DRS linear

Valdez Tanker · harbor view

Pipeline fills the storage tank as continuous flow. Tankers arrive at the harbor, dock at berths, load oil (the F2I transition — flow becomes item), and depart with their cargo. Tug pool and berth contention drive queueing. The Pritsker SLAM / SDI Industry pattern, restored with separate F2I + I2F primitives.

PORT OF VALDEZ · ITEMS + FLOW PIPELINE ↓ (flow) STORAGE TANK (flow) 1200 tb F2I → flow → item BERTHS (loading) 3 berths TUG POOL 3 / 3 tugs available ——— HARBOR ——— I2F ← item → flow DEPART →

Valdez Tanker · event log

Discrete events on the item side — tankers arriving, docking, departing — interleaved with continuous flow on the tank side. The same DRS model emits both.

EVENT STREAM