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

Merge updates in conventional wastewater configurations #103

Closed
wants to merge 393 commits into from
Closed

Conversation

yalinli2
Copy link
Member

@yalinli2 yalinli2 commented Aug 7, 2023

@RaiSaumitra I'm making this a draft PR so we can discuss any needed updates, some of my changes could be style-related for easier understanding/improve in speed

RaiSaumitra and others added 30 commits May 28, 2023 01:23
Simplified step 4 of ASM2d-ADM1 interface. Case II/III/IV, all need the same if else conditions.

Also rectified an error message in Step 5(a).
X_S in ASM1 did not have N content, as it was taken care of by X_ND. However, in ASM2d X_S has non-zero N content, which we use as 'X_ND_asm1' in the code. Therefore, we no longer need the check (same with S_F). On the other hand N/P content in S_A now needs a check.
Since in step 5(b) soluble inert P is assumed to be 0, a check needs to be put in place. Other changes made with regard to documentation.
Modified the function which checks simultaneous balance of nutrients. In ASM1-ADM1 only COD, and TKN were checked. Now the simultaneous balanced of COD, TKN, and TP would be verified.
Deployed checks for N and P content in PAO across ASM2d and ADM1, since PAO is mapped directly. Similar checks were not deemed necessary for PHA, and PP.
Updated charge balance to include inorganic phosphorous on the ADM1 side.
Started modifying ADM1-ASM2d interface
Modified the function which checks simultaneous balance of nutrients. In ADM1-ASM1 only COD, and TKN were checked. Now the simultaneous balanced of COD, TKN, and TP would be verified.

Also modified step 1(a) to update N balance
Changed step 2 to include P balance
Modified step 1(a) and 1(b) to include P balance.
Made several changes for ADM1-ASM2d interface to accommodate COD, TN, and TP balance.
Completed transitions and checks on ADM1-ASM2d interface.

COD, TN, and TP balance holds.
Modified charge balance to accommodate ADM1 and ASM2d.
Design of Primary clarifier
Added design function to secondary clarifier. For the same purpose, added new property 'height'.
Adding default F_BM and lifetime values for pump, and metals.
Added design_pump function for pumping of influents. Used it in the main design function.

The edits may seem weird as they were made in another desktop and copied here.
Added cost of pump, and pumping.
Adding the new junction class mADM1toASM2d, which acts as an interface between modified ADM1 and ASM2d.

A copy of this class exists in 'junction_copy'.
Adding the new junction class ASM2dtomADM1, which acts as an interface between ASM2d and modified ADM1.

A copy of this class exists in 'junction_copy'.
Corrected typos
1. Updated design and cost functions of SC.

2. Added user-defined parameters for fixed design variables such as upflow_velocity, cylinderical_depth.
Updated design and cost function of thickener. Diameter is based on solid loading rate. Otherwise the design and cost is similar to that of clarifier.
Changed the order of import statements to use pump in clarifier.

Co-Authored-By: Yalin <[email protected]>
Changed order of import statements to use pump in clarifier

Co-Authored-By: Yalin <[email protected]>
Fixed typo (cylinderical to cylindrical).

Made changes in design_pump() function of secondary clarifier.
Changed order of import statements to use pump in primary clarifier.
Changed design_pump() function to allow use of pump (based on discussion with Yalin).

Changed typo (cylinderical to cylindrical).
joyxyz1994 and others added 19 commits April 26, 2024 16:28
minor changes for temperature correction
Soluble and particulate inert are now directly mapped.
Minor updates where I have added functions for uncertainty analysis for Gates
Made this change to debug an error related to dynamic pH calculation.
This reverts commit e05a275, reversing
changes made to d5b26ba.
Adding separate categories for emission sources for uncertainty analysis.
@yalinli2
Copy link
Member Author

@joyxyz1994 @RaiSaumitra I think the recent merge related to bsm2 pretty much included all the changes here? The metro branch of EXPOsan is quite outdated now, I'm not sure if there's another repo for the systems for the metro paper?

@RaiSaumitra
Copy link
Contributor

RaiSaumitra commented Oct 16, 2024 via email

@yalinli2
Copy link
Member Author

yalinli2 commented Oct 16, 2024 via email

@RaiSaumitra
Copy link
Contributor

RaiSaumitra commented Oct 16, 2024 via email

@yalinli2
Copy link
Member Author

Oh the branch is on QSDsan? I was talking about EXPOsan on the system configuration of the systems in metro.

Can you do the following so we'll be more organized?

  1. See if there's anything on the QSDsan metro branch that you'd like to keep.
  2. See if there's anything on the EXPOsan metro branch that you'd like to keep.
  3. Push the system configuration you are currently using to a new EXPOsan branch, maybe dev_metro for consistency, thanks!

@RaiSaumitra
Copy link
Contributor

RaiSaumitra commented Oct 16, 2024 via email

@yalinli2
Copy link
Member Author

Oh cool! I'll archive/remove those branches then, I'll close this issue and wait till it's ready to be merged in, thanks!

@yalinli2 yalinli2 closed this Oct 17, 2024
@yalinli2 yalinli2 deleted the metro branch October 17, 2024 01:12
@yalinli2
Copy link
Member Author

Branches archived/removed!

Oh cool! I'll archive/remove those branches then, I'll close this issue and wait till it's ready to be merged in, thanks!

@RaiSaumitra
Copy link
Contributor

RaiSaumitra commented Oct 17, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants