fix: realistic basin sizing + boosted sinus inflow for visible fill cycle
Some checks failed
CI / lint-and-test (push) Has been cancelled
Some checks failed
CI / lint-and-test (push) Has been cancelled
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) <noreply@anthropic.com>
This commit is contained in:
@@ -1221,8 +1221,8 @@ def build_drivers_tab():
|
|||||||
nodes.append(function_node(
|
nodes.append(function_node(
|
||||||
"sinus_fn", TAB_DRIVERS, LANE_X[1] + 220, y + 40,
|
"sinus_fn", TAB_DRIVERS, LANE_X[1] + 220, y + 40,
|
||||||
"sinus inflow (m³/s)",
|
"sinus inflow (m³/s)",
|
||||||
"const base = 0.005; // m³/s (~18 m³/h always)\n"
|
"const base = 0.02; // m³/s (~72 m³/h always)\n"
|
||||||
"const amplitude = 0.03; // m³/s (~108 m³/h peak)\n"
|
"const amplitude = 0.10; // m³/s (~360 m³/h peak)\n"
|
||||||
"const period = 120; // seconds per full cycle\n"
|
"const period = 120; // seconds per full cycle\n"
|
||||||
"const t = Date.now() / 1000; // seconds since epoch\n"
|
"const t = Date.now() / 1000; // seconds since epoch\n"
|
||||||
"const q = base + amplitude * (1 + Math.sin(2 * Math.PI * t / period)) / 2;\n"
|
"const q = base + amplitude * (1 + Math.sin(2 * Math.PI * t / period)) / 2;\n"
|
||||||
|
|||||||
@@ -3787,7 +3787,7 @@
|
|||||||
"type": "function",
|
"type": "function",
|
||||||
"z": "tab_drivers",
|
"z": "tab_drivers",
|
||||||
"name": "sinus inflow (m\u00b3/s)",
|
"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,
|
"outputs": 1,
|
||||||
"noerr": 0,
|
"noerr": 0,
|
||||||
"initialize": "",
|
"initialize": "",
|
||||||
|
|||||||
Reference in New Issue
Block a user