← Back to the lab

Simulation

Medicine supply digital twin (7/14): how long a fridge lasts without power

Newton's law of cooling applied to the cold chain. A single time constant explains why a household fridge goes from 5 to 8 °C in 25 minutes and an ice-lined one in three hours, and why the household fridge can't cope with a 33 °C room.

By ·

Insulins, vaccines, oxytocin and several biologics must stay between 2 and 8 °C from the manufacturer to the moment they’re administered. That chain of equipment, boxes and vehicles is the cold chain. The twin simulates the whole of it for a month: the central warehouse’s cold room, the regional warehouses, each unit’s fridge and the trips between them, with power cuts, doors opening and compressors failing.

It all rests on a one-line equation.

Newton’s law of cooling

A fridge that’s switched off doesn’t heat up all at once: it approaches the room temperature, quickly at first and then more and more slowly. The rate of change is proportional to the difference with the room:

dTdt=Tr−Tτ\frac{dT}{dt} = \frac{T_r - T}{\tau}

τ\tau is the equipment’s time constant, in hours. It sums up insulation and thermal mass in one number: equipment with thick walls and a lot of cold mass has a large τ\tau and changes slowly.

The solution

It’s a first-order linear equation. With u=T−Tru = T - T_r it becomes du/dt=−u/τdu/dt = -u/\tau, whose solution is an exponential:

T(t)=Tr+(T0−Tr) e−t/τT(t) = T_r + (T_0 - T_r)\,e^{-t/\tau}

Every interval τ\tau closes 63 % (1−e−11 - e^{-1}) of the remaining gap to room temperature.

To find how long it takes to reach 8 °C, solve for tt:

t8=τ ln⁡Tr−T0Tr−8t_8 = \tau\,\ln\frac{T_r - T_0}{T_r - 8}

The time depends on the room, not just the equipment. At 35 °C the logarithm is ln⁡(30/27)=0.105\ln(30/27) = 0.105 and the household fridge reaches 8 °C in 19 minutes; at 22 °C, in 35.

The thermostat and its margin

With power on, the compressor switches on when the temperature goes above Ts+δT_s + \delta and off when it drops below Ts−δT_s - \delta. While running, it removes kk degrees per hour. With it on, the equation is

dTdt=Tr−Tτ−k\frac{dT}{dt} = \frac{T_r - T}{\tau} - k

Try it: pick the equipment, lengthen the power cut and raise the room temperature. The cut starts at 20:00 on day one, after the unit has closed.

The cold chain in 3D, from the CND to the unit, with refrigerators as they are today (70 % domestic). (Interface in Spanish.) · Open full screen · Open with ice-lined refrigerators

What the model adds in the twin

The aid shows one piece of equipment for two days. The full twin runs 1,066 pieces of equipment for a month, in 5-minute steps, and adds what makes the cold chain fail in practice:

  • Power cuts with frequency by region and season; large units have a backup generator, small ones don’t.
  • Doors: each opening bumps the temperature up, depending on the equipment.
  • Cold spots: in household fridges, the shelf next to the evaporator is colder than the sensor, and in some the thermostat is off and they freeze at night. For a vaccine that’s ruined by freezing, that’s as serious as heat.
  • Trips in refrigerated trailers and cool boxes, each with its own cold life.

Every piece of equipment uses the same equation with its own τ\tau, its own kk and its own thermostat.

What comes next

Going out of range doesn’t always ruin the product: it depends on how much heat it absorbed and how long it takes someone to notice. The next post measures accumulated heat with the Q10Q_{10} factor and compares three ways of monitoring temperature.