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 // Merge UI config over defaults
this.config = { this.config = {
general: { general: {
name: uiConfig.name, name: uiConfig.name || this.name,
id: this.node.id, // node.id is for the child registration process id: this.node.id, // node.id is for the child registration process
unit: null, unit: null,
logging: { logging: {

View File

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