Skip to content

Commit

Permalink
Check cstr volume only when flow rate is not None
Browse files Browse the repository at this point in the history
  • Loading branch information
schmoelder committed Dec 5, 2023
1 parent 498c387 commit e66ec1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CADETProcess/processModel/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,8 @@ def check_cstr_volume(self):
"""
flag = True
for cstr in self.flow_sheet.cstrs:
if cstr.flow_rate is None:
continue
V_0 = cstr.V
V_in = self.flow_rate_timelines[cstr.name].total_in.integral()
V_out = self.flow_rate_timelines[cstr.name].total_out.integral()
Expand Down

0 comments on commit e66ec1b

Please sign in to comment.