Refactor variable declarations in specificClass and nodeClass for consistency; update generalFunctions dependency to specific commit.
This commit is contained in:
@@ -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]);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user