From 01380c309f757622c5ad194f42ee938cedde2bc7 Mon Sep 17 00:00:00 2001
From: "p.vanderwilt"
Date: Mon, 7 Jul 2025 14:47:50 +0200
Subject: [PATCH 1/4] Add boundary condition input and update reactor
configuration handling
---
advanced-reactor.html | 17 +++++++++++++++++
src/nodeClass.js | 1 +
src/specificClass.js | 27 ++++++++++++++++++++++-----
3 files changed, 40 insertions(+), 5 deletions(-)
diff --git a/advanced-reactor.html b/advanced-reactor.html
index 512f3dd..6594947 100644
--- a/advanced-reactor.html
+++ b/advanced-reactor.html
@@ -8,6 +8,7 @@
volume: { value: 0., required: true },
length: { value: 0.},
resolution_L: { value: 0.},
+ boundary_condition: {value: "Generalised"},
n_inlets: { value: 1, required: true},
kla: { value: null },
S_O_init: { value: 0., required: true },
@@ -75,6 +76,18 @@
$(".PFR").show();
}
});
+ $("#node-input-boundary_condition").typedInput({
+ types: [
+ {
+ value: "Generalised",
+ options: [
+ { value: "Generalised", label: "Generalised"},
+ { value: "Diriclet", label: "Diriclet"},
+ { value: "Danckwerts", label: "Danckwerts"}
+ ]
+ }
+ ]
+ })
// Set initial visibility on dialog open
const initialType = $("#node-input-reactor_type").typedInput("value");
if (initialType === "CSTR") {
@@ -117,6 +130,10 @@
+
+
+
+
-