Applied Tea Science
What happens when you pour boiling water into a tea cup? It steams a little. There is a possibility of thoughts on the meaning of life, universe and the ungodly hour of the morning. Some unfocused staring out the window might be involved. Eventually, the tea cools and you are free to enjoy a sip of the lukewarm beverage.
But what really happens? How does the tea in your cup cool down? We could start with convection, conduction and radiation. On the other hand, we are living in the year of the Internet enabled coaster and sensors on every step. It's not unusual to hear the sentiment today that scientific theories and good old-fashioned reasoning have nothing on big data and machine learning. So let's go with that for a moment and try to answer this question.
Enter my hastily thrown-together smart tea cup. No, it doesn't take selfies. It consists of a thermocouple sensor positioned to measure the temperature of the liquid approximately at the center of the volume. It is held in place by a RFC 2322-compliant wooden peg. A Python script takes periodic temperature read-outs using a computer-connected multimeter.
The cup, which I suspect was originally meant for Irish coffee, rests on a lid from a Nutella jar. Inside the lid is a Texas Instruments SensorTag. It measures the temperature of the bottom of the cup through an infra-red thermopile sensor and also takes readings of the temperature of its PCB. Data from the SensorTag is sent over Bluetooth to an Android phone, which forwards it over the wireless LAN to a MQTT broker. From there, a second Python script records the two temperature values to a file.
The Nutella lid rests on a kitchen scale, which will be relevant a bit later. For the sake of the argument, imagine a lab assistant taking regular notes of the weight read-outs.
I left the whole setup for an hour to settle. After the readings on all sensors stopped changing, I brought some water to a boil and poured it into the cup (no actual tea was involved). A couple of hours later, I got the following result:
This is after some light-weight preprocessing of raw data: I compensated for the offset of sensors, assuming that they were all at the same room temperature before the start of the experiment. A gap in the data nicely demonstrates the current state of the Internet of things - the SensorTag application stopped responding at some point and needed a restart.
At the first glance, this is a pretty typical progress of a relaxation process. Each sensor shows a sum of exponential decays. Three characteristic time constants are visible: the shortest one is defined by the heat transfer between the water and the cold cup, τwat-cup. The second one is of the heat transfer between the cup and SensorTag's PCB, τcup-sur. The longest one is of the heat transfer between the whole thing and the ambient environment, τamb. From the graph it's possible to roughly estimate these:
This makes sense: water and cup are in very good thermal contact and water can quickly heat up the cup. On the other hand, air surrounding the cup is a relatively good insulator and it takes a long time for the water to cool back down to the room temperature. The simplest thermal circuit model that could fit this behavior is the following:
This model allows us to express the time constants with parameters of the model, the thermal resistances and capacitances. Since the time constants differ in orders of magnitudes, the first approximation is quite simple:
While estimating the model parameters from these equations would make for a satisfying mental exercise, let's instead make use of the fact that computers are ridiculously fast these days. Numpy comes with a slew of non-linear multi-variate optimization algorithms. I chose the Powell's method to minimize the integral square error between a simulation of the model and measurements for the three time series. I won't go further into this process since this post is already getting long. Drop me an email and I can share the details.
However, before blindly running the optimization, it's worth noting that we can easily determine one of the parameters, hence eliminating one of the unknown variables and making the computer's job a bit easier. If we knew the amount of water in the cup, Cwat can be calculated from water's specific heat capacity. I told you the kitchen scale would come handy.
Given this input and a few minutes of increased fan noise, the computer arrived at the rest of the model parameters:
And here are the results of the simulation, super-imposed over the measurements from the previous graph:
The simulation matches the reality quite well. One interesting deviation is the flatness of the cup temperature curve in the first few minutes of the experiment. It is obvious that the sum-of-exponential-decays that is inherent in the model can't reproduce that. What is the physical origin of that is a bit puzzling. It is probably due to the fact that neither water nor the cup is a lumped element. Convection of water is an especially inviting excuse.
How realistic are parameter values? Knowing the mass of a dry cup (395 g), we can calculate the specific heat of the cup's material from Ccup. This gives 425 J/kgK which I would say is a bit on the low side for ceramics.
The value that sticks out most is, of course, the Rwat. It appears that the model optimization arrived at the fact that water cooled exclusively through the cup and basically no heat escaped into the ambient from the water itself. This is an interesting conclusion, but one that is also most definitely wrong.
While the surface of the cup is indeed larger than the surface of water exposed to the air, a hot body of water will cool itself through evaporation. This is an incredibly efficient process. Comparing the mass of water in the cup before and after the experiment showed that 23 g of water went missing. From water's heat of vaporization we can calculate how much heat got carried away by water vapor:
This is in fact around 45% of the total heat exchanged during the experiment. Since evaporation rate depends on the temperature and our model is time-invariant, this likely affected the other calculated parameters as well.
One final interesting exercise that this model allows is to calculate the magnitude of heat fluxes in the system. Particularly between water and cup and towards the ambient environment:
Compared to, say, your ordinary iPhone USB charger that maxes out at around 10 watts, these values may look large. During the experiment the cup exchanged enough heat for around 5 typical smart phone battery charges. However, the laws of thermodynamics are a harsh mistress. Due to low temperature differences it would be impossible to convert this heat into electrical work with any kind of practical efficiency.
What advances has this exercise brought to the existing body of knowledge about tea cups? One interesting discovery is that pouring hot water into a cold cup contributes to an immediate temperature drop of around 10 K, which makes it necessary to adjust the volumetric mixture ratio for green tea. This phenomenon was overlooked by the little known Indonesian tea research unit, which just highlights the need for independent verification of experimental results. Another result is the aforementioned fact that the temperature of a cup's bottom is not well correlated with the temperature of water during the first few minutes. This has practical implications, since it makes it hard to accurately reason about temperature of the cup's contents solely from a sensor in the (Internet enabled or otherwise) coaster.
A ti se ze pozna vpliv IJS na igrackanje s toy problemcki? Itak je Oktober cas piva...