Issue with CSTR Connections and Backflow

Dear All,

I am encountering a problem with the CSTR connections, where the flow seems to dead-end and backflow occurs to the previous CSTR. I have attached a schematic of the setup for clarity.

Here is what I tried:

flow_sheet.add_connections(cstr_1, cstr_2)
flow_sheet.add_connections(cstr_1, outlet)

According to flow_sheet.get_flow_rate(), there is no destination from CSTR2, which implies that flow might backflow to CSTR1.

To fix this, I added another connection:

flow_sheet.add_connections(cstr_2, cstr_1)

Now, there is a destination back to CSTR1. However, this causes a violation of the local mass balance around CSTR2.

I would appreciate any guidance on the correct way to set up these connections without violating mass balance.

Best regards,

Anan

Dear Anan,

could you please provide a fully running (or rather crashing) minimum reproducible example?

Generally, what you want to to should be possible, so without more context it’s difficult to assert where your issue comes from.

1 Like