## Introduction

Al-Jazari himself wrote the introduction to this chapter, and It makes sense to bring his opening remarks:

“The king, Salih. Abu al-Fath. Mahmud, may God assist Islam by prolonging his life, proposed that I should make for him an instrument having no chains, balances or balls, not liable to rapid change or decay, from which could be told the passage of the hours and the divisions of the hours without inconvenience. It should be of handsome design and suitable for journeys or for settled residence. I considered the matter and made, according to his suggestion, what I shall now describe. “

What follows is the water clock of the scribe (in Arabic ورّاق). The clock design required two computational parts:

- The clock face or dial supports solar
- The slope of the beaker radius requires some understanding of fluid mechanics.

This post is relatively heavy in mathematics, and the “blue” parts (the technical explanation) are larger than usual. I Hope you can prevail them well.

## How does it work?

The technical explanation, as always, will be colored in blue, so anyone who is not interested in pulleys or balancing weight can skip those bits. The drawing below is the Beaker water clock mechanism with my captions:

This is a copper beaker divided into two parts, upper beaker and a base are connected by an onyx with a very fine hole. The beaker is filled with water at the beginning of the day. The float is raised to its maximum height, and the weight is hanging down as far as possible. During the day the water would discharge slowly through the onyx to the base. As a result, the float would sink, and the weight would rise, causing the large pulley to rotates with the scribe and his pen. The water is sufficient for 14 hours and 30 minutes for the longest day of the year. At sunset, the water is returned to the beaker from the base, and the process repeats itself.

You can watch this short YouTube video from Technology & Science In Islam” showing the beaker clock :

iframe width=”854″ height=”480″ src=”https://www.youtube.com/embed/LNpDtxpBWes” frameborder=”0″ allow=”autoplay; encrypted-media” allowfullscreen></iframe>

Two engineering issues need further discussion:

- The clock face and the variable length of the day.
- How did al-Jazari find a practical solution to Bernoulli’s equation which he did not know or understood?

## The clock face and the variable length of the day

In summer the days are long and the nights are short and vice versa in the winter. We’re moving the clock one hour forward at the beginning of the summer (“DST” – Daylight Saving Time), and at the fall we set the clock back. The Idea of the “DST” is attributed to Benjamin Franklin, and the rationale is energy saving, but it was suggested that daylight saving time improves quality of sleep, as we sleep longer during the darkness that allows deeper sleep and we know that a lack of sunlight can cause Seasonal Affective Disorder. Al-Jazari also dealt with the variable length of the day. Below is a screenshot from the YouTube clip. I added some captions.

The clock face is divided into eighteen bands, and each band is divided into twelve equal solar hours. The outer band covers 360

^{0}; it is designed for ten days from June 21 (the summer solstice). The solar hour will be 30^{0}, but in Diyarbakır, there are about 14.5 hours of daytime so that the solar hour will be longer by~ 12 minutes in comparison to the constant hour. The eighteenth band(innermost) is intended for the last ten days of December. Diyarbakir has only 9.5 hours light, and therefore the band was shortened:9.5/14.5* 360 = 236

^{0}Every hour will be slightly less than 20

^{0}so the hour is only 46 minutes!The concept of solar hours seems very strange in the 21st century and complicates everything. Just to think that programmers will be forced to change program timings with the calendar.

Our notion of time rests on the celestial bodies movement. The years were counted based on the Sun or the Moon and the day, hour, minutes, and seconds were all derive from it. In fact, until 1967 the second was defined as 1/86,400 of a mean solar day. Only with the development of the

**Atomic clock**, the definition was detached from the Earth’s rotation cycle, and the second is defined to be exactly 9,192, 631,770 cycles of a Cesium atomic clock. As weird as it may sound, atomic clocks and their ridicules precision are part of our daily life, and we cannot use Waze, or any navigation software, without them. In the world of the 12^{th}-century solar hours made perfect sense and were more connected to nature and the movement of the celestial bodies.## Bernoulli’s equation and the “solution” of al-Jazari

A difficult problem in any water clock is that the water flow is not constant but depends on the water level in the tank. The following diagram illustrates the problem. For simplicity the beaker is cylindrical, and the onyx was inlarge for clarity:

It is clear that at the beginning of the day when the beaker is full of water the water flow will be much stronger in comparison to the water flow after ten hours when the water level in the tank has dropped. How can we calculate the water flow and what can be done?

The mathematical solution to the problem was given by** Daniel Bernoulli**, a Swiss mathematician of the 18th century and a winner of the French Academy Award ten times. The first, to my surprise, was for a clepsydra (water clock) to measure time at sea. (I’m looking for specs of the clock and any assistance would be welcomed.) The many awards were not always a source of happiness. In 1734 he won the Academy Award with his father, Johann Bernoulli, a mathematician in his own right. The father couldn’t bear the shame of being equivalent to his son and banned Daniel from his house and did not reconcile with him until his death. I doubt that Joseph Cedar (Israeli movie director) was aware of the Bernoulli’s story, but the similarity to the movie **“Footnote” **is striking. The most important work of Daniel Bernoulli is hydrodynamics released in 1738:

Despite extensive research (I found six different studies!) that indicates that students of Physics and Engineering have conceptual difficulties to understand Bernoulli’s equation, I will challenge my readers with the solution of the water clock problem.

Bernoulli equation states:

Where :

P is the pressure.

rho is the water density.

g is the gravitational acceleration~ 9.8 m/s^{2}

h is the water height above a reference plane.

v is the water velocity.

He/she who wants to go deeper can go** here **and there are four lessons which I recommend at **khan academy**. Our problem looks like this:

We can write the Bernoulli equation:

Where P_{1} is the pressure in the beaker, h_{1} is the height of the water in the beaker and v_{1} is the water flow velocity in the beaker. Respectively the pressure in the onyx is P_{2}, h_{2} is the water height in the onyx, and v_{2} is water flow velocity in the onyx. However, the beaker and the onyx are both open to the atmosphere. Thus P_{1} = P_{2} = 1 atm and can be removed. The water level in the beaker is h(t) and depends on time because when the water flows through the onyx to the base, h will be reduced. However, the onyx water height was determined as the reference plane and hence h_{2} = 0. Rearranging:

Since the onyx is very narrow in comparison with the beaker, we can assume that the flow in the onyx is much faster relative to the water velocity in the beaker and can be neglected for the calculation of the water velocity in the onyx:

If this looks somewhat familiar, it is because this is Torricelli law and I used to run some very nice experiments with my middle school students at Beit Hashmonai:

The amount of water through the onyx must be equal to the amount of water lost by the beaker:

Where A_{2} is the cross-section of the onyx and A_{1} is the cross-section of the beaker:

Where r_{2} is the radius of the onyx. However, A_{1} is a function of time since the radius of the beaker is not constant but gets narrower at the bottom:

The velocity v_{1} is the change in the beaker water height:

We combine the last five equations:

Rearrange and make sure that the rate is constant (This is the reason for the whole exercise!) or:

**For **dh**/**dt** to be constant, the radius of the beaker must be equal to the fourth root of the water height.**

These mathematical tools were not available to al-Jazari. There is no evidence in the “Book of Knowledge of Ingenious Mechanical Devices” to the extensive mathematical knowledge that was available in the Muslim world of the 12^{th} century. I suspect that the mathematical education of al-Jazari was rather limited. This is a different topic and I hope to write a separate post in the future.

However al-Jazari was very resourceful, he developed a practical technique that allowed him to overcome the lack of mathematical tools. While preparing the beaker, he filled it with water and observed the outflow of the water with a reliable clock. If the float sank to the second mark, then the beaker radius is correct else al-Jazari hammered the beaker to widen it or make it narrower. Then the water is emptied from the beaker. The process was repeated for each mark. It is a pity that we do not have the beaker al-Jazari hammered to compare it to the theoretical calculation. One must admire the practicality of al-Jazari solution.