2 Commits

Author SHA1 Message Date
znetsixe
7c8722b324 changed colours and icon based on s88 2025-10-14 13:52:55 +02:00
442ddc60ed Fix syntax error 2025-10-01 11:50:35 +02:00
2 changed files with 14 additions and 4 deletions

View File

@@ -1,9 +1,19 @@
<!--
| S88-niveau | Primair (blokkleur) | Tekstkleur |
| ---------------------- | ------------------- | ---------- |
| **Area** | `#0f52a5` | wit |
| **Process Cell** | `#0c99d9` | wit |
| **Unit** | `#50a8d9` | zwart |
| **Equipment (Module)** | `#86bbdd` | zwart |
| **Control Module** | `#a9daee` | zwart |
-->
<script src="/reactor/menu.js"></script>
<script type="text/javascript">
RED.nodes.registerType("reactor", {
category: "WWTP",
color: "#c4cce0",
category: "EVOLV",
color: "#50a8d9",
defaults: {
name: { value: "" },
reactor_type: { value: "CSTR", required: true },
@@ -39,7 +49,7 @@
outputs: 3,
inputLabels: ["input"],
outputLabels: ["process", "dbase", "parent"],
icon: "font-awesome/fa-recycle",
icon: "font-awesome/fa-flask",
label: function() {
return this.name || "Reactor";
},

View File

@@ -323,7 +323,7 @@ class Reactor_PFR extends Reactor {
_updateMeasurement(measurementType, value, position, context) {
switch(measurementType) {
case "quantity (oxygen)":
grid_pos = Math.round(position / this.config.length * this.n_x);
let grid_pos = Math.round(position / this.config.length * this.n_x);
this.state[grid_pos][S_O_INDEX] = value; // naive approach for reconciling measurements and simulation
break;
default: