sph_dam_break_1d — DRIVE 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"))

Usage

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).

> The detailed description below is the original text — the summary and the headings are translated.

水深 h_i = Σ_j m_j W(x_i − x_j, ℓ_ij)(1 次元の核、m = h₀ Δx)、加速度 du_i/dt = −g Σ_j m_j ∂W_ij/∂x_i(= −g ∂h/∂x、運動量を保存する対称形)+ Monaghan の人工粘性。平滑化の長さは粒子ごとに ℓ_i = κ m/h_i(先端の薄い所で広がる)、組には平均 ℓ_ij。左の壁(x = −length)は鏡像の粒子。真値は ritter_dam_break(門で照らす)。

Returns:

dict: t (K,)、x (K, N)、h (K, N)、u (K, N)(各時刻の粒子)、front (K,)(最も前の粒子)、

mass(全質量、保存)、c0。

References (sample data, literature)

• 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.

Runnable examples (verified samples that actually call this op)

• poc_swarm_obstacle_from_flow — py -3.11 examples/poc_swarm_obstacle_from_flow.py

Ops the type connects to (they accept table as input)

course_layout · course_occupancy · course_contains · world_build · world_camera · world_move · lidar_scan · rss_longitudinal_same

Same category (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.