swarmflow op• Data kinds: matrix × scalar → table
• Call: import fullseye as fs; fs.ledger.sph_density_pressure(points, h: 'float', mass: 'float' = 1.0, rho0: 'float' = 1.0, c: 'float' = 10.0, box=None) -> 'dict' (to call the implementation directly, import swarmflow; swarmflow.sph_density_pressure(points, h: 'float', mass: 'float' = 1.0, rho0: 'float' = 1.0, c: 'float' = 10.0, box=None) -> 'dict'; from the registry, opsdrive.get("sph_density_pressure"))
SPH density of a point set ρ_i = Σ_j m W(|x_i − x_j|, h) (including the point itself) and the weakly compressible equation of state p = c² (ρ − ρ₀).
> The detailed description below is the original text — the summary and the headings are translated.
格子の間隔 Δ で m = ρ₀ Δ² に置けば、内側の点の ρ は ρ₀ に近い(h = 1.3Δ で 0.3 % 以内 —— 門で数える)。
Args:
points: (N, 2) の位置 [m]。
h: 平滑化の長さ [m]。
mass: 1 点の質量(群れでは 1 = 個体数の密度)。
rho0: 静止の密度。
c: 音速 [m/s] (圧力の硬さ)。
box: 周期境界の箱 (Lx, Ly) か None。
Returns:
dict: rho (N,)、p (N,)、n_neighbors (N,)(台の中の他の点の数)。
• 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.
• (none yet)
table as input)course_layout · course_occupancy · course_contains · world_build · world_camera · world_move · lidar_scan · rss_longitudinal_same
swarmflow)sph_kernel · swarm_simulate · swarm_render_overhead · swarm_field_from_tracks · swarm_field_from_piv · potential_flow_cylinder · velocity_deficit_map · stagnation_from_centerline
*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.