Refactor ASM3 module to export ASM_CONSTANTS and update references in Reactor classes

This commit is contained in:
2025-11-06 15:47:18 +01:00
parent 5c41dc44a3
commit b0dd9b6a8f
3 changed files with 24 additions and 16 deletions

View File

@@ -1,4 +1,9 @@
const math = require('mathjs')
const math = require('mathjs');
const ASM_CONSTANTS = {
S_O_INDEX: 0,
NUM_SPECIES: 13
};
/**
* ASM3 class for the Activated Sludge Model No. 3 (ASM3). Using Koch et al. 2000 parameters.
@@ -208,4 +213,4 @@ class ASM3 {
}
}
module.exports = ASM3;
module.exports = { ASM3, ASM_CONSTANTS };