Fixed effluent retrieval

This commit is contained in:
2025-07-31 14:48:03 +02:00
parent 1f57b6999e
commit 8996e80b68
2 changed files with 4 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ class nodeClass {
// Merge UI config over defaults
this.config = {
general: {
name: uiConfig.name,
name: uiConfig.name || this.name,
id: this.node.id, // node.id is for the child registration process
unit: null,
logging: {

View File

@@ -6,14 +6,14 @@ class liquidFlowHandler {
this.config = config;
this.logger = new logger(this.config.general.logging.enabled, this.config.general.logging.logLevel, config.general.name);
this.reactors = Array(2);
this.reactors = [null, null];
this.machines = {};
this.debit = 0;
this.childRegistrationUtils = new childRegistrationUtils(this);
}
updateState(timeStamp) {
effluent = this.reactors[1].getEffluent();
effluent = this.reactors[1].getEffluent;
effluent.payload.F = this.debit;
this.reactors[0].setInfluent = effluent;
}
@@ -27,7 +27,7 @@ class liquidFlowHandler {
}
getOutput() {
mainEffluent = this.reactors[1].getEffluent();
mainEffluent = this.reactors[1].getEffluent;
sideStream = structuredClone(mainEffluent);
mainEffluent.payload.F -= this.debit;
sideStream.payload.F = this.debit;