Skip to content

Commit

Permalink
Tune effluent metric scaling factors for the bio_P=True case
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusHolly committed Oct 1, 2024
1 parent 043a544 commit 6c450b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,6 @@ def display_performance_metrics(m):


if __name__ == "__main__":
# This method builds and runs a steady state activated sludge flowsheet.
m, results = main(bio_P=False)

stream_table = create_stream_table_dataframe(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -683,19 +683,19 @@ def calculate_scaling_factors(self):

if self.is_property_constructed("BOD5"):
if iscale.get_scaling_factor(self.BOD5) is None:
iscale.set_scaling_factor(self.BOD5, 1e2)
iscale.set_scaling_factor(self.BOD5, 1e1)

if self.is_property_constructed("SNKj"):
if iscale.get_scaling_factor(self.SNKj) is None:
iscale.set_scaling_factor(self.SNKj, 1e3)
iscale.set_scaling_factor(self.SNKj, 1e2)

if self.is_property_constructed("SNOX"):
if iscale.get_scaling_factor(self.SNOX) is None:
iscale.set_scaling_factor(self.SNOX, 1e3)

if self.is_property_constructed("SP_organic"):
if iscale.get_scaling_factor(self.SP_organic) is None:
iscale.set_scaling_factor(self.SP_organic, 1e3)
iscale.set_scaling_factor(self.SP_organic, 1e2)

if self.is_property_constructed("SP_inorganic"):
if iscale.get_scaling_factor(self.SP_inorganic) is None:
Expand Down

0 comments on commit 6c450b4

Please sign in to comment.