Skip to content

Development of ASM3 Model #1593

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

Draft
wants to merge 131 commits into
base: main
Choose a base branch
from
Draft

Conversation

luohezhiming
Copy link
Contributor

Fixes/Resolves:

(replace this with the issue # fixed or resolved, if no issue exists then a brief statement of what this PR does)

Summary/Motivation:

Changes proposed in this PR:

Legal Acknowledgement

By contributing to this software project, I agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the license terms described in the LICENSE.txt file at the top level of this directory.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

@luohezhiming luohezhiming marked this pull request as draft June 10, 2025 20:15
@luohezhiming luohezhiming self-assigned this Jun 10, 2025
@lbianchi-lbl lbianchi-lbl added the Priority:Normal Normal Priority Issue or PR label Jun 12, 2025
Comment on lines +506 to +578
# def _TSS(self):
# tss = (
# self.conc_mass_comp["X_S"]
# + self.conc_mass_comp["X_I"]
# + self.conc_mass_comp["X_BH"]
# + self.conc_mass_comp["X_BA"]
# + self.conc_mass_comp["X_P"]
# )
# return self.params.COD_to_SS * tss
#
# self.TSS = pyo.Expression(
# rule=_TSS,
# doc="Total suspended solids (TSS)",
# )
#
# def _BOD5(self, i):
# bod5 = (
# self.conc_mass_comp["S_S"]
# + self.conc_mass_comp["X_S"]
# + (1 - self.params.f_p)
# * (self.conc_mass_comp["X_BH"] + self.conc_mass_comp["X_BA"])
# )
# # TODO: 0.25 should be a parameter instead as it changes by influent/effluent
# return self.params.BOD5_factor[i] * bod5
#
# self.BOD5 = pyo.Expression(
# ["raw", "effluent"],
# rule=_BOD5,
# doc="Five-day Biological Oxygen Demand (BOD5)",
# )
#
# def _COD(self):
# cod = (
# self.conc_mass_comp["S_S"]
# + self.conc_mass_comp["S_I"]
# + self.conc_mass_comp["X_S"]
# + self.conc_mass_comp["X_I"]
# + self.conc_mass_comp["X_BH"]
# + self.conc_mass_comp["X_BA"]
# + self.conc_mass_comp["X_P"]
# )
# return cod
#
# self.COD = pyo.Expression(
# rule=_COD,
# doc="Chemical Oxygen Demand",
# )
#
# def _TKN(self):
# tkn = (
# self.conc_mass_comp["S_NH4"]
# + self.conc_mass_comp["S_ND"]
# + self.conc_mass_comp["X_ND"]
# + self.params.i_xb
# * (self.conc_mass_comp["X_BH"] + self.conc_mass_comp["X_BA"])
# + self.params.i_xp
# * (self.conc_mass_comp["X_P"] + self.conc_mass_comp["X_I"])
# )
# return tkn
#
# self.TKN = pyo.Expression(
# rule=_TKN,
# doc="Total Kjeldahl Nitrogen",
# )
#
# def _Total_N(self):
# totaln = self.TKN + self.conc_mass_comp["S_NOX"]
# return totaln
#
# self.Total_N = pyo.Expression(
# rule=_Total_N,
# doc="Total Nitrogen",
# )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only missing piece according to Chenyu. Should just need to identify these equations in literature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iedo Priority:Normal Normal Priority Issue or PR property_model
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants