Recycled stream showing zero flow in a system #168
-
Beta Was this translation helpful? Give feedback.
Answered by
yoelcortes
Sep 21, 2023
Replies: 2 comments
-
You are seeing a zero flow rate to the mixer because you are printing the streams before you simulate the system. The code you sent me doesn't actually run, but I edited it anyway to convey that you should print results after simulating the systems (which solves recycle loops): S113 = Stream('S113', phase='s') #recycle stream
S114 = Stream('S114', phase='s')
UO106 = units.Mixer('UO106', ins=(S109, S113), outs=(S114))
# Hammermill
S112 = Stream('S112', phase='s') #crushed dry feedstock
S115 = Stream('S115', phase='s')
UO107 = units.HammerMill('UO107', ins=(S114), outs=(S115))
#Vibrating Screen
S116 = Stream('S116', phase='s')
UO108 = VibratingScreen('UO108', ins=S115, outs=(S113,S116), split=0.1)
Preprocessing = bst.main_flowsheet.create_system('Preprocessing')
Preprocessing.simulate()
Preprocessing.diagram('cluster', format='png')
UO106.show(flow='kg/hr', composition = False, N=9)
r6 = UO106.results()
print(r6)
UO107.show(flow='kg/hr', composition = False, N=9)
r7 = UO107.results()
print(r7)
UO108.show(flow='kg/hr', composition = False, N=9)
r8 = UO108.results()
print(r8) Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Uzair1shah
-
Thanks a lot. That worked and it also makes sense now. I was simulating the individual unit operations. Thank you so much again. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Uzair1shah,
You are seeing a zero flow rate to the mixer because you are printing the streams before you simulate the system. The code you sent me doesn't actually run, but I edited it anyway to convey that you should print results after simulating the systems (which solves recycle loops):