acoustics
Airborne ultrasound from arrays of piston transducers (far-field piston model, checked against the Rayleigh integral) and the radiation force on small spheres (Gor'kov's potential, checked against the exact partial-wave solution for a rigid sphere and corrected by it), plus self-consistent bead-to-bead multiple acoustic scattering (exact fluid-sphere Mie monopole+dipole partial waves, checked against Silva & Bruus 2014 secondary radiation forces and exact 4M x 4M dense linear solves). levitator: two opposed flat arrays holding drops/beads (global, nearest-trap, tiled, or full-array crystal phasing with per-column height shifts); per trap the coupled equilibrium with gravity, restoring forces, lift over weight, sideways grip, stiffness, scattering shift; frames for animation and merging; sound level outside through an enclosure wall (mass law, coincidence); evaporation (d^2 law) and heating. Files: traps.csv, frames.csv, field.png, scene.glb (Python: NumPy, SciPy, matplotlib).
- Field
- Waves, optics and circuits
- Version
- 0.2.0
- Runs as
- Compiled (Rust)
- Typical run
- 10 s
Compiled from source: run sh packs/install.sh once before admitting it.
Known answers it must pass
r0001piston, a = 4.5 mm, 40 kHz: the Rayleigh integral (120 x 160 polar cells) on the axis against the exact closed form |p| = 2 rho c u0 |sin(k (sqrt(z^2 + a^2) - z) / 2)| at 5, 20 and 100 mm (1e-4); the far-field directivity model (A = rho c u0 k a^2 / 2) against the Rayleigh integral at 100 mm, 0-40 deg (0.5 %: the model is the far field, 100 mm is 40 Rayleigh distances)passed
axis_worst_rel_err≤ 0.00011.04827e-05lockedinside the rangedirectivity_worst_rel_err≤ 0.0050.000734933lockedinside the ranger0002plane standing wave p = P cos(kz), P 1000 Pa, a 0.3 mm water drop at kz = pi/4: Gor'kov's force by the instrument's finite differences against the closed form pi k R^3 P^2 (f1/3 + f2/2) sin(2kz)/(rho c^2) (Bruus, Lab Chip 12 (2012) 1014, eq. for a standing wave) to 0.2 %; the potential's minimum at the pressure node kz = pi/2 (to 0.02 mm, the scan's spacing)passed
rel_err≤ 0.0020.000707123lockedinside the rangetrap_offset_from_node_mm0 ± 0.020.00520482locked26 % of the tolerance usedr0003exact partial-wave force on a rigid sphere in a standing wave: at k a = 0.05 it tends to Gor'kov's small-particle limit (ratio 1 to 0.5 %; the first correction is of order (k a)^2)passed
ratio_small1 ± 0.0050.998729locked25 % of the tolerance usedr0004focusing: one 16 x 16 array phased by conjugation is in phase at its focus, |P| = the sum of the transducers' amplitudes there (1e-9); opposed arrays with a pi shift give an exact node at a mid-plane target (|P| below 1e-9 of that sum), by symmetrypassed
single_focus_ratio1 ± 1e-091lockedunder 0.01 % of the tolerance usedtwin_node_ratio≤ 1e-091.87222e-15lockedinside the ranger0005wall: 6 mm glass (2500 kg/m^3, 70 GPa, 0.22): the coincidence frequency c^2/(2 pi) sqrt(m/D) = 1995.3 Hz (by hand; textbooks quote about 2 kHz for 6 mm glass) and the mass law at 1 kHz, 20 log10(f m) - 47 = 36.52 dB (closed form)passed
coincidence_Hz1995.27 ± 0.21995.27locked1.4 % of the tolerance usedmass_law_dB36.5218 ± 0.00136.5218locked2.5 % of the tolerance usedr0006evaporation: saturation vapour pressure of water at 25 C against the CRC Handbook's table, 3.1699 kPa (0.1 %: Buck's fit); a 1 mm-radius drop at 50 % humidity, Sherwood 2: lifetime rho R^2 / (Sh D dc) = 1698.3 s (by hand from Buck and Massman's D = 2.178e-5 (T/273.15)^1.81)passed
vapour_pressure_kPa3.1699 ± 0.00323.16853locked43 % of the tolerance usedlifetime_s1698.28 ± 0.171698.28locked1.8 % of the tolerance usedr0007levitator, one trap at the centre of opposed 4 x 4 arrays 60 mm apart: by symmetry the node is exactly at the target (offset 0, |P| = 0) and the trap holds; the Gor'kov correction equals the exact ratio at k R = 0.366 (between 1 at k R -> 0 and 0.878 at 0.5)passed
max_offset_mm0 ± 0.0010lockedunder 0.01 % of the tolerance usedfirst_trap.node_Pa{"max": 1e-06}all_held= truetruelockedexact matchgorkov_correction0.878 to 10.933641lockedinside the ranger0008secondary acoustic radiation force (Silva & Bruus, Phys. Rev. E 90, 063007, 2014): two small spheres (ka = 0.005, R/d <= 0.016) across d = 0.05..2.0 lam match exact all-range nodal dipole-dipole and antinodal monopole-monopole closed forms to 1e-4; near-field axial/transverse dipole ratio approaches -2 (within 2% at kd = 0.0628); exact fluid-sphere Mie coefficients satisfy optical theorem Re(s_n)+|s_n|^2 = 0 to 1e-12; iterative multiple-scattering solver matches exact 32x32 dense linear solve on an 8-sphere 3D cluster to 1e-9passed
passivity_err≤ 1e-123.9443e-31lockedinside the rangenode_worst_rel_err≤ 0.00012.10893e-06lockedinside the rangeantinode_worst_rel_err≤ 0.00013.90227e-06lockedinside the rangeaxial_to_transverse_ratio-2 ± 0.04-1.99674locked8.2 % of the tolerance usedmulti_solve_rel_err≤ 1e-092.29478e-16lockedinside the rangemulti_solve_converged= truetruelockedexact matchr0009multiple scattering at finite bead size (ka = 0.549, 1.5 mm EPS bead at 40 kHz): exact passive fluid-sphere Mie coefficients satisfy Re(s_n)+|s_n|^2 = 0 to 1e-12 and iterative self-consistent multiple-scattering solver matches exact 32x32 dense linear solve on an 8-sphere 3D cluster to 1e-9passed
passivity_err≤ 1e-124.33681e-19lockedinside the rangemulti_solve_rel_err≤ 1e-094.37193e-14lockedinside the rangemulti_solve_converged= truetruelockedexact matchr0010levitator with crystal phasing and self-consistent multiple scattering on 2 adjacent EPS beads in a 6x6 opposed array: converges, holds both beads, and records a nonzero coupled scattering shiftpassed
all_held= truetruelockedexact matchscattering_converged= truetruelockedexact matchscattering_max_shift_mm0.001 to 0.50.00291689lockedinside the rangemin_sf_vertical≥ 349.0975lockedinside the range
Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.
Inputs
| Name | Unit | Default | Meaning |
|---|---|---|---|
mode | levitator | levitator: opposed arrays holding drops/beads (the design mode). The others are the known-answer checks (see run.py). | |
frequency_Hz | Hz | 40000 | Drive frequency. |
air_density_kg_m3 | kg/m^3 | 1.204 | Density of the air. |
sound_speed_m_s | m/s | 343.2 | Speed of sound in the air. |
array | levitator: two flat opposed arrays of nx x ny transducers (top faces down, bottom faces up). | ||
phasing | nearest | global: every transducer serves every trap; nearest: each transducer serves the trap nearest it in plan; tiles: fixed tiles of tile_n x tile_n; crystal: full-array checkerboard standing-wave crystal with optional per-column shifts (empty columns stay driven). | |
scattering | false | Solve self-consistent bead-to-bead multiple acoustic scattering (monopole + dipole partial waves) and relax traps to their coupled equilibrium. | |
scattering_model | mie | Partial-wave scattering coefficients: exact passive fluid-sphere Mie (mie) or small-ka Rayleigh limit (rayleigh). | |
column_shifts_mm | mm | crystal phasing: nx x ny array (or flat nx*ny list) of per-column vertical shifts in mm. | |
frame_shifts_mm | mm | crystal phasing with frames: list of nx x ny column shift matrices in mm, one per frame. | |
scattering_ka | 1 | 0.05 | scattering mode: dimensionless sphere size k R. |
separations_lam | 1 | scattering mode: pair separations in wavelengths for Silva & Bruus (2014) secondary-force check. | |
tile_n | 1 | 4 | Transducers per tile side (tiles phasing, and traps: "plate"). |
trap_phase_pattern | zero | A phase offset per trap by its place on the tile grid (crosstalk between neighbours). | |
traps | mm | "plate" (one trap over the centre of every tile, on the mid-plane), or a list of [x, y, z] in mm. | |
frames | mm | A sequence of trap sets ([[x, y, z], ...] in mm per frame): transport and merging, analysed frame by frame. | |
drop | The held object (a water drop by default). | ||
wall | Enclosure wall (levitator: the level outside through it; enclosure mode). | ||
observer_m | m | 0.3 | Distance from the device centre at which the level outside is taken. |
spl_limit_dB | dB | 110 | The level allowed at the observer (set it to the rule that applies). |
environment | |||
heat | Light absorbed by the drop. | ||
air_conductivity_W_mK | W/(m K) | 0.0262 | |
piston_radius_mm | mm | 4.5 | piston, focus modes. |
velocity_m_s | m/s | 1.0 | piston mode: face velocity amplitude. |
rings | 1 | 120 | |
sectors | 1 | 160 | |
axis_mm | mm | ||
angles_deg | deg | ||
far_mm | mm | 100 | |
amplitude_Pa | Pa | 1000 | plane_wave, exact: standing-wave amplitude. |
kz | 1 | 0.7853981633974483 | plane_wave: k z of the sphere's centre. |
ka | 1 | ||
n | 1 | 16 | |
pitch_mm | mm | 10.5 | |
p0_Pa_m | Pa m | 5 | |
separation_mm | mm | 180 | |
target_mm | mm | ||
temperature_C | degC | 25 | |
humidity | 1 | 0.5 | |
sherwood | 1 | 2 |
Readings
| Name | Unit | Meaning |
|---|---|---|
transducers | 1 | |
per_array | 1 | |
tile_n | 1 | |
separation_mm | mm | |
p0_Pa_m | Pa m | |
drop_radius_mm | mm | |
drop_mass_mg | mg | |
drop_weight_uN | µN | |
ka | 1 | |
gorkov_correction | 1 | |
f1 | 1 | |
f2 | 1 | |
traps_n | 1 | |
min_sf_vertical | 1 | |
min_lateral_accel_g | 1 | |
max_aspect_ratio | 1 | |
max_offset_mm | mm | |
min_separation_mm | mm | |
merge_separation_mm | mm | |
path_min_sf_vertical | 1 | |
path_min_lateral_accel_g | 1 | |
path_max_offset_mm | mm | |
scattering_iters | 1 | |
scattering_max_shift_mm | mm | |
scattering_max_p_ratio | 1 | |
scattering_max_grad_ratio | 1 | |
scattering_residual_weight | 1 | |
passivity_err | 1 | |
node_worst_rel_err | 1 | |
antinode_worst_rel_err | 1 | |
axial_to_transverse_ratio | 1 | |
multi_solve_rel_err | 1 | |
multi_solve_iters | 1 | |
frames_n | 1 | |
merge_frame | 1 | |
spl_open_dB | dB | |
spl_enclosed_dB | dB | |
safety_margin_dB | dB | |
spl_inside_max_dB | dB | |
traps | ||
frames | ||
evaporation | ||
heating | ||
vapour_pressure_kPa | kPa | |
vapour_density_kg_m3 | kg/m^3 | |
diffusivity_m2_s | m^2/s | |
lifetime_s | s | |
time_to_lose_10pct_s | s | |
coincidence_Hz | Hz | |
mass_law_dB | dB | |
tl_dB | dB | |
surface_density_kg_m2 | kg/m^2 | |
force_N | N | |
closed_form_N | N | |
rel_err | 1 | |
axis_worst_rel_err | 1 | |
directivity_worst_rel_err | 1 | |
single_focus_ratio | 1 | |
twin_node_ratio | 1 | |
focus_Pa | Pa | |
ratio_small | 1 | |
trap_kz | 1 | |
trap_offset_from_node_mm | mm | |
wavelength_mm | mm | |
frequency_Hz | Hz | |
rayleigh_distance_mm | mm |
Try the call
Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.