01 Fluid velocity
SOLVED PDEClick a radius to move the acoustic sample gate. Dashed = analytical steady solution.
Pressure-driven fluid dynamics with a measured ultrasonic beamline.
Click a radius to move the acoustic sample gate. Dashed = analytical steady solution.
Calculated gate-weighted spectrum, without simulated noise.
An ultrasonic beam is not a camera: it measures the motion of scatterers along the direction of sound. SONARIS lets you connect a fluid's governing equation to the signal that an instrument would report.
Every trace is calculated from the evolving flow field. The tube is a controlled Newtonian laminar-flow test section; the transducer and timing receiver are idealized measurement instruments rather than a claim of clinical diagnostic accuracy.
In a straight, circular, fully developed axisymmetric pipe, fluid speed is axial and varies with radius. Conservation of momentum reduces the unsteady Navier–Stokes equations to ρ ∂u/∂t = Δp(t)/L + μ/r ∂/∂r(r ∂u/∂r). The simulation uses no slip at the wall and zero radial derivative at the axis. A finite-volume discretisation separates the radial interval into 88 annular cells; implicit backward-Euler time stepping solves the tridiagonal diffusion system in SI units. It is stable even for the narrower pipes and more viscous settings.
For constant pressure after transients vanish, u(r)=Δp(R²−r²)/(4μL) and Q=πΔpR⁴/(8μL). The graph overlays that analytical solution with the numerical cell field. In pulsatile mode the imposed pressure is Δp(t)=Δp₀[1+A sin(2πft)], and the transient field is integrated rather than inferred from an instantaneous steady-state formula.
Select an experiment on the left. Drag the bright sample gate up and down the tube to choose radial depth, and drag the copper ultrasound head horizontally to change the beam angle. Adjust the beam angle using its handle or the controls. Drag empty space to orbit; wheel or pinch to zoom; Shift-drag to pan. Pause, advance at several speeds, reset the physics clock, or restore the camera. Sample values appear in the four real-time readouts.
Poiseuille atlas: Change pressure and radius, then compare volume flow against the predicted fourth-power scaling. Test the Reynolds number before extrapolating the laminar law to high flow.
Doppler beamline: Change ultrasound frequency, beam angle, gate depth and gate width. The backscatter shift is fD = 2f₀u cosθ/c, with u replaced by a normalized Gaussian-weighted local speed for a finite interrogation gate. Observe the vanishing signal as the beam approaches a right angle.
Pulsatile flow: Enable a pressure oscillation and plot volume flow against time. The near-wall fluid is accelerated and retarded by viscous stresses, while the core responds differently. The nondimensional Womersley number, α=R√(2πfρ/μ), indicates the competition between oscillatory inertia and radial momentum diffusion.
Nyquist chamber: Turn down the pulse repetition frequency or turn up ultrasound frequency. A pulsed receiver can represent only shifts between −PRF/2 and +PRF/2. The measured signed frequency is the true shift wrapped into that interval. Aliased direction is therefore ambiguous; the orange curve is not a new fluid motion.
Viscosity foundry: Read pressure, Q and tube geometry, then invert the steady Poiseuille law for μ. Compare the shear stress at the tube wall with τw=ΔpR/(2L). The numerical wall stress is computed from the last radial cell and approaches that result as the grid is refined.
Transit-time bridge: Compare Doppler sensing against opposing acoustic travel times along a finite sound path ℓ. Ideal upstream and downstream times are ℓ/(c−u cosθ) and ℓ/(c+u cosθ). Their positive difference is tiny because sound is vastly faster than flow; resolve it in nanoseconds on the instrument.
Capture any configuration in the notebook to preserve the pressure, flow, shear, acoustic estimates and current profile. Export the observations as CSV or compare a saved profile with the live one. The twelve self-marking exercises cover dimensional analysis, velocity inference, pressure loss, frequency aliasing, viscosity and travel-time inversion, grouped from foundation to advanced. Answer each question using the given frozen values and inspect its hint or explanation.
These techniques inform industrial flow meters, hemodynamic instrumentation, microfluidic research and laboratory rheometry. Try predicting how narrowing a conduit influences Q, why Doppler near 90° is poorly conditioned, and how a higher PRF trades alias-free range against other instrument constraints.
The liquid is incompressible, Newtonian, isothermal, and confined to an infinitely long fully developed ideal pipe; radial/azimuthal motion, entrance effects, turbulence, wall compliance, cavitation and blood-cell scattering are excluded. Acoustic Doppler is a scalar monostatic backscatter model with Gaussian spatial sampling; no real ultrasound beam diffraction, attenuation, speckle or detector noise is simulated. The displayed spectrum is deterministic gate weighting, not a clinical spectrogram. The tube and beam are drawn with exaggerated radii and are not geometrically to scale. When Reynolds number is large, laminar numerical solutions remain mathematically defined but do not reliably represent turbulent pipe flow.
Glossary: Re — ratio of inertial to viscous effects; μ — dynamic viscosity; PRF — ultrasound pulse repetition frequency; Nyquist — sampling frequency limit; gate — sampled fluid region; α — oscillatory momentum-diffusion parameter. Further exploration: Can one Doppler angle recover the full 3D velocity vector? What measurements identify non-Newtonian viscosity? Which experiment would reveal acoustic attenuation?