How it Works
This simulation models a 2D population of bent water-like molecules undergoing Brownian-motion-style translation and rotation. Each molecule is drawn with a red oxygen atom and two white hydrogens at the correct ~104.5° H-O-H angle, connected by solid covalent O-H bonds. When a hydrogen atom on one molecule comes close to and roughly aligns with an oxygen on a neighboring molecule — the same near-linear O-H···O geometry real hydrogen bonds require — a transient hydrogen bond can form, drawn as a thin dashed line.
Each frame, candidate H···O pairs within the cutoff distance and angle tolerance form bonds with a small probability, while existing bonds break with a small probability that grows with temperature. This gives every bond a fluctuating lifetime, exactly like the picosecond-scale hydrogen bonds in real liquid water, while the population as a whole maintains a roughly tetrahedral local coordination of 2-4 hydrogen bonds per molecule on average.
Formation: P(form) per tick, gated by geometry and strength slider
Breaking: P(break) per tick, increases with temperature T
Max donors per molecule: 2 (H atoms) · Max acceptors per molecule: 2 (O lone pairs)
Frequently Asked Questions
What is a hydrogen bond?
A hydrogen bond is an electrostatic and partly covalent attraction between a hydrogen atom covalently bonded to an electronegative atom (like O or N) and a nearby electronegative atom's lone pair. In water it forms between an O-H hydrogen on one molecule and an oxygen lone pair on a neighbor. It is stronger than typical van der Waals attraction but much weaker than a covalent bond, roughly 5-30 kJ/mol versus several hundred kJ/mol for a covalent O-H bond.
Why do water molecules have a bent shape of about 104.5°?
Oxygen has four electron domains around it: two bonding pairs shared with hydrogen atoms and two lone pairs. VSEPR repulsion between all four domains pushes them toward a tetrahedral arrangement, but because lone pairs repel more strongly than bonding pairs, the H-O-H bond angle compresses from the ideal 109.5° to about 104.5°.
How many hydrogen bonds can one water molecule form?
Up to four. Each water molecule has two O-H hydrogens that can each donate one hydrogen bond, and two oxygen lone pairs that can each accept one hydrogen bond. This four-fold, roughly tetrahedral coordination is why liquid water and especially ice form extended three-dimensional networks.
Why is the hydrogen-bond network described as dynamic or ephemeral?
Unlike the fixed, long-lived bonds of a solid ionic or covalent crystal, individual hydrogen bonds in liquid water continuously break and reform due to thermal motion, with an average lifetime on the order of picoseconds. At any instant most molecules are hydrogen-bonded to several neighbors, but the identity of those neighbors keeps changing, so the network as a whole is constantly reorganizing rather than static.
How does the hydrogen-bond network explain water's unusually high boiling point?
Water (18 g/mol) boils at 100°C while the similarly sized molecule H2S (34 g/mol) boils at -60°C. Because water molecules must break an extensive network of hydrogen bonds to escape into the gas phase, far more thermal energy is required than for molecules held together only by weaker van der Waals forces.
Why does the hydrogen-bond network give water high heat capacity and surface tension?
Much of the heat added to water goes into stretching, bending, and breaking hydrogen bonds rather than simply speeding up molecules, which raises its heat capacity. At the surface, molecules that lack neighbors on one side form extra in-plane hydrogen bonds, pulling the surface taut and producing water's unusually high surface tension.
Why does ice float on liquid water?
In ice, every molecule locks into four hydrogen bonds in an open, ordered tetrahedral lattice that leaves large empty channels between molecules. Liquid water's disordered network is on average more densely packed. Because ice occupies more volume for the same mass, it is less dense than liquid water and floats — an anomaly compared to most substances, which contract on freezing.
Why does hotter water have fewer and shorter-lived hydrogen bonds?
Hydrogen bonds are weak compared to thermal kinetic energy at higher temperatures. As temperature rises, molecules translate and rotate faster, disrupting the precise distance and angle geometry a hydrogen bond needs to persist faster than new bonds can form, so the average number of bonds per molecule and their average lifetime both drop. At very low simulated temperature, the network in this 2D liquid-state sim approaches a far more persistent, ice-like arrangement, even though the sim itself doesn't need to fully crystallize.
What role does hydrogen bonding play in biology?
Hydrogen bonds hold the two strands of the DNA double helix together through base pairing (A-T and G-C) and stabilize protein secondary structures like alpha helices and beta sheets. Water's own hydrogen-bond network is central to solvation, protein folding, and biochemistry generally, since it mediates how molecules dissolve, fold, and interact in living systems.