Close volume balance and minor fixes
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
color: "#e4a363",
|
||||
defaults: {
|
||||
name: { value: "" },
|
||||
SVI: { value: 0.1, required: true },
|
||||
TS_set: { value: 0.1, required: true },
|
||||
inlet: { value: 1, required: true }
|
||||
},
|
||||
inputs: 1,
|
||||
@@ -15,7 +15,7 @@
|
||||
return this.name || "Settling basin";
|
||||
},
|
||||
oneditprepare: function() {
|
||||
$("#node-input-SVI").typedInput({
|
||||
$("#node-input-TS_set").typedInput({
|
||||
type:"num",
|
||||
types:["num"]
|
||||
});
|
||||
@@ -25,9 +25,9 @@
|
||||
});
|
||||
},
|
||||
oneditsave: function() {
|
||||
let SVI = parseFloat($("#node-input-SVI").typedInput("value"));
|
||||
if (isNaN(SVI) || SVI < 0) {
|
||||
RED.notify("SVI is not set correctly", {type: "error"});
|
||||
let TS_set = parseFloat($("#node-input-TS_set").typedInput("value"));
|
||||
if (isNaN(TS_set) || TS_set < 0) {
|
||||
RED.notify("TS is not set correctly", {type: "error"});
|
||||
}
|
||||
let inlet = parseInt($("#node-input-n_inlets").typedInput("value"));
|
||||
if (inlet < 1) {
|
||||
@@ -43,8 +43,8 @@
|
||||
<input type="text" id="node-input-name" placeholder="Name">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-input-SVI"><i class="fa fa-tag"></i> SVI (alternate)</label>
|
||||
<input type="text" id="node-input-SVI" placeholder="">
|
||||
<label for="node-input-TS_set"><i class="fa fa-tag"></i> Total Solids set point [g m-3]</label>
|
||||
<input type="text" id="node-input-TS_set" placeholder="">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-input-inlet"><i class="fa fa-tag"></i> Assigned inlet return line</label>
|
||||
|
||||
Reference in New Issue
Block a user