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 × 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² 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 × 160 polar cells) on the axis against the exact closed form |p| = 2 ρ c u₀ |sin(k (√(z² + a²) - z) / 2)| at 5, 20 and 100 mm (10⁻⁴); the far-field directivity model (A = ρ c u₀ k a² / 2) against the Rayleigh integral at 100 mm, 0-40° (0.5 %: the model is the far field, 100 mm is 40 Rayleigh distances)passed
axis_worst_rel_err≤ 0.00011.04827 × 10⁻⁵lockedinside 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 = π/4: Gor'kov's force by the instrument's finite differences against the closed form π k R³ P² (f₁/3 + f₂/2) sin(2kz)/(ρ c²) (Bruus, Lab Chip 12 (2012) 1014, eq. for a standing wave) to 0.2 %; the potential's minimum at the pressure node kz = π/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)²)passed
ratio_small1 ± 0.0050.998729locked25 % of the tolerance usedr0004focusing: one 16 × 16 array phased by conjugation is in phase at its focus, |P| = the sum of the transducers' amplitudes there (10⁻⁹); opposed arrays with a π shift give an exact node at a mid-plane target (|P| below 10⁻⁹ of that sum), by symmetrypassed
single_focus_ratio1 ± 10⁻⁹1lockedunder 0.01 % of the tolerance usedtwin_node_ratio≤ 10⁻⁹1.87222 × 10⁻¹⁵lockedinside the ranger0005wall: 6 mm glass (2500 kg/m³, 70 GPa, 0.22): the coincidence frequency c²/(2 π) √(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 ρ R² / (Sh D dc) = 1698.3 s (by hand from Buck and Massman's D = 2.178 × 10⁻⁵ (T/273.15)¹.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 × 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_Paat most 1.000000 × 10⁻⁶reading not recorded on this pageall_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 10⁻⁴; 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|² = 0 to 10⁻¹²; iterative multiple-scattering solver matches exact 32x32 dense linear solve on an 8-sphere 3D cluster to 10⁻⁹passedpassivity_err≤ 10⁻¹²3.9443 × 10⁻³¹lockedinside the rangenode_worst_rel_err≤ 0.00012.10893 × 10⁻⁶lockedinside the rangeantinode_worst_rel_err≤ 0.00013.90227 × 10⁻⁶lockedinside the rangeaxial_to_transverse_ratio-2 ± 0.04-1.99674locked8.2 % of the tolerance usedmulti_solve_rel_err≤ 10⁻⁹2.29478 × 10⁻¹⁶lockedinside 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|² = 0 to 10⁻¹² and iterative self-consistent multiple-scattering solver matches exact 32x32 dense linear solve on an 8-sphere 3D cluster to 10⁻⁹passedpassivity_err≤ 10⁻¹²4.33681 × 10⁻¹⁹lockedinside the rangemulti_solve_rel_err≤ 10⁻⁹4.37193 × 10⁻¹⁴lockedinside 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³ | 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³ | |
diffusivity_m2_s | m²/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² | |
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.