Lesson 11 / 12 · Exact event timing
Catch a sub-second service gap
Does 57 kWh bridge recovery at 500 seconds? Does 58 kWh?
Predict before you run
Write down your prediction, then change only the input below. In the interactive lesson, compare the starting case with the challenge and export a worksheet to retain your reasoning.
| Input | Starting value | Challenge value |
|---|---|---|
| Initial battery | 57 kWh | 58 kWh |
Reported quantity: s unserved. The live control accepts 50–65 kWh.
Worked answer
57 kWh depletes at 499.8135 s, leaving a 0.1865 s gap before recovery. 58 kWh bridges the outage. The engine resolves the event inside its nominal 10 s step.
Reproduce the configuration
| IT demand / simulated duration | 1000 kW / 1800 s |
|---|---|
| Opening battery / energy capacity | 57 kWh / 100 kWh |
| Charging power limit | 100 kW |
| Charge / discharge efficiency | 0.95 / 0.9 |
| Distribution efficiency | 0.95 |
| Generator start delay | 30 s |
Scheduled events
- 300 s: utility — asset down
- 300 s: generator — asset down
- 500 s: utility — asset up
- 900 s: generator — asset up
The browser lesson applies its configuration to the generator_failure preset. Open it above, run the starting case, switch to the challenge, and use “Verify against Python” to compare complete results. Use the worksheet export to keep the prediction, completed inputs and answer together.
Sources and verification
- Exact lesson definitions and input transformations
- Native Python default/challenge checks
- 1 MW equations and independent energy-ledger reconstruction
- Electrical continuity contract
Original material by Mohammad Rezwan Khan, engine 1.0.0. Synthetic teaching cases; no facility calibration or independent external reproduction has been established. Annual PUE planning and outage continuity are different calculations. Full scope and evidence.