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() outlet = effluent() splt1 = splitter() splt2 = splitter() waste = WAS() wwtp = [ inlet, p1, p2, p3, p4, p5, p6, RAS, p8, IR, AX, OX, fc, outlet, waste, splt1, splt2 ]
# Author: Kai Zhang # # Change Log: # 20201129 KZ: re-run after package structure update # 20190911 KZ: set_model_condition replaced set_ASM_condition # 20190815 KZ: init # from PooPyLab.unit_procs.streams import influent, effluent, pipe from PooPyLab.unit_procs.bio import asm_reactor from PooPyLab.utils.pfd import check, show inlet = influent() p1 = pipe() p2 = pipe() reactor = asm_reactor() outlet = effluent() wwtp = [inlet, p1, p2, reactor, outlet] def construct(): inlet.set_downstream_main(p1) p1.set_downstream_main(reactor) reactor.set_downstream_main(p2) reactor.set_model_condition(10, 2) reactor.set_active_vol(37800 * 9) p2.set_downstream_main(outlet) print("PFD constructed.")
# # 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) ra.set_downstream_main(p2) p2.set_downstream_main(outlet)
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' rPAX = asm_reactor() rPOX = asm_reactor() rAXP = asm_reactor() rOXP = asm_reactor() fc = final_clarifier() outlet = effluent() splt1 = splitter() splt2 = splitter() waste = WAS() wwtp = [ inlet, p1, p2, p3, p4, p5, p6, p7, p8, RAS, p10, IR, rPAX, rPOX, rAXP,