From f517b7764d083b49f8fac052a2f81e29da0325ab Mon Sep 17 00:00:00 2001 From: "p.vanderwilt" Date: Thu, 3 Jul 2025 22:28:34 +0200 Subject: [PATCH] Remove mistake boundary condition --- dependencies/reactor_class.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dependencies/reactor_class.js b/dependencies/reactor_class.js index 652ee26..76a6340 100644 --- a/dependencies/reactor_class.js +++ b/dependencies/reactor_class.js @@ -184,7 +184,7 @@ class Reactor_PFR { BC_gradient[0] = -1; BC_gradient[1] = 1; let Pe = this.length*math.sum(this.Fs)/(this.D*this.A) - const BC_dispersion = math.multiply((1-(1+4*this.volume/math.sum(this.Fs)/Pe)^0.5)/Pe, this.D * this.A / (math.sum(this.Fs)*this.d_x), [BC_gradient], new_state)[0]; + const BC_dispersion = math.multiply((1-(1+4*this.volume/math.sum(this.Fs)/Pe)^0.5)/Pe, [BC_gradient], new_state)[0]; console.log(math.add(BC_C_in, BC_dispersion)); new_state[0] = math.add(BC_C_in, BC_dispersion).map(val => val < 0 ? 0 : val);