Refactor boundary condition handling to use adjustable parameter alpha in advanced-reactor and specificClass

This commit is contained in:
2025-07-08 10:03:03 +02:00
parent 01318a2d3b
commit 5c03dddb79
3 changed files with 13 additions and 34 deletions

View File

@@ -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 @@
<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 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>
<div class="form-row">
<label for="node-input-n_inlets"><i class="fa fa-tag"></i> Number of inlets</label>