# # # 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()
# GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # # # -------------------------------------------------------------------- # Testing the influent fractionation. # from PooPyLab.unit_procs.streams import influent from PooPyLab.utils.run import input_inf_concs if __name__ == "__main__": inf = influent() input_inf_concs('ASM1', inf) inf.set_mainstream_flow(37800/2.0) inf.set_fractions('ASM1', 'COD:BOD5', 3.1) inf.set_fractions('ASM1', 'SCOD:COD', 0.65) inf.set_fractions('ASM1', 'RBCOD:SCOD', 0.7) # readily biodeg. COD inf.set_fractions('ASM1', 'SBCOD:PCOD', 0.6) # slowly biodeg. COD inf.set_fractions('ASM1', 'SON:SCOD', 0.01) inf.set_fractions('ASM1', 'RBON:SON', 0.80) # readily biodeg. org.N inf.set_fractions('ASM1', 'SBON:PON', 0.75) # slowly biodeg. org.N print(inf.blend_inlet_comps()) inf.discharge() print(inf.get_main_outlet_concs())