-
Notifications
You must be signed in to change notification settings - Fork 0
/
nano_anatase_TiO2_model_product0.py
executable file
·2400 lines (1823 loc) · 155 KB
/
nano_anatase_TiO2_model_product0.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/env python
# coding: utf-8
# Original Authur: Adam Veronique
# Modified by Yuanfang Zheng
# In[2]:
import components as cp
import numpy.random as nr
import numpy as np
import Model
import pandas as pd
import TruncatingFunctions as tf
# In[5]:
model = Model.Model('nano-TiO2 anatase from 2000 to 2020')
# In[6]:
# split of the total inflow to different compartments
totalInflow = cp.FlowCompartment('Total Inflow', logInflows=True, logOutflows=True)
Import_Manuf = cp.FlowCompartment('Import to Manufacturing', logInflows=True, logOutflows=True, categories=['Import'])
Import_Cons = cp.FlowCompartment('Import to Consumption', logInflows=True, logOutflows=True, categories=['Import'])
# In[7]:
# Production of the nano-material and Manufacturing of the products it is used in
Production = cp.Stock('Production', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['Production'])
Manufacture = cp.Stock('Manufacture', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['Manufacture'])
Consumption = cp.FlowCompartment('Consumption', logInflows=True, logOutflows=True, categories=['Consumption'])
# In[8]:
Prod_Air_N = cp.Sink('Pristine from Production to Air', logInflows=True, categories=['Air', 'Air_N', 'Pristine'])
Manuf_Air_N = cp.Sink('Pristine from Manufacturing to Air', logInflows=True, categories=['Air', 'Air_N', 'Pristine'])
# In[9]:
# Manufacturing and waste
Manuf_Text = cp.FlowCompartment('Manuf Textiles', logInflows=True, logOutflows=True, categories=['Manufacture'])
Manuf_Plas = cp.FlowCompartment('Manuf Plastics', logInflows=True, logOutflows=True, categories=['Manufacture'])
Manuf_Solids = cp.FlowCompartment('Manuf Solids', logInflows=True, logOutflows=True, categories=['Manufacture'])
Manuf_Liquids = cp.FlowCompartment('Manuf Liquids', logInflows=True, logOutflows=True, categories=['Manufacture'])
manuf_textiles_waste = cp.FlowCompartment('Waste from manuf Textiles', logInflows=True, logOutflows=True, categories=['Manufacture', 'Solid Waste'])
manuf_plastics_waste = cp.FlowCompartment('Waste from manuf Plastics', logInflows=True, logOutflows=True, categories=['Manufacture', 'Solid Waste'])
ManufTextW_Reuse_P = cp.Sink('Product-embedded from Textile manufacturing to reprocessing and reuse', logInflows=True, categories=['Reprocessing', 'Reuse', 'Reuse_P'])
ManufPlasW_Reuse_P = cp.Sink('Product-embedded from Plastic manufacturing to reprocessing and reuse', logInflows=True, categories=['Reprocessing', 'Reuse', 'Reuse_P'])
ManufSolidW_Reuse_P = cp.Sink('Product-embedded from Other solids manufacturing to reprocessing and reuse', logInflows=True, categories=['Reprocessing', 'Reuse', 'Reuse_P'])
# In[10]:
# Definition of Products categories (compartments)
PersCare = cp.FlowCompartment('PersCare', logInflows=True, logOutflows=True, categories=['Products'])
PersCare_Use = cp.Stock('PersCare_Use', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','Use','PMCrel'])
PersCare_EoL = cp.Stock('PersCare_EoL', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','EoL'])
OutPaints = cp.FlowCompartment('OutPaints', logInflows=True, logOutflows=True, categories='Products')
OutPaints_Use = cp.Stock('OutPaints_Use', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','Use','PMCrel'])
OutPaints_EoL = cp.Stock('OutPaints_EoL', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','EoL'])
InPaints = cp.FlowCompartment('InPaints', logInflows=True, logOutflows=True, categories='Products')
InPaints_Use = cp.Stock('InPaints_Use', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','Use','PMCrel'])
InPaints_EoL = cp.Stock('InPaints_EoL', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','EoL'])
Cement= cp.FlowCompartment('Cement', logInflows=True, logOutflows=True, categories='Products')
Cement_Use =cp.Stock('Cement_Use', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','Use','PMCrel'])
Cement_EoL =cp.Stock('Cement_EoL', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','EoL'])
Glass = cp.FlowCompartment('Glass', logInflows=True, logOutflows=True, categories='Products')
Glass_Use = cp.Stock('Glass_Use', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','Use','PMCrel'])
Glass_EoL = cp.Stock('Glass_EoL', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','EoL'])
Ceramics = cp.FlowCompartment('Ceramics', logInflows=True, logOutflows=True, categories='Products')
Ceramics_Use = cp.Stock('Ceramics_Use', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','Use','PMCrel'])
Ceramics_EoL = cp.Stock('Ceramics_EoL', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','EoL'])
RubPlas = cp.FlowCompartment('RubPlas', logInflows=True, logOutflows=True, categories='Products')
RubPlas_Use = cp.Stock('RubPlas_Use', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','Use','PMCrel'])
RubPlas_EoL = cp.Stock('RubPlas_EoL', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','EoL'])
Solar = cp.FlowCompartment('Solar', logInflows=True, logOutflows=True, categories='Products')
Solar_EoL = cp.Stock('Solar_EoL', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','EoL'])
Electronics= cp.FlowCompartment('Electronics', logInflows=True, logOutflows=True, categories='Products')
Electronics_Use = cp.Stock('Electronics_Use', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','Use','PMCrel'])
Electronics_EoL = cp.Stock('Electronics_EoL', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','EoL'])
CleanAgents= cp.FlowCompartment('CleanAgents', logInflows=True, logOutflows=True, categories='Products')
CleanAgents_Use = cp.Stock('CleanAgents_Use', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','Use','PMCrel'])
CleanAgents_EoL = cp.Stock('CleanAgents_EoL', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','EoL'])
Food = cp.FlowCompartment('Food', logInflows=True, logOutflows=True, categories='Products')
Food_Use = cp.Stock('Food_Use', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','Use','PMCrel'])
Food_EoL = cp.Stock('Food_EoL', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','EoL'])
Textiles = cp.FlowCompartment('Textiles', logInflows=True, logOutflows=True, categories='Products')
Textiles_Use = cp.Stock('Textiles_Use', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','Use','PMCrel'])
Textiles_EoL = cp.Stock('Textiles_EoL', logInflows=True, logOutflows=True, logImmediateFlows=True, categories=['PMC','EoL'])
# In[11]:
# Definition of forms of release after use
PersCare_WW = cp.FlowCompartment('From PersCare to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater'])
PersCare_WW_N = cp.FlowCompartment('Pristine in Wastewater from PersCare', logInflows=True, logOutflows=True, categories=['Wastewater_N', 'Pristine'])
PersCare_SW = cp.FlowCompartment('From PersCare to Surfacewater', logInflows=True, logOutflows=True, categories=['Surfacewater'])
PersCare_SW_N = cp.Sink('Pristine in Surfacewater from PersCare', logInflows=True, categories=['Surfacewater_N', 'Pristine'])
OutPaints_Air = cp.FlowCompartment('From OutPaints to Air', logInflows=True, logOutflows=True, categories=['Air'])
OutPaints_Air_N = cp.Sink('Pristine in Air from OutPaints', logInflows=True, categories=['Air_N', 'Pristine'])
OutPaints_Air_M = cp.Sink('Matrix-embedded in Air from OutPaints', logInflows=True, categories=['Air_M', 'Matrix-embedded'])
OutPaints_WW = cp.FlowCompartment('From OutPaints to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater'])
OutPaints_WW_N = cp.FlowCompartment('Pristine in Wastewater from OutPaints', logInflows=True, logOutflows=True, categories=['Wastewater_N', 'Pristine'])
OutPaints_WW_M = cp.FlowCompartment('Matrix-embedded in Wastewater from OutPaints', logInflows=True, logOutflows=True, categories=['Wastewater_M', 'Matrix-embedded'])
OutPaints_NUsoil = cp.FlowCompartment('From OutPaints to Soil', logInflows=True, logOutflows=True, categories=['Soil', 'NU Soil'])
OutPaints_NUsoil_N = cp.Sink('Pristine in Soil from OutPaints', logInflows=True, categories=['Soil_N', 'NU Soil_N', 'Pristine'])
OutPaints_NUsoil_M = cp.Sink('Matrix-embedded in Soil from OutPaints', logInflows=True, categories=['Soil_M', 'NU Soil_M', 'Matrix-embedded'])
InPaints_Air = cp.FlowCompartment('From InPaints to Air', logInflows=True, logOutflows=True, categories=['Air'])
InPaints_Air_N = cp.Sink('Pristine in Air from InPaints', logInflows=True, categories=['Air_N', 'Pristine'])
InPaints_Air_M = cp.Sink('Matrix-embedded in Air from InPaints', logInflows=True, categories=['Air_M', 'Matrix-embedded'])
InPaints_WW = cp.FlowCompartment('From InPaints to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater'])
InPaints_WW_N = cp.FlowCompartment('Pristine in Wastewater from InPaints', logInflows=True, logOutflows=True, categories=['Wastewater_N', 'Pristine'])
InPaints_WW_M = cp.FlowCompartment('Matrix-embedded in Wastewater from InPaints', logInflows=True, logOutflows=True, categories=['Wastewater_M', 'Matrix-embedded'])
InPaints_NUsoil = cp.FlowCompartment('From InPaints to Soil', logInflows=True, logOutflows=True, categories=['Soil', 'NU Soil'])
InPaints_NUsoil_N = cp.Sink('Pristine in Soil from InPaints', logInflows=True, categories=['Soil_N', 'NU Soil_N', 'Pristine'])
InPaints_NUsoil_M = cp.Sink('Matrix-embedded in Soil from InPaints', logInflows=True, categories=['Soil_M', 'NU Soil_M', 'Matrix-embedded'])
Cement_WW = cp.FlowCompartment('From Cement to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater'])
Cement_WW_N = cp.FlowCompartment('Pristine from Cement to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater_N', 'Pristine'])
Cement_WW_M = cp.FlowCompartment('Matrix-embedded from Cement to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater_M', 'Matrix-embedded'])
Glass_WW = cp.FlowCompartment('From Glass coating to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater'])
Glass_WW_N = cp.FlowCompartment('Pristine from Glass coating to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater_N', 'Pristine'])
Glass_WW_M = cp.FlowCompartment('Matrix-embedded from Glass coating to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater_M', 'Matrix-embedded'])
Glass_Air = cp.FlowCompartment('From Glass coating to Air', logInflows=True, logOutflows=True, categories=['Air'])
Glass_Air_N = cp.Sink('Pristine from Glass coating to Air', logInflows=True, categories=['Air_N', 'Pristine'])
Glass_Air_M = cp.Sink('Matrix-embedded from Glass coating to Air', logInflows=True, categories=['Air_M', 'Matrix-embedded'])
Glass_NUsoil = cp.FlowCompartment('From Glass coating to Soil', logInflows=True, logOutflows=True, categories=['Soil', 'NU Soil'])
Glass_NUsoil_N = cp.Sink('Pristine from Glass coating to NU Soil', logInflows=True, categories=['Soil_N', 'NU Soil_N', 'Pristine'])
Glass_NUsoil_M = cp.Sink('Matrix-embedded from Glass coating to NU Soil', logInflows=True, categories=['Soil_M', 'NU Soil_M', 'Matrix-embedded'])
Ceramics_WW = cp.FlowCompartment('From Ceramics coating to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater'])
Ceramics_WW_N = cp.FlowCompartment('Pristine from Ceramics coating to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater_N', 'Pristine'])
Ceramics_WW_M = cp.FlowCompartment('Matrix-embedded from Ceramics coating to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater_M', 'Matrix-embedded'])
Ceramics_Air = cp.FlowCompartment('From Ceramics coating to Air', logInflows=True, logOutflows=True, categories=['Air'])
Ceramics_Air_N = cp.Sink('Pristine from Ceramics coating to Air', logInflows=True, categories=['Air_N', 'Pristine'])
Ceramics_Air_M = cp.Sink('Matrix-embedded from Ceramics coating to Air', logInflows=True, categories=['Air_M', 'Matrix-embedded'])
Ceramics_NUsoil = cp.FlowCompartment('From Ceramics coating to Soil', logInflows=True, logOutflows=True, categories=['Soil', 'NU Soil'])
Ceramics_NUsoil_N = cp.Sink('Pristine from Ceramics coating to NU Soil', logInflows=True, categories=['Soil_N', 'NU Soil_N', 'Pristine'])
Ceramics_NUsoil_M = cp.Sink('Matrix-embedded from Ceramics coating to NU Soil', logInflows=True, categories=['Soil_M', 'NU Soil_M', 'Matrix-embedded'])
RubPlas_Air = cp.FlowCompartment('From RubPlas to Air', logInflows=True, logOutflows=True, categories=['Air'])
RubPlas_Air_N = cp.Sink('Pristine from RubPlas to Air', logInflows=True, categories=['Air_N', 'Pristine'])
RubPlas_Air_M = cp.Sink('Matrix-embedded from RubPlas to Air', logInflows=True, categories=['Air_M', 'Matrix-embedded'])
RubPlas_WW = cp.FlowCompartment('From RubPlas to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater'])
RubPlas_WW_N = cp.FlowCompartment('Pristine from RubPlas to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater_N', 'Pristine'])
RubPlas_WW_M = cp.FlowCompartment('Matrix-embedded from RubPlas to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater_M', 'Matrix-embedded'])
Electronics_WW = cp.FlowCompartment('From Electronics to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater'])
Electronics_WW_N = cp.FlowCompartment('Pristine from Electronics to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater_N', 'Pristine'])
Electronics_WW_M = cp.FlowCompartment('Matrix-embedded from Electronics to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater_M', 'Matrix-embedded'])
CleanAgents_WW = cp.FlowCompartment('From Cleaning agents to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater'])
CleanAgents_WW_N = cp.FlowCompartment('Pristine from Cleaning agents to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater_N', 'Pristine'])
Food_WW = cp.FlowCompartment('From Food to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater'])
Food_WW_N = cp.FlowCompartment('Pristine from Food to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater_N', 'Pristine'])
Textiles_Air = cp.FlowCompartment('From Textiles to Air', logInflows=True, logOutflows=True, categories=['Air'])
Textiles_Air_N = cp.Sink('Pristine from Textiles to Air', logInflows=True, categories=['Air_N', 'Pristine'])
Textiles_Air_M = cp.Sink('Matrix-embedded from Textiles to Air', logInflows=True, categories=['Air_M', 'Matrix-embedded'])
Textiles_WW = cp.FlowCompartment('From Textiles to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater'])
Textiles_WW_N = cp.FlowCompartment('Pristine from Textiles to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater_N', 'Pristine'])
Textiles_WW_M = cp.FlowCompartment('Matrix-embedded from Textiles to Wastewater', logInflows=True, logOutflows=True, categories=['Wastewater_M', 'Matrix-embedded'])
# In[12]:
# Definition of WIP compartments
WIP_P = cp.FlowCompartment('Product-embedded to Waste Incineration Plant', logInflows=True, logOutflows=True, categories=['WIP', 'WIP_P', 'Product-embedded'])
WIP_N = cp.FlowCompartment('Pristine to Waste Incineration Plant', logInflows=True, logOutflows=True, categories=['WIP', 'WIP_N', 'Pristine'])
WIP_M = cp.FlowCompartment('Matrix-embedded to Waste Incineration Plant', logInflows=True, logOutflows=True, categories=['WIP_M','Matrix-embedded'])
WIP_T = cp.FlowCompartment('Transformed to Waste Incineration Plant', logInflows=True, logOutflows=True, categories=['WIP_T','Transformed'])
Burning_N = cp.FlowCompartment('Pristine to Burning', logInflows=True, logOutflows=True, categories=['Burning', 'Burning_N', 'Pristine'])
Burning_T = cp.FlowCompartment('Transformed to Burning', logInflows=True, logOutflows=True, categories=['Burning', 'Burning_T', 'Transformed'])
Bottomash_N = cp.FlowCompartment('Pristine in Bottom ash', logInflows=True, logOutflows=True, categories=['Bottomash', 'Bottomash_N', 'Pristine'])
Bottomash_T = cp.FlowCompartment('Transformed in Bottom ash', logInflows=True, logOutflows=True, categories=['Bottomash', 'Bottomash_M', 'Matrix-embedded'])
Flyash_N = cp.FlowCompartment('Pristine in Flyash', logInflows=True, logOutflows=True, categories=['Flyash', 'Flyash_N', 'Pristine'])
Flyash_T = cp.FlowCompartment('Transformed in Flyash', logInflows=True, logOutflows=True, categories=['Flyash', 'Flyash_T', 'Transformed'])
Filterash_N = cp.FlowCompartment('Pristine in Filterash', logInflows=True, logOutflows=True, categories=['Filterash', 'Filterash_N', 'Pristine'])
Filterash_T = cp.FlowCompartment('Transformed in Filterash', logInflows=True, logOutflows=True, categories=['Filterash', 'Filterash_T', 'Transformed'])
WIP_Air_N = cp.Sink('From WIP to Air as Pristine', logInflows=True, categories=['Air', 'Air_N', 'Pristine'])
WIP_Air_T = cp.Sink('From WIP to Air as Transformed', logInflows=True, categories=['Air', 'Air_T', 'Transformed'])
# Definition of STP
WW_N = cp.FlowCompartment('Pristine in Wastewater', logInflows=True, logOutflows=True, categories=['AllWastewater', 'AllWastewater_N', 'Pristine'])
WW_M = cp.FlowCompartment('Matrix-embedded in Wastewater', logInflows=True, logOutflows=True, categories=['AllWastewater', 'AllWastewater_M', 'Matrix-embedded'])
WW_T = cp.FlowCompartment('Transformed in Wastewater', logInflows=True, logOutflows=True, categories=['AllWastewater', 'AllWastewater_T', 'Transformed'])
NoSewageSystem_N = cp.FlowCompartment('Pristine in NoSewageSystem', logInflows=True, logOutflows=True, categories=['NoSewageSystem', 'NoSewageSystem_N', 'Pristine'])
NoSewageSystem_M = cp.FlowCompartment('Matrix-embedded in NoSewageSystem', logInflows=True, logOutflows=True, categories=['NoSewageSystem', 'NoSewageSystem_M', 'Matrix-embedded'])
NoSewageSystem_T = cp.FlowCompartment('Transformed in NoSewageSystem', logInflows=True, logOutflows=True, categories=['NoSewageSystem', 'NoSewageSystem_T', 'Transformed'])
NoSew_SW_N = cp.Sink('Pristine from no sewer to surface water', logInflows=True, categories=['Surfacewater', 'Surfacewater_N', 'Pristine'])
NoSew_SW_M = cp.Sink('Matrix-embedded from no sewer to surface water', logInflows=True, categories=['Surfacewater', 'Surfacewater_M', 'Matrix-embedded'])
NoSew_SW_T = cp.Sink('Transformed from no sewer to surface water', logInflows=True, categories=['Surfacewater', 'Surfacewater_T', 'Transformed'])
SewageSystem_N = cp.FlowCompartment('Pristine in SewageSystem', logInflows=True, logOutflows=True, categories=['SewageSystem', 'SewageSystem_N', 'Pristine'])
SewageSystem_M = cp.FlowCompartment('Matrix-embedded in SewageSystem', logInflows=True, logOutflows=True, categories=['SewageSystem', 'SewageSystem_M', 'Matrix-embedded'])
SewageSystem_T = cp.FlowCompartment('Transformed in SewageSystem', logInflows=True, logOutflows=True, categories=['SewageSystem', 'SewageSystem_T', 'Transformed'])
Sew_SW_N = cp.Sink('Pristine from sewer to surface water', logInflows=True, categories=['Surfacewater', 'Surfacewater_N', 'Pristine'])
Sew_SW_M = cp.Sink('Matrix-embedded from sewer to surface water', logInflows=True, categories=['Surfacewater', 'Surfacewater_M', 'Matrix-embedded'])
Sew_SW_T = cp.Sink('Transformed from sewer to surface water', logInflows=True, categories=['Surfacewater', 'Surfacewater_T', 'Transformed'])
OnSiteTreat_N = cp.FlowCompartment('Pristine in OnsiteTreat', logInflows=True, logOutflows=True, categories = ['OnsiteTreat', 'OnsiteTreat_N', 'Pristine'])
OnSiteTreat_M = cp.FlowCompartment('Matrix-embedded in OnsiteTreat', logInflows=True, logOutflows=True, categories = ['OnsiteTreat', 'OnsiteTreat_M', 'Matrix-embedded'])
OnSiteTreat_T = cp.FlowCompartment('Transformed in OnsiteTreat', logInflows=True, logOutflows=True, categories = ['OnsiteTreat', 'OnsiteTreat_T', 'Transformed'])
WWTP_N = cp.FlowCompartment('Pristine to WWTP', logInflows=True, logOutflows=True, categories=['WWTP', 'WWTP_N', 'Pristine'])
WWTP_M = cp.FlowCompartment('Matrix-embedded to WWTP', logInflows=True, logOutflows=True, categories=['WWTP', 'WWTP_M', 'Matrix-embedded'])
WWTP_T = cp.FlowCompartment('Transformed to WWTP', logInflows=True, logOutflows=True, categories=['WWTP', 'WWTP_T', 'Transformed'])
TreatIOnSite_N = cp.FlowCompartment('Pristine in TreatIOnsite', logInflows=True, logOutflows=True, categories=['Treat', 'Treat_N', 'TreatIOnsite', 'TreatIOnsite_N', 'Pristine'])
TreatIOnSite_M = cp.FlowCompartment('Matrix-embedded in TreatIOnSite', logInflows=True, logOutflows=True, categories=['Treat', 'Treat_M', 'TreatIOnsite', 'TreatIOnsite_M', 'Matrix-embedded'])
TreatIOnSite_T = cp.FlowCompartment('Transformed in TreatIOnSite', logInflows=True, logOutflows=True, categories=['Treat', 'Treat_T', 'TreatIOnsite', 'TreatIOnsite_T', 'Transformed'])
TreatI_N = cp.FlowCompartment('Pristine in TreatI', logInflows=True, logOutflows=True, categories=['STP', 'STP_N', 'Treat', 'Treat_N', 'TreatI', 'TreatI_N', 'Pristine'])
TreatI_M = cp.FlowCompartment('Matrix-embedded in TreatI', logInflows=True, logOutflows=True, categories=['STP', 'STP_M', 'Treat', 'Treat_M', 'TreatI', 'TreatI_M', 'Matrix-embedded'])
TreatI_T = cp.FlowCompartment('Transformed in TreatI', logInflows=True, logOutflows=True, categories=['STP', 'STP_T', 'Treat', 'Treat_T', 'TreatI', 'TreatI_T', 'Transformed'])
TreatII_N = cp.FlowCompartment('Pristine in TreatII', logInflows=True, logOutflows=True, categories=['STP', 'STP_N', 'Treat', 'Treat_N', 'TreatII', 'TreatII_N', 'Pristine'])
TreatII_M = cp.FlowCompartment('Matrix-embedded in TreatII', logInflows=True, logOutflows=True, categories=['STP', 'STP_M', 'Treat', 'Treat_M', 'TreatII', 'TreatII_M', 'Matrix-embedded'])
TreatII_T = cp.FlowCompartment('Transformed in TreatII', logInflows=True, logOutflows=True, categories=['STP', 'STP_T', 'Treat', 'Treat_T', 'TreatII', 'TreatII_T,' 'Transformed'])
TreatIII_N = cp.FlowCompartment('Pristine in TreatIII', logInflows=True, logOutflows=True, categories=['STP', 'STP_N', 'Treat', 'Treat_N', 'TreatIII', 'TreatIII_N', 'Pristine'])
TreatIII_M = cp.FlowCompartment('Matrix-embedded in TreatIII', logInflows=True, logOutflows=True, categories=['STP', 'STP_M', 'Treat', 'Treat_M', 'TreatIII', 'TreatIII_M', 'Matrix-embedded'])
TreatIII_T = cp.FlowCompartment('Transformed in TreatIII', logInflows=True, logOutflows=True, categories=['STP', 'STP_T', 'Treat', 'Treat_T', 'TreatIII', 'TreatIII_T', 'Transformed'])
STPoverflow_N = cp.Sink('Pristine to STPoverflow and Surface water', logInflows=True, categories=['Overflow', 'Overflow_N', 'Surfacewater', 'Surfacewater_N' 'Pristine'])
STPoverflow_M = cp.Sink('Matrix-embedded to STPoverflow and Surface water', logInflows=True, categories=['Overflow', 'Overflow_M', 'Surfacewater', 'Surfacewater_M', 'Matrix-embedded'])
STPoverflow_T = cp.Sink('Transformed to STPoverflow and Surface water', logInflows=True, categories=['Overflow', 'Overflow_T', 'Surfacewater', 'Surfacewater_T', 'Transformed'])
STPeffluent_N = cp.Sink('Pristine to STPeffluent and Surface water', logInflows=True, categories=['STPeffluent', 'STPeffluent_N', 'Surfacewater', 'Surfacewater_N', 'Pristine'])
STPeffluent_M = cp.Sink('Matrix-embedded to STPeffluent and Surface water', logInflows=True, categories=['STPeffluent', 'STPeffluent_M', 'Surfacewater', 'Surfacewater_M', 'Matrix-embedded'])
STPeffluent_T = cp.Sink('Transformed to STPeffluent and Surface water', logInflows=True, categories=['STPeffluent', 'STPeffluent_T', 'Surfacewater', 'Surfacewater_T', 'Transformed'])
STPsludge_N = cp.FlowCompartment('Pristine in STPsludge', logInflows=True, logOutflows=True, categories=['STPSludge', 'STPSludge_N', 'Pristine'])
STPsludge_M = cp.FlowCompartment('Matrix-embedded in STPsludge', logInflows=True, logOutflows=True, categories=['STPSludge', 'STPSludge_M', 'Matrix-embedded'])
STPsludge_T = cp.FlowCompartment('Transformed in STPsludge', logInflows=True, logOutflows=True, categories=['STPSludge', 'STPSludge_T', 'Transformed'])
# In[13]:
#Definition of MMSW
MMSW = cp.FlowCompartment('MMSW', logInflows=True, logOutflows=True, categories=['SolidWaste','PMCrel'])
#Definition of PackW
PackW = cp.FlowCompartment('PackW', logInflows=True, logOutflows=True, categories=['SolidWaste','PMCrel'])
#Definition of WEEE
WEEE = cp.FlowCompartment('WEEE', logInflows=True, logOutflows=True, categories=['SolidWaste','PMCrel'])
#Definition of TextW
TextW = cp.FlowCompartment('TextW', logInflows=True, logOutflows=True, categories=['SolidWaste','PMCrel'])
#Definition of CDW
CDW = cp.FlowCompartment('CDW', logInflows=True, logOutflows=True, categories=['SolidWaste', 'PMCrel'])
#Definition of solar waste
SolarWaste = cp.FlowCompartment('SolarWaste', logInflows=True, logOutflows=True, categories=['SolidWaste', 'PMCrel'])
# In[14]:
# Definition of Sorting_PackW
Sorting_PackW = cp.FlowCompartment('Sorting_PackW', logInflows=True, logOutflows=True, categories=['Sorting', 'Sorting1'])
# Definition of Sorting_WEEE
Sorting_WEEE = cp.FlowCompartment('Sorting_WEEE', logInflows=True, logOutflows=True, categories=['Sorting', 'Sorting1'])
# Definition of WEEE sorting subcompartments
WEEE_NotExported = cp.FlowCompartment('WEEE_NotExported', logInflows=True, logOutflows=True, categories=['Sorting', 'Sorting2'])
OtherWEEE = cp.FlowCompartment('OtherWEEE', logInflows=True, logOutflows=True, categories=['Sorting', 'Sorting2'])
WEEE_Plastics = cp.FlowCompartment('WEEE_Plastics', logInflows=True, logOutflows=True, categories=['Sorting', 'Sorting2'])
WEEE_Plastics_OA = cp.FlowCompartment('WEEE_Plastics_OA', logInflows=True, logOutflows=True, categories=['Sorting', 'Sorting2'])
WEEE_Resorting = cp.FlowCompartment('WEEE_Resorting', logInflows=True, logOutflows=True, categories=['Sorting', 'Sorting2'])
# Definition of Sorting_TextW
Sorting_TextW = cp.FlowCompartment('Sorting_TextW', logInflows=True, logOutflows=True, categories=['Sorting', 'Sorting1'])
# Definition of TextW sorting
TextW_Resorting = cp.FlowCompartment('TextW_Resorting', logInflows=True, logOutflows=True, categories = ['Sorting', 'Sorting2'])
# Definition of Sorting_CDW
Sorting_CDW = cp.FlowCompartment('Sorting_CDW', logInflows=True, logOutflows=True, categories=['Sorting', 'Sorting1'])
#Definition of CDW sorting subcompartments
Sorting_CDW_Mineral=cp.FlowCompartment('Sorting_CDW_Mineral', logInflows=True, logOutflows=True, categories=['Sorting', 'Sorting2'])
Sorting_CDW_Glass=cp.FlowCompartment('Sorting_CDW_Glass', logInflows=True, logOutflows=True, categories=['Sorting', 'Sorting2'])
# Disposal compartment with the same disposal rates as MMSW
# - but actually it should be called 'Disposal' because it doesn't specifically needs to be disposed from sorting
Sorting_Disposal = cp.FlowCompartment('Sorting_Disposal', logInflows=True, logOutflows=True, categories =['Sorting','Sorting_Disposal'])
# In[15]:
# Definition of Export
SortWEEE_Export_P = cp.Sink('From Sorting WEEE to Export', logInflows=True, categories=['Export'])
SortTextW_Export_P = cp.Sink('From Sorting Textile waste to Export', logInflows=True, categories=['Export'])
# Definition of Landfill
ManufTextW_Landfill_P = cp.Sink('Product-embedded from Textile manufacturing waste to Landfill', logInflows=True, categories=['Landfill', 'Landfill_P', 'Product-embedded'])
ManufPlasW_Landfill_P = cp.Sink('Product-embedded from Plastics manufacturing waste to Landfill', logInflows=True, categories=['Landfill', 'Landfill_P', 'Product-embedded'])
STPSlud_Landfill_N = cp.Sink('Pristine from STP Sludge to Landfill', logInflows=True, categories=['Landfill', 'Landfill_N', 'Pristine'])
STPSlud_Landfill_M = cp.Sink('Matrix-embedded from STP Sludge to Landfill', logInflows=True, categories=['Landfill', 'Landfill_M', 'Matrix-embedded'])
STPSlud_Landfill_T = cp.Sink('Transformed from STP Sludge to Landfill', logInflows=True, categories=['Landfill', 'Landfill_T', 'Transformed'])
MMSW_Landfill_P = cp.Sink('Product-embedded from MMSW to Landfill', logInflows=True, categories=['Landfill', 'Landfill_P', 'Product-embedded'])
CDW_Landfill_P = cp.Sink('Product-embedded from CDW to Landfill', logInflows=True, categories=['Landfill', 'Landfill_P', 'Product-embedded'])
SortCDWGlass_Landfill_P = cp.Sink('Product-embedded from Sorted CDW glass to Landfill', logInflows=True, categories=['Landfill', 'Landfill_P', 'Product-embedded'])
SortCDWMiner_Landfill_P = cp.Sink('Product-embedded from Sorted CDW minerals to Landfill', logInflows=True, categories=['Landfill', 'Landfill_P', 'Product-embedded'])
SortDisp_Landfill_P = cp.Sink('Product-embedded from other sorting to Landfill', logInflows=True, categories=['Landfill', 'Landfill_P', 'Product-embedded'])
GranuPlas_Landfill_P = cp.Sink('Product-embedded from Plastic granulation to Landfill', logInflows=True, categories=['Landfill', 'Landfill_P', 'Product-embedded'])
BaliText_Landfill_P = cp.Sink('Product-embedded from Textile baling to Landfill', logInflows=True, categories=['Landfill', 'Landfill_P', 'Product-embedded'])
PuriSlag_Landfill_T = cp.Sink('Transformed from Purification slag to Landfill', logInflows=True, categories=['Landfill', 'Landfill_T', 'Transformed'])
PuriSlag_Landfill_P = cp.Sink('Product-embedded from Purification slag to Landfill', logInflows=True, categories=['Landfill', 'Landfill_P', 'Product-embedded'])
SortMiner_Landfill_P = cp.Sink('Product-embedded from Sorted minerals to Landfill', logInflows=True, categories=['Landfill', 'Landfill_P', 'Product-embedded'])
Filterash_Landfill_N = cp.Sink('Pristine from Filter ash to Landfill', logInflows=True, categories=['Landfill', 'Landfill_N', 'Pristine'])
Filterash_Landfill_T = cp.Sink('Transformed from Filter ash to Landfill', logInflows=True, categories=['Landfill', 'Landfill_T', 'Transformed'])
Bottomash_Landfill_N = cp.Sink('Pristine from Bottom ash to Landfill', logInflows=True, categories=['Landfill', 'Landfill_N', 'Pristine'])
Bottomash_Landfill_T = cp.Sink('Transformed from Bottom ash to Landfill', logInflows=True, categories=['Landfill', 'Landfill_T', 'Transformed'])
# In[16]:
# Definition of Sludge treated soil
STsoil_N = cp.Sink('Pristine in Sludge treated soil', logInflows=True, categories=['Soil', 'Soil_N', 'ST Soil', 'ST Soil_N', 'Pristine'])
STsoil_M = cp.Sink('Matrix-embedded in Sludge treated soil', logInflows=True, categories=['Soil', 'Soil_M','ST Soil', 'ST Soil_M', 'Matrix-embedded'])
STsoil_T = cp.Sink('Transformed in Sludge treated soil', logInflows=True, categories=['Soil', 'Soil_T', 'ST Soil', 'ST Soil_T', 'Transformed'])
#Definition of Subsurface
Sew_Subsurface_N = cp.Sink('Pristine from Sewer to Subsurface', logInflows=True, categories=['Subsurface', 'Subsurface_N', 'Pristine'])
Sew_Subsurface_M = cp.Sink('Matrix-embedded from Sewer to Subsurface', logInflows=True, categories=['Subsurface', 'Subsurface_M', 'Matrix-embedded'])
Sew_Subsurface_T = cp.Sink('Transformed from Sewer to Subsurface', logInflows=True, categories=['Subsurface', 'Subsurface_T', 'Transformed'])
OnSiteTreat_Subsurface_N = cp.Sink('Pristine from On-site treatment to Subsurface', logInflows=True, categories=['Subsurface', 'Subsurface_N', 'Pristine'])
OnSiteTreat_Subsurface_M = cp.Sink('Matrix-embedded from On-site treatment to Subsurface', logInflows=True, categories=['Subsurface', 'Subsurface_M', 'Matrix-embedded'])
OnSiteTreat_Subsurface_T = cp.Sink('Transformed from On-site treatment to Subsurface', logInflows=True, categories=['Subsurface', 'Subsurface_T', 'Transformed'])
#Definition of the sludge that stays on site
OnSiteSludge_N = cp.Sink('Pristine in OnsiteSludge', logInflows=True, categories=['OnsiteSludge', 'OnsiteSludge_N', 'Pristine'])
OnSiteSludge_M = cp.Sink('Matrix-embedded in OnsiteSludge', logInflows=True, categories=['OnsiteSludge', 'OnsiteSludge_M', 'Matrix-embedded'])
OnSiteSludge_T = cp.Sink('Transformed in OnsiteSludge', logInflows=True, categories=['OnsiteSludge', 'OnsiteSludge_T', 'Transformed'])
# In[17]:
''' -----------------Define necessary commpartments for recycling systems--------------------------'''
# Definition of Reprocessing
#define the waste categories in reprocesseing systems as product-embedded forms
Reprocess_WEEE_NotExW_P=cp.FlowCompartment('Light bulbs waste to reprocess as product-embedded forms',logInflows=True, logOutflows=True, categories=['Reprocessing', 'Reprocess_P'])
Reprocess_Plas_P=cp.FlowCompartment('Plastics waste to reprocess as product-embedded forms',logInflows=True, logOutflows=True, categories=['Reprocessing','Reprocess_P','Reprocessed Plastics'])
Reprocess_Glass_P=cp.FlowCompartment('Glass waste to reprocess as product-embedded forms',logInflows=True, logOutflows=True, categories=['Reprocessing','Reprocess_P','Reprocessed Glass'])
Reprocess_Metal_P=cp.FlowCompartment('Metal waste to reprocess as product-embedded forms',logInflows=True, logOutflows=True, categories=['Reprocessing','Reprocess_P','Reprocessed Metals'])
Reprocess_Mineral_P=cp.FlowCompartment('Mineral waste to reprocess as product-embedded forms',logInflows=True, logOutflows=True, categories=['Reprocessing','Reprocess_P','Reprocessed Minerals'])
Reprocess_Text_P=cp.FlowCompartment('Textile waste to reprocess as product-embedded forms',logInflows=True, logOutflows=True, categories=['Reprocessing','Reprocess_P','Reprocessed Textiles'])
Reprocess_Solar_P=cp.Sink('Solar waste to reprocess as product-embedded forms',logInflows=True, categories=['Reprocessing','Reprocess_P','Reprocessed Solar waste'])
# define plastic recycling system
Washing_Plas=cp.FlowCompartment('Washing of plastics',logInflows=True, logOutflows=True, categories=['ReprWashPlas'])
Melting_Plas=cp.FlowCompartment('Melting of plastics',logInflows=True, logOutflows=True, categories=['ReprMeltPlas'])
Granulation_Plas=cp.FlowCompartment('Granulation of plastics',logInflows=True, logOutflows=True, categories=['ReprGranPlas'])
Air_Plas= cp.FlowCompartment('ENM particles in Air from shredding plastics', logInflows=True, logOutflows=True,categories=['Air'])
# define textile recycling system
Washing_Text=cp.FlowCompartment('Washing of textiles',logInflows=True, logOutflows=True, categories=['ReprWashText'])
Baling_Text=cp.FlowCompartment('ENM particles in baling as product-embedded forms with textiles',logInflows=True, logOutflows=True, categories=['ReprWashBali'])
Air_Text= cp.FlowCompartment('Textile particles in Air from shredding textiles', logInflows=True,logOutflows=True, categories=['Air'])
WW_Text = cp.FlowCompartment('ENM particles in Wastewater from washing textiles',logInflows=True,logOutflows=True, categories=['Wastewater'])
# define metal recycling system
Melting_Metal=cp.FlowCompartment('Melting of metals',logInflows=True, logOutflows=True, categories=['ReprMeltMeta'])
Purification_Metal_P=cp.FlowCompartment('ENM as product-embedded forms in flows to purifaction of metals',logInflows=True, logOutflows=True, categories=['ReprPuriMeta', 'ReprPuriMeta_P'])
Purification_Metal_T=cp.FlowCompartment('ENM as transformed forms in flows to purifaction of metals',logInflows=True, logOutflows=True, categories=['ReprPuriMeta', 'ReprPuriMeta_T'])
#Moulding_Metal_T=cp.FlowCompartment('ENM as transformed forms in flows to moulding of metals',logInflows=True, logOutflows=True, categories=['Procedures in reprocessing system'])
#Moulding_Metal_P=cp.FlowCompartment('ENM as product-embedded forms in flows to moulding of metals',logInflows=True, logOutflows=True, categories=['Procedures in reprocessing system'])
Puri_slag_P=cp.FlowCompartment('ENM as product-embedded forms in flows to slags of metals',logInflows=True, logOutflows=True, categories=['ReprPuriSlag', 'ReprPuriSlag_P'])
Puri_slag_T=cp.FlowCompartment('ENM as transformed forms in flows to slags of metals',logInflows=True, logOutflows=True, categories=['ReprPuriSlag', 'ReprPuriSlag_T'])
Air_Metal= cp.FlowCompartment('ENM particles in Air from shredding metals', logInflows=True, logOutflows=True,categories=['Air'])
# define glass recycling system
Melting_Glass=cp.FlowCompartment('Melting of glass',logInflows=True, logOutflows=True, categories=['ReprMeltGlas'])
#Moulding_Glass_T=cp.FlowCompartment('Moulding of glass',logInflows=True, logOutflows=True, categories=['Procedures in reprocessing system'])
Air_Glass= cp.FlowCompartment('ENM particles in Air from crushing glass', logInflows=True,logOutflows=True, categories=['Air'])
#Landfill_Glass_P = cp.Sink('ENM partciles in Landfill as product-embedded forms with glass', logInflows=True, categories=['Landfill'])
# define mineral recycling system
Sorting_Mineral=cp.FlowCompartment('Sorting/Sieving of mineral',logInflows=True, logOutflows=True, categories=['ReprSortMine'])
Air_Mineral= cp.FlowCompartment('ENM particles in Air from crushing minerals', logInflows=True,logOutflows=True, categories=['Air'])
# define air NM
Air_NM_Plas = cp.FlowCompartment('N and M particles in air from plastics',logInflows=True,logOutflows=True, categories=['Air_NM'])
Air_NM = cp.FlowCompartment('N and M particles in air from metal/textile/mineral/glass',logInflows=True,logOutflows=True, categories=['Air_NM'])
# defined RPAir here in order to sum up flows to air from reprocessing
RPAir_N= cp.Sink('Pristine particles in air from reprocessing systems',logInflows=True, categories=['Air_N', 'Pristine'])
RPAir_M= cp.Sink('Matrix-embedded particles in air from reprocessing systems',logInflows=True, categories=['Air_M','Matrix-embedded'])
RPWIP_P = cp.FlowCompartment('Product-embedded to Waste Incineration Plant from reprocessing', logInflows=True, logOutflows=True, categories=['WIP','WIP_P', 'Product_embedded'])
RPWW_N = cp.FlowCompartment('Pristine in Wastewater from reprocessing', logInflows=True, logOutflows=True, categories=['Wastewater', 'Wastewater_N', 'Pristine'])
RPWW_M = cp.FlowCompartment('Matrix-embedded in Wastewater from reprocessing', logInflows=True, logOutflows=True, categories=['Wastewater', 'Wastewater_M', 'Matrix-embedded'])
# define reuse compartment to store all final products from recycling factories
GranuPlas_Reuse_P = cp.Sink('Product-embedded from Plastic granulation to Reuse', logInflows=True, categories=['Reuse', 'Reuse_P', 'Product-embedded'])
BaliText_Reuse_P = cp.Sink('Product-embedded from Textile baling to Reuse', logInflows=True, categories=['Reuse', 'Reuse_P', 'Product-embedded'])
PuriMetal_Reuse_P = cp.Sink('Product-embedded from Metal purification to Reuse', logInflows=True, categories=['Reuse', 'Reuse_P', 'Product-embedded'])
PuriMetal_Reuse_T = cp.Sink('Transformed from Metal purification to Reuse', logInflows=True, categories=['Reuse', 'Reuse_T', 'Transformed'])
PuriSlag_Reuse_P = cp.Sink('Product-embedded from Purification slag to Reuse', logInflows=True, categories=['Reuse', 'Reuse_P', 'Product-embedded'])
PuriSlag_Reuse_T = cp.Sink('Transformed from Purification slag to Reuse', logInflows=True, categories=['Reuse', 'Reuse_T', 'Transformed'])
MeltGlass_Reuse_T = cp.Sink('Transformed from Glass melting to Reuse', logInflows=True, categories=['Reuse', 'Reuse_T', 'Transformed'])
SortMiner_Reuse_P = cp.Sink('Product-embedded from Sorted minerals to Reuse', logInflows=True, categories=['Reuse', 'Reuse_P', 'Product-embedded'])
Filterash_Reuse_N = cp.Sink('Pristine from Filter ash to Reuse', logInflows=True, categories=['Reuse', 'Reuse_N', 'Pristine'])
Filterash_Reuse_T = cp.Sink('Transformed from Filter ash to Reuse', logInflows=True, categories=['Reuse', 'Reuse_T', 'Transformed'])
Bottomash_Reuse_N = cp.Sink('Pristine from Bottom ash to Reuse', logInflows=True, categories=['Reuse', 'Reuse_N', 'Pristine'])
Bottomash_Reuse_T = cp.Sink('Transformed from Bottom ash to Reuse', logInflows=True, categories=['Reuse', 'Reuse_T', 'Transformed'])
# In[19]:
compartmentList=[totalInflow, Import_Manuf, Import_Cons,
Production,
Prod_Air_N, Manuf_Air_N,
Manufacture,
Manuf_Plas, Manuf_Text, Manuf_Solids, Manuf_Liquids,
manuf_textiles_waste, manuf_plastics_waste,
ManufSolidW_Reuse_P, ManufTextW_Reuse_P, ManufPlasW_Reuse_P,
Consumption,
PersCare, PersCare_Use, PersCare_EoL,
OutPaints, OutPaints_Use, OutPaints_EoL,
InPaints, InPaints_Use, InPaints_EoL,
Cement, Cement_Use, Cement_EoL,
Glass, Glass_Use, Glass_EoL,
Ceramics, Ceramics_Use, Ceramics_EoL,
RubPlas, RubPlas_Use, RubPlas_EoL,
Solar, Solar_EoL,
Electronics, Electronics_Use, Electronics_EoL,
CleanAgents, CleanAgents_Use, CleanAgents_EoL,
Food, Food_Use, Food_EoL,
Textiles, Textiles_Use, Textiles_EoL,
PersCare_WW, PersCare_WW_N, PersCare_SW, PersCare_SW_N,
OutPaints_Air, OutPaints_Air_N, OutPaints_Air_M, OutPaints_WW, OutPaints_WW_N, OutPaints_WW_M,
OutPaints_NUsoil, OutPaints_NUsoil_N, OutPaints_NUsoil_M,
InPaints_Air, InPaints_Air_N, InPaints_Air_M, InPaints_WW, InPaints_WW_N, InPaints_WW_M,
InPaints_NUsoil, InPaints_NUsoil_N, InPaints_NUsoil_M,
Cement_WW, Cement_WW_N, Cement_WW_M,
Glass_WW, Glass_WW_N, Glass_WW_M, Glass_Air, Glass_Air_N, Glass_Air_M,
Glass_NUsoil, Glass_NUsoil_N, Glass_NUsoil_M,
Ceramics_WW, Ceramics_WW_N, Ceramics_WW_M, Ceramics_Air, Ceramics_Air_N, Ceramics_Air_M,
Ceramics_NUsoil, Ceramics_NUsoil_N, Ceramics_NUsoil_M,
RubPlas_Air, RubPlas_Air_N, RubPlas_Air_M, RubPlas_WW, RubPlas_WW_N, RubPlas_WW_M,
Electronics_WW, Electronics_WW_N, Electronics_WW_M,
CleanAgents_WW, CleanAgents_WW_N,
Food_WW, Food_WW_N,
Textiles_WW, Textiles_WW_N, Textiles_WW_M, Textiles_Air, Textiles_Air_N, Textiles_Air_M,
WW_N, WW_M, WW_T,
OnSiteTreat_N, OnSiteTreat_M, OnSiteTreat_T,
SewageSystem_N, SewageSystem_M, SewageSystem_T,
NoSewageSystem_N, NoSewageSystem_M, NoSewageSystem_T,
TreatIOnSite_N, TreatIOnSite_M, TreatIOnSite_T,
WWTP_N, WWTP_M, WWTP_T,
STPoverflow_N, STPoverflow_M, STPoverflow_T,
STPeffluent_N, STPeffluent_M, STPeffluent_T,
STPsludge_N, STPsludge_M, STPsludge_T,
OnSiteSludge_N, OnSiteSludge_M, OnSiteSludge_T,
TreatI_N, TreatII_N, TreatIII_N, TreatI_M, TreatII_M, TreatIII_M, TreatI_T, TreatII_T, TreatIII_T,
NoSew_SW_N, NoSew_SW_T, NoSew_SW_M,
Sew_SW_N, Sew_SW_T, Sew_SW_M,
MMSW, PackW, WEEE, TextW, CDW, SolarWaste,
Sorting_PackW, Sorting_WEEE, Sorting_TextW, Sorting_CDW,
WEEE_NotExported, OtherWEEE, WEEE_Plastics, WEEE_Plastics_OA, WEEE_Resorting,
TextW_Resorting,
Sorting_CDW_Mineral, Sorting_CDW_Glass,
Sorting_Disposal,
GranuPlas_Reuse_P, BaliText_Reuse_P, PuriMetal_Reuse_P, PuriMetal_Reuse_T,
PuriSlag_Reuse_P, PuriSlag_Reuse_T, MeltGlass_Reuse_T, SortMiner_Reuse_P,
Filterash_Reuse_N, Filterash_Reuse_T, Bottomash_Reuse_N, Bottomash_Reuse_T,
Air_NM, RPAir_N, RPAir_M,
RPWIP_P, RPWW_N, RPWW_M,
Washing_Plas, Melting_Plas, Granulation_Plas, Air_Plas, Air_NM_Plas,
Washing_Text, Baling_Text, Air_Text, WW_Text,
Melting_Metal, Purification_Metal_P, Purification_Metal_T,
Puri_slag_P, Puri_slag_T,#Moulding_Metal_P,Moulding_Metal_T,
Air_Metal,
Melting_Glass, Air_Glass,
Sorting_Mineral, Air_Mineral,
Reprocess_WEEE_NotExW_P,
Reprocess_Plas_P, Reprocess_Text_P, Reprocess_Glass_P, Reprocess_Metal_P, Reprocess_Mineral_P,
Reprocess_Solar_P,
WIP_N, WIP_M, WIP_P, WIP_T, Burning_N, Burning_T,
Bottomash_N, Bottomash_T, Flyash_N, Flyash_T, Filterash_N, Filterash_T,
WIP_Air_N, WIP_Air_T,
SortWEEE_Export_P, SortTextW_Export_P,
ManufTextW_Landfill_P, ManufPlasW_Landfill_P, STPSlud_Landfill_N, STPSlud_Landfill_M, STPSlud_Landfill_T,
MMSW_Landfill_P, CDW_Landfill_P, SortCDWGlass_Landfill_P, SortCDWMiner_Landfill_P, SortDisp_Landfill_P,
GranuPlas_Landfill_P, BaliText_Landfill_P, PuriSlag_Landfill_T, PuriSlag_Landfill_P,
SortMiner_Landfill_P, Filterash_Landfill_N, Filterash_Landfill_T, Bottomash_Landfill_N, Bottomash_Landfill_T,
STsoil_N, STsoil_M, STsoil_T,
Sew_Subsurface_N, Sew_Subsurface_M, Sew_Subsurface_T,
OnSiteTreat_Subsurface_N, OnSiteTreat_Subsurface_M, OnSiteTreat_Subsurface_T]
model.setCompartments(compartmentList)
# In[20]:
Productiondata = pd.read_csv('nano_TiO2production2000-2030.csv', header=None)
Productiondata.shape
# In[21]:
# Production for the whole Europe:
Productiondata_EU = Productiondata.values #in earlier code as " Productiondata = Productiondata.as_matrix(Productiondata)
# Scaling production for the UK only:
Productiondata_anatase = Productiondata_EU*0.238
# Putting the numbers in the model:
Productionvolume_EU = []
Productionvolume_anatase = []
for i in np.arange(0,21):
Productionvolume_EU.append(Productiondata_EU[:,i])
Productionvolume_anatase.append(Productiondata_anatase[:,i])
#model.addInflow(cp.ExternalListInflow(totalInflow, inflowList=Productionvolume))
periodRange = np.arange(0,21)
# Setting inflow to production
model.addInflow(cp.ExternalListInflow(totalInflow, [cp.RandomChoiceInflow(Productionvolume_anatase[x]) for x in periodRange]))
# Adding imports. (country-specific)
#SF_Prod = 0
#SF_Manuf = 0
#SF_Cons = 0
model.addInflow(cp.ExternalListInflow(Import_Manuf, [cp.RandomChoiceInflow(Productionvolume_anatase[x]) for x in periodRange]))
model.addInflow(cp.ExternalListInflow(Import_Cons, [cp.RandomChoiceInflow(Productionvolume_anatase[x]) for x in periodRange]))
# In[22]:
totalInflow.transfers = [cp.ConstTransfer(1, Production)]
Import_Manuf.transfers = [cp.ConstTransfer(1, Manufacture)]
Import_Cons.transfers = [cp.ConstTransfer(1, Consumption)]
# In[23]:
## Production and Manufacture
Production.localRelease = cp.ListRelease([1.0])
Manufacture.localRelease = cp.ListRelease([1.0])
Production.transfers = [cp.StochasticTransfer(nr.triangular, [0.0002, 0.0125, 0.0467], WW_N, priority=2),
cp.StochasticTransfer(nr.triangular, [0.0000008, 0.0000016, 0.0000024], Prod_Air_N, priority=2),
cp.ConstTransfer(1, Manufacture, priority=1)]
# Allocate manufactured products to different categories:
#Manuf_Solids: cement, solar
Tot_Manuf_Solids = nr.triangular(0.06, 0.067, 0.08, 10000) + nr.triangular(0.00, 0.084, 0.17, 10000)
#Manuf_Liquids: Outpaints, Inpaintes, Glass, Ceramics
Tot_Manuf_Liquids = nr.triangular(0.18, 0.214, 0.44, 10000) + nr.triangular(0.32, 0.391, 0.46, 10000) + 2*(nr.triangular(0.10, 0.122, 0.14, 10000))
Manufacture.transfers = [cp.StochasticTransfer(nr.triangular, [0, 0.0233, 0.05], Manuf_Plas, priority=2),
cp.StochasticTransfer(nr.triangular, [0, 0.0017, 0.01], Manuf_Text, priority=2),
cp.RandomChoiceTransfer(Tot_Manuf_Solids, Manuf_Solids, priority=2),
cp.RandomChoiceTransfer(Tot_Manuf_Liquids, Manuf_Liquids, priority=2)]
Manuf_Text.transfers = [cp.StochasticTransfer(nr.triangular, [0.00000085, 0.0000017, 0.00000255], Manuf_Air_N, priority=2),
cp.StochasticTransfer(nr.uniform, [0.001, 0.0016], WW_N, priority=2),
cp.StochasticTransfer(nr.uniform, [0, 0.018], manuf_textiles_waste, priority=2),
cp.ConstTransfer(1, Consumption, priority=1)]
Manuf_Plas.transfers = [cp.StochasticTransfer(nr.triangular, [0.00000085, 0.0000017, 0.00000255], Manuf_Air_N, priority=2),
cp.StochasticTransfer(nr.uniform, [0.001, 0.0016], WW_N, priority=2),
cp.StochasticTransfer(nr.uniform, [0.03, 0.08], manuf_plastics_waste, priority=2),
cp.ConstTransfer(1, Consumption, priority=1)]
Manuf_Solids.transfers = [cp.StochasticTransfer(nr.triangular, [0.00000085, 0.0000017, 0.00000255], Manuf_Air_N, priority=2),
cp.StochasticTransfer(nr.uniform, [0.001, 0.0016], WW_N, priority=2),
cp.StochasticTransfer(nr.triangular, [0.005, 0.01, 0.015], ManufSolidW_Reuse_P, priority=2),
cp.ConstTransfer(1, Consumption, priority=1)]
Manuf_Liquids.transfers = [cp.StochasticTransfer(nr.triangular, [0.00000085, 0.0000017, 0.00000255], Manuf_Air_N, priority=2),
cp.StochasticTransfer(nr.uniform, [0.001, 0.0016], WW_N, priority=2),
cp.ConstTransfer(1, Consumption, priority=1)]
manuf_textiles_waste.transfers = [cp.StochasticTransfer(nr.triangular, [0.25, 0.5, 0.75], ManufTextW_Reuse_P),
cp.StochasticTransfer(nr.triangular, [0.3*0.25, 0.3*0.5, 0.3*0.75], WIP_P),
cp.StochasticTransfer(nr.triangular, [0.7*0.25, 0.7*0.5, 0.7*0.75], ManufTextW_Landfill_P)]
manuf_plastics_waste.transfers = [cp.RandomChoiceTransfer(tf.TriangTruncDet(0.455, 0.91, 1.365, 10000, 0, 1), ManufPlasW_Reuse_P),
cp.StochasticTransfer(nr.triangular, [0.045, 0.09, 0.135], WIP_P),
cp.StochasticTransfer(nr.triangular, [0.001, 0.002, 0.003], ManufPlasW_Landfill_P)]
# In[24]:
# ENM allocation to product categories
Consumption.transfers = [cp.StochasticTransfer(nr.triangular, [0.00, 0.00, 0.00], PersCare),
cp.StochasticTransfer(nr.triangular, [0.00, 0.00, 0.00], RubPlas),
cp.StochasticTransfer(nr.triangular, [0.00, 0.00, 0.00], Electronics),
cp.StochasticTransfer(nr.triangular, [0.00, 0.00, 0.00], CleanAgents),
cp.StochasticTransfer(nr.triangular, [0.00, 0.00, 0.00], Food),
cp.StochasticTransfer(nr.triangular, [0.00, 0.00, 0.00], Textiles),
cp.StochasticTransfer(nr.triangular, [0.18, 0.214, 0.44], OutPaints),
cp.StochasticTransfer(nr.triangular, [0.32, 0.391, 0.46], InPaints),
cp.StochasticTransfer(nr.triangular, [0.06, 0.067, 0.08], Cement),
cp.StochasticTransfer(nr.triangular, [0.10, 0.122, 0.14], Glass),
cp.StochasticTransfer(nr.triangular, [0.10, 0.122, 0.14], Ceramics),
cp.StochasticTransfer(nr.triangular, [0.00, 0.084, 0.17], Solar)]
# In[25]:
# Products categories to their USE and EoL compartments
#For pigment TiO2
#PersCare.transfers = [cp.ConstTransfer(1, PersCare_Use, priority=1),
# cp.StochasticTransfer(nr.triangular, [0.069, 0.11, 0.151], PersCare_EoL, priority=2)]
#For nano-TiO2 composites
PersCare.transfers = [cp.ConstTransfer(1, PersCare_Use, priority=1),
cp.StochasticTransfer(nr.triangular, [0.095, 0.15, 0.206], PersCare_EoL, priority=2)] #Updated based on Keller et al. (2014)
OutPaints.transfers = [cp.ConstTransfer(1, OutPaints_EoL, priority=1),
cp.StochasticTransfer(nr.triangular, [0.005, 0.01, 0.015], OutPaints_Use, priority=2)]
InPaints.transfers = [cp.ConstTransfer(1, InPaints_EoL, priority=1),
cp.StochasticTransfer(tf.TriangTrunc, [0.001, 3.22, 1, 0, 1], InPaints_Use, priority=2)],
Cement.transfers = [cp.ConstTransfer(1, Cement_EoL, priority=1),
cp.StochasticTransfer(nr.triangular, [0.005, 0.01, 0.015], Cement_Use, priority=2)]
Glass.transfers = [cp.ConstTransfer(1, Glass_EoL, priority=1),
cp.StochasticTransfer(nr.triangular, [0.175, 0.35, 0.525], Glass_Use, priority=2)]
Ceramics.transfers = [cp.ConstTransfer(1, Ceramics_EoL, priority=1),
cp.StochasticTransfer(nr.triangular, [0.175, 0.35, 0.525], Ceramics_Use, priority=2)]
RubPlas.transfers = [cp.ConstTransfer(1, RubPlas_EoL, priority=1),
cp.StochasticTransfer(nr.triangular, [0.015, 0.035, 0.045], RubPlas_Use, priority=2)]
Solar.transfers = [cp.ConstTransfer(1, Solar_EoL, priority=1)]
Electronics.transfers = [cp.ConstTransfer(1, Electronics_EoL, priority=1),
cp.StochasticTransfer(nr.triangular, [0.15, 0.30, 0.45], Electronics_Use, priority=2)]
CleanAgents.transfers = [cp.ConstTransfer(1, CleanAgents_Use, priority=1),
cp.StochasticTransfer(nr.triangular, [0.025, 0.05, 0.075], CleanAgents_EoL, priority=2)]
Food.transfers = [cp.ConstTransfer(1, Food_Use, priority=1),
cp.StochasticTransfer(nr.triangular, [0.05, 0.10, 0.15], Food_EoL, priority=2)]
# Determination of releases during use:
# previous from Sun et al = 0.03 (0.015 the first year),
# new from LEITAT = 0.093 after ten washings (i.e. assumed during the first year),
# so in total (wastewater + air) = 0.186 released during use.
Textiles_Use_data = np.concatenate([nr.triangular(0.015, 0.03, 0.045, 5000), nr.triangular(0.093, 0.186, 0.279, 5000)])
Textiles.transfers = [cp.ConstTransfer(1, Textiles_EoL, priority=1),
cp.RandomChoiceTransfer(Textiles_Use_data, Textiles_Use, priority=2)]
# In[26]:
# Personal care
PersCare_Use.localRelease = cp.ListRelease([0.90,0.10])
PersCare_EoL.localRelease = cp.ListRelease([0.90,0.10])
# For pigment-TiO2
#PersCare_Use.transfers = [cp.ConstTransfer(1, PersCare_WW, priority=1)],
#
#PersCare_WW.transfers = [cp.ConstTransfer(1, PersCare_WW_N, priority=1)]
#
#PersCare_EoL.transfers = [cp.ConstTransfer(1, PackW, priority=1)]
# For nano-TiO2 composites
PersCare_Use.transfers = [cp.ConstTransfer(1, PersCare_WW, priority=1),
cp.StochasticTransfer(nr.triangular, [0.025,0.04,0.055], PersCare_SW, priority=2)]
PersCare_WW.transfers = [cp.ConstTransfer(1, PersCare_WW_N, priority=1)]
PersCare_SW.transfers = [cp.ConstTransfer(1, PersCare_SW_N, priority=1)]
PersCare_EoL.transfers = [cp.ConstTransfer(1, PackW, priority=1)]
# In[27]:
# OutPaints
OutPaints_Use.localRelease = cp.ListRelease([0.9,0.01666667,0.01666667,0.01666667,0.01666667,
0.01666667,0.01666667])
OutPaints_EoL.localRelease = cp.ListRelease([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.001722281,
0.001037804,0.001572363,0.00232936,0.003374171,0.004779078,
0.006618624,0.00896268,0.01186737,0.01536449,0.01945038,
0.02407602,0.0291399,0.03448561,0.03990567,0.04515209,
0.04995371,0.05403864,0.0571594,0.05911772,0.05978529,
0.05911772,0.0571594,0.05403864,0.04995371,0.04515209,
0.03990567,0.03448561,0.0291399,0.02407602,0.01945038,
0.01536449,0.01186737,0.00896268,0.006618624,0.004779078,
0.003374171,0.00232936,0.001572363,0.001037804,0.001722281])
OutPaints_Use.transfers = [cp.StochasticTransfer(nr.triangular, [0.25, 0.50, 0.75], OutPaints_WW, priority=1),
cp.StochasticTransfer(nr.triangular, [0.125, 0.25,0.375], OutPaints_Air, priority=1),
cp.StochasticTransfer(nr.triangular, [0.125, 0.25,0.375], OutPaints_NUsoil, priority=1)]
OutPaints_WW.transfers = [cp.StochasticTransfer(nr.triangular, [0.15, 0.30, 0.45], OutPaints_WW_N, priority=1),
cp.StochasticTransfer(tf.TriangTruncDet, [0.35, 0.7, 1.05, 1, 0, 1], OutPaints_WW_M, priority=1)]
OutPaints_Air.transfers = [cp.StochasticTransfer(nr.uniform, [1e-6, 1], OutPaints_Air_N, priority=1),
cp.StochasticTransfer(nr.uniform, [1e-6, 1], OutPaints_Air_M, priority=1)]
OutPaints_NUsoil.transfers = [cp.StochasticTransfer(nr.triangular, [0.15, 0.30, 0.45], OutPaints_NUsoil_N, priority=1),
cp.StochasticTransfer(tf.TriangTruncDet, [0.35, 0.70, 1.05, 1, 0, 1], OutPaints_NUsoil_M, priority=1)]
OutPaints_EoL.transfers = [cp.StochasticTransfer(tf.TriangTruncDet, [0.475, 0.95, 1.9, 1, 0, 1], CDW, priority=1),
cp.StochasticTransfer(nr.triangular, [0.025, 0.05, 0.075], MMSW, priority=1)]
# In[27.5]:
# InPaints
InPaints_Use.localRelease = cp.FixedRateRelease(0.1)
InPaints_EoL.localRelease = cp.ListRelease([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.001722281,
0.001037804,0.001572363,0.00232936,0.003374171,0.004779078,
0.006618624,0.00896268,0.01186737,0.01536449,0.01945038,
0.02407602,0.0291399,0.03448561,0.03990567,0.04515209,
0.04995371,0.05403864,0.0571594,0.05911772,0.05978529,
0.05911772,0.0571594,0.05403864,0.04995371,0.04515209,
0.03990567,0.03448561,0.0291399,0.02407602,0.01945038,
0.01536449,0.01186737,0.00896268,0.006618624,0.004779078,
0.003374171,0.00232936,0.001572363,0.001037804,0.001722281])
InPaints_Use.transfers = [cp.StochasticTransfer(nr.triangular, [0.09, 0.11, 0.136], InPaints_WW, priority=1),
cp.StochasticTransfer(nr.triangular, [0.125, 0.25,0.375], InPaints_Air, priority=1),
cp.StochasticTransfer(nr.triangular, [0.512, 0.64,0.768], InPaints_NUsoil, priority=1)]
InPaints_WW.transfers = [cp.StochasticTransfer(nr.triangular, [0.15, 0.30, 0.45], InPaints_WW_N, priority=1),
cp.StochasticTransfer(tf.TriangTruncDet, [0.35, 0.7, 1.05, 1, 0, 1], InPaints_WW_M, priority=1)]
InPaints_Air.transfers = [cp.StochasticTransfer(nr.uniform, [1e-6, 1], InPaints_Air_N, priority=1),
cp.StochasticTransfer(nr.uniform, [1e-6, 1], InPaints_Air_M, priority=1)]
InPaints_NUsoil.transfers = [cp.StochasticTransfer(nr.triangular, [0.15, 0.30, 0.45], InPaints_NUsoil_N, priority=1),
cp.StochasticTransfer(tf.TriangTruncDet, [0.35, 0.70, 1.05, 1, 0, 1], InPaints_NUsoil_M, priority=1)]
InPaints_EoL.transfers = [cp.StochasticTransfer(tf.TriangTruncDet, [0.475, 0.95, 1.9, 1, 0, 1], CDW, priority=1),
cp.StochasticTransfer(nr.triangular, [0.025, 0.05, 0.075], MMSW, priority=1)]
# In[28]:
# Cement
Cement_Use.localRelease = cp.ListRelease([0.9,0.01666667,0.01666667,0.01666667,0.01666667,
0.01666667,0.01666667,0.01666667])
Cement_EoL.localRelease = cp.ListRelease([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.001722281,
0.001037804,0.001572363,0.00232936,0.003374171,0.004779078,
0.006618624,0.00896268,0.01186737,0.01536449,0.01945038,
0.02407602,0.0291399,0.03448561,0.03990567,0.04515209,
0.04995371,0.05403864,0.0571594,0.05911772,0.05978529,
0.05911772,0.0571594,0.05403864,0.04995371,0.04515209,
0.03990567,0.03448561,0.0291399,0.02407602,0.01945038,
0.01536449,0.01186737,0.00896268,0.006618624,0.004779078,
0.003374171,0.00232936,0.001572363,0.001037804,0.001722281])
Cement_Use.transfers = [cp.ConstTransfer(1, Cement_WW, priority=1)]
Cement_WW.transfers = [cp.StochasticTransfer(nr.uniform, [1e-6, 0.01], Cement_WW_N, priority=1),
cp.StochasticTransfer(nr.uniform, [0.99, 1], Cement_WW_M, priority=1)]
Cement_EoL.transfers = [cp.ConstTransfer(1, CDW, priority=1)]
# In[29]:
# Glass coatings
Glass_Use.localRelease = cp.ListRelease([0.9,0.01111111,0.01111111,0.01111111,0.01111111,
0.01111111,0.01111111,0.01111111,0.01111111,0.01111111])
Glass_EoL.localRelease = cp.ListRelease([0,0,0,0,0.003466974,
0.01439745,0.04894278,0.1172529,0.1980285,0.2358228,
0.1980285,0.1172529,0.04894278,0.01439745,0.003466974])
Glass_Use.transfers = [cp.ConstTransfer(1, Glass_WW, priority=1),
cp.StochasticTransfer(nr.triangular, [0.05,0.10,0.15], Glass_Air, priority=2),
cp.StochasticTransfer(nr.triangular, [0.05,0.10,0.15], Glass_NUsoil, priority=2)]
Glass_WW.transfers = [cp.StochasticTransfer(nr.triangular, [0.1, 0.3, 0.5], Glass_WW_N, priority=1),
cp.StochasticTransfer(nr.triangular, [0.5, 0.7, 0.9], Glass_WW_M, priority=1)]
Glass_Air.transfers = [cp.StochasticTransfer(nr.uniform, [1e-6, 1], Glass_Air_N, priority=1),
cp.StochasticTransfer(nr.uniform, [1e-6, 1], Glass_Air_M, priority=1)]
Glass_NUsoil.transfers = [cp.StochasticTransfer(nr.triangular, [0.1, 0.3, 0.5], Glass_NUsoil_N, priority=1),
cp.StochasticTransfer(nr.triangular, [0.5, 0.7, 0.9], Glass_NUsoil_M, priority=1)]
Glass_EoL.transfers = [cp.ConstTransfer(1, CDW, priority=1)]
# In[30]:
# Ceramic coatings
Ceramics_Use.localRelease = cp.ListRelease([0.9,0.01111111,0.01111111,0.01111111,0.01111111,
0.01111111,0.01111111,0.01111111,0.01111111,0.01111111])
Ceramics_EoL.localRelease = cp.ListRelease([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.001722281,
0.001037804,0.001572363,0.00232936,0.003374171,0.004779078,
0.006618624,0.00896268,0.01186737,0.01536449,0.01945038,
0.02407602,0.0291399,0.03448561,0.03990567,0.04515209,
0.04995371,0.05403864,0.0571594,0.05911772,0.05978529,
0.05911772,0.0571594,0.05403864,0.04995371,0.04515209,
0.03990567,0.03448561,0.0291399,0.02407602,0.01945038,
0.01536449,0.01186737,0.00896268,0.006618624,0.004779078,
0.003374171,0.00232936,0.001572363,0.001037804,0.001722281])
Ceramics_Use.transfers = [cp.ConstTransfer(1, Ceramics_WW, priority=1),
cp.StochasticTransfer(nr.triangular, [0.05,0.10,0.15], Ceramics_Air, priority=2),
cp.StochasticTransfer(nr.triangular, [0.05,0.10,0.15], Ceramics_NUsoil, priority=2)]
Ceramics_WW.transfers = [cp.StochasticTransfer(nr.triangular, [0.1, 0.3, 0.5], Ceramics_WW_N, priority=1),
cp.StochasticTransfer(nr.triangular, [0.5, 0.7, 0.9], Ceramics_WW_M, priority=1)]
Ceramics_Air.transfers = [cp.StochasticTransfer(nr.uniform, [1e-6, 1], Ceramics_Air_N, priority=1),
cp.StochasticTransfer(nr.uniform, [1e-6, 1], Ceramics_Air_M, priority=1)]
Ceramics_NUsoil.transfers = [cp.StochasticTransfer(nr.triangular, [0.1, 0.3, 0.5], Ceramics_NUsoil_N, priority=1),
cp.StochasticTransfer(nr.triangular, [0.5, 0.7, 0.9], Ceramics_NUsoil_M, priority=1)]
Ceramics_EoL.transfers = [cp.ConstTransfer(1, CDW, priority=1)]
# In[31]:
# Rubber, ceramic and plastic additives
#Plastics_Use.localRelease = cp.FixedRateRelease(0.125)
#Sport_Use.localRelease = cp.FixedRateRelease(0.1428571)
#Mean = 0.134, so:
RubPlas_Use.localRelease = cp.FixedRateRelease(0.134)
#Plastics_EoL.localRelease = cp.ListRelease([0, 0, 0.003466974, 0.01439745, 0.04894278,
# 0.1172529, 0.1980285, 0.2358228, 0.1980285, 0.1172529,
# 0.04894278,0.01439745,0.003466974])
#Sport_EoL.localRelease = cp.ListRelease([0, 0, 0, 0.006209665, 0.06059754,
# 0.2417303, 0.3829249, 0.2417303, 0.06059754, 0.006209665])
#Mean = [0, 0, 0.001733487, 0.0103035575, 0.05477016,
# 0.1794916, 0.2904767, 0.23877655, 0.12931302, 0.0617312825,
# 0.02447139, 0.007198725, 0.001733487],
#adds to 1, so:
RubPlas_EoL.localRelease = cp.ListRelease([0, 0, 0.001733487, 0.0103035575, 0.05477016,
0.1794916, 0.2904767, 0.23877655, 0.12931302, 0.0617312825,
0.02447139, 0.007198725, 0.001733487])
RubPlas_Use.transfers = [cp.StochasticTransfer(nr.triangular, [0.075, 0.15, 0.225], RubPlas_Air, priority=1),
cp.StochasticTransfer(tf.TriangTruncDet, [0.425, 0.85, 1.275, 1, 0, 1], RubPlas_WW, priority=1)]
RubPlas_Air.transfers = [cp.StochasticTransfer(nr.uniform, [1e-6, 1], RubPlas_Air_N, priority=1),
cp.StochasticTransfer(nr.uniform, [1e-6, 1], RubPlas_Air_M, priority=1)]
TransfSportWWN = nr.uniform(1e-6, 1, 10000)
TransfPlasWWN = nr.triangular(0.15, 0.30, 0.45, 10000)
TransfRubPlasWWN = (TransfSportWWN + TransfPlasWWN)/2
TransfSportWWM = nr.uniform(1e-6, 1, 10000)
TransfPlasWWM = tf.TriangTruncDet(0.35, 0.70, 1.05, 10000, 0, 1)
TransfRubPlasWWM = (TransfSportWWM + TransfPlasWWM)/2
RubPlas_WW.transfers = [cp.TimeDependendListTransfer([nr.choice(TransfRubPlasWWN),
nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN),
nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN),
nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN),
nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN),
nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN),
nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN), nr.choice(TransfRubPlasWWN)],
RubPlas_WW_N, RubPlas_WW, priority=2),
cp.ConstTransfer(1, RubPlas_WW_M, priority=1)]
RubPlas_EoL.transfers = [cp.ConstTransfer(1, MMSW, priority=1)]
# In[32]:
# Solar
# IRENA, 2016, End-of-life management - Solar Photovoltaic Panels Report: Average lifetime of a solar panel is 30 years.
# Since our model covers only 20 years and we assume no TiO2 was included in solar panels before 2000, we don't need to
# look at what happens to waste, since the nano will still be in stock in 2020/2030.
# So I assume everything goes to waste at 31 years, and everything is reprocessed, only to give the model transfers.
Solar_EoL.localRelease = cp.ListRelease([0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1])
Solar_EoL.transfers = [cp.ConstTransfer(1, SolarWaste, priority=1)]
# To change if the model goes further than 2030.
SolarWaste.transfers = [cp.ConstTransfer(1, Reprocess_Solar_P, priority=1)]
# In[33]:
# Electronics
Electronics_Use.localRelease = cp.FixedRateRelease(0.125)
Electronics_EoL.localRelease = cp.ListRelease([0.002457901,0.004936706,0.01218547,0.02617355,0.04892212,
0.07957497,0.112637,0.1387466,0.1487314,0.1387466,
0.112637,0.07957497,0.04892212,0.02617355,0.01218547,
0.004936706,0.002457901])
Electronics_Use.transfers = [cp.ConstTransfer(1, Electronics_WW, priority=1)]
Electronics_WW.transfers = [cp.StochasticTransfer(tf.TriangTruncDet, [0.475, 0.95, 1.425, 1, 0, 1], Electronics_WW_N, priority=1),
cp.StochasticTransfer(nr.triangular, [0.025, 0.05, 0.075], Electronics_WW_M, priority=1)]