From 5c03dddb7923066f705edbd490afd49388c511bf Mon Sep 17 00:00:00 2001
From: "p.vanderwilt"
Date: Tue, 8 Jul 2025 10:03:03 +0200
Subject: [PATCH] Refactor boundary condition handling to use adjustable
parameter alpha in advanced-reactor and specificClass
---
advanced-reactor.html | 25 ++++++++++---------------
src/nodeClass.js | 2 +-
src/specificClass.js | 20 ++------------------
3 files changed, 13 insertions(+), 34 deletions(-)
diff --git a/advanced-reactor.html b/advanced-reactor.html
index 9ea7e23..40ea4f6 100644
--- a/advanced-reactor.html
+++ b/advanced-reactor.html
@@ -8,7 +8,7 @@
volume: { value: 0., required: true },
length: { value: 0.},
resolution_L: { value: 0.},
- boundary_condition: {value: "Generalised"},
+ alpha: {value: 0},
n_inlets: { value: 1, required: true},
kla: { value: null },
S_O_init: { value: 0., required: true },
@@ -76,17 +76,9 @@
$(".PFR").show();
}
});
- $("#node-input-boundary_condition").typedInput({
- types: [
- {
- value: "Generalised",
- options: [
- { value: "Generalised", label: "Generalised"},
- { value: "Dirichlet", label: "Dirichlet"},
- { value: "Danckwerts", label: "Danckwerts"}
- ]
- }
- ]
+ $("#node-input-alpha").typedInput({
+ type:"num",
+ types:["num"]
})
// Set initial visibility on dialog open
const initialType = $("#node-input-reactor_type").typedInput("value");
@@ -131,9 +123,12 @@
-