swarmflow op• Data kinds: none → table (an op determined by its arguments alone — it takes no image or data input)
• Call: import fullseye as fs; fs.ledger.sph_dam_break_1d(h0: 'float' = 0.1, length: 'float' = 1.0, n_particles: 'int' = 400, t_end: 'float' = 0.2, g: 'float' = 9.81, kappa: 'float' = 1.3, alpha: 'float' = 0.3, n_out: 'int' = 5) -> 'dict' (to call the implementation directly, import swarmflow; swarmflow.sph_dam_break_1d(h0: 'float' = 0.1, length: 'float' = 1.0, n_particles: 'int' = 400, t_end: 'float' = 0.2, g: 'float' = 9.81, kappa: 'float' = 1.3, alpha: 'float' = 0.3, n_out: 'int' = 5) -> 'dict'; from the registry, opsdrive.get("sph_dam_break_1d"))
Solves the dam break (dry bed) with 1-D SPH shallow-water equations (a model of the spreading when the swarm's gate is opened).
Water depth h_i = Σ_j m_j W(x_i − x_j, ℓ_ij) (1-D kernel, m = h₀ Δx), acceleration du_i/dt = −g Σ_j m_j ∂W_ij/∂x_i (= −g ∂h/∂x, in the symmetric form that conserves momentum) + Monaghan artificial viscosity. The smoothing length is per particle, ℓ_i = κ m/h_i (it widens where the front is thin), and pairs use the mean ℓ_ij. The left wall (x = −length) is represented by mirror particles. The ground truth is ritter_dam_break (compared by a gate).
Returns:
dict: t (K,), x (K, N), h (K, N), u (K, N) (particles at each time), front (K,) (the foremost particle),
mass (total mass, conserved), c0.
• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).
• Operator provenance and references — the sources of the research/methods this op family came from.
• The canonical algorithm (author, year) and its uses are named in the family usage guide above.
• poc_swarm_obstacle_from_flow — py -3.11 examples/poc_swarm_obstacle_from_flow.py
table as input)course_layout · course_occupancy · course_contains · world_build · world_camera · world_move · lidar_scan · rss_longitudinal_same
swarmflow)sph_kernel · sph_density_pressure · swarm_simulate · swarm_render_overhead · swarm_field_from_tracks · swarm_field_from_piv · potential_flow_cylinder · velocity_deficit_map
*Provenance: swarmflow.py — DRIVE operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.