Exemplo n.º 1
0
#       splt* is an SRT Controlling Splitter
#
#    Author: Kai Zhang
#
# Change Log:
# 20201129 KZ: re-run after package structure update
# 20191022 KZ: init
#

from PooPyLab.unit_procs.streams import influent, effluent, WAS, splitter, pipe
from PooPyLab.unit_procs.bio import asm_reactor
from PooPyLab.unit_procs.physchem import final_clarifier

inlet = influent()

p1 = pipe()
p2 = pipe()
p3 = pipe()
p4 = pipe()
p5 = pipe()
p6 = pipe()
# return activated sludge
RAS = pipe()  # aka p7
p8 = pipe()
# internal recirculation
IR = pipe()  # aka p9

AX = asm_reactor()
OX = asm_reactor()

fc = final_clarifier()
# testing the identification of mainstream-only loop in a pfd.
#
# Author: Kai Zhang
#

from PooPyLab.unit_procs.streams import influent, effluent, WAS, splitter, pipe
from PooPyLab.unit_procs.bio import asm_reactor
from PooPyLab.unit_procs.physchem import final_clarifier
from PooPyLab.utils.pfd import check, show

if __name__ == "__main__":

    inlet = influent()

    p1 = pipe()

    ra = asm_reactor()

    p2 = pipe()

    RAS = pipe()  # p3

    p4 = pipe()  # to outlet

    outlet = effluent()

    splt = splitter()

    wwtp = [inlet, p1, p2, RAS, p4, ra, outlet, splt]

    #pdb.set_trace()
Exemplo n.º 3
0
#    Inlet --p1-> reactor(ra) --p2-> outlet
#
#
#    Author: Kai Zhang
#
# Change Log:
# 20201129 KZ: re-run after package structure update
# 20200708 KZ: init
#

from PooPyLab.unit_procs.streams import pipe
from PooPyLab.unit_procs.streams import influent, effluent
from PooPyLab.unit_procs.bio import asm_reactor

inlet = influent()
p1 = pipe()

ra = asm_reactor()
p2 = pipe()

outlet = effluent()

wwtp = [inlet, p1, ra, p2, outlet]

SRT = 10  # day, in CSTR, this is not a CONTROLLED operation param.


def construct():
    # make an CMAS plant
    inlet.set_downstream_main(p1)
    p1.set_downstream_main(ra)
Exemplo n.º 4
0
#
#    Author: Kai Zhang
#
# Change Log:
# 20201129 KZ: re-run after package structure update
# 20190920 KZ: revised to match other testing results
# 20190724 KZ: init
#

from PooPyLab.unit_procs.streams import splitter, pipe, WAS
from PooPyLab.unit_procs.streams import influent, effluent
from PooPyLab.unit_procs.bio import asm_reactor
from PooPyLab.unit_procs.physchem import final_clarifier

inlet = influent()
p1 = pipe()

ra = asm_reactor()
p2 = pipe()

fc = final_clarifier()
p3 = pipe()  # to outlet
p4 = pipe()  # to splt

outlet = effluent()

splt = splitter()
p5 = pipe()  # to waste
RAS = pipe()  # to ra

waste = WAS()
Exemplo n.º 5
0
#                   |
#                   |
#                   |
#                   -----p3-> waste
#
#    Author: Kai Zhang
#
# Change Log:
# 20201129 KZ: re-run after package structure update
# 20190815 KZ: init
#

from PooPyLab.unit_procs.streams import influent, effluent, pipe, splitter, WAS

inlet = influent()
p1 = pipe()
p2 = pipe()
p3 = pipe()
splt = splitter()
waste = WAS()
outlet = effluent()

wwtp = [inlet, p1, p2, p3, splt, waste, outlet]


def construct():
    inlet.set_downstream_main(p1)
    p1.set_downstream_main(splt)
    splt.set_downstream_main(p2)
    splt.set_downstream_side(p3)
    p2.set_downstream_main(outlet)
Exemplo n.º 6
0
#    Author: Kai Zhang
#
# Change Log:
# 20201129 KZ: re-run after package structure update
# 20191029 KZ: init
#

from PooPyLab.unit_procs.streams import splitter, pipe, WAS
from PooPyLab.unit_procs.streams import influent, effluent
from PooPyLab.unit_procs.bio import asm_reactor
from PooPyLab.unit_procs.physchem import final_clarifier
#from PooPyLab.utils.pfd import check, show

inlet = influent()

p1 = pipe()
p2 = pipe()
p3 = pipe()
p4 = pipe()
p5 = pipe()
p6 = pipe()
p7 = pipe()
p8 = pipe()
# return activated sludge
RAS = pipe()  # aka p9
RAS.__name__ = 'RAS'
p10 = pipe()
# internal recirculation
IR = pipe()  # aka p11
IR.__name__ = 'IR'
Exemplo n.º 7
0
#
#
#    Process Flow Diagram:
#
#    inlet --p1-> outlet
#
#
#    Author: Kai Zhang
#
# Change Log:
# 20201129 KZ: re-run after package structure update
# 2019-08-15 KZ: init
#

from PooPyLab.unit_procs.streams import influent, effluent, pipe

inlet = influent()
p1 = pipe()
outlet = effluent()

wwtp = [inlet, p1, outlet]


def construct():
    inlet.set_downstream_main(p1)
    p1.set_downstream_main(outlet)

    print("PFD constructed.")

    return wwtp
Exemplo n.º 8
0
#       * indicates an "SRT controller"
#
#    Author: Kai Zhang
#
# Change Log: 
# 20201129 KZ: re-run after package structure update
# 20190815 KZ: init
#

from PooPyLab.unit_procs.streams import splitter, pipe, WAS 
from PooPyLab.unit_procs.streams import influent, effluent
from PooPyLab.utils.pfd import check, show


inlet = influent()
p1 = pipe()
p2 = pipe()
p3 = pipe()
p4 = pipe()
p5 = pipe()
splt_1 = splitter()
splt_2 = splitter()
waste = WAS()
outlet = effluent()


wwtp = [inlet,
        p1, p2, p3, p4, p5,
        splt_1, splt_2,
        waste,
        outlet]