Microjet Research
For my undergraduate capstone project, I am part of a team of four students engineering a sample delivery system for the Macromolecular Femtosecond Crystallography (MFX) instrument at SLAC National Accelerator Laboratory. We've decided to focus on studying how acoustic forcing in air can enhance microjet breakup and refine droplet stream characteristics.
What is a microjet?
Microjets are very thin streams of liquid, typically a few tens of microns in diameter. By perturbing the nozzle with an actuator, we can control how the jet breaks up into droplets, and trigger breakup at fairly predictable locations along the length of the jet.
What is acoustic forcing?
Acoustic forcing, in this context, involves using a transducer to generate ultrasonic sound waves that perturb the microjet and resultant droplets. These sound waves apply restoring forces at known locations, which helps control the breakup of the microjet and refine the droplet velocity. This is similar to the styrofoam bead levitators you might have seen before.
Simulation
These small droplet streams are, as one might expect, governened by the navier-stokes equations. We could solve these equations with traditional CFD software, but this is annoying and time consuming.
Thankfully, there exists a 1D "lubrication approximation" that has been empirically verified against droplet streams of similar sizes to those required for MFX.
The partial differential equations of this model are:
where h(z, t) is the jet radius, v(z, t) is the axial velocity, C is the interface curvature, and a prime is a derivative along the jet axis z. The first equation is momentum (inertia balanced against surface tension and viscosity), and the last is conservation of mass.
The jet starts as a hemispherical cap on the nozzle, and the nozzle radius is perturbed very slightly at the fastest growing Rayleigh wavelength to kick off breakup. The nozzle velocity is modulated with it to keep the flow rate constant:
A drop pinches off when the thinnest neck of the jet drops below 100 nm, and two objects coalesce when they come within 0.005 h0 of each other.
And the dimensionless parameters are:
The Weber number (We) compares inertia to surface tension. The gas Weber number (Weg) does the same for the surrounding air. The Ohnesorge number (Oh) compares viscosity to inertia and surface tension, and the capillary time (τc) is the natural timescale of the breakup.
I opted to implement the solver in C++ using the incredibly fast Heyoka ODE library, which, as far as I can tell, is the best in class for solving systems of ODEs with event detection. This was a happy accident, considering that I chose it solely because C++ is the language I am most familiar with, and it was the first ODE solver that I came across.
I initially wrote a really elegant solver that didn't include non-dimensionalization, which amounted to less than 100 lines of C++, but barely worked, and would quickly diverge for most inputs. Lesson learned I guess, non-dimensionalization is important.
The current solver measures lengths in h0, time in τc, and velocity in h0/τc, and works with the squared radius a = h2, which keeps the equations well behaved at the rounded tip of the jet where h → 0. Written so that mass and momentum are conserved exactly, the equations become:
where G is the surface tension pulling on a cross-section of the jet (it satisfies G′ = −h2C′). The nozzle becomes h = 1 + δ sin(ωt) and v = U / h2, with U = √We and ω = U / √2. The jet is split into 1000 cells that stretch evenly from the nozzle to the tip, and the tip moves with the liquid, so the jet length obeys dL/dt = vtip.
Preliminary results from the solver have been fairly promising thus far. I even got bold enough to add in the acoustic forcing terms, and while I'm only about 50/50 on whether the acoustic forcing model is physically accurate, the underlying simulation pretty convincingly reproduces the experimental results described in literature.
The acoustic model is a standing wave in the air along the jet axis, with pressure nodes half an acoustic wavelength apart that slide along with the drops. The acoustic period (about 1 µs) is short compared to the capillary time (about 10 µs), so only the time-averaged radiation forces are kept:
where E is the acoustic energy density, pA is the peak acoustic pressure, ρg and cg are the density and speed of sound of the air, Δ is the spacing between pressure nodes, up is how fast the nodes move, and ξ is the distance ahead of a node.
On the jet, the radiation pressure acts across the slender cross-section just like the capillary pressure does, so it should add a body acceleration to the momentum equation:
After pinch-off, each drop feels the Gor'kov force on a small sphere, with a correction that averages the force over the drop's volume (Gor'kov assumes the drop is much smaller than the wavelength, which these drops aren't):
where R is the drop radius, V is its volume, Φ is the acoustic contrast factor, and j1 is the first-order spherical Bessel function (trigonometry). Both accelerations point toward the nearest pressure node, so the nodes act as potential wells that liquid gathers in and drops get trapped in. Air drag isn't modeled, so a trapped drop just oscillates about its node forever.
While I didn't use agentic AI while building my solver, I figured that I should probably get more experience working with Skynet anyway, and had Claude build a rendering tool for the simulation. I drew it a picture on some paper, provided it with the solver's output data, and let it rip. Of course, the rendering tool is written in Python because LLMs love Python. There's an example figure below. Pretty neat, if I do say so myself.