From baecf2f5998f532fdc3e67a8c893fccb3a4184df Mon Sep 17 00:00:00 2001 From: "p.vanderwilt" Date: Thu, 2 Oct 2025 17:39:31 +0200 Subject: [PATCH] Functioning code, requires improved sequencing --- src/specificClass.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/specificClass.js b/src/specificClass.js index ac1487b..3e13de7 100644 --- a/src/specificClass.js +++ b/src/specificClass.js @@ -46,7 +46,7 @@ class Reactor { this.currentTime = Date.now(); // milliseconds since epoch [ms] this.timeStep = 1 / (24*60*60) * this.config.timeStep; // time step in seconds, converted to days. - this.speedUpFactor = 60; // speed up factor for simulation, 60 means 1 minute per simulated second + this.speedUpFactor = 100; // speed up factor for simulation, 60 means 1 minute per simulated second } /** @@ -327,6 +327,7 @@ class Reactor_PFR extends Reactor { } this.state = this._arrayClip2Zero(stateNew); + this.state.forEach((row, i) => this.extendedState[i+BC_PADDING] = row); return stateNew; } @@ -347,8 +348,6 @@ class Reactor_PFR extends Reactor { * for outlet, apply regular Danckwerts BC (Neumann BC with no flux) */ _applyBoundaryConditions() { - this.state.forEach((row, i) => this.extendedState[i+BC_PADDING] = row); - if (this.upstreamReactor) { for (let i = 0; i < BC_PADDING; i++) { this.extendedState[i] = this.upstreamReactor.state.at(i-BC_PADDING);