Add fluid volume and initial component inputs to advanced-reactor node edit dialogue
This commit is contained in:
@@ -7,7 +7,24 @@ module.exports = function(RED) {
|
||||
|
||||
const Reactor = require('./dependencies/reactor_class');
|
||||
|
||||
const reactor = new Reactor(Array(13).fill(0.001));
|
||||
const reactor = new Reactor(
|
||||
config.volume,
|
||||
[
|
||||
config.S_O_init,
|
||||
config.S_I_init,
|
||||
config.S_S_init,
|
||||
config.S_NH_init,
|
||||
config.S_N2_init,
|
||||
config.S_NO_init,
|
||||
config.S_HCO_init,
|
||||
config.X_I_init,
|
||||
config.X_S_init,
|
||||
config.X_H_init,
|
||||
config.X_STO_init,
|
||||
config.X_A_init,
|
||||
config.X_TS_init
|
||||
]
|
||||
);
|
||||
|
||||
node.on('input', function(msg, send, done) {
|
||||
if (msg.topic == "clock") {
|
||||
|
||||
Reference in New Issue
Block a user