I'm currently working on a dynamic simulation, where each flowsheet object has a defined residence time and signals don't instantly propagate through the whole flowsheet.
To achieve this I seperated the flowsheet by disconnecting its components and artificially transfering signals in Scripts, with the delay equaling the residence time. Check out the adjacent file to see an example.
Is there a way around this method, say by keeping all connections in the flowsheet and simply solving individual parts of it step by step? The current method in use is Flowsheet.SolveFlowsheet2(), which only works globally and not selectively.
You could simply call the Calculate() function on each block (stream or unit operation) to calculate it isolatedly. Please note that when you calculate a unit operation, the outlet stream conditions are updated (T, P, H and composition), but they are not calculated automatically if you do as desccribed in the above.
Regards,
Daniel
Last edit: Daniel Medeiros 2020-01-17
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the suggestion. I tried to implement it but came accross a limitation while using Calculate() on a Stream Mixer. CalculateFlowsheet2() works just fine, but when I try to solve MIX separately, the outlet is not calculated.
Hey,
I'm currently working on a dynamic simulation, where each flowsheet object has a defined residence time and signals don't instantly propagate through the whole flowsheet.
To achieve this I seperated the flowsheet by disconnecting its components and artificially transfering signals in Scripts, with the delay equaling the residence time. Check out the adjacent file to see an example.
Is there a way around this method, say by keeping all connections in the flowsheet and simply solving individual parts of it step by step? The current method in use is Flowsheet.SolveFlowsheet2(), which only works globally and not selectively.
Thank you
Hi Patrick,
You could simply call the Calculate() function on each block (stream or unit operation) to calculate it isolatedly. Please note that when you calculate a unit operation, the outlet stream conditions are updated (T, P, H and composition), but they are not calculated automatically if you do as desccribed in the above.
Regards,
Daniel
Last edit: Daniel Medeiros 2020-01-17
Thanks for the suggestion. I tried to implement it but came accross a limitation while using Calculate() on a Stream Mixer. CalculateFlowsheet2() works just fine, but when I try to solve MIX separately, the outlet is not calculated.
Do you know why this is?