Calculator overview
Inputs and outputs
This summary comes from the calculator's published input and output contract.
Inputs
- Probe row (required)
-
Default 7 Range 1 to 13
About this input
The probe cell's row, a whole number from 1 (top) to 13.
- Probe target temperature (required)
-
Unit °C Default 25 Range -100 to 1000
About this input
In degrees C, from -100 to 1000: the workbook reports the first step, and the interpolated time, at which the probe reaches this temperature.
- Starting temperature (required)
-
Unit °C Default 20 Range -100 to 1000
About this input
Ti, in degrees C, from -100 to 1000: the background temperature of the spot pattern. With Sine mode, the temperature the mode reaches at the centre.
- Probe column (required)
-
Default 7 Range 1 to 13
About this input
The probe cell's column, a whole number from 1 (left) to 13.
- Time step (required)
-
Unit s Default 0.25 Range 0.001 to 1000
About this input
dt, in seconds, from 0.001 to 1000: the length of each of the 60 steps. The stability number alpha x dt / dx^2 must stay at or below 0.25 for a stable run; the largest stable step is shown in the results.
- Wall cells (1 = wall, blank or 0 = plate; row i, column j is plate cell (i, j))
-
When omitted Blank
Default 0 rows
About this input
The wall cells of the 13 x 13 plate: row i, column j is plate cell (i, j). Enter 1 for a wall; leave the cell blank, or enter 0, for plate. A wall holds no temperature and passes no heat, and it shows blank in the results. A wall on a held edge is a wall.
Column Range or allowed values Column 1 0 to 1 Column 2 0 to 1 Column 3 0 to 1 Column 4 0 to 1 Column 5 0 to 1 Column 6 0 to 1 Column 7 0 to 1 Column 8 0 to 1 Column 9 0 to 1 Column 10 0 to 1 Column 11 0 to 1 Column 12 0 to 1 Column 13 0 to 1 - Your snapshot prediction (challenge 1) (required)
-
Default Not yet predicted Allowed Not yet predicted, Snapshot 1, Snapshot 2, Snapshot 3, Snapshot 4, Snapshot 5, Snapshot 6, Snapshot 7, Snapshot 8, Snapshot 9, Snapshot 10, Not within the run
About this input
Challenge 1 only: your prediction of the first snapshot (1 to 10) in which the probe reaches the target, or Not within the run. Until you predict, the snapshots after the first and the step series stay blank.
- Hot and cold spots (row k is spot k; leave a row blank when it is not used)
-
When omitted Blank
Default 2 rows
About this input
Up to 4 hot or cold spots. Row k is spot k: its row and column (whole numbers from 1 to 13), its temperature in degrees C (from -100 to 1000) and its radius in cells (a whole number from 0 to 6; 0 is one cell). A spot covers every cell whose squared distance from its centre, in cells, is at most the radius squared; where spots overlap the lowest-numbered one wins. Leave a row blank for a spot you do not use; a row in use must be complete.
Column Range or allowed values Row 1 to 13 Column 1 to 13 Temperature (°C) -100 to 1000 Radius (cells) 0 to 6 - Bottom edge (required)
-
Default Insulated Allowed Fixed temperature, Insulated
About this input
Row 13 of the plate: Fixed temperature or Insulated, as for the top edge.
- Left edge (required)
-
Default Insulated Allowed Fixed temperature, Insulated
About this input
Column 1 of the plate: Fixed temperature or Insulated, as for the top edge.
- Challenge number (required)
-
Default 0 Range 0 to 5
About this input
0 for none, or 1 to 5 to load a challenge. A challenge fixes the plate (spots, walls, edges, temperatures, diffusivity, time step, probe and target) except the inputs it leaves free for your answer, and scores the answer in the workbook.
- Thermal diffusivity (required)
-
Unit mm^2/s Default 97 Range 0.1 to 200
About this input
alpha, the thermal diffusivity in mm^2/s, from 0.1 to 200: how fast heat spreads through the material. Rounded typical values: copper about 117, aluminium about 97, glass about 0.5.
- Top edge (required)
-
Default Fixed temperature Allowed Fixed temperature, Insulated
About this input
Row 1 of the plate: Fixed temperature holds its 13 cells at the edge temperature from the start; Insulated lets no heat cross the edge. A corner is held when either of its edges is held.
- Starting pattern (required)
-
Default Hot and cold spots Allowed Hot and cold spots, Sine mode
About this input
The starting state: Hot and cold spots (the spot table on a background at the starting temperature) or Sine mode (the lowest sine mode of the plate, zero on the edge cells and peaking at the centre at the starting temperature above the edge temperature). The spots are still checked in Sine mode but not placed.
- Right edge (required)
-
Default Insulated Allowed Fixed temperature, Insulated
About this input
Column 13 of the plate: Fixed temperature or Insulated, as for the top edge.
- Edge temperature (required)
-
Unit °C Default 20 Range -100 to 1000
About this input
Te, in degrees C, from -100 to 1000: the temperature every held edge keeps for the whole run.
Outputs
- Probe highest temperature
-
Unit °C
About this output
In degrees C: the probe cell's highest temperature over the 61 states.
- Probe column used
-
No unit declared
About this output
The probe column the model ran.
- Highest temperature at the end
-
Unit °C
About this output
In degrees C: the highest temperature of any non-wall cell after 60 steps.
- Probe first reaches the target at time
-
Unit s
About this output
In seconds: when the probe reaches the target, interpolated linearly between the two steps around the crossing; blank when no step reaches it.
- Probe first reaches the target at step
-
No unit declared
About this output
The first step at which the probe reaches the target (0 when it starts at the target); blank when no step reaches it.
- Probe row used
-
No unit declared
About this output
The probe row the model ran.
- Model version
-
No unit declared
About this output
The workbook's model version.
- Model Status
-
No unit declared
About this output
OK; CHECK: with the reason (every cell is a wall, the probe is on a wall, or the time step is above the stability limit); or NOT VALID: with the input to fix.
- Sine mode amplitude at the end, measured
-
No unit declared
About this output
Sine mode with all four edges held and no walls: the centre cell's distance from the edge temperature at the end, as a share of its distance at the start. Blank otherwise.
- Hottest cell at the end, row
-
No unit declared
About this output
The row of the hottest cell at the end (the first in reading order when cells tie).
- Hottest cell at the end, column
-
No unit declared
About this output
The column of the hottest cell at the end.
- Formula module versions
-
No unit declared
About this output
The versioned formula modules this workbook embeds.
- Stability number alpha x dt / dx^2
-
No unit declared
About this output
r = alpha x dt / dx^2 with dx = 10 mm: the share of each temperature difference that crosses a face in one step. At or below 0.25 the run cannot overshoot.
- Stability limit
-
No unit declared
About this output
0.25: the largest stability number for which every new temperature is a weighted average of the old ones (the discrete maximum principle), for every edge and wall layout.
- Spots in use
-
No unit declared
About this output
The number of spots placed (0 with Sine mode).
- Wall cells
-
No unit declared
About this output
The number of wall cells used (challenges 1 to 4 use none).
- Time step used
-
Unit s
About this output
In seconds: the time step the model ran.
- Step series: the probe, the plate average and the highest temperature at every step
-
No unit declared
About this output
One row per step 0 to 60: the step, the time (s), the probe, the plate average and the highest temperature (degrees C). In challenge 1 rows 1 to 60 stay blank until you predict.
- Probe temperature at the start
-
Unit °C
About this output
In degrees C: the probe cell's temperature at the start (blank when the probe is on a wall).
- Probe temperature at the end
-
Unit °C
About this output
In degrees C: the probe cell's temperature after 60 steps.
- Probe target used
-
Unit °C
About this output
In degrees C: the probe target the model ran.
- Snapshots: the plate every 6th step (13 rows per snapshot; wall cells are blank)
-
No unit declared
About this output
11 snapshots of the plate at steps 0, 6, ..., 60: 13 rows per snapshot (plate rows 1 to 13), column 1 the step and columns 2 to 14 the temperature of plate columns 1 to 13 in degrees C; wall cells are blank. In challenge 1 snapshots 1 to 10 stay blank until you predict.
- Simulated time (60 steps)
-
Unit s
About this output
In seconds: 60 x dt, the time the 60 steps cover.
- Overshoot beyond the starting range
-
Unit °C
About this output
In degrees C: how far any temperature went above the starting maximum or below the starting minimum during the run. 0 in a stable run; positive when an unstable step overshoots.
- Bottom edge used
-
No unit declared
About this output
The bottom edge setting the model ran.
- Thermal diffusivity used
-
Unit mm^2/s
About this output
In mm^2/s: the diffusivity the model ran.
- Colour scale, lowest
-
Unit °C
About this output
In degrees C: the bottom of the heat map's colour scale, the lowest starting temperature (the scale spans at least 1 degree C). It is fixed for the whole run.
- Right edge used
-
No unit declared
About this output
The right edge setting the model ran.
- Left edge used
-
No unit declared
About this output
The left edge setting the model ran.
- Heat gained through the held edges (as an average rise)
-
Unit °C
About this output
In degrees C: the heat that flowed in through the held edges over the run, expressed as the rise in average temperature it causes (negative when heat flows out). It equals the change in the average to within rounding: the heat ledger.
- Challenge: the value scored
-
No unit declared
About this output
The value the challenge scores: 1 the first snapshot in which the probe reaches the target; 2 the stability number as a percent of the limit; 3 the step at which the probe reaches the target; 4 the change in the average temperature (degrees C); 5 the probe's highest temperature (degrees C).
- Challenge goal
-
No unit declared
About this output
The goal of the selected challenge.
- Challenge feedback
-
No unit declared
About this output
Feedback on the selected challenge: the met text, the not-met hint, or in challenge 1 the prompt to predict first.
- Colour scale, highest
-
Unit °C
About this output
In degrees C: the top of the colour scale, the highest starting temperature. In a stable run every later temperature stays inside the scale.
- Challenge result
-
No unit declared
About this output
No challenge selected, MET or NOT MET.
- Challenge score
-
No unit declared
About this output
100 when the selected challenge is met, else 0.
- Average temperature at the end
-
Unit °C
About this output
In degrees C: the average temperature of the non-wall cells after 60 steps.
- Change in the average temperature
-
Unit °C
About this output
In degrees C: the end average minus the start average. Heat enters or leaves only through held edges, so with every edge insulated it is 0 to within rounding.
- Largest stable time step
-
Unit s
About this output
In seconds: 0.25 x dx^2 / alpha, the largest time step that keeps the run stable for this diffusivity.
- Sine mode amplitude, the scheme's closed form g^60
-
No unit declared
About this output
Sine mode: g^60 with g = 1 - 8 r sin^2(pi/24), the decay the explicit scheme gives this mode exactly. The measured value equals it to within rounding.
- Sine mode amplitude, the heat equation's closed form
-
No unit declared
About this output
Sine mode: exp(-2 alpha (pi/L)^2 t) with L = 120 mm and t = 60 dt, the decay of the heat equation itself. The gap to the discrete value is the method's error.
- Average temperature at the start
-
Unit °C
About this output
In degrees C: the average temperature of the non-wall cells at the start, held edge cells included.
- Heat balance check (residual)
-
No unit declared
About this output
A pure number: the residual of the heat ledger (the change in the plate's total temperature minus the inflow through the held edges), divided by the number of non-wall cells and the largest temperature size. Rounding only, about 1E-16.
- Top edge used
-
No unit declared
About this output
The top edge setting the model ran.
- Edge temperature used
-
Unit °C
About this output
In degrees C: the edge temperature the model ran.
- Lowest temperature at the end
-
Unit °C
About this output
In degrees C: the lowest temperature of any non-wall cell after 60 steps.
- Starting temperature used
-
Unit °C
About this output
In degrees C: the starting temperature the model ran.
- Starting pattern used
-
No unit declared
About this output
The starting pattern the model ran (a challenge's own when one is selected).
LogicCommons is in beta. If a result, label, or reference looks wrong, tell us here; we read every message.
Methodology
Purpose and model boundary
This lab spreads heat over a thin square plate of 13 × 13 cells, each 10 mm square (130 mm across), and follows it for 60 explicit time steps of the forward-time, centred-space scheme (FTCS). The plate starts from up to four hot or cold spots on a uniform background, or from the plate's lowest sine mode. Each edge is either held at one edge temperature or insulated, and cells you paint as walls take no part. For the plate you set, the model returns 11 snapshots of the whole plate for a heat-map film, the probe cell's temperature with the plate average and the highest temperature at every step, the stability number with its limit and the largest stable time step, and a heat ledger that checks the scheme in every state. For the sine mode it also compares the measured decay with two closed forms. Five scored challenges turn the lab into exercises.
It is a lab for learning an explicit time-stepping scheme, its stability limit and heat conduction, not a tool for designing anything real. The plate has uniform properties and conducts heat only: there is no convection or radiation from its faces, no heat source after the start, no contact resistance and no change of properties with temperature. The grid is coarse on purpose, so the results are close to, but not the same as, the continuous heat equation.
The model is the calculation authority. The page sends the values you set to the model and draws only what the model returns: every heat-map cell, chart point and colour-scale end comes from the model's results; the page computes no physics value itself, and it never draws a state between two snapshots.
Inputs and units
| Input | Meaning and unit |
|---|---|
| Starting pattern | Hot and cold spots (the spot table on a uniform background) or Sine mode (the lowest sine mode of the plate). |
| Spot table | Up to 4 spots, one per row: the row and column of its centre cell (whole numbers from 1 to 13), its temperature (from −100 to 1,000 °C) and its radius (a whole number of cells from 0 to 6). A row left fully blank places no spot. |
| Wall cells | A 13 × 13 grid: a cell holding 1 is a wall; blank or 0 is no wall. |
| Top, bottom, left and right edge | Fixed temperature (the edge's 13 cells are held at the edge temperature from the start) or Insulated (no heat crosses the edge). |
| Edge temperature | Te, from −100 to 1,000 °C: the temperature every held edge keeps for the whole run. |
| Starting temperature | Ti, from −100 to 1,000 °C: the background of the spot pattern. With Sine mode, the temperature the mode reaches at the centre. |
| Thermal diffusivity | α, from 0.1 to 200 mm²/s: how fast heat spreads through the material. Rounded typical values: copper about 117, aluminium about 97, glass about 0.5. |
| Time step | Δt, from 0.001 to 1,000 s: the length of each of the 60 steps. |
| Probe row and column | The probe cell, whole numbers from 1 to 13 (row 1 is the top, column 1 the left). |
| Probe target | From −100 to 1,000 °C: the model reports when the probe first reaches this temperature. |
| Challenge number | 0 for free play; 1 to 5 loads one of the five challenges. |
| Snapshot prediction | Challenge 1 only: Not yet predicted, Snapshot 1 to Snapshot 10, or Not within the run. Otherwise it is ignored. |
Cell positions: cell (i, j) is in row i and column j; row 1 is the top edge, row 13 the bottom, column 1 the left edge and column 13 the right. Temperatures are in degrees Celsius, lengths in millimetres and times in seconds.
Every input is checked on the value you entered, even when the chosen pattern does not use it: the spot table is still checked in Sine mode.
In a challenge, the inputs the challenge fixes cannot be changed.
Governing relationships
Cell types. Each cell is one of three kinds, in this order of precedence:
- a wall when you paint it, even on a held edge;
- a held cell when it lies on an edge set to Fixed temperature (a corner is held when either of its edges is held);
- otherwise an open cell.
A face between an open cell and a neighbour is open when the neighbour exists on the plate and is not a wall. An insulated plate edge has no face beyond its edge cells, and a wall closes every face towards it.
The starting state.
- A held cell starts, and stays, at Te.
- With Hot and cold spots, a spot of centre (r, c) and radius R covers cell (i, j) when (i − r)² + (j − c)² ≤ R² (radius 0 covers one cell). An open cell takes the temperature of the lowest-numbered spot that covers it, else the background Ti.
- With Sine mode, an open cell starts at T = Te + (Ti − Te)·S(i)·S(j), with S(k) = sin(π·min(k − 1, 13 − k)/12). The mode is zero on the edge cells, peaks at the centre cell (7, 7) and is exactly symmetric. The spots are ignored but still checked.
- A wall holds no temperature.
The stability number. With the cell size Δx = 10 mm:
- r = α·Δt / Δx², the share of each temperature difference that crosses a face in one step;
- the stability limit is 0.25;
- the largest stable time step is 0.25·Δx² / α;
- the simulated time is 60·Δt.
One step. Held cells keep Te and walls stay empty. Each open cell moves to
T′ = T + r·[(F_N·(T_N − T) + F_S·(T_S − T)) + (F_E·(T_E − T) + F_W·(T_W − T))],
where T_N, T_S, T_E and T_W are the north, south, east and west neighbours from the previous step and each flag F is 1 when that face is open and 0 when it is closed. This is the flux form of FTCS: every open face between two cells carries r times their temperature difference into one cell and the same amount out of the other. An open cell with four open faces gets the textbook update T + r·(T_N + T_S + T_E + T_W − 4T). The model pairs the terms as north with south and east with west, so a symmetric plate stays exactly symmetric under every mirror and quarter turn.
Why 0.25. An open cell with m open faces moves to (1 − m·r)·T plus r times the sum of its m open neighbours. When r ≤ 0.25, every weight is at least 0 and the weights add up to 1, so each new value lies between the old lowest and highest values: nothing can overshoot (the discrete maximum principle). Above 0.25 the cell's own weight can go negative, the update overshoots and the finest zig-zag pattern can flip sign and grow every step, showing as a checkerboard. The model still computes and shows an unstable run; the status explains it. On this 13-cell plate the finest pattern is not exactly a checkerboard, so growth itself starts a little above 0.25 (about 0.254); just above 0.25 the run can overshoot without blowing up.
The heat ledger. Every cell has the same heat capacity, so heat is measured as temperature summed over the non-wall cells. Faces between open cells carry equal and opposite amounts and cancel; insulated edges and walls carry nothing; held cells never change. So the total changes only through the faces between open cells and held cells. In step n the heat that flows in through the held edges is
Q_n = r·Σ G·(Te − T),
summed over the open cells, where G is the number of held neighbours of the cell. Then the total at the end minus the total at the start equals Q_1 + … + Q_60. With no held edge every Q_n is 0, so the total, and the average temperature, stay fixed. The model reports the ledger as average temperatures and reports how far the identity misses, which shows only rounding.
The sine mode. The starting sine mode is the lowest mode of the 5-point update on a plate with all four edges held, so each step multiplies the centre cell's distance from Te by the same factor
g = 1 − 8·r·sin²(π/24).
After 60 steps the discrete decay is g⁶⁰. The heat equation itself decays this mode as exp(−2·α·(π/L)²·t) with L = 120 mm (the span between the centres of opposite held edge cells) and t = 60·Δt. The gap between the two is the method's error.
Calculation sequence
The model works through the relationships above in this order:
- It checks the entered inputs in the order of the status list under Errors and warnings, up to the challenge number and the snapshot prediction. Under NOT VALID every result is blank.
- It fixes the values used: your inputs, or in a challenge the challenge's givens with the inputs it leaves free taken from you.
- It sets each cell's type (wall, held or open), its open faces and its number of held neighbours.
- It builds the starting state from the pattern, the held edges and the walls.
- It computes the stability number, the limit, the largest stable time step and the simulated time.
- It takes the 60 steps, one full plate per step.
- For every step it records the plate average, the highest and lowest non-wall temperatures, the probe temperature and the heat Q_n flowing in through the held edges.
- It computes the ledger, the end results, the overshoot, the peak cell, the probe results and the colour scale, and in Sine mode the three mode amplitudes.
- It sets the status and, in a challenge, scores the challenge.
Outputs and interpretation
- Status: OK, CHECK or NOT VALID, with the reason (see Validation and status logic and Errors and warnings).
- Stability: the stability number r, the limit 0.25, the largest stable time step (s) and the simulated time, 60·Δt (s).
- Heat ledger:
- the average temperature of the non-wall cells at the start and after 60 steps (°C; held edge cells are included), and the change between them;
- the edge heat gain (°C): the heat that flowed in through the held edges, expressed as the rise in average temperature it causes, negative when heat flows out. It equals the change to within rounding, and is exactly 0 with no held edge;
- the heat balance error: the change in the plate's total temperature minus the inflow through the held edges, divided by the number of non-wall cells and by the largest temperature size reached (at least 1). It is a pure number, read in scientific notation because it shows only rounding.
- End of the run: the highest temperature of any non-wall cell and its cell (the first in reading order, row by row, when cells tie), the lowest temperature, and the range overshoot: how far any temperature went above the starting maximum or below the starting minimum during the run (°C). It is 0 in a stable run and positive when an unstable step overshoots.
- Probe:
- the probe's temperature at the start and after 60 steps, and its highest over the 61 states (°C);
- the first step at which it reaches the target, and when. When the probe starts above the target this means falling to it; when it starts below, rising to it. The time is interpolated in a straight line between the two steps around the crossing. Both read 0 when the probe starts at the target and are blank when no step reaches it.
- Colour scale: the lowest and highest starting temperatures, held edges included, widened to span at least 1 °C around their middle. The scale is fixed for the whole run; in a stable run every later temperature stays inside it.
- Counts: the spots in use (0 with Sine mode) and the wall cells used.
- Sine mode: shown only with Sine mode, all four edges held, no walls, and a starting temperature
different from the edge temperature; blank otherwise.
- the measured amplitude: the centre cell's distance from Te after 60 steps as a share of its distance at the start;
- the discrete amplitude g⁶⁰, which the measured one equals to within rounding;
- the continuous amplitude exp(−2·α·(π/L)²·t).
- Values used: the pattern, the four edges, the edge and starting temperatures, the diffusivity, the time step, the probe cell and the target actually solved. In a challenge these are the challenge's givens.
- Grids:
- Snapshots: 11 snapshots of the whole plate, at steps 0, 6, 12, …, 60, each as 13 rows of a step column and the 13 cell temperatures of that plate row. Wall cells are blank.
- Step series: 61 rows, one per step from 0 to 60, of the step, the time (s), the probe temperature, the plate average and the highest temperature (°C).
The page plays the 11 snapshots as a film on the same clock as the step series, and draws the probe chart from the step series.
Reading the results:
- Shown temperatures are limited to ±1,000,000 °C. A stable run never comes near that; only an unstable run can, and the status then says so. The heat balance error, the stability number, the times, the counts and the colour scale are not limited.
- Two plates with the same stability number take the same steps: copper (α 117 mm²/s) with Δt 0.2 s and glass (α 0.5 mm²/s) with Δt 46.8 s both have r = 0.234 and pass through the same states, the glass plate 234 times more slowly in time.
- With every edge insulated the average change can read about 1×10⁻¹⁴ while the edge heat gain is exactly 0: that is rounding in the plate's sum.
- The scheme is first order in time and second order in space. A sharp start, such as a small spot, on this coarse grid differs from the continuous heat equation by several percent of the temperature range in the first snapshots, and by about 1% or less from snapshot 5 on in the cases checked.
Challenges
Choose a challenge number from 1 to 5. The model loads that challenge's plate, and the inputs it fixes replace yours (the "used" outputs show the values in effect). Only the inputs the challenge leaves free stay yours. Every challenge uses hot and cold spots on a 20 °C aluminium plate (α 97 mm²/s) with Δt 0.25 s unless the time step is free, and no walls unless the walls are free. The challenge result reads MET or NOT MET, the score is 100 when met and 0 otherwise, and a goal and a feedback line say what is asked and what to try next.
- Predict the snapshot. A 300 °C spot heats an insulated plate. Predict the first snapshot (1 to 10) in which the probe reaches 30 °C, or Not within the run. Until you predict, the snapshots after the first, the step series after step 0 and the end results stay hidden; your prediction scores when it names the first snapshot whose step has reached the target, or Not within the run when none has.
- The largest stable step. Choose a time step whose stability number is at least 98% of the limit and not above it.
- Distance and delay. Place a 200 °C spot so the probe at the centre first reaches 25 °C between step 31 and step 60.
- Keep the heat in. With a 200 °C spot and the edge temperature at 0 °C, choose the four edges so the plate's average temperature changes by no more than 0.01 °C.
- Shield the probe. Paint at most 12 wall cells so the probe never rises above 21 °C while a 300 °C spot spreads.
Validation and status logic
The status reads the first message in the list under Errors and warnings that applies: the NOT VALID input
checks first, then the CHECK items, then OK. The input checks read the values you entered; the CHECK items
read the values used. OK means the inputs are valid, the plate has at least one non-wall cell, the probe is
not on a wall and the stability number is at or below 0.25. A CHECK still returns every result it can; it
marks one that deserves a second look. CHECK items also apply inside a challenge.
Assumptions and limitations
- A thin square plate of 13 × 13 cells of 10 mm, with uniform properties and the same heat capacity in every cell; conduction only, no heat source after the start, and no convection or radiation from the faces.
- Held edges sit at one temperature, on the edge cell centres, from the start. Insulated edges and walls pass no heat.
- Exactly 60 explicit steps of the chosen length. The scheme is first order in time and second order in space, so its results differ from the continuous heat equation, most for sharp starts and early times.
- Stability is guaranteed for a stability number up to 0.25. An unstable run multiplies rounding differences as well as the checkerboard, so its late values near zero can differ in their last digits between calculation engines.
- Only 11 of the 61 states are shown as heat maps; the step series gives the probe, the average and the highest temperature at every step. No state is drawn between snapshots.
- The heat ledger holds to rounding, not exactly, in floating point.
- A value within about 1×10⁻⁹ of a threshold, such as a stability number a hair above 0.25, a tie for the hottest cell or a probe temperature equal to the target, may round either way. A stability number of exactly 0.25 is stable.
Restrictions and non-computing states
Every scalar input is required; a blank or out-of-range value reads NOT VALID. The wall grid and the spot table may be left blank; a spot row that is only partly filled reads NOT VALID.
Under NOT VALID every result and every grid cell is blank. The version texts and the challenge result still show: a selected challenge reads NOT MET with a score of 0 and shows its goal and hint.
When every cell is a wall, the plate results, the probe results and the colour scale are blank, while the stability results and the counts still show. When the probe cell is a wall, the probe results are blank.
Errors and warnings
The status messages, in the order they are checked:
NOT VALID: choose a starting pattern from the listNOT VALID: each edge must be Fixed temperature or InsulatedNOT VALID: the edge temperature and the starting temperature must be from -100 to 1000 degrees CNOT VALID: the diffusivity must be from 0.1 to 200 mm2/s and the time step from 0.001 to 1000 sNOT VALID: spot <k> needs a whole-number row and column from 1 to 13, a temperature from -100 to 1000 degrees C and a whole-number radius from 0 to 6 cells, or leave the row blank: k is the lowest spot row that is partly filled or out of range.NOT VALID: every wall cell must be blank, 0 or 1NOT VALID: the probe row and column must be whole numbers from 1 to 13, and the probe target from -100 to 1000 degrees CNOT VALID: the challenge number must be a whole number from 0 to 5, and the snapshot prediction one of the listed choicesCHECK: every cell is a wall, so there is no plate left to heat; clear some wall cellsCHECK: the probe cell is a wall, so it has no temperature; the probe results are blankCHECK: the time step is above the stability limit (stability number above 0.25), so errors grow into a checkerboard, and some temperatures passed 1,000,000 degrees C; they are shown at that limit. Shorten the time step: the run is unstable and some temperature passed the display limit.CHECK: the time step is above the stability limit (stability number above 0.25), so the update can overshoot and errors can grow into a checkerboard instead of smoothing out; shorten the time step: the run is unstable, and every temperature stayed within the display limit.OK: the inputs are valid, the plate has at least one non-wall cell, the probe is not on a wall and the stability number is at or below 0.25.
References
This laboratory is an educational model of heat conduction in a thin square plate divided into equal square cells. The explicit forward-time, centred-space finite-difference scheme (FTCS), written in flux form, advances every cell's temperature over fixed time steps, with edges held at a set temperature or insulated and wall cells that pass no heat. The stability limit follows from the discrete maximum principle; a heat ledger checks that heat enters or leaves only through the held edges; and the decay of the lowest sine mode is compared with its exact discrete and continuous closed forms.
Sources and further reading
- Conduction of heat and Fourier's law, at an introductory level: S. J. Ling, J. Sanny and W. Moebs, University Physics Volume 2, OpenStax, 2016, section 1.6, Mechanisms of Heat Transfer. OpenStax
- Transient conduction, thermal diffusivity, and the explicit finite-difference method with its stability criterion: T. L. Bergman, A. S. Lavine, F. P. Incropera and D. P. DeWitt, Fundamentals of Heat and Mass Transfer, 7th edition, John Wiley & Sons, 2011, chapter 5, Transient Conduction.
- Finite-difference methods for parabolic partial differential equations such as the heat equation: R. L. Burden, J. D. Faires and A. M. Burden, Numerical Analysis, 10th edition, Cengage Learning, 2016, chapter 12, Numerical Solutions to Partial Differential Equations.
- Explicit schemes for parabolic equations, their stability and the maximum principle: K. W. Morton and D. F. Mayers, Numerical Solution of Partial Differential Equations: An Introduction, 2nd edition, Cambridge University Press, 2005.
- The spreading of heat or matter from a source, and solutions of the diffusion equation by series: J. Crank, The Mathematics of Diffusion, 2nd edition, Oxford University Press, 1975.
No table or text from any of these publications is reproduced, and none of their authors or publishers has reviewed or endorses this laboratory.
This laboratory is for learning. Its results hold only within its stated ranges; it is not a thermal design, safety or materials tool.
Found a problem, or have an idea?
Tell us if a result looks wrong, a label is unclear, or something is missing. We read every message.