Update generalFunctions dependency and fix effluent handling in liquidFlowHandler
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -9,12 +9,12 @@
|
||||
"version": "0.0.1",
|
||||
"license": "SEE LICENSE",
|
||||
"dependencies": {
|
||||
"generalFunctions": "git+https://gitea.centraal.wbd-rd.nl/p.vanderwilt/generalFunctions.git#implement-reactor-child"
|
||||
"generalFunctions": "git+http://gitea.centraal.wbd-rd.nl/p.vanderwilt/generalFunctions.git#fix-missing-references"
|
||||
}
|
||||
},
|
||||
"node_modules/generalFunctions": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "git+https://gitea.centraal.wbd-rd.nl/p.vanderwilt/generalFunctions.git#958ec2269c902f3ebb11b13527fbc860ee9381e7",
|
||||
"resolved": "git+http://gitea.centraal.wbd-rd.nl/p.vanderwilt/generalFunctions.git#3876f86530cc9c4c2ec65f305376923e6582eb85",
|
||||
"license": "SEE LICENSE"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +22,6 @@
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"generalFunctions": "git+https://gitea.centraal.wbd-rd.nl/p.vanderwilt/generalFunctions.git#implement-reactor-child"
|
||||
"generalFunctions": "git+https://gitea.centraal.wbd-rd.nl/p.vanderwilt/generalFunctions.git#fix-missing-references"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,11 +16,12 @@ class liquidFlowHandler {
|
||||
this.getPumpFlow();
|
||||
let effluent = this.reactors[1].getEffluent;
|
||||
effluent.payload.F = this.flow;
|
||||
effluent.payload.inlet = 1;
|
||||
this.reactors[0].setInfluent = effluent;
|
||||
}
|
||||
|
||||
getPumpFlow() {
|
||||
this.flow = this.pump.measurements.type("flow").variant("predicted").position("atEquipment").getCurrentValue();
|
||||
this.flow = this.pump.measurements.type("flow").variant("measured").position("atEquipment").getCurrentValue() || 0;
|
||||
}
|
||||
|
||||
getOutput() {
|
||||
|
||||
Reference in New Issue
Block a user