MYSIMULATOR.UK · PHYSICS OBSERVATORIES
CAVITAS. Nonlinear Bubble Dynamics
LIVE NUMERICAL MODELDETECTING RENDERER
TRANSIENT RESPONSE

Pressure pulse

01 / 06
CHAMBER / SECTION 01APPARATUS SCHEMATIC · BUBBLE MAGNIFIED
● GAS–LIQUID INTERFACE
DRAG · ORBITSHIFT + DRAG · PANSCROLL · ZOOMPICK UP THE GOLD / CYAN PROBES
SIMULATION TIME 0.000 ms
04 / LIVE MEASUREMENT

Scientific traces — recorded, not animated

PLOT ARadial response
R(t) / R₀
HOVER TO INSPECT A NUMERICAL SAMPLE
PLOT BScientific observable
MEASURED FROM THE CURRENT NUMERICAL STATE
SURFACE LAPLACE PRESSURE—
BLAKE CRITICAL PRESSURE—
ENERGY AUDIT RESIDUAL—
PROBE RATIO p₁/p₂—
THE PHYSICS UNDER THE GLASS

When a tiny bubble becomes a nonlinear oscillator.

A complete six-investigation guide. Mathematical equations in the model correspond directly to the simulation engine.

01 — What you are observing

A gas-filled cavity in a liquid can expand, recoil and oscillate when the surrounding pressure changes. Its radius is not just a passive picture: inertia in the displaced water, surface tension, gas compression and viscous stress compete dynamically. CAVITAS models one isolated, spherical, initially stationary bubble. The 3D chamber is a magnified scientific cutaway; apparatus dimensions are illustrative and must not be interpreted as a scale model.

Start with the pressure-pulse experiment. The equilibrium bubble radius is R₀. After 20 µs the ambient pressure jumps. A pressure increase shrinks the bubble; a pressure decrease expands it. Both produce an inertial transient followed by viscous decay. Press Pause to inspect a state or Reset to start from mechanical equilibrium.

02 — Governing equation

The Rayleigh–Plesset equation implemented here is ρ[R·R̈ + (3/2)Ṙ²] = pg(R) − p∞(t) − 2σ/R − 4µṘ/R. The liquid density is ρ (kg/m³), viscosity µ (Pa·s), surface tension σ (N/m), radius R (m), and pressure p (Pa). A polytropic gas satisfies pg(R) = [p₀ + 2σ/R₀](R₀/R)3κ. The exponent κ controls gas stiffness; κ = 1.4 approximates adiabatic air. The initial gas pressure explicitly balances ambient pressure plus Laplace pressure 2σ/R₀.

Fourth-order Runge–Kutta advances radius and radial velocity in SI units. The integration step is at most 40 ns and no larger than one 250th of the fastest natural or drive period. Numerical time advancement is independent of the graphics frame rate.

03 — Pressure-pulse investigation

Select Pressure pulse and set Δp to +12 kPa. Reset and observe the first inward excursion. Reverse the step to −12 kPa and compare the sign of the displacement. Record both traces in the notebook. Hypothesis: the first displacement reverses when the forcing reverses, although the nonlinear amplitudes need not be exactly symmetric. Increase R₀ and observe how the characteristic oscillation frequency falls as bubble size increases.

04 — Ultrasonic resonance

In Resonance chamber, the far-field driving pressure is p∞(t)=p₀−A sin(2πft). Choose a small pressure amplitude, tune the drive frequency, and compare with the natural frequency instrument. The small-amplitude linearised frequency is f₀ = [ (3κpg0 − 2σ/R₀)/(ρR₀²) ]1/2/(2π). The second graph can show the analytical linear response R-amplitude/R₀ versus drive frequency. Click that graph to choose a frequency. The live bubble, however, always follows the nonlinear RK4 equation. Linear response predictions become unreliable for large relative oscillations and omit thermal or acoustic-radiation damping.

05 — Cavitation onset and the Blake limit

Choose Cavitation onset and gradually lower the externally applied pressure. Static equilibria satisfy p∞ = pg(R) − 2σ/R. The turning point of this pressure-radius curve is the Blake critical radius: Rc=[3κpg0R₀3κ/(2σ)]1/(3κ−1). The corresponding critical ambient pressure appears below the graphs. If the applied pressure falls below this value, the idealised stable equilibrium branch disappears. Dynamic growth then depends on ramp rate and inertia, so this static threshold is not the instant of an observed event. Negative absolute water pressures represent a metastable idealisation; real water may nucleate earlier due to impurities.

06 — Liquid material atlas

Select Liquid atlas and repeat the same pressure step in water, approximate seawater, then a representative 50%-by-mass glycerol–water mixture. Higher dynamic viscosity increases the Rayleigh–Plesset 4µṘ/R drag and generally damps motion more strongly. Fluid density modifies inertia while surface tension modifies the Laplace pressure and small-signal stiffness. The displayed glycerol-mixture and seawater properties are illustrative reference approximations near 20°C, not precise material certificates. Keep the bubble radius, driving pressure and κ unchanged while comparing the traces.

07 — An energy balance you can test

In Energy ledger, the model computes liquid kinetic energy Ek=2πρR³Ṙ², interface energy Eσ=4πσR² and polytropic-gas internal energy Eg=pgV/(κ−1). For this adiabatic-polytropic model the equality E(t)−E(0)=−∫p∞dV−∫16πµRṘ²dt should hold. The numerically integrated first term is boundary pressure work and the second term is dissipated energy. Inspect the residual readout and the energy graph. Numerical quadrature errors are not physical energy creation. No heat exchange, acoustic-radiation loss or vapour phase change is included.

08 — Two miniature hydrophones

The Hydrophone array graph estimates the spherical far-field pressure p′(r,t)≈ρ[R²R̈+2RṘ²]/r. This monopole acoustic approximation uses the current radial state and the chosen probe distances; it is a source-field estimate, not a solved wave-propagation field. Drag the gold and cyan probes along their tracks or use the distance sliders. Doubling the distance halves the predicted pressure at the same instant. Their visible positions are not drawn to the actual micrometre-versus-millimetre scale. Retarded travel time, boundaries, wave attenuation and near-field scattering are omitted, so compare only the modelled amplitude scaling, not arrival delays.

09 — Using the instrument bench

Orbit by dragging the open chamber background; Shift-drag pans, the wheel zooms and the reticle button resets the camera. Space toggles play/pause; R resets and the arrow keys nudge the drive frequency in relevant modes. Save Measurement stores a point-in-time state and instrument settings. CSV export saves your notebook entries and sampled trace, with units in each column heading. The two graph canvases support pointer inspection; frequency response also supports click-to-tune. Choose presets to explore credible starting points.

10 — Scope and scientific applications

Bubble radial dynamics matters in diagnostic ultrasound contrast agents, sonochemistry, microfluidics, acoustic cleaning and marine cavitation research. The laboratory deliberately omits interactions between bubbles, walls, mass transfer, gas dissolution, heat conduction, non-spherical jets and acoustic compressibility. It terminates trajectories if R falls below a quarter of R₀, exceeds eight times R₀ or wall speed exceeds 0.08 of an assumed 1480 m/s sound speed, because those regimes demand more advanced models. The chamber lighting and transparent interface are artistic visualisations, not optical simulations.

Explore next: How might thermal damping shift the resonance peak? Why does a nearby boundary make a collapse asymmetric? How would finite sound speed modify hydrophone phase? Which assumptions fail first for high-amplitude ultrasound?

Glossary & scientific references

Laplace pressure: curvature-induced pressure jump 2σ/R. Polytropic exponent: parameter governing compression of the enclosed gas. Blake threshold: loss of a stationary equilibrium in the idealised pressure-radius relation. Viscous dissipation: irreversible conversion of mechanical work into heat. Monopole radiation: sound generated by an oscillating source volume. Read further: Plesset & Prosperetti, Annual Review of Fluid Mechanics 9 (1977), pp. 145–185; Leighton, The Acoustic Bubble (1994); and the open-access review Ultrasound contrast microbubbles: physical principles and engineering.

Made with 🤖 ChatGPT · Three.js