Refactor, minor changes and remove depreciated functions

This commit is contained in:
2025-11-06 16:09:18 +01:00
parent b0dd9b6a8f
commit 9f060d2dd0
3 changed files with 5 additions and 35 deletions

View File

@@ -2,7 +2,7 @@
<script type="text/javascript">
RED.nodes.registerType("reactor", {
category: "WWTP",
category: "EVOLV",
color: "#c4cce0",
defaults: {
name: { value: "" },
@@ -10,7 +10,6 @@
volume: { value: 0., required: true },
length: { value: 0.},
resolution_L: { value: 0.},
alpha: {value: 0},
kla: { value: null },
S_O_init: { value: 0., required: true },
@@ -92,10 +91,6 @@
$(".PFR").show();
}
});
$("#node-input-alpha").typedInput({
type:"num",
types:["num"]
})
$("#node-input-timeStep").typedInput({
type:"num",
types:["num"]
@@ -149,13 +144,6 @@
<label for="node-input-resolution_L"><i class="fa fa-tag"></i> Resolution</label>
<input type="text" id="node-input-resolution_L" placeholder="#">
</div>
<div class="PFR">
<p> Inlet boundary condition parameter &alpha; (&alpha; = 0: Danckwerts BC / &alpha; = 1: Dirichlet BC) </p>
<div class="form-row">
<label for="node-input-alpha"><i class="fa fa-tag"></i>Adjustable parameter BC</label>
<input type="text" id="node-input-alpha">
</div>
</div>
<h3> Internal mass transfer calculation (optional) </h3>
<div class="form-row">
<label for="node-input-kla"><i class="fa fa-tag"></i> kLa [d-1]</label>
@@ -227,7 +215,6 @@
<!-- Position fields will be injected here -->
<div id="position-fields-placeholder"></div>
</script>
<script type="text/html" data-help-name="reactor">