Refactor variable declarations in specificClass and nodeClass for consistency; update generalFunctions dependency to specific commit.

This commit is contained in:
2025-09-03 12:00:45 +02:00
parent 8996e80b68
commit 27b1508d73
4 changed files with 8 additions and 8 deletions

View File

@@ -80,8 +80,8 @@ class nodeClass {
* Execute a single tick and send outputs.
*/
_tick() {
processMsg = this.source.getOutput();
influxMsg = null;
let processMsg = this.source.getOutput();
let influxMsg = null;
// Send only updated outputs on ports 0 & 1
this.node.send([processMsg, influxMsg, null]);

View File

@@ -13,7 +13,7 @@ class liquidFlowHandler {
}
updateState(timeStamp) {
effluent = this.reactors[1].getEffluent;
let effluent = this.reactors[1].getEffluent;
effluent.payload.F = this.debit;
this.reactors[0].setInfluent = effluent;
}
@@ -27,8 +27,8 @@ class liquidFlowHandler {
}
getOutput() {
mainEffluent = this.reactors[1].getEffluent;
sideStream = structuredClone(mainEffluent);
let mainEffluent = this.reactors[1].getEffluent;
let sideStream = structuredClone(mainEffluent);
mainEffluent.payload.F -= this.debit;
sideStream.payload.F = this.debit;
sideStream.payload.inlet = 1;