vial_spin_stop_sequence — PHARMA synth op

• 数据种类:无 → video(仅由参数决定的算子 —— 不接受图像或数据输入)

• 调用: import fullseye as fs; fs.ledger.vial_spin_stop_sequence(shape=(96, 72), *, n_frames=18, frame_interval_s=0.04, initial_omega_rad_s=10.0, decay_time_s=0.25, vial_radius_mm=10.0, liquid_height_mm=28.0, particle_diameter_um=80.0, particle_density_kg_m3=1450.0, particle_contrast=0.16, illumination='back', n_particles=1, n_bubbles=1, n_scratches=1, viscosity_pa_s=0.003, fluid_density_kg_m3=1000.0, pixel_size_um=280.0, noise_sigma=0.012, seed=0)(要直接调用实现,import vialops; vialops.vial_spin_stop_sequence(shape=(96, 72), *, n_frames=18, frame_interval_s=0.04, initial_omega_rad_s=10.0, decay_time_s=0.25, vial_radius_mm=10.0, liquid_height_mm=28.0, particle_diameter_um=80.0, particle_density_kg_m3=1450.0, particle_contrast=0.16, illumination='back', n_particles=1, n_bubbles=1, n_scratches=1, viscosity_pa_s=0.003, fluid_density_kg_m3=1000.0, pixel_size_um=280.0, noise_sigma=0.012, seed=0);从台账取用则 opspharma.get("vial_spin_stop_sequence"))

• 经台账调用的返回值: fullseye.ledger.vial_spin_stop_sequence(...) 只返回声明的 out 类型 video 的值(底层函数还会返回辅助信息)。需要被丢弃的部分时,使用 fullseye.ledger.vial_spin_stop_sequence.raw(...),或直接调用 vialops.vial_spin_stop_sequence。

• GPU:无(仅 CPU 参考实现)

用法

生成旋停后的西林瓶图像序列及逐物体真值轨迹。

> 以下的详细说明为原文 —— 摘要与标题已翻译。

The liquid azimuthal velocity is the axisymmetric, prescribed field u_theta(r,t) = omega0 exp(-t/tau) r; it is not a Navier--Stokes solution. A particle has that in-plane advection plus its Stokes terminal velocity v_t = 2 r_p^2 (rho_p-rho_f) g / (9 mu) in the image-downward direction. Bubbles use rho_p=1.2 kg/m^3 and therefore rise. The model is restricted to small Reynolds number / isolated spherical objects where Stokes drag is appropriate; it does not model turbulent wake, aggregation, meniscus forces, or wall-corrected drag. At the cylindrical wall positions are reflected, which prevents a silent escape but is not a hydrodynamic wall model. Refraction through glass and liquid is deliberately simplified to a fixed apparent contrast and Gaussian PSF in this first stage.

illumination is "back" or "side". A fixed seed determines object positions, sensor noise, and scratches. The direct return is (frames, truth); truth contains a row table with object type, frame, projected positions, physical positions and visibility, plus angular-speed truth. The ledger adapter returns only the video frames.

The rendered outline is a display-only 2R-like profile, not a metrology calibration. Its public dimensional source is ISO 8362-1:2018(E), Table 1 (2R: 16 mm body, 13 mm finish, 35 mm overall height, 8 mm finish height), previewed at https://cdn.standards.iteh.ai/samples/74398/343407bc7b564f6184bfa0a9decede14/ISO-8362-1-2018.pdf. An independent public 2R product listing confirms the 16 mm body and 35 mm overall height at https://www.westpharma.com/es-es/products/vial-containment-solutions/vials/nuova-ompi-sg-ez-fill-glass-vials-sterile-3-8-10. 描画外形は計測校正ではなく、公開 ISO 8362-1:2018(E) Table 1 の 2R 比率を使う表示モデルである。独立した公開製品寸法も上記 URL で確認する。

Raises ValueError for nonphysical dimensions, an unknown illumination, or a nonintegral object count.

参考(示例数据、文献)

• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。

• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。

• 算法的正典(作者、年份)与用途见上面的族使用指南。

可运行的示例(实际调用该算子并已验证的样例)

• poc_vial_particle_pod — py -3.11 examples/poc_vial_particle_pod.py

类型可衔接的下一个算子(可接受 video 作为输入)

track_moving_particles

同类别(synth)

—


*Provenance: vialops.py — PHARMA 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.