Add flow number configuration and UI input for rotating machine

This commit is contained in:
2025-10-31 14:16:00 +01:00
parent ac40a93ef1
commit 303dfc477d
2 changed files with 7 additions and 1 deletions

View File

@@ -25,6 +25,7 @@
shutdown: { value: 0 },
cooldown: { value: 0 },
machineCurve : { value: {}},
flowNumber : { value: 1, required: true },
//define asset properties
uuid: { value: "" },
@@ -127,6 +128,10 @@
<label for="node-input-cooldown"><i class="fa fa-clock-o"></i> Cooldown Time</label>
<input type="number" id="node-input-cooldown" style="width:60%;" />
</div>
<div class="form-row">
<label for="node-input-flowNumber"><i class="fa fa-clock-o"></i> Flow Number</label>
<input type="number" id="node-input-flowNumber" style="width:60%;" />
</div>
<!-- Asset fields injected here -->
<div id="asset-fields-placeholder"></div>

View File

@@ -523,7 +523,8 @@ class Machine {
}
_updateConnectedReactor() {
this.downstreamReactor.setInfluent = this.upstreamReactor.getEffluent[1];
// Handles flow according to the configured "flow number"
this.downstreamReactor.setInfluent = this.upstreamReactor.getEffluent[this.config.flowNumber];
}
// Helper method for operational state check