Why did my simple model blow up?
Kay and Jo run a model that should decay and watch it grow instead. The strip is below, and the steps to reproduce it in Konjugate are under it.
Transcript
Four panels. Kay, a round teal character, and Jo, a dry blue one, are joined by a dotted line. Step 1, the model. A card reads: the value decays at a rate of 2.5, with a step of 1 second, starting at 10. Kay says: It is just decay. It should shrink. Jo says: At a one second step? Check the product. Step 2, before the run. A card reads: stability check, amplification factor 1.5, which is above 1. Kay says: A warning, and I have not run it. Jo says: 1.5 per step. It will grow. Step 3, the run. A chart of the value swings between positive and negative and grows to 576.650 by 10 seconds. Kay says: 577? From 10? Jo says: The sign flips and it grows 1.5×. Step 4, the fix. A card reads: the same run with more substeps ends at 5.0 times ten to the power of minus 11. Kay asks: So what fixes it? Jo says: A smaller step. 32 substeps, not 2.
Image for sharing
What just happened
A node decays: its value falls at a rate times its value, with a rate of 2.5. Konjugate's solver is Explicit Euler with a fixed step, and that method is only stable if the rate times the step is no more than 2. Here it is 2.5. Each step multiplies the value by 1.5 and flips its sign, so 10 becomes −15, then 22.5, and by 10 seconds the value is 576.650. The model never contradicted itself. It simply used a step that was too big for its own dynamics.
Konjugate says so before the run. The validation panel shows an amplification factor of 1.5 above 1, names the parameter that drives it and suggests at least 2 substeps. Two substeps stops the run from diverging, but the convergence check asks for more: it re-runs the node at doubled substep counts and settles on 32. With that, the same 10 seconds ends at 5.0 × 10⁻¹¹, close to the true decay.
Reproduce it in Konjugate
- Add a node with one state, Value, starting at 10. Add a source term to it with one parameter, Rate (2.5), and the equation
-rate \cdot value. - Open the run settings and set the global time step and the output interval to 1 second.
- Open the validation panel. The stability warning is already there.

- Run for 10 seconds. The value ends at 576.650.

- Open the Stability findings and press Check convergence. It reports 32 substeps.


- Press Apply: 32 substeps and run again.

What this does and does not say
The model is invented and tiny, and the figures were read from the runs described above on 2026-10-16. The point is not the number 576.650. It is that a model can be correct and still give nonsense when its step is too big for its own speed, and that Konjugate checks for this before and during a run. A stable run is not automatically an accurate one: the convergence check is how you tell the two apart.
Go deeper
- "Numerical stability diagnostics" covers every finding, the three kinds of check and what each costs.
- "Running a simulation" covers the run settings.
Follow Konjugate on LinkedIn for updates, or subscribe via RSS.
Comments
Post a Comment