Files
EVOLV/.agents/decisions/DECISION-20260224-rotatingmachine-hydraulic-efficiency-and-confidence.md
znetsixe 6a6c04d34b Migrate to new Gitea instance (gitea.wbd-rd.nl)
- Update all submodule URLs from gitea.centraal.wbd-rd.nl to gitea.wbd-rd.nl
- Add settler as proper submodule in .gitmodules
- Add agent skills, function anchors, decisions, and improvements
- Add Docker configuration and scripts
- Add manuals and third_party docs
- Update .gitignore with secrets and build artifacts
- Remove stale .tgz build artifact

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 21:07:04 +01:00

35 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Decision: RotatingMachine Hydraulic Efficiency Correction and Prediction Confidence
- Date: 2026-02-24
- Scope: `nodes/rotatingMachine/src/specificClass.js`, rotatingMachine integration tests
## Context
Hydraulic efficiency calculation in `rotatingMachine` was dimensionally inconsistent and could over/under-report efficiency KPIs.
At the same time, prediction drift tooling (`nrmse`) existed but was not actively connected to rotatingMachine output confidence.
## Options Considered
1. Keep existing formula and only tune thresholds.
2. Replace formula with standard hydraulic power/efficiency equations and expose prediction confidence from live pressure source + drift.
## Decision
Adopt option 2.
- Hydraulic power now follows standard engineering relation:
- `P_h = Q * Δp` (equivalent to `ρ g Q H`)
- `η_h = P_h / P_in`
- RotatingMachine now computes flow drift via `nrmse` from measured vs predicted flow windows.
- RotatingMachine now exposes prediction confidence fields in output:
- `predictionQuality`
- `predictionConfidence`
- `predictionPressureSource`
- `predictionFlags`
## Consequences
- Efficiency KPIs become physically interpretable and traceable to pressure/flow/power inputs.
- Prediction trust is now observable by downstream control/dashboard layers.
- Output schema is expanded with new prediction confidence fields.
## Rollback / Migration Notes
- Rollback path: revert `specificClass.js` hydraulic block and prediction-health integration.
- No mandatory migration required for existing flows unless they choose to consume new prediction confidence fields.