Fixed effluent retrieval
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user