Fundamentals / Mechanical engineering / Fluid mechanics / Notebooks

Watch a wetting front approach the capillary height

Dip two clean glass tubes of different inner radii into the same wetting liquid. A microscope following only the first few millimetres of rise can give a different impression of which tube fills more readily than a photograph taken at equilibrium. Start with the force on one meniscus, derive a transient relation including gravity, and learn which measurements can distinguish a change of viscosity from a change of surface condition.

Interactive calculation · Capillary rise

Change the physical and numerical inputs of the notebook model. Compare the updated curves and balance checks with the recorded notebook figures. Each plot uses the same equations and assumptions documented in that notebook; its readout names any analytical or reduced-model reference.

Download this example’s editable notebook

Interactive calculation · when gravity invalidates the early rise law

Select a target height and compare the exact implicit rise time with the early square-root approximation. The radius and viscosity affect dimensional times even though the dimensionless correction collapses onto one universal curve.

Download the editable notebook and compare both observables

Save notebook (.ipynb)

Python runs on this device. The first run loads the scientific libraries.

The optional OneSimulation calculation uses the local OneSimulation installation. Save this notebook to run that comparison in Jupyter.

Guess whether a wider vertical tube fills faster during the first few millimetres and whether it eventually rises higher. Edit the first cell, then compare the exact viscous trajectory against the early-time square-root law. The assumed tube is slender, the contact angle constant and the reservoir large.

Recover time from the meniscus-force balance

Use the fraction of equilibrium height as the independent coordinate. The formula for time is monotone and avoids starting an ODE solver at the formal infinite initial speed of this viscous approximation. The series at very small fractions avoids subtracting nearly equal numbers.

Reconstruct height as a function of laboratory time

When time is given, monotone bisection finds the height fraction. Each iteration halves the remaining interval independently for every entry in the requested time vector.

Infer an unknown and challenge the model

Choose a radius, record the time to 50% height, and hide the viscosity. Recover it from that single time using the known static head. A contaminated surface may change the contact angle. Decide which second observation would let you separate a change of viscosity from a change of capillary pressure.

Set the camera clock and invert the time law

The film gives elapsed time and the theory gives time as a function of height. Invert that map for an entire list of frames using OneSimulation's vectorised bracketed inverse when it is installed. The browser uses the previously derived bisection. Compare the recovered heights to the dimensional marks.