Add fluid volume and initial component inputs to advanced-reactor node edit dialogue

This commit is contained in:
2025-06-13 12:56:30 +02:00
parent 91482c564d
commit 05d33b7f39
3 changed files with 105 additions and 3 deletions

View File

@@ -3,12 +3,12 @@ const math = require('mathjs')
class Reactor_CSTR {
constructor(initial_state) {
constructor(volume, initial_state) {
this.state = initial_state;
console.log(this.state);
this.asm = new ASM3();
this.Vl = 10.0; // fluid volume reactor [m3]
this.Vl = volume; // fluid volume reactor [m3]
this.F = 1.0; // fluid debit [m3 d-1]
this.C_in = [0., 30., 100., 16., 0., 0., 5., 25., 75., 30., 0., 0., 125.]; // composition influent
this.OTR = 100.0; // oxygen transfer rate [g O2 d-1]