sph_kernel — DRIVE swarmflow op

• Data kinds: signal × scalar → signal

• Call: import fullseye as fs; fs.ledger.sph_kernel(r, h: 'float', dim: 'int' = 2, derivative: 'bool' = False) -> 'np.ndarray' (to call the implementation directly, import swarmflow; swarmflow.sph_kernel(r, h: 'float', dim: 'int' = 2, derivative: 'bool' = False) -> 'np.ndarray'; from the registry, opsdrive.get("sph_kernel"))

Usage

> This operator's description has not been translated yet. The original text follows as it is.

3 次スプライン核 W(r, h)(M4、台の半径 2h)。`derivative=True` で dW/dr(r の向きの微分、0 以下)。

W = σ_d [1 − 1.5 q² + 0.75 q³] (0 ≤ q < 1)、σ_d · 0.25 (2 − q)³(1 ≤ q < 2)、0(q ≥ 2)、q = r/h。

σ_1 = 2/(3h)、σ_2 = 10/(7π h²)、σ_3 = 1/(π h³)。この定数で ∫ W dV = 1(恒等式。門で数値の求積と照らす)。

Args:

r: 距離の配列(0 以上、形は任意)。

h: 平滑化の長さ(> 0)。

dim: 1、2、3。

derivative: True で dW/dr を返す。

Returns:

r と同じ形の配列。

Raises:

ValueError: h ≤ 0、dim が 1〜3 でない、r に負・非有限がある。

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 signal as input)

flight_vacuum · magnus_lift_coefficient · drag_coefficient_sphere · restitution_from_apexes · restitution_from_intervals · fit_parabola · flight_fit · fit_aero

Same category (swarmflow)

sph_density_pressure · 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.