Fix structure and improve comments in ASM3 and Reactor_CSTR classes
This commit is contained in:
4
dependencies/asm3_class.js
vendored
4
dependencies/asm3_class.js
vendored
@@ -65,7 +65,7 @@ class ASM3 {
|
||||
this.stoi_matrix = this._initialise_stoi_matrix()
|
||||
}
|
||||
|
||||
_initialise_stoi_matrix(){ // initialise stoichiometric matrix
|
||||
_initialise_stoi_matrix() { // initialise stoichiometric matrix
|
||||
const { f_SI, f_XI, Y_STO_O, Y_STO_NO, Y_H_O, Y_H_NO, Y_A, i_CODN, i_CODNO, i_NSI, i_NSS, i_NXI, i_NXS, i_NBM, i_TSXI, i_TSXS, i_TSBM, i_TSSTO, i_cNH, i_cNO } = this.stoi_params;
|
||||
|
||||
const stoi_matrix = Array(12);
|
||||
@@ -121,7 +121,7 @@ class ASM3 {
|
||||
return rates;
|
||||
}
|
||||
|
||||
compute_dC(state){ // compute changes in concentrations
|
||||
compute_dC(state) { // compute changes in concentrations
|
||||
// state: S_O, S_I, S_S, S_NH, S_N2, S_NO, S_HCO, X_I, X_S, X_H, X_STO, X_A, X_TS
|
||||
return math.multiply(this.stoi_matrix, this.compute_rates(state));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user