Hello everyone, I am trying to model the reactor network shown below in the diagram.
The blocks represent reactors. The inlet gas for the two reactors on the left is the same composition, but they react for different times and thus have different exit compositions gas1 and gas_n.
I currently have gas1 and gas_n as reservoirs. They are fed into the reactor on the right side of the diagram using mass flow controllers at 0.5 kg/s and 1 kg/s, per the
mix1.py example.
I have a few questions:
1. When I initialize the downstream reactor, my first thought is that it should be empty. However, doing so causes the upstream mass flow controllers to throw an error. In looking at the results, I noticed that initializing the reactor with either gas1 or gas_n affects their exhaust concentrations, but does not affect the overall downstream exhaust concentration. Can someone explain this phenomenon? Does it really not matter with which gas the reactor is filled at the start, considering that they have the same species but in different concentrations?
2. I have the exhaust from the downstream reactor modelled as a reservoir, again with a mass flow controller set to 1.5 kg/s. However, initializing the downstream reservoir with either gas1 or gas_n does affect the overall composition of the downstream exhaust reservoir, so I don't trust the results I am given from this. Is there a way to get accurate results using reservoirs and mass flow controllers? How should I initialize the reservoir?
3. To get around the uncertainty about mixing the streams, I tried another way of mixing the streams using quantities. However, I am unable to initialize a reactor with a Quantity of gas; only Solution objects (phases) are accepted to intialize reactors. Is there another way around this?
My code is attached for your reference. Any advice would be much appreciated. Thank you.