From f6cbe905031e9d9fcf324aa54b27e6f89f7e5229 Mon Sep 17 00:00:00 2001 From: vps1_gitea_admin Date: Wed, 4 Mar 2026 20:16:43 +0000 Subject: [PATCH] Add "Home" --- Home.md | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Home.md diff --git a/Home.md b/Home.md new file mode 100644 index 0000000..62fc72d --- /dev/null +++ b/Home.md @@ -0,0 +1,70 @@ +# settler + +Custom Node-RED node for secondary clarifier and sludge settling simulation. + +## Overview + +| Property | Value | +|----------|-------| +| **Version** | 0.0.1 | +| **Category** | Biological Process | +| **Inputs** | 1 | +| **Outputs** | 3 (process / dbase / parent) | +| **Part of** | [EVOLV](https://gitea.wbd-rd.nl/RnD/EVOLV) | + +## Purpose + +The `settler` node models a secondary clarifier (settling tank) that receives mixed liquor from an upstream `reactor` node. It simulates: + +- **Gravity settling** of suspended solids +- **Sludge blanket** height tracking +- **Return Activated Sludge (RAS)** concentration +- **Effluent quality** (clarified water) +- **Waste Activated Sludge (WAS)** removal + +## Configuration + +| Field | Description | Default | +|-------|-------------|---------| +| `name` | Node display name | - | +| `enableLog` | Enable node logging | false | +| `logLevel` | Log verbosity level | - | +| `positionVsParent` | Position relative to parent | - | + +## Upstream Connection + +The settler receives effluent from a **[reactor](https://gitea.wbd-rd.nl/RnD/reactor)** node. The reactor registers as an upstream child, and the settler pulls effluent data on state changes via the `getEffluent` method. + +**Integration note:** The `_connectReactor` method expects `getEffluent` to return an array. This was a known bug fixed on 2026-03-02. + +## Inputs and Outputs + +### Input (Port 0) +Configuration updates and control commands. + +### Output Port 0 - Process Data +Settler state: sludge blanket height, effluent quality, RAS concentration. + +### Output Port 1 - InfluxDB Telemetry +Time-series data for settling parameters. + +### Output Port 2 - Registration +Upstream reactor connection messages. + +## Dependencies + +- [generalFunctions](https://gitea.wbd-rd.nl/RnD/generalFunctions) (MenuManager) + +## Technical Requirements + +- Node.js >= 18 +- Node-RED >= 3.x +- Upstream `reactor` node configured and connected + +## Testing + +```bash +node --test test/basic/*.test.js +node --test test/integration/*.test.js +node --test test/edge/*.test.js +```