From ef02c47cff9999fb8b010c915f307a5e508c4b87 Mon Sep 17 00:00:00 2001
From: "p.vanderwilt"
Date: Tue, 22 Jul 2025 14:36:52 +0200
Subject: [PATCH] Add WIP oxygen measurement child relation
---
src/specificClass.js | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/specificClass.js b/src/specificClass.js
index a240275..81ba36b 100644
--- a/src/specificClass.js
+++ b/src/specificClass.js
@@ -254,6 +254,16 @@ class Reactor_PFR extends Reactor {
return stateNew;
}
+ updateMeasurement(variant, subType, value, position) {
+ switch(subType) {
+ case "oxygen":
+ grid_pos = Math.round(position * this.n_x);
+ this.state[grid_pos][S_O_INDEX] = value; // naive approach for reconciling measurements and simulation
+ return;
+ }
+ super.updateMeasurement(variant, subType, value, position);
+ }
+
/**
* Apply boundary conditions to the reactor state.
* for inlet, apply generalised Danckwerts BC, if there is not flow, apply Neumann BC with no flux