fullseye

ritter_dam_break — DRIVE swarmflow op

使い方

Ritter のダム崩壊解(浅水方程式、乾いた床、ダムは x = 0、水は x < 0)。

c₀ = √(g h₀)。x ≤ −c₀ t: h = h₀、u = 0 / −c₀ t < x < 2c₀ t: h = (2c₀ − x/t)²/(9g)、u = (2/3)(x/t + c₀) / x ≥ 2c₀ t: h = 0。

先端の近くは h ∝ (x_f − x)² で水がほとんど無い。先端から δ までの水の量は ∫₀^δ (s/t)²/(9g) ds = δ³/(27 g t²)(導出)。 粒子 1 個の量 m(1 次元の SPH なら h₀Δx)を与えると、最も前の粒子の居場所(先端から量 m/2 の所) x_f − (27 g t² m/2)^{1/3} を lead_particle に返す —— 粒子法の先端は Ritter の先端より必ず遅れて見え、その遅れは この式で読める(粒子を細かくすると m^{1/3} でしか縮まない)。

Returns: dict: h・u(x と同じ形)、front = 2c₀ t、rarefaction_head = −c₀ t、c0、lead_particle(m を与えたとき)。

空の入力(x が 0 要素)は ValueError。

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(table を入力に取れる)

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. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

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