From 2b37163a8a9869b5044d63516c4dcef59d634f22 Mon Sep 17 00:00:00 2001
From: "p.vanderwilt"
Date: Fri, 7 Nov 2025 16:51:48 +0100
Subject: [PATCH] Minor fixes
---
reactor.html | 2 +-
src/specificClass.js | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/reactor.html b/reactor.html
index 6825342..e8c57c5 100644
--- a/reactor.html
+++ b/reactor.html
@@ -31,7 +31,7 @@
enableLog: { value: false },
logLevel: { value: "error" },
- positionVsParent: { value: "" },
+ positionVsParent: { value: "" }
},
inputs: 1,
outputs: 3,
diff --git a/src/specificClass.js b/src/specificClass.js
index 05a6075..23c1289 100644
--- a/src/specificClass.js
+++ b/src/specificClass.js
@@ -203,7 +203,7 @@ class Reactor {
* Update the reactor state based on the new time.
* @param {number} newTime - New time to update reactor state to, in milliseconds since epoch.
*/
- updateState(newTime = Date.now()) { // expect update with timestamp
+ updateState(newTime) { // expect update with timestamp
if (this.upstreamReactor) {
this.setInfluent = this.upstreamReactor.getEffluent[0]; // grab main effluent upstream reactor
}
@@ -320,7 +320,7 @@ class Reactor_PFR extends Reactor {
const advection = math.multiply(-1 * math.sum(this.Fs) / (this.A*this.d_x), this.D_op, this.extendedState);
const reaction = this.extendedState.map((state_slice) => this.asm.compute_dC(state_slice, this.temperature));
const transfer = Array.from(Array(this.n_x+2*BC_PADDING), () => new Array(ASM_CONSTANTS.NUM_SPECIES).fill(0));
-
+
if (isNaN(this.kla)) { // calculate OTR if kla is not NaN, otherwise use externally calculated OTR
for (let i = BC_PADDING+1; i < BC_PADDING+this.n_x - 1; i++) {
transfer[i][ASM_CONSTANTS.S_O_INDEX] = this.OTR * this.n_x/(this.n_x-2);