What does Hard Water, Chelation and Lather conclude, in numbers, about “From Lost Shares to Foam Height: Precipitated Particles and Foam Half-Life”?
Answer: The first table shows the thin state at 5 mmol/L, which corresponds to the first seconds of rinsing. In soft water all four classes give an initial height of 128.6 mm, because their surfactant concentration is the same. In hard water the four curves separate quickly. The fatty-acid soap falls to 97.3 already in W1, to 39.0 in W3 and to 15.4 in W4, and reaches zero in W6, a ratio of 0.000. The alkyl sulfate is unaffected in W1, falls to 59.0 in W3, 24.4 in W4 and 9.3 in W6, a ratio of 0.073. The acyl glutamate still gives 116.2 in W3, then 80.7 in W4 and 25.5 in W6, a ratio of 0.199. The ether sulfate gives 128.6 in every water, a ratio of 1.000.
Scope of the numbers: Chapter 1 covers units of hardness, six illustrative waters and the activity of calcium. Parameters are illustrative and all calculations are generated by the book's programs.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 0.000, 0.073, 0.199, 1.000, 116.2, 128.6
| initial foam height mm at S | 5 mmol/L; soft = 0 mmol/L |
| class soft | 0.4 1.6 2.5 5.0 W6/soft |
| fatty acid soap | 128.6 97.3 39.0 15.4 0.0 0.000 |
| alkyl sulfate | 128.6 128.6 59.0 24.4 9.3 0.073 |
| acyl glutamate | 128.6 128.6 116.2 80.7 25.5 0.199 |
| ether sulfate | 128.6 128.6 128.6 128.6 128.6 1.000 |
| same water, richer lather S | 20 mmol/L, alkyl sulfate |
| H | 0.4 lost 0.000 height 163.6 mm |
| H | 2.5 lost 0.000 height 163.6 mm |
| H | 5.0 lost 0.212 height 104.4 mm |
Show the full program
# Chapter 3. p31: initial foam height as calcium removes surfactant.
# Model: initial height H0 = Hmax * a / (a + K) * exp(-beta * lost),
# where a is the surfactant left in solution, K the half-saturation
# level and the exponential term an antifoam penalty for precipitated
# particles. Lost shares come from the p22/p23 equilibrium (code copied
# so that this file runs alone). Hmax = 180 mm (a Ross-Miles-like scale),
# K = 2 mmol/L and beta = 2.0 are illustrative, not measured. The
# chapter's hypothesis compares height ratios with 0.9 (lather) and
# 0.5 (rinse).
import math
CLASSES = (
("fatty acid soap", 2, -15.0, 1.0e-3, 100.0),
("alkyl sulfate", 2, -9.0, 2.0e-3, 400.0),
("acyl glutamate", 1, -5.9, 2.0e-3, 200.0),
("ether sulfate", 2, -7.5, 0.8e-3, 100.0),
)
HMAX, KHALF, BETA = 180.0, 2.0e-3, 2.0
def excess(p, ca, s, n, logk, m, kb):
left = s - n * p
if left <= 0.0:
return -1.0
mono, mic = (m, left - m) if left > m else (left, 0.0)
return (ca - p) / (1.0 + kb * mic) * mono ** n - 10 ** logk
def lost_share(ca, s, n, logk, m, kb):
if excess(0.0, ca, s, n, logk, m, kb) <= 0.0:
return 0.0
lo, hi = 0.0, min(ca, s / n)
for _ in range(200):
mid = (lo + hi) / 2.0
if excess(mid, ca, s, n, logk, m, kb) > 0.0:
lo = mid
else:
hi = mid
return n * lo / s
def height(s, lost):
a = s * (1.0 - lost)
return HMAX * a / (a + KHALF) * math.exp(-BETA * lost)
if __name__ == "__main__":
hard = (0.4, 1.6, 2.5, 5.0)
s = 0.005
print("initial foam height mm at S = 5 mmol/L; soft = 0 mmol/L")
print(" class soft" + "".join(
"{:>7.1f}".format(h) for h in hard) + " W6/soft")
for name, n, logk, m, kb in CLASSES:
h0 = height(s, 0.0)
row = [height(s, lost_share(0.75 * h / 1000, s, n, logk, m, kb))
for h in hard]
print(" {:<18} {:>5.1f}".format(name, h0) + "".join(
"{:>7.1f}".format(x) for x in row) +
" {:>7.3f}".format(row[-1] / h0))
print("same water, richer lather S = 20 mmol/L, alkyl sulfate")
for h in (0.4, 2.5, 5.0):
ls = lost_share(0.75 * h / 1000, 0.02, 2, -9.0, 2.0e-3, 400.0)
print(" H = {:.1f} lost {:.3f} height {:.1f} mm".format(
h, ls, height(0.02, ls)))Single source and citation
Fan, Y. (2026). Water-Hardness Chemistry in Personal-Care Formulations, Calcium-Magnesium Chelation and Surfactant Foam-Deposition Enhancement (Version 1.0.0), Chapter 3: From Lost Shares to Foam Height: Precipitated Particles and Foam Half-Life. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-389 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026389,
author = {Fan, Yafu},
title = {Water-Hardness Chemistry in Personal-Care Formulations, Calcium-Magnesium Chelation and Surfactant Foam-Deposition Enhancement},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · Four Units of Hardness and Six Illustrative Waters: the Effective Concentration of Calcium in Shower Water
- Chapter 2 · Critical Micelle Concentration, Solubility Products and the Loss Curves of Five Surfactant Classes
- Chapter 4 · The Stoichiometry of Chelation and the Ceiling on Coverage: How Much Water Can a Formula's Chelant Soften?
- Chapter 5 · Conditional Stability Constants, the Contest between Calcium and Magnesium, and Dilution by Rinsing: Why a Chelant Neither Grips Hard nor Keeps Up
- Chapter 6 · The Deposition of Cationic Polymers: Charge Screening, Competition for Sites and the Coacervation Window
- Chapter 7 · Classical Sources: Lu Yu on Waters, the Guanzi on Water, Hippocrates on Hard Water and Clark's Soap Test
- Chapter 8 · The Empirical Loop: a Weekly Water-Fit Ledger, Field Tools and Checker Specifications, and Pre-Registered Tests