Thermal Equilibrium Simulator — Theory
This tool models insulated heat exchange using only the classic heat-transfer formulas
\(Q=mc\Delta T\) and \(Q=mL\),
including automatic detection of phase changes (possibly partial) until thermal equilibrium is reached.
1. Zeroth law and equilibrium
In an insulated system with two bodies exchanging heat, thermal equilibrium occurs when both reach the same final temperature \(T_f\).
If there is no heat loss to the environment, conservation of energy gives:
Convention: \(Q>0\) means the body absorbs heat; \(Q<0\) means it releases heat.
2. Sensible heat
When the material stays in the same phase, heating/cooling is computed by:
The tool uses the appropriate \(c\) for the current phase (solid/liquid/gas) when phase data is enabled.
3. Phase change (latent heat)
During melting/freezing or boiling/condensation, temperature stays constant at the phase point.
The heat exchanged is:
If the phase change is only partial, the tool uses a fraction \(0\le \alpha \le 1\):
This is exactly what happens when equilibrium is reached at the melting/freezing temperature (e.g., \(0^\circ\)C for water):
extra heat goes into melting (or comes from freezing) without changing temperature.
4. The stage method (what the calculator does)
To compute \(Q_i(T)\) for a body going from \(T_i\) to some candidate \(T\), the tool applies the same logic you described:
-
If the body must move toward a phase point (e.g., ice at \(-20^\circ\)C warming to \(0^\circ\)C), it uses \(Q=mc\Delta T\).
-
If it crosses a phase point, it applies \(Q=mL\) at constant temperature (possibly partial).
-
Then it continues in the new phase using \(Q=mc\Delta T\) until reaching \(T\).
The equilibrium temperature \(T_f\) is found by enforcing \(Q_1(T_f)+Q_2(T_f)=0\), including the possibility that equilibrium occurs
exactly at a phase point with a partial phase change.
5. The two classic outcomes for hot water + ice
Case A — hot water dominates (ice melts, final \(T_f>0\))
Ice at \(T_i<0\) can undergo three stages:
Hot water only cools down:
Case B — ice dominates (water may freeze, final \(T_f\le 0\))
Hot water cools to \(0^\circ\)C, then can freeze partially/completely at \(0^\circ\)C, then the formed ice can cool below \(0^\circ\)C:
The calculator decides automatically whether \(\alpha\) is \(0\), partial \(0<\alpha<1\), or \(1\), based on the energy balance.
6. Unknown mass mode
If one mass is unknown but a target equilibrium temperature \(T_f\) is given, the tool computes the heat per kg required for each body
(including the same stage method and phase changes), then solves:
For example, if \(m_1\) is unknown:
The solution is physically valid only if the resulting mass is positive.
7. Notes and limitations
- Constants are typical values and depend on pressure/purity; boiling behavior especially can differ.
- The model assumes no heat loss to the environment and no mechanical work.
- Temperatures below absolute zero (\(-273.15^\circ\)C) are rejected.
- “Olive oil” phase data is approximate and highly composition-dependent (used for qualitative exploration).