Add boundary condition input and update reactor configuration handling

This commit is contained in:
2025-07-07 14:47:50 +02:00
parent c89d5b0024
commit 01380c309f
3 changed files with 40 additions and 5 deletions

View File

@@ -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 @@
<div class="form-row PFR">
<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="form-row PFR">
<label for="node-input-boundary_condition"><i class="fa fa-tag"></i>Inlet boundary condition</label>
<input type="text" id="node-input-boundary_condition">
</div>
<div class="form-row">
<label for="node-input-n_inlets"><i class="fa fa-tag"></i> Number of inlets</label>