Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolving Potential Evaluation Errors #1553

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Resolve cstr_injection division by 0
  • Loading branch information
MarcusHolly committed Jan 23, 2025
commit 408f2a0e395fa474705e866a7bec5b2fce347dee
5 changes: 3 additions & 2 deletions watertap/unit_models/cstr_injection.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,9 @@ def cstr_performance_eqn(b, t, r):
)
def eq_hydraulic_retention_time(self, t):
return (
self.hydraulic_retention_time[t]
== self.volume[t] / self.control_volume.properties_in[t].flow_vol
self.volume[t]
== self.hydraulic_retention_time[t]
* self.control_volume.properties_in[t].flow_vol
)

if self.config.has_aeration:
Expand Down