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
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
393 commits
Select commit Hold shift + click to select a range
cc178e3
Simplified Step 4 (ASM2d-ADM1)
RaiSaumitra May 28, 2023
5ff4130
Correct checks for modified ASM2d-ADM1
RaiSaumitra May 28, 2023
5294702
Added check for P content in SI (ASM2d-ADM1)
RaiSaumitra May 28, 2023
ff16555
Updated check on COD/TKN/TP balance
RaiSaumitra May 28, 2023
7c52573
Checks for direct mapping of X_PAO, X_PHA, and X_PP
RaiSaumitra May 28, 2023
1eb91c8
Updated charge balance (ASM2d-ADM1)
RaiSaumitra May 28, 2023
4b61c19
ADM1-ASM2d interface
RaiSaumitra May 29, 2023
23fbb1c
Updated checks and step 1(a) (ADM1-ASM2d)
RaiSaumitra May 29, 2023
b2fb6b0
Step 2 ADM1-ASM2d now includes TP balance
RaiSaumitra May 29, 2023
638067a
Step 1(a) and 1(b): ADM1-ASM2d interface
RaiSaumitra May 30, 2023
1ad0f24
Made changes in ADM1-ASM2d interface
RaiSaumitra May 31, 2023
67a8a40
ADM1-ASM2d interface completed
RaiSaumitra Jun 1, 2023
1fbe3f8
Modified charge balance (ADM1-ASM2d)
RaiSaumitra Jun 2, 2023
9f0128d
Typo in design function of primary clarifier
RaiSaumitra Jun 16, 2023
c8af3e2
Design of clarifier
RaiSaumitra Jul 2, 2023
ceb6317
Merge branch 'metro' of https://github.com/QSD-Group/QSDsan into metro
RaiSaumitra Jul 2, 2023
80252f1
Secondary clarifier design function
RaiSaumitra Jul 3, 2023
35eb24c
TEA default parameters (clarifier)
RaiSaumitra Jul 3, 2023
6bac054
Design_pump added
RaiSaumitra Jul 6, 2023
524f826
Enhanced design of PC
RaiSaumitra Jul 7, 2023
3d67e7e
Adding mADM1toASM2d to junction
RaiSaumitra Jul 7, 2023
032cb40
Adding ASM2dtomADM1 to junction
RaiSaumitra Jul 7, 2023
5ddce72
Spotted typos
RaiSaumitra Jul 10, 2023
094d478
Updated design and cost (Clarifier)
RaiSaumitra Jul 10, 2023
6c482ed
Design and cost function of thickener
RaiSaumitra Jul 11, 2023
9754338
Changed order of import statements
RaiSaumitra Jul 12, 2023
8492d0d
Changed dependency of SanUnits
RaiSaumitra Jul 12, 2023
356abf8
Updated design of secondary clarifier
RaiSaumitra Jul 12, 2023
29552ba
Changed dependency among SanUnits
RaiSaumitra Jul 12, 2023
7063ea9
Design function of thickener
RaiSaumitra Jul 12, 2023
f550667
fix pump inf setting in `PrimaryClarifier`
yalinli2 Jul 13, 2023
b4dd959
fix pump inf setting in `SecondaryClarifier`
RaiSaumitra Jul 13, 2023
e626f8d
Design and cost of dewatering unit
RaiSaumitra Jul 14, 2023
769ab53
Corrected outer diameter formula
RaiSaumitra Jul 16, 2023
01066e1
To be checked later (self._mixed definition)
RaiSaumitra Jul 16, 2023
9229e3b
Correct deployment of pump
RaiSaumitra Jul 18, 2023
f3b7903
Updated thickness of concrete wall
RaiSaumitra Jul 25, 2023
b9e9534
Updated pump setting in PC
RaiSaumitra Jul 25, 2023
470d15e
Updated pump setting in secondary clarifier
RaiSaumitra Jul 25, 2023
766dd36
Allowing multiple clarifier units in a PC
RaiSaumitra Jul 25, 2023
c5bfbb6
Added equipment (scraper) to PC
RaiSaumitra Jul 25, 2023
159e689
Set bare module factor for pumps
RaiSaumitra Jul 25, 2023
5701c04
Added equipment (V notch weir)
RaiSaumitra Jul 26, 2023
5f79892
Finalized pump settings in SC
RaiSaumitra Jul 26, 2023
942d58e
Made several necessary changes
RaiSaumitra Jul 26, 2023
6d6eaf8
Updated pump setting in thickener
RaiSaumitra Jul 26, 2023
4c4b9c4
Updated cost of mechanical thickener
RaiSaumitra Jul 26, 2023
b58f78c
Updated number of clarifiers
RaiSaumitra Aug 6, 2023
956398b
# clarifiers (SC)
RaiSaumitra Aug 6, 2023
c0c6f06
# pumps updated in PC
RaiSaumitra Aug 7, 2023
9818f4c
Changes in thickener
RaiSaumitra Aug 7, 2023
7582a09
BM factor for thickeners
RaiSaumitra Aug 7, 2023
5c8d327
Merge branch 'main' of https://github.com/QSD-Group/QSDsan into metro
yalinli2 Aug 7, 2023
d3ab528
fix doc bugs and minor style-related updates
yalinli2 Aug 7, 2023
74e0e6e
Merge branch 'metro' of https://github.com/QSD-Group/QSDsan into metro
yalinli2 Aug 7, 2023
1c84268
Updated name of DU
RaiSaumitra Aug 7, 2023
02afcf3
Changed name of SanUnit
RaiSaumitra Aug 8, 2023
3558014
Redid changes for SC pumps
RaiSaumitra Aug 8, 2023
c980302
Made necessary changes to centrifuge
RaiSaumitra Aug 10, 2023
ec73111
Changed pump settings in SC and undo some changes made by Yalin
RaiSaumitra Aug 11, 2023
bf555fc
Added functions for estimation of aeration energy
RaiSaumitra Sep 11, 2023
cfd299f
Fixed error in secondary clarifier
RaiSaumitra Sep 11, 2023
1c00564
Updated calculation of O2 demand
RaiSaumitra Sep 12, 2023
f343d36
Added required power for blower
RaiSaumitra Sep 18, 2023
0e7253d
Added references to functions
RaiSaumitra Sep 19, 2023
992e8fe
remove redundancy
joyxyz1994 Sep 20, 2023
222971c
Updated Primary Clarifier
RaiSaumitra Sep 22, 2023
29bf299
Merge branch 'metro' of https://github.com/QSD-Group/QSDsan into metro
RaiSaumitra Sep 22, 2023
9c4270d
Update wwt_design.py
joyxyz1994 Sep 22, 2023
e5791a7
Merge branch 'metro' of https://github.com/QSD-Group/QSDsan into metro
joyxyz1994 Sep 22, 2023
02db58b
update RO related calculation
joyxyz1994 Sep 28, 2023
91a042f
No change
RaiSaumitra Oct 3, 2023
ca1f607
Merge branch 'metro' of https://github.com/QSD-Group/QSDsan into metro
RaiSaumitra Oct 3, 2023
712544f
Added 'PrimaryClarifierBSM2'
RaiSaumitra Oct 4, 2023
59f62c9
Updated check in PC
RaiSaumitra Oct 4, 2023
4ec5df0
Updated clarifier design and cost estimates
RaiSaumitra Oct 5, 2023
ae1f913
Updated SC design
RaiSaumitra Oct 9, 2023
ad1af10
Added concrete slab to clarifiers
RaiSaumitra Oct 12, 2023
2126e58
Updated thickener (MOP-8)
RaiSaumitra Oct 12, 2023
7b4afd0
Merge branch 'main' into metro
yalinli2 Oct 14, 2023
c3cc0be
remove not useful file
yalinli2 Oct 14, 2023
cb8a746
fix bugs
yalinli2 Oct 14, 2023
8235506
Merge branch 'beta' of https://github.com/QSD-Group/QSDsan into metro
yalinli2 Oct 14, 2023
5e51dc6
Merge branch 'beta' of https://github.com/QSD-Group/QSDsan into metro
yalinli2 Oct 15, 2023
ba98dc7
fix typo
yalinli2 Oct 15, 2023
729da06
fix typo
yalinli2 Oct 15, 2023
a6c7a24
Added citation for PC_BSM2
RaiSaumitra Oct 16, 2023
3b0d097
Updated thickener based on MOP-8
RaiSaumitra Oct 16, 2023
b8fbe17
Merge branch 'metro' of https://github.com/QSD-Group/QSDsan into metro
RaiSaumitra Oct 16, 2023
8415ce0
blank comment
RaiSaumitra Oct 16, 2023
ed22bcf
fix typos
yalinli2 Oct 17, 2023
38b82a7
Merge branch 'metro' of https://github.com/QSD-Group/QSDsan into metro
yalinli2 Oct 17, 2023
7695a1e
Merge branch 'metro' of https://github.com/QSD-Group/QSDsan into metro
RaiSaumitra Oct 18, 2023
88dd407
Added BM factors to centrifuge
RaiSaumitra Oct 25, 2023
08b4ae1
Design and cost of centrifuge
RaiSaumitra Oct 25, 2023
d57a78d
Design and cost of tanks
RaiSaumitra Oct 30, 2023
787a4a5
Design and cost of ASP
RaiSaumitra Oct 31, 2023
f699ac5
Added blower and pipe design
RaiSaumitra Oct 31, 2023
b132edd
Included pump design to treatment chain
RaiSaumitra Nov 1, 2023
4731a1c
Added cost and documentation for treatment chain
RaiSaumitra Nov 1, 2023
042dfe1
Minor adjustments in treatment chain
RaiSaumitra Nov 1, 2023
7f4dee0
Debugging changes
RaiSaumitra Nov 1, 2023
363c452
Edits to debug the pumping cost in Treatment chain
RaiSaumitra Nov 3, 2023
a2ca350
Minor edit
RaiSaumitra Nov 3, 2023
42507c8
Merge branch 'main' of https://github.com/QSD-Group/QSDsan into metro
yalinli2 Nov 12, 2023
9a439ce
workaround to prevent negatives/better error prompting
yalinli2 Nov 12, 2023
4a59887
very minor typo fix
yalinli2 Nov 13, 2023
7764343
Merge branch 'dev' into metro
joyxyz1994 Nov 14, 2023
349bcec
Merge branch 'dev' into metro
joyxyz1994 Nov 15, 2023
105eb63
Revert "Merge branch 'main' of https://github.com/QSD-Group/QSDsan in…
RaiSaumitra Nov 15, 2023
15a61f9
Revert "workaround to prevent negatives/better error prompting"
RaiSaumitra Nov 15, 2023
6e329a1
Revert "Revert "Merge branch 'main' of https://github.com/QSD-Group/Q…
RaiSaumitra Nov 15, 2023
cccb4eb
consolidate thickener parameter update
joyxyz1994 Nov 15, 2023
a88287e
debug CSTR design
joyxyz1994 Nov 15, 2023
29eff84
Merge branch 'metro' of https://github.com/QSD-Group/QSDsan into metro
joyxyz1994 Nov 15, 2023
82832fd
debug thickener
joyxyz1994 Nov 15, 2023
52cb8c4
Update _clarifier.py
joyxyz1994 Nov 15, 2023
c948da4
Discarding scraper
RaiSaumitra Dec 6, 2023
5479df5
Removed scraper, edited capital of centrifuge
RaiSaumitra Dec 6, 2023
c2d5da0
Scaling centrifuge motor power
RaiSaumitra Dec 6, 2023
6ee1c36
Coded function to compile pumping power demand in WRRF
RaiSaumitra Dec 7, 2023
093ed31
Scaling motor power linearly
RaiSaumitra Dec 11, 2023
b2498bd
Change in default total static head
RaiSaumitra Dec 18, 2023
90f3585
Corrected logic flow, and modified ANSI dictionary
RaiSaumitra Dec 19, 2023
fe70818
Update documentation (select_pipe)
RaiSaumitra Dec 19, 2023
61de934
Added thermo to wastestream
RaiSaumitra Jan 3, 2024
9ffb606
Added thermo to pump
RaiSaumitra Jan 3, 2024
9a6977e
Changing default value
RaiSaumitra Jan 3, 2024
e11e3f6
Added authorship
RaiSaumitra Jan 3, 2024
9374411
Added thermo to pumps in thickeners
RaiSaumitra Jan 4, 2024
c08375b
Function to determine GHG emission in secondary treatment
RaiSaumitra Jan 11, 2024
7043390
Revert "Function to determine GHG emission in secondary treatment"
RaiSaumitra Jan 11, 2024
682f55c
Function to determine GHG emission in secondary treatment
RaiSaumitra Jan 11, 2024
41aed57
Function to determine GHG emission during discharge
RaiSaumitra Jan 11, 2024
8b03d62
More flexible GHG emission functions
RaiSaumitra Jan 13, 2024
95e2032
Function to calculate CO2 emissions due to electricity consumption
RaiSaumitra Jan 13, 2024
8c88799
Added function to quantify GHG emission from sludge disposal
RaiSaumitra Jan 24, 2024
5ae2b18
updated sludge disposal GHG function
RaiSaumitra Jan 29, 2024
feb9f99
Added GHG function
RaiSaumitra Jan 31, 2024
c670163
Merge branch 'main' into metro
RaiSaumitra Jan 31, 2024
b4f8ff3
Optimized the code that calculates GHG emission from sludge disposal
RaiSaumitra Jan 31, 2024
491bb3b
Updated secondary treatment GHG
RaiSaumitra Jan 31, 2024
a2d949d
Updated GHG emission function
RaiSaumitra Feb 1, 2024
68da59c
Quantifying operational costs
RaiSaumitra Feb 1, 2024
026cc11
Updated wwt_design functions
RaiSaumitra Feb 1, 2024
d648db5
Updated estimated range of sludge disposal costs
RaiSaumitra Feb 4, 2024
2c5fb7e
Updated GHG emissions from electricity
RaiSaumitra Feb 4, 2024
62e7311
Updated sludge management costs
RaiSaumitra Feb 5, 2024
0800ffd
Accounted for methane emission from leftover sludge
RaiSaumitra Feb 5, 2024
603bff9
Satisfy mass balance
RaiSaumitra Feb 13, 2024
3bb7e52
Updated junction from bsm2
RaiSaumitra Feb 16, 2024
49aa0b4
Null
RaiSaumitra Feb 16, 2024
8dd776c
Updated cost estimates due to unit
RaiSaumitra Feb 16, 2024
ace59ab
Facilitating uncertainty analysis
RaiSaumitra Feb 19, 2024
18259f9
Corrected typos in documentation
RaiSaumitra Feb 20, 2024
235025f
attempt to reduce rounding error
joyxyz1994 Feb 21, 2024
098018e
Adding file with initial conditions
RaiSaumitra Feb 22, 2024
5ce9fa5
Revert "Adding file with initial conditions"
RaiSaumitra Feb 22, 2024
754fbe3
try something else to reduce rounding error
joyxyz1994 Feb 22, 2024
8788a40
Merge branch 'main' into dev
joyxyz1994 Mar 5, 2024
f3c3e07
fix bug related to dynamic stoichiometry
joyxyz1994 Mar 12, 2024
029ceaa
ASM2d-ADM1
RaiSaumitra Mar 19, 2024
3579c8b
Charge balance in junction
RaiSaumitra Mar 19, 2024
f559493
ASM2d-ADM1
RaiSaumitra Mar 19, 2024
6e8caaf
ADM1-ASM2d junction
RaiSaumitra Mar 20, 2024
2d83249
Update junction
RaiSaumitra Mar 21, 2024
2760d7f
ASM2d-mADM1 interface
RaiSaumitra Mar 21, 2024
759cf6a
Checks for N/P in PAO
RaiSaumitra Mar 21, 2024
49bfcb9
Understanding charge balance
RaiSaumitra Mar 21, 2024
38c567c
Changes to validate ASM2d-mADM1
RaiSaumitra Mar 21, 2024
010d5d2
ASM2dtomADM1
RaiSaumitra Mar 21, 2024
7531b13
Added mADM1 junction class
RaiSaumitra Mar 21, 2024
656bf80
mADM1 junction
RaiSaumitra Mar 21, 2024
47a78bb
TN balance check: ASM2d-mADM1
RaiSaumitra Mar 22, 2024
896c7ed
Update in mADM1 process
RaiSaumitra Mar 22, 2024
db5bad8
Updated mADM1-ASM2d junction
RaiSaumitra Mar 26, 2024
8e5a7b0
Step 1 (mADM1-ASM2d)
RaiSaumitra Mar 26, 2024
b01ea4b
Step 1: mADM1-ASM2d
RaiSaumitra Mar 26, 2024
49d8745
Step 1 (b) mADM1-ASM2d
RaiSaumitra Mar 26, 2024
601df97
mADM1-ASM2d interface
RaiSaumitra Mar 26, 2024
cc417d6
Mapped soluble substrates: mADM1-ASM2d
RaiSaumitra Mar 26, 2024
ced062b
mADM1-ASM2d: Mapping of soluble inert
RaiSaumitra Mar 27, 2024
94b7936
Charge balance: mADM1-ASM2d
RaiSaumitra Mar 27, 2024
6e3e99b
Minor debugging
RaiSaumitra Mar 27, 2024
0a1540a
Important debugging changes
RaiSaumitra Mar 27, 2024
984a1b9
mADM1-ASM2d interface
RaiSaumitra Mar 27, 2024
f11a41a
N balance: mADM1-ASM2d
RaiSaumitra Mar 27, 2024
5d91439
Editing unnecessary part
RaiSaumitra Mar 27, 2024
afbab65
Update pKa used to calculate delta of S_IP
RaiSaumitra Mar 27, 2024
30eb0cb
Removed unnecessary edits
RaiSaumitra Mar 27, 2024
f5ac2ad
Updated constant: mADM1
RaiSaumitra Mar 28, 2024
da5a12e
Modified Ks
RaiSaumitra Mar 29, 2024
9ee94cf
Minor edit
RaiSaumitra Apr 3, 2024
1547d16
resolve conflict
joyxyz1994 Apr 3, 2024
8addf41
Changed Step 2 (ASM2d-mADM1)
RaiSaumitra Apr 9, 2024
7f90521
Step 5: mapping of X_I
RaiSaumitra Apr 9, 2024
fcca157
Revert "Step 5: mapping of X_I"
RaiSaumitra Apr 9, 2024
e74b1c0
Mapping XI
RaiSaumitra Apr 9, 2024
326fb0d
Mapping SI
RaiSaumitra Apr 9, 2024
c2e7467
Substrate inhibition ADM1
RaiSaumitra Apr 9, 2024
b692141
Correcting stoichiometry
RaiSaumitra Apr 10, 2024
63c25db
Minor rewriting
RaiSaumitra Apr 10, 2024
23b5abd
Defined stoichiometry
RaiSaumitra Apr 10, 2024
40b9a2c
Conserving C, N, and P
RaiSaumitra Apr 10, 2024
e155857
Rate eqn in process description
RaiSaumitra Apr 11, 2024
ef4d7b8
mini code cleanup for BSM2 primary clarifier
yalinli2 Apr 15, 2024
70456d4
update `get_SRT` util func to deal with no biomass waste
yalinli2 Apr 15, 2024
4ffba69
Merge branch 'main' into metro
yalinli2 Apr 15, 2024
1001c57
Merge branch 'main' of https://github.com/QSD-Group/QSDsan into metro…
yalinli2 Apr 15, 2024
9678f04
Merge branch 'main' into dev
joyxyz1994 Apr 15, 2024
37c4b77
clean up code
joyxyz1994 Apr 16, 2024
c305118
made PrimaryClarifierBSM2 dynamic w/ ODEs
joyxyz1994 Apr 17, 2024
2f97d21
Removing rate equations
RaiSaumitra Apr 17, 2024
dc04664
Merge branch 'metro' of https://github.com/QSD-Group/QSDsan into metro
RaiSaumitra Apr 17, 2024
bfb6a60
Merge pull request #121 from QSD-Group/metro-bsm2
yalinli2 Apr 18, 2024
5d68c2a
clean up CSTR ODEs
joyxyz1994 Apr 18, 2024
6cac36a
Merge branch 'dev' into metro-bsm2
joyxyz1994 Apr 18, 2024
7cdb3de
Update _anaerobic_reactor.py
joyxyz1994 Apr 18, 2024
0fb746a
Merge branch 'main' of https://github.com/QSD-Group/QSDsan into metro
yalinli2 Apr 19, 2024
03599d3
temporarily disable BSM2 primary clarifier doctest
yalinli2 Apr 19, 2024
20dfe18
Merge branch 'metro-bsm2' of https://github.com/QSD-Group/QSDsan into…
yalinli2 Apr 19, 2024
adac018
consolidate CSTR ODEs & minor speed-up
joyxyz1994 Apr 22, 2024
0e7abff
allow redefine WasteStream pH
joyxyz1994 Apr 23, 2024
1c474a4
updates downstream pH during dynamic simulation
joyxyz1994 Apr 23, 2024
6f5a518
minor bug fix
joyxyz1994 Apr 23, 2024
121c3c1
Update _clarifier.py
joyxyz1994 Apr 23, 2024
fea7d31
minor bug fix
joyxyz1994 Apr 23, 2024
f316d8a
maintain pH during SanUnit init
joyxyz1994 Apr 23, 2024
9af9b06
update thickener_factor in _run iterations
joyxyz1994 Apr 24, 2024
76260c4
add S_h2 algebraic solver
joyxyz1994 Apr 24, 2024
9fb8659
enable DEA solving with AnaerobicCSTR
joyxyz1994 Apr 25, 2024
61cd5ec
minor bug fix
joyxyz1994 Apr 26, 2024
a897206
Updated ADM1_P_extension
RaiSaumitra May 10, 2024
3e13472
Merge branch 'metro' of https://github.com/QSD-Group/QSDsan into metro
RaiSaumitra May 10, 2024
297ebe3
mADM1-ASM2d
RaiSaumitra May 10, 2024
d5b26ba
Functions for Gates work
RaiSaumitra May 10, 2024
e05a275
Merge branch 'metro-bsm2' into metro
RaiSaumitra May 10, 2024
2f84afd
Dynamic pH calculation
RaiSaumitra May 13, 2024
82784a4
Revert "Merge branch 'metro-bsm2' into metro"
RaiSaumitra May 15, 2024
f5a5272
Revert "Dynamic pH calculation"
RaiSaumitra May 15, 2024
d4b0c67
null
RaiSaumitra May 21, 2024
d86141a
GHG emission category wise
RaiSaumitra May 30, 2024
eac45ed
Added more category wise GHG metrics
RaiSaumitra May 30, 2024
0cdef29
Last GHG metric
RaiSaumitra May 30, 2024
299306c
Added individual operational cost metrics
RaiSaumitra May 30, 2024
eb4fa6f
All new system metrics
RaiSaumitra May 30, 2024
f3fbeb7
Minor changes
RaiSaumitra Jun 2, 2024
682a841
Update
RaiSaumitra Jun 5, 2024
09d62da
Suggestions
RaiSaumitra Jun 5, 2024
3db40fe
Placed function at the correct place
RaiSaumitra Jun 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions qsdsan/_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,7 @@ def _rate_eq2func(self):
def f(state_arr, params={}):
states = dict(zip(var_kw, state_arr))
return lamb(**states, **params)

self.kinetics(function=f, parameters=self.parameters)

def _normalize_stoichiometry(self, new_ref):
Expand Down
2 changes: 1 addition & 1 deletion qsdsan/_sanunit.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def __init__(self, ID='', ins=None, outs=(), thermo=None, init_with='WasteStream

if not kwargs.get('skip_property_package_check'):
self._assert_compatible_property_package()

self._utility_cost = None

##### qsdsan-specific #####
Expand Down
10 changes: 7 additions & 3 deletions qsdsan/_waste_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ def composite(self, variable, flow=False, exclude_gas=True,
if specification:
try:
specified_IDs = set(_get(all_cmps, specification))
except AttributeError: # no pre-defined groups
except AttributeError: # no predefined groups
try:
specified_IDs = _specific_groups[specification]
except KeyError: # specification not in the default ones
Expand Down Expand Up @@ -1073,7 +1073,7 @@ def get_VSS(self, include_colloidal=False):
return VSS

def get_ISS(self):
'''[float] Inorganic/involatile suspended solids, in mg/L.'''
'''[float] Inorganic/non-volatile suspended solids, in mg/L.'''
return self.composite('solids', particle_size='x', volatile=False)


Expand Down Expand Up @@ -1219,7 +1219,11 @@ def scope(self, s):
self._scope = s

def _init_state(self):
self.state = np.append(self.conc.astype('float64'), self.get_total_flow('m3/d'))
if self.phase == 'l':
self.state = np.append(self.conc.astype('float64'), self.get_total_flow('m3/d'))
else:
Q = self.F_vol # m3/hr
self.state = np.append(self.mass.astype('float64')/Q*1e3, Q*24)
self.dstate = np.zeros_like(self.state)

def _state2flows(self):
Expand Down
21 changes: 21 additions & 0 deletions qsdsan/data/process_data/_adm1_p_extension.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
S_su S_aa S_fa S_va S_bu S_pro S_ac S_h2 S_ch4 S_IC S_IN S_IP S_I X_ch X_pr X_li X_su X_aa X_fa X_c4 X_pro X_ac X_h2 X_I X_PHA X_PP X_PAO S_K S_Mg X_MeOH X_MeP
hydrolysis_carbs 1 ? ? ? -1
hydrolysis_proteins 1 ? ? ? -1
hydrolysis_lipids 1-f_fa_li f_fa_li ? ? ? -1
uptake_sugars -1 (1-Y_su)*f_bu_su (1-Y_su)*f_pro_su (1-Y_su)*f_ac_su (1-Y_su)*f_h2_su ? ? ? Y_su
uptake_amino_acids -1 (1-Y_aa)*f_va_aa (1-Y_aa)*f_bu_aa (1-Y_aa)*f_pro_aa (1-Y_aa)*f_ac_aa (1-Y_aa)*f_h2_aa ? ? ? Y_aa
uptake_LCFA -1 (1-Y_fa)*f_ac_fa (1-Y_fa)*f_h2_fa ? ? ? Y_fa
uptake_valerate -1 (1-Y_c4)*f_pro_va (1-Y_c4)*f_ac_va (1-Y_c4)*f_h2_va ? ? ? Y_c4
uptake_butyrate -1 (1-Y_c4)*f_ac_bu (1-Y_c4)*f_h2_bu ? ? ? Y_c4
uptake_propionate -1 (1-Y_pro)*f_ac_pro (1-Y_pro)*f_h2_pro ? ? ? Y_pro
uptake_acetate -1 1-Y_ac ? ? ? Y_ac
uptake_h2 -1 1-Y_h2 ? ? ? Y_h2
decay_Xsu ? ? ? f_sI_xb f_ch_xb f_pr_xb f_li_xb -1 f_xI_xb
decay_Xaa ? ? ? f_sI_xb f_ch_xb f_pr_xb f_li_xb -1 f_xI_xb
decay_Xfa ? ? ? f_sI_xb f_ch_xb f_pr_xb f_li_xb -1 f_xI_xb
decay_Xc4 ? ? ? f_sI_xb f_ch_xb f_pr_xb f_li_xb -1 f_xI_xb
decay_Xpro ? ? ? f_sI_xb f_ch_xb f_pr_xb f_li_xb -1 f_xI_xb
decay_Xac ? ? ? f_sI_xb f_ch_xb f_pr_xb f_li_xb -1 f_xI_xb
decay_Xh2 ? ? ? f_sI_xb f_ch_xb f_pr_xb f_li_xb -1 f_xI_xb
lysis_XPAO ? ? ? f_sI_xb f_ch_xb f_pr_xb f_li_xb f_xI_xb -1
lysis_XPHA f_va_PHA f_bu_PHA f_pro_PHA f_ac_PHA ? ? ? -1
3 changes: 3 additions & 0 deletions qsdsan/processes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from ._asm1 import *
from ._asm2d import *
from ._adm1 import *
from ._adm1_p_extension import *
from ._madm1 import *
from ._decay import *
from ._kinetic_reaction import *
Expand All @@ -27,6 +28,7 @@
_asm1,
_asm2d,
_adm1,
_adm1_p_extension,
_madm1,
_decay,
_kinetic_reaction,
Expand All @@ -37,6 +39,7 @@
*_asm1.__all__,
*_asm2d.__all__,
*_adm1.__all__,
*_adm1_p_extension.__all__,
*_madm1.__all__,
*_decay.__all__,
*_kinetic_reaction.__all__,
Expand Down
Loading