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(
|
||||
"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"
|
||||
|
||||
Reference in New Issue
Block a user