Log inStart free
LESSON 15.04 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Simulator calibration and sensitivity analysis

Watch a room simulator get checked, tuned and tested against a real room.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 15.04 · SIMULATION BAYGAP 0.07 °C · Δt 1 MIN
01
Stage 1 of 6 · Verify the code
Verification checks the code against its own math. With a 1-minute step, the Euler line misses the exact curve by 0.07 °C.
Explain it simply

First you check the code, not the room. The heating rule has an exact solution, so the dashed line is the right answer. The blue line is the simulator, one step every minute. At this step the two lines almost overlap. Its largest gap is 0.07 degrees, and a smaller step shrinks it.

The Euler line with a 1-minute step and the exact curve. The largest gap is 0.07 degrees at 50 minutes.

readingssimulator, Qheater, parameterserror
0306090120510152025time, minroom T, °Cheater on 0–60 min, then offgap 0.07 °CEuler, Δt 1 minexact solutionlargest gap to the exact curveΔt 1 min0.07 °CΔt 5 min0.35 °CΔt 15 min1.14 °Cthe k, h grid0.0150.0350.300.70k →h ↑verify the codeT ← T + Δt·(−k·(T − 5) + h·u), Δt = 1 min0306090120510152025time, minroom T, °Cheater on 0–60 min, then offgap 0.07 °CEuler, Δt 1 minexact solutionlargest gap to the exact curveΔt 1 min0.07 °CΔt 5 min0.35 °CΔt 15 min1.14 °Cthe k, h grid0.0150.0350.300.70k →h ↑verify the codeT ← T + Δt·(−k·(T − 5) + h·u), Δt = 1 min
Toy: a 1-temperature room, 24 readings a run, a 21 × 21 grid of k, h
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Tn+1=Tn+Δt (−k (Tn−Tout)+h un)\sy{T}{out}{T}_{n+1} = \sy{T}{out}{T}_n + \sy{dt}{param}{\Delta t}\,\big(-\sy{k}{param}{k}\,(\sy{T}{out}{T}_n - T_{out}) + \sy{h}{param}{h}\,u_n\big)
Δt=1: max⁡n∣Tn−Texact∣=0.07\Delta t = 1:\ \max_n |\sy{T}{out}{T}_n - T_{exact}| = \sy{e}{grad}{0.07}

Each step adds the heater's heat and removes the leak outside.

Common mix-ups

MYTHA good fit means the parameters are the true ones.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01If the timestep grows from 1 to 15 minutes, does the verification gap grow or shrink?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.