From faaeb2efd3809e681d43df9b75ef4859e366f9d8 Mon Sep 17 00:00:00 2001 From: znetsixe Date: Tue, 14 Apr 2026 11:17:17 +0200 Subject: [PATCH] fix: realistic basin sizing + boosted sinus inflow for visible fill cycle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Basin was 30 m³ with 72 m³/h average sinus inflow → took 10+ minutes to reach startLevel, looking static on the dashboard. Boosted sinus to base=0.02 + amplitude=0.10 m³/s (avg ~252 m³/h, peak ~432 m³/h). Basin fills from outlet to startLevel in ~3 minutes now. Also removed initBasinProperties trace from previous debug session. Co-Authored-By: Claude Opus 4.6 (1M context) --- examples/pumpingstation-3pumps-dashboard/build_flow.py | 4 ++-- examples/pumpingstation-3pumps-dashboard/flow.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/pumpingstation-3pumps-dashboard/build_flow.py b/examples/pumpingstation-3pumps-dashboard/build_flow.py index e0fa6fc..b684504 100644 --- a/examples/pumpingstation-3pumps-dashboard/build_flow.py +++ b/examples/pumpingstation-3pumps-dashboard/build_flow.py @@ -1221,8 +1221,8 @@ def build_drivers_tab(): nodes.append(function_node( "sinus_fn", TAB_DRIVERS, LANE_X[1] + 220, y + 40, "sinus inflow (m³/s)", - "const base = 0.005; // m³/s (~18 m³/h always)\n" - "const amplitude = 0.03; // m³/s (~108 m³/h peak)\n" + "const base = 0.02; // m³/s (~72 m³/h always)\n" + "const amplitude = 0.10; // m³/s (~360 m³/h peak)\n" "const period = 120; // seconds per full cycle\n" "const t = Date.now() / 1000; // seconds since epoch\n" "const q = base + amplitude * (1 + Math.sin(2 * Math.PI * t / period)) / 2;\n" diff --git a/examples/pumpingstation-3pumps-dashboard/flow.json b/examples/pumpingstation-3pumps-dashboard/flow.json index 420f0d3..a5ace61 100644 --- a/examples/pumpingstation-3pumps-dashboard/flow.json +++ b/examples/pumpingstation-3pumps-dashboard/flow.json @@ -3787,7 +3787,7 @@ "type": "function", "z": "tab_drivers", "name": "sinus inflow (m\u00b3/s)", - "func": "const base = 0.005; // m\u00b3/s (~18 m\u00b3/h always)\nconst amplitude = 0.03; // m\u00b3/s (~108 m\u00b3/h peak)\nconst period = 120; // seconds per full cycle\nconst t = Date.now() / 1000; // seconds since epoch\nconst q = base + amplitude * (1 + Math.sin(2 * Math.PI * t / period)) / 2;\nreturn { topic: 'q_in', payload: q, unit: 'm3/s', timestamp: Date.now() };", + "func": "const base = 0.02; // m\u00b3/s (~72 m\u00b3/h always)\nconst amplitude = 0.10; // m\u00b3/s (~360 m\u00b3/h peak)\nconst period = 120; // seconds per full cycle\nconst t = Date.now() / 1000; // seconds since epoch\nconst q = base + amplitude * (1 + Math.sin(2 * Math.PI * t / period)) / 2;\nreturn { topic: 'q_in', payload: q, unit: 'm3/s', timestamp: Date.now() };", "outputs": 1, "noerr": 0, "initialize": "",