-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAFTERLIFE.mo
4907 lines (4828 loc) · 265 KB
/
AFTERLIFE.mo
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
package AFTERLIFE
extends Modelica.Icons.Library;
package Units
extends Modelica.Icons.Library;
type VolumeFlowRate = Real(final quantity = "VolumeFlowRate", final unit = "m3/s");
type Concentration = Real(final quantity = "Concentration", final unit = "g/m3");
type Area = Real(final quantity = "Area", final unit = "m2");
type Resistance = Real(final quantity = "Resistance", final unit = "m-1");
type Viscosity = Real(final quantity = "Viscosity", final unit = "Pa/s");
type Volume = Real(final quantity = "Volume", final unit = "m3");
type Pressure = Real(final quantity = "Pressure", final unit = "Pa");
type Fraction = Real(final quantity = "Volumetric fraction", final unit = "%");
end Units;
package Icons
extends Modelica.Icons.Library;
partial class ADIcon "Icon for Anaerobic Digestion"
annotation(
Icon(coordinateSystem(preserveAspectRatio = false, extent = {{-100, -100}, {100, 100}}, grid = {2, 2}), graphics = {Rectangle(extent = {{-80, 20}, {80, -80}}, lineColor = {255, 255, 255}, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Line(points = {{-80, -6}, {-80, -80}, {80, -80}, {80, -6}}, thickness = 0.5), Line(points = {{-80, 6}, {-80, 20}}, thickness = 0.5), Line(points = {{80, 6}, {80, 20}}, thickness = 0.5), Rectangle(extent = {{-90, 6}, {-80, -6}}, lineColor = {223, 191, 159}, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Rectangle(extent = {{80, 6}, {90, -6}}, lineColor = {223, 191, 159}, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Line(points = {{-90, -6}, {-80, -6}}, thickness = 0.5), Line(points = {{-90, 6}, {-80, 6}}, thickness = 0.5), Line(points = {{80, 6}, {90, 6}}, thickness = 0.5), Line(points = {{80, -6}, {90, -6}}, thickness = 0.5), Ellipse(extent = {{-2, -34}, {2, -38}}, lineColor = {0, 0, 0}, lineThickness = 0.5, fillColor = {0, 0, 0}, fillPattern = FillPattern.Solid), Line(points = {{0, -34}, {0, 40}, {0, 44}}, thickness = 1), Text(extent = {{-98, 100}, {100, 60}}, textString = "%name"), Line(points = {{-2, -36}, {-10, -36}}, thickness = 0.5), Line(points = {{10, -36}, {2, -36}}, thickness = 0.5), Ellipse(extent = {{-62, -32}, {-10, -40}}, lineColor = {0, 0, 0}, lineThickness = 0.5, fillColor = {128, 128, 128}, fillPattern = FillPattern.Solid), Ellipse(extent = {{10, -32}, {62, -40}}, lineColor = {0, 0, 0}, lineThickness = 0.5, fillColor = {128, 128, 128}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-72, 0}, {-70, -2}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-54, -2}, {-52, -4}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-38, 0}, {-36, -2}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-68, -16}, {-66, -18}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-44, -20}, {-42, -22}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-14, -4}, {-12, -6}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-28, -16}, {-26, -18}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{10, 0}, {12, -2}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{28, -2}, {30, -4}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{44, 0}, {46, -2}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{14, -16}, {16, -18}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{38, -20}, {40, -22}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{68, -4}, {70, -6}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{61, -24}, {63, -26}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-68, -48}, {-66, -50}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-50, -50}, {-48, -52}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-34, -48}, {-32, -50}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-64, -64}, {-62, -66}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-40, -68}, {-38, -70}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-10, -52}, {-8, -54}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-24, -64}, {-22, -66}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{8, -48}, {10, -50}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{26, -50}, {28, -52}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{42, -48}, {44, -50}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{12, -64}, {14, -66}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{36, -68}, {38, -70}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{66, -52}, {68, -54}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{52, -64}, {54, -66}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-61, -6}, {-51, -16}}, lineColor = {0, 0, 0}, lineThickness = 0.5, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-58, -6}, {-55, 40}}, lineColor = {0, 0, 0}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Line(points = {{-90, 40}, {-55, 40}}), Rectangle(extent = {{54, -6}, {57, 40}}, lineColor = {0, 0, 0}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Ellipse(extent = {{51, -6}, {61, -16}}, lineColor = {0, 0, 0}, lineThickness = 0.5, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid)}),
Documentation(info = "Icon for a denitrification tank"),
Diagram(coordinateSystem(preserveAspectRatio = false, extent = {{-100, -100}, {100, 100}}, grid = {2, 2}), graphics = {Rectangle(extent = {{-80, 20}, {80, -80}}, lineColor = {255, 255, 255}, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Line(points = {{-80, -6}, {-80, -80}, {80, -80}, {80, -6}}, thickness = 0.5), Line(points = {{-80, 6}, {-80, 20}}, thickness = 0.5), Line(points = {{80, 6}, {80, 20}}, thickness = 0.5), Rectangle(extent = {{-90, 6}, {-80, -6}}, lineColor = {223, 191, 159}, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Rectangle(extent = {{80, 6}, {90, -6}}, lineColor = {223, 191, 159}, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Line(points = {{-90, -6}, {-80, -6}}, thickness = 0.5), Line(points = {{-90, 6}, {-80, 6}}, thickness = 0.5), Line(points = {{80, 6}, {90, 6}}, thickness = 0.5), Line(points = {{80, -6}, {90, -6}}, thickness = 0.5), Ellipse(extent = {{-2, -34}, {2, -38}}, lineColor = {0, 0, 0}, lineThickness = 0.5, fillColor = {0, 0, 0}, fillPattern = FillPattern.Solid), Line(points = {{0, -34}, {0, 40}, {0, 44}}, thickness = 1), Text(extent = {{-100, 100}, {100, 60}}, textString = "%name"), Line(points = {{-2, -36}, {-10, -36}}, thickness = 0.5), Line(points = {{10, -36}, {2, -36}}, thickness = 0.5), Ellipse(extent = {{-62, -32}, {-10, -40}}, lineColor = {0, 0, 0}, lineThickness = 0.5, fillColor = {128, 128, 128}, fillPattern = FillPattern.Solid), Ellipse(extent = {{10, -32}, {62, -40}}, lineColor = {0, 0, 0}, lineThickness = 0.5, fillColor = {128, 128, 128}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-72, 0}, {-70, -2}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-54, -2}, {-52, -4}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-38, 0}, {-36, -2}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-68, -16}, {-66, -18}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-44, -20}, {-42, -22}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-14, -4}, {-12, -6}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-28, -16}, {-26, -18}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{10, 0}, {12, -2}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{28, -2}, {30, -4}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{44, 0}, {46, -2}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{14, -16}, {16, -18}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{38, -20}, {40, -22}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{68, -4}, {70, -6}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{61, -24}, {63, -26}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-68, -48}, {-66, -50}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-50, -50}, {-48, -52}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-34, -48}, {-32, -50}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-64, -64}, {-62, -66}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-40, -68}, {-38, -70}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-10, -52}, {-8, -54}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-24, -64}, {-22, -66}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{8, -48}, {10, -50}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{26, -50}, {28, -52}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{42, -48}, {44, -50}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{12, -64}, {14, -66}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{36, -68}, {38, -70}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{66, -52}, {68, -54}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{52, -64}, {54, -66}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-61, -6}, {-51, -16}}, lineColor = {0, 0, 0}, lineThickness = 0.5, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-58, -6}, {-55, 40}}, lineColor = {0, 0, 0}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Line(points = {{-90, 40}, {-55, 40}}), Rectangle(extent = {{54, -6}, {57, 40}}, lineColor = {0, 0, 0}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Ellipse(extent = {{51, -6}, {61, -16}}, lineColor = {0, 0, 0}, lineThickness = 0.5, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid)}));
end ADIcon;
partial model sensor_O2 "Icon for an oxygen sensor"
annotation(
Icon(coordinateSystem(preserveAspectRatio = false, extent = {{-100, -100}, {100, 100}}, grid = {2, 2}), graphics = {Ellipse(extent = {{-50, 50}, {50, -50}}, lineColor = {0, 0, 0}, lineThickness = 0.5, fillColor = {223, 223, 159}, fillPattern = FillPattern.Solid), Text(extent = {{-98, 98}, {100, 60}}, textString = "%name"), Line(points = {{0, 50}, {0, 38}}, thickness = 0.5), Line(points = {{-50, 0}, {38, 0}}, thickness = 0.5), Line(points = {{50, 0}, {38, 0}}, thickness = 0.5), Line(points = {{-36, 34}, {-28, 26}}, thickness = 0.5), Line(points = {{34, 36}, {26, 28}}, thickness = 0.5), Line(points = {{0, 0}, {26, 28}}, thickness = 0.5), Polygon(points = {{30, 32}, {10, 24}, {24, 12}, {30, 32}}, lineColor = {0, 0, 0}, fillColor = {0, 0, 0}, fillPattern = FillPattern.Solid), Text(extent = {{-36, -10}, {36, -32}}, textString = "O2"), Line(points = {{0, -50}, {0, -90}}, thickness = 0.5), Line(points = {{50, 0}, {88, 0}})}),
Documentation(info = "Icon for an oxygen sensor "),
Diagram(coordinateSystem(preserveAspectRatio = false, extent = {{-100, -100}, {100, 100}}, grid = {2, 2}), graphics = {Ellipse(extent = {{-50, 50}, {50, -50}}, lineColor = {0, 0, 0}, lineThickness = 0.5, fillColor = {223, 223, 159}, fillPattern = FillPattern.Solid), Text(extent = {{-98, 100}, {100, 60}}, textString = "%name"), Line(points = {{0, 50}, {0, 38}}, thickness = 0.5), Line(points = {{-50, 0}, {38, 0}}, thickness = 0.5), Line(points = {{50, 0}, {38, 0}}, thickness = 0.5), Line(points = {{-36, 34}, {-28, 26}}, thickness = 0.5), Line(points = {{34, 36}, {26, 28}}, thickness = 0.5), Line(points = {{0, 0}, {26, 28}}, thickness = 0.5), Polygon(points = {{30, 32}, {10, 24}, {24, 12}, {30, 32}}, lineColor = {0, 0, 0}, fillColor = {0, 0, 0}, fillPattern = FillPattern.Solid), Text(extent = {{-36, -10}, {36, -32}}, textString = "O2"), Line(points = {{0, -50}, {0, -90}}, thickness = 0.5), Line(points = {{50, 0}, {88, 0}})}));
end sensor_O2;
partial model blower "Icon for an air blower"
annotation(
Documentation(info = "Icon for an air blower"),
Icon(coordinateSystem(preserveAspectRatio = false, extent = {{-100, -100}, {100, 100}}, grid = {1, 1}), graphics = {Text(extent = {{-101, -70}, {70, -99}}, textString = "%name"), Rectangle(extent = {{-90, 10}, {-10, -68}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.VerticalCylinder, fillColor = {192, 192, 192}), Ellipse(extent = {{-87, 7}, {-13, -65}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.Sphere, fillColor = {128, 128, 128}), Rectangle(extent = {{-80, -74}, {-60, -68}}, lineColor = {0, 0, 0}, fillColor = {0, 0, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-84, 5}, {-16, -63}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {127, 191, 255}, fillPattern = FillPattern.Solid), Polygon(points = {{-51, -24}, {-24, -9}, {-47, -25}, {-51, -24}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{-53, -35}, {-73, -53}, {-49, -35}, {-53, -35}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{-48, -29}, {-28, -51}, {-48, -33}, {-48, -29}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{-56, -32}, {-72, -6}, {-56, -27}, {-56, -32}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{-46, -26}, {-18, -33}, {-46, -29}, {-46, -26}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.Sphere, fillColor = {192, 192, 192}), Polygon(points = {{-46, -34}, {-50, -60}, {-49, -34}, {-46, -34}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{-54, -35}, {-82, -27}, {-54, -32}, {-54, -35}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{-56, -26}, {-48, 3}, {-52, -26}, {-56, -26}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-58, -23}, {-44, -36}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.Sphere, fillColor = {192, 192, 192}), Rectangle(extent = {{-86, -53}, {-12, -55}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-87, -19}, {-12, -21}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-87, -2}, {-12, -4}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{12, 32}, {48, 10}}, lineColor = {0, 0, 0}, pattern = LinePattern.None, fillPattern = FillPattern.VerticalCylinder, fillColor = {192, 192, 192}), Ellipse(extent = {{12, 52}, {48, 17}}, lineColor = {0, 0, 0}, pattern = LinePattern.None, fillPattern = FillPattern.Sphere, fillColor = {192, 192, 192}), Rectangle(extent = {{-66, 34}, {-34, 16}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {127, 191, 255}, fillPattern = FillPattern.Solid), Polygon(points = {{-49, 40}, {-52, 35}, {-50, 35}, {-50, 22}, {-48, 22}, {-48, 35}, {-46, 35}, {-49, 40}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {159, 223, 223}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-87, -38}, {-12, -40}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-68, 33}, {-32, 10}}, lineColor = {0, 0, 0}, pattern = LinePattern.None, fillPattern = FillPattern.VerticalCylinder, fillColor = {192, 192, 192}), Ellipse(extent = {{-68, 52}, {-32, 18}}, lineColor = {0, 0, 0}, pattern = LinePattern.None, fillPattern = FillPattern.Sphere, fillColor = {192, 192, 192}), Ellipse(extent = {{-65, 50}, {-34, 19}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {127, 191, 255}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-53, 52}, {31, 29}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-54, 49}, {29, 32}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {127, 191, 255}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-65, 35}, {-35, 16}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {127, 191, 255}, fillPattern = FillPattern.Solid), Rectangle(extent = {{15, 34}, {45, 16}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {127, 191, 255}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-27, 90}, {7, 52}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.VerticalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-24, 83}, {4, 48}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {127, 191, 255}, fillPattern = FillPattern.Solid), Ellipse(extent = {{16, 49}, {45, 19}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {127, 191, 255}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-10, 10}, {70, -68}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.VerticalCylinder, fillColor = {192, 192, 192}), Ellipse(extent = {{-7, 7}, {67, -65}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.Sphere, fillColor = {128, 128, 128}), Rectangle(extent = {{40, -74}, {60, -68}}, lineColor = {0, 0, 0}, fillColor = {0, 0, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-4, 5}, {64, -63}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {127, 191, 255}, fillPattern = FillPattern.Solid), Polygon(points = {{29, -24}, {56, -9}, {33, -25}, {29, -24}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{27, -35}, {7, -53}, {31, -35}, {27, -35}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{32, -29}, {52, -51}, {32, -33}, {32, -29}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{24, -32}, {8, -6}, {24, -27}, {24, -32}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{34, -26}, {62, -33}, {34, -29}, {34, -26}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.Sphere, fillColor = {192, 192, 192}), Polygon(points = {{34, -34}, {30, -60}, {31, -34}, {34, -34}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{26, -35}, {-2, -27}, {26, -32}, {26, -35}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{24, -26}, {32, 3}, {28, -26}, {24, -26}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Ellipse(extent = {{22, -23}, {36, -36}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.Sphere, fillColor = {192, 192, 192}), Rectangle(extent = {{-8, -53}, {66, -55}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-8, -19}, {66, -21}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-8, -2}, {66, -4}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-8, -38}, {66, -40}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{70, -13}, {80, -47}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{80, -27}, {87, -33}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {160, 160, 164}), Rectangle(extent = {{85, -21}, {88, -39}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {128, 128, 128}), Polygon(points = {{-49, 41}, {-55, 35}, {-51, 35}, {-51, 22}, {-48, 22}, {-48, 35}, {-44, 35}, {-49, 41}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {159, 223, 223}, fillPattern = FillPattern.Solid), Polygon(points = {{29, 41}, {23, 35}, {27, 35}, {27, 22}, {30, 22}, {30, 35}, {34, 35}, {29, 41}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {159, 223, 223}, fillPattern = FillPattern.Solid), Polygon(points = {{-11, 74}, {-16, 68}, {-12, 68}, {-12, 55}, {-9, 55}, {-9, 68}, {-5, 68}, {-11, 74}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {159, 223, 223}, fillPattern = FillPattern.Solid)}),
Diagram(coordinateSystem(preserveAspectRatio = false, extent = {{-100, -100}, {100, 100}}, grid = {1, 1}), graphics = {Text(extent = {{-98, -70}, {70, -100}}, textString = "%name"), Rectangle(extent = {{-90, 10}, {-10, -68}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.VerticalCylinder, fillColor = {192, 192, 192}), Ellipse(extent = {{-87, 7}, {-13, -65}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.Sphere, fillColor = {128, 128, 128}), Rectangle(extent = {{-80, -74}, {-60, -68}}, lineColor = {0, 0, 0}, fillColor = {0, 0, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-84, 5}, {-16, -63}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {127, 191, 255}, fillPattern = FillPattern.Solid), Polygon(points = {{-51, -24}, {-24, -9}, {-47, -25}, {-51, -24}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{-53, -35}, {-73, -53}, {-49, -35}, {-53, -35}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{-48, -29}, {-28, -51}, {-48, -33}, {-48, -29}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{-56, -32}, {-72, -6}, {-56, -27}, {-56, -32}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{-46, -26}, {-18, -33}, {-46, -29}, {-46, -26}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.Sphere, fillColor = {192, 192, 192}), Polygon(points = {{-46, -34}, {-50, -60}, {-49, -34}, {-46, -34}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{-54, -35}, {-82, -27}, {-54, -32}, {-54, -35}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{-56, -26}, {-48, 3}, {-52, -26}, {-56, -26}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-58, -23}, {-44, -36}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.Sphere, fillColor = {192, 192, 192}), Rectangle(extent = {{-86, -53}, {-12, -55}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-87, -19}, {-12, -21}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-87, -2}, {-12, -4}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{12, 32}, {48, 10}}, lineColor = {0, 0, 0}, pattern = LinePattern.None, fillPattern = FillPattern.VerticalCylinder, fillColor = {192, 192, 192}), Ellipse(extent = {{12, 52}, {48, 17}}, lineColor = {0, 0, 0}, pattern = LinePattern.None, fillPattern = FillPattern.Sphere, fillColor = {192, 192, 192}), Rectangle(extent = {{-66, 34}, {-34, 16}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {127, 191, 255}, fillPattern = FillPattern.Solid), Polygon(points = {{-49, 40}, {-52, 35}, {-50, 35}, {-50, 22}, {-48, 22}, {-48, 35}, {-46, 35}, {-49, 40}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {159, 223, 223}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-87, -38}, {-12, -40}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-68, 33}, {-32, 10}}, lineColor = {0, 0, 0}, pattern = LinePattern.None, fillPattern = FillPattern.VerticalCylinder, fillColor = {192, 192, 192}), Ellipse(extent = {{-68, 52}, {-32, 18}}, lineColor = {0, 0, 0}, pattern = LinePattern.None, fillPattern = FillPattern.Sphere, fillColor = {192, 192, 192}), Ellipse(extent = {{-65, 50}, {-34, 19}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {127, 191, 255}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-53, 52}, {31, 29}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-54, 49}, {29, 32}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {127, 191, 255}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-65, 35}, {-35, 16}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {127, 191, 255}, fillPattern = FillPattern.Solid), Rectangle(extent = {{15, 34}, {45, 16}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {127, 191, 255}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-27, 90}, {7, 52}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.VerticalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-24, 83}, {4, 48}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {127, 191, 255}, fillPattern = FillPattern.Solid), Ellipse(extent = {{16, 49}, {45, 19}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {127, 191, 255}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-10, 10}, {70, -68}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.VerticalCylinder, fillColor = {192, 192, 192}), Ellipse(extent = {{-7, 7}, {67, -65}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.Sphere, fillColor = {128, 128, 128}), Rectangle(extent = {{40, -74}, {60, -68}}, lineColor = {0, 0, 0}, fillColor = {0, 0, 0}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-4, 5}, {64, -63}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {127, 191, 255}, fillPattern = FillPattern.Solid), Polygon(points = {{29, -24}, {56, -9}, {33, -25}, {29, -24}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{27, -35}, {7, -53}, {31, -35}, {27, -35}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{32, -29}, {52, -51}, {32, -33}, {32, -29}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{24, -32}, {8, -6}, {24, -27}, {24, -32}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{34, -26}, {62, -33}, {34, -29}, {34, -26}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.Sphere, fillColor = {192, 192, 192}), Polygon(points = {{34, -34}, {30, -60}, {31, -34}, {34, -34}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{26, -35}, {-2, -27}, {26, -32}, {26, -35}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Polygon(points = {{24, -26}, {32, 3}, {28, -26}, {24, -26}}, lineColor = {128, 128, 128}, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Ellipse(extent = {{22, -23}, {36, -36}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.Sphere, fillColor = {192, 192, 192}), Rectangle(extent = {{-8, -53}, {66, -55}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-8, -19}, {66, -21}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-8, -2}, {66, -4}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-8, -38}, {66, -40}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{70, -13}, {80, -47}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{80, -27}, {87, -33}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {160, 160, 164}), Rectangle(extent = {{85, -21}, {88, -39}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {128, 128, 128}), Polygon(points = {{-49, 41}, {-55, 35}, {-51, 35}, {-51, 22}, {-48, 22}, {-48, 35}, {-44, 35}, {-49, 41}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {159, 223, 223}, fillPattern = FillPattern.Solid), Polygon(points = {{29, 41}, {23, 35}, {27, 35}, {27, 22}, {30, 22}, {30, 35}, {34, 35}, {29, 41}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {159, 223, 223}, fillPattern = FillPattern.Solid), Polygon(points = {{-11, 74}, {-16, 68}, {-12, 68}, {-12, 55}, {-9, 55}, {-9, 68}, {-5, 68}, {-11, 74}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {159, 223, 223}, fillPattern = FillPattern.Solid)}));
end blower;
partial model Separator "Icon for a separator based on simple model"
annotation(
Icon(coordinateSystem(preserveAspectRatio = false, extent = {{-100, -100}, {100, 100}}, grid = {2, 2}), graphics = {Polygon(points = {{-20, -70}, {20, -70}, {4, -84}, {-4, -84}, {-20, -70}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-4, -84}, {4, -92}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Polygon(points = {{-80, -48}, {-36, -64}, {38, -64}, {80, -48}, {-80, -48}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Text(extent = {{-98, 100}, {100, 60}}, textString = "%name"),Rectangle(extent = {{-80, 62}, {80, -40}}, lineColor = {223, 191, 159}, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Polygon(points = {{-36, -64}, {38, -64}, {20, -70}, {-20, -70}, {-36, -64}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Line(points = {{4, -92}, {4, -84}, {20, -70}, {80, -48}}, thickness = 0.5), Rectangle(extent = {{-80, -40}, {80, -48}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Rectangle(extent = {{80, 62}, {92, 54}}, lineColor = {0, 127, 255}, fillColor = {0, 127, 255}, fillPattern = FillPattern.Solid), Line(points = {{80, 54}, {92, 54}}, thickness = 0.5), Line(points = {{-4, -92}, {-4, -84}, {-20, -70}, {-80, -48}, {-80, 10}}, thickness = 0.5), Line(points = {{-80, 62}, {-80, 16}}, thickness = 0.5), Line(points = {{-80, 10}, {-90, 10}}, thickness = 0.5), Line(points = {{-80, 16}, {-90, 16}}, thickness = 0.5), Rectangle(extent = {{-20, -92}, {20, -98}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Line(points = {{-20, -92}, {-4, -92}}, thickness = 0.5), Line(points = {{-20, -98}, {20, -98}}, thickness = 0.5), Line(points = {{20, -92}, {4, -92}}, thickness = 0.5), Line(points = {{80, -48}, {80, 54}}, thickness = 0.5), Polygon(points = {{16, 44}, {33, 44}, {31, 52}, {48, 42}, {31, 31}, {33, 39}, {16, 39}, {16, 44}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {0, 127, 255}, fillPattern = FillPattern.Solid), Polygon(points = {{-46, 32}, {-29, 32}, {-31, 40}, {-14, 30}, {-31, 19}, {-29, 27}, {-46, 27}, {-46, 32}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {0, 127, 255}, fillPattern = FillPattern.Solid), Polygon(points = {{18, -26}, {22, -26}, {22, -42}, {28, -40}, {20, -54}, {12, -40}, {18, -42}, {18, -26}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-32, -10}, {-28, -10}, {-28, -26}, {-22, -24}, {-30, -38}, {-38, -24}, {-32, -26}, {-32, -10}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-90, 16}, {-80, 10}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid)}),
Documentation(info = "Icon of separator"));
end Separator;
partial model GasSink "Icon for a gas sink"
annotation(
Icon(coordinateSystem(preserveAspectRatio = false, grid = {1, 1}, initialScale = 0.1), graphics = {Rectangle(fillColor = {192, 192, 192}, fillPattern = FillPattern.HorizontalCylinder, extent = {{-90, 6}, {-36, -30}}), Polygon(fillPattern = FillPattern.Solid, points = {{-72, 26}, {-72, 10}, {-60, 18}, {-72, 26}}), Polygon(fillPattern = FillPattern.Solid, points = {{-60, 18}, {-50, 26}, {-50, 10}, {-60, 18}}), Line(points = {{-60, 18}, {-60, 6}}, thickness = 1), Text(extent = {{-100, 100}, {99, 60}}, textString = "%name"), Ellipse(fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid, lineThickness = 0.5, extent = {{-36, 60}, {80, -40}}, endAngle = 360), Rectangle(lineColor = {0, 0, 255}, fillColor = {192, 192, 192}, pattern = LinePattern.None, fillPattern = FillPattern.Solid, extent = {{-36, 6}, {81, -81}}), Line(points = {{-36, -30}, {-36, -80}, {80, -80}, {80, 6}}, thickness = 0.5), Line(points = {{62, -36}, {80, -36}}), Rectangle(lineColor = {160, 160, 164}, fillColor = {160, 160, 164}, fillPattern = FillPattern.Solid, extent = {{-100, -80}, {100, -100}}), Ellipse(origin = {-16, 5}, fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent = {{-1, 1}, {1, -1}}, endAngle = 360), Ellipse(origin = {44, 9}, fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent = {{-1, 1}, {1, -1}}, endAngle = 360), Ellipse(origin = {-7, 30}, fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent = {{-1, 1}, {1, -1}}, endAngle = 360), Ellipse(origin = {46, 34}, fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent = {{-1, 1}, {1, -1}}, endAngle = 360), Ellipse(origin = {0, -27}, fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent = {{-1, 1}, {1, -1}}, endAngle = 360), Ellipse(origin = {23, -18}, fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent = {{-1, 1}, {1, -1}}, endAngle = 360), Ellipse(origin = {14, 35}, fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent = {{-1, 1}, {1, -1}}, endAngle = 360), Ellipse(origin = {11, 0}, fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent = {{-1, 1}, {1, -1}}, endAngle = 360), Ellipse(origin = {24, 45}, fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent = {{-1, 1}, {1, -1}}, endAngle = 360), Ellipse(origin = {51, -10}, fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent = {{-1, 1}, {1, -1}}, endAngle = 360), Ellipse(origin = {-24, -26}, fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent = {{-1, 1}, {1, -1}}, endAngle = 360), Ellipse(origin = {-8, -48}, fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent = {{-1, 1}, {1, -1}}, endAngle = 360), Ellipse(origin = {30, -63}, fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent = {{-1, 1}, {1, -1}}, endAngle = 360), Ellipse(origin = {47, -29}, fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent = {{-1, 1}, {1, -1}}, endAngle = 360)}),
Documentation(info = "Icon for a gas sink"),
Diagram(coordinateSystem(preserveAspectRatio = false, extent = {{-100, -100}, {100, 100}}, grid = {1, 1}), graphics = {Rectangle(extent = {{-90, 6}, {-36, -30}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Polygon(points = {{-72, 26}, {-72, 10}, {-60, 18}, {-72, 26}}, lineColor = {0, 0, 0}, fillColor = {0, 0, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-60, 18}, {-50, 26}, {-50, 10}, {-60, 18}}, lineColor = {0, 0, 0}, fillColor = {0, 0, 0}, fillPattern = FillPattern.Solid), Line(points = {{-60, 18}, {-60, 6}}, thickness = 1), Text(extent = {{-99, 100}, {100, 59}}, textString = "%name"), Ellipse(extent = {{-36, 60}, {80, -40}}, lineColor = {0, 0, 0}, lineThickness = 0.5, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-36, 6}, {81, -81}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Line(points = {{-36, -30}, {-36, -80}, {80, -80}, {80, 6}}, thickness = 0.5)}));
end GasSink;
partial model SludgeSink
annotation(
Icon(coordinateSystem(preserveAspectRatio = false, extent = {{-100, -100}, {100, 100}}, grid = {1, 1}), graphics = {Rectangle(extent = {{-90, 6}, {-36, -30}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Polygon(points = {{-72, 26}, {-72, 10}, {-60, 18}, {-72, 26}}, lineColor = {0, 0, 0}, fillColor = {0, 0, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-60, 18}, {-50, 26}, {-50, 10}, {-60, 18}}, lineColor = {0, 0, 0}, fillColor = {0, 0, 0}, fillPattern = FillPattern.Solid), Line(points = {{-60, 18}, {-60, 6}}, thickness = 1), Text(extent = {{-100, 100}, {99, 60}}, textString = "%name"), Ellipse(extent = {{-36, 60}, {80, -40}}, lineColor = {0, 0, 0}, lineThickness = 0.5, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-36, 6}, {81, -81}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-36, -44}, {80, -80}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Line(points = {{-36, -30}, {-36, -80}, {80, -80}, {80, 6}}, thickness = 0.5), Line(points = {{-36, -14}, {-32, -16}, {-28, -18}, {-26, -22}, {-24, -26}, {-22, -30}, {-20, -34}, {-18, -40}, {-18, -44}}, color = {191, 95, 0}, thickness = 1), Line(points = {{-36, -10}, {-28, -12}, {-24, -16}, {-20, -20}, {-16, -26}, {-12, -34}, {-12, -44}}, color = {191, 95, 0}, thickness = 1), Polygon(points = {{42, -36}, {52, -50}, {62, -36}, {42, -36}}, lineColor = {0, 0, 0}, fillColor = {160, 160, 164}, fillPattern = FillPattern.Solid), Line(points = {{62, -36}, {80, -36}}), Rectangle(extent = {{-100, -80}, {100, -100}}, lineColor = {160, 160, 164}, fillColor = {160, 160, 164}, fillPattern = FillPattern.Solid)}),
Documentation(info = "Icon for a wastewater sink"),
Diagram(coordinateSystem(preserveAspectRatio = false, extent = {{-100, -100}, {100, 100}}, grid = {1, 1}), graphics = {Rectangle(extent = {{-90, 6}, {-36, -30}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Polygon(points = {{-72, 26}, {-72, 10}, {-60, 18}, {-72, 26}}, lineColor = {0, 0, 0}, fillColor = {0, 0, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-60, 18}, {-50, 26}, {-50, 10}, {-60, 18}}, lineColor = {0, 0, 0}, fillColor = {0, 0, 0}, fillPattern = FillPattern.Solid), Line(points = {{-60, 18}, {-60, 6}}, thickness = 1), Text(extent = {{-99, 100}, {100, 59}}, textString = "%name"), Ellipse(extent = {{-36, 60}, {80, -40}}, lineColor = {0, 0, 0}, lineThickness = 0.5, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-36, 6}, {81, -81}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-36, -44}, {80, -80}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Line(points = {{-36, -30}, {-36, -80}, {80, -80}, {80, 6}}, thickness = 0.5), Line(points = {{-36, -14}, {-32, -16}, {-28, -18}, {-26, -22}, {-24, -26}, {-22, -30}, {-20, -34}, {-18, -40}, {-18, -44}}, color = {191, 95, 0}, thickness = 1), Line(points = {{-36, -10}, {-28, -12}, {-24, -16}, {-20, -20}, {-16, -26}, {-12, -34}, {-12, -44}}, color = {191, 95, 0}, thickness = 1), Polygon(points = {{42, -36}, {52, -50}, {62, -36}, {42, -36}}, lineColor = {0, 0, 0}, fillColor = {160, 160, 164}, fillPattern = FillPattern.Solid), Line(points = {{62, -36}, {80, -36}}), Rectangle(extent = {{-100, -80}, {100, -100}}, lineColor = {160, 160, 164}, fillColor = {160, 160, 164}, fillPattern = FillPattern.Solid)}));
end SludgeSink;
partial model mixer2 "Icon for a mixer of 2 flows"
annotation(
Documentation(info = "Icon for a mixer of 2 flows"),
Icon(coordinateSystem(preserveAspectRatio = false, extent = {{-100, -100}, {100, 100}}, grid = {1, 1}), graphics = {Text(extent = {{-99, 98}, {99, 50}}, textString = "%name"), Rectangle(extent = {{-46, 47}, {45, -37}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.VerticalCylinder, fillColor = {128, 128, 128}), Rectangle(extent = {{-2, 40}, {-90, 10}}, lineColor = {0, 0, 0}, pattern = LinePattern.None, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Text(extent = {{-98, 100}, {100, 60}}, textString = "%name"),Rectangle(extent = {{-3, 0}, {-90, -30}}, lineColor = {0, 0, 0}, pattern = LinePattern.None, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Ellipse(extent = {{-40, 40}, {40, -30}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.Sphere, fillColor = {192, 192, 192}), Rectangle(extent = {{10, 21}, {90, -12}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Ellipse(extent = {{-38, 38}, {38, -28}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-90, 37}, {-4, 13}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-90, -3}, {-5, -27}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Rectangle(extent = {{31, 18}, {90, -9}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Polygon(points = {{-74, -19}, {-55, -19}, {-56, -17}, {-50, -20}, {-56, -23}, {-55, -21}, {-74, -21}, {-74, -19}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-18, 24}, {1, 24}, {0, 26}, {6, 23}, {0, 20}, {1, 22}, {-18, 22}, {-18, 24}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-28, -12}, {-9, -12}, {-10, -10}, {-4, -13}, {-10, -16}, {-9, -14}, {-28, -14}, {-28, -12}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{22, 10}, {41, 10}, {40, 12}, {46, 9}, {40, 6}, {41, 8}, {22, 8}, {22, 10}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{57, -2}, {76, -2}, {75, 0}, {81, -3}, {75, -6}, {76, -4}, {57, -4}, {57, -2}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-74, 30}, {-55, 30}, {-56, 32}, {-50, 29}, {-56, 26}, {-55, 28}, {-74, 28}, {-74, 30}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid)}),
Diagram(coordinateSystem(preserveAspectRatio = false, extent = {{-100, -100}, {100, 100}}, grid = {1, 1}), graphics = {Text(extent = {{-98, 99}, {99, 51}}, textString = "%name"), Rectangle(extent = {{-46, 47}, {45, -37}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.VerticalCylinder, fillColor = {128, 128, 128}), Rectangle(extent = {{-2, 40}, {-90, 10}}, lineColor = {0, 0, 0}, pattern = LinePattern.None, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-3, 0}, {-90, -30}}, lineColor = {0, 0, 0}, pattern = LinePattern.None, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Ellipse(extent = {{-40, 40}, {40, -30}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.Sphere, fillColor = {192, 192, 192}), Rectangle(extent = {{10, 21}, {90, -12}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Ellipse(extent = {{-38, 38}, {38, -28}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-90, 37}, {-4, 13}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-90, -3}, {-5, -27}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Rectangle(extent = {{31, 18}, {90, -9}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Polygon(points = {{-74, -19}, {-55, -19}, {-56, -17}, {-50, -20}, {-56, -23}, {-55, -21}, {-74, -21}, {-74, -19}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-18, 24}, {1, 24}, {0, 26}, {6, 23}, {0, 20}, {1, 22}, {-18, 22}, {-18, 24}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-28, -12}, {-9, -12}, {-10, -10}, {-4, -13}, {-10, -16}, {-9, -14}, {-28, -14}, {-28, -12}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{22, 10}, {41, 10}, {40, 12}, {46, 9}, {40, 6}, {41, 8}, {22, 8}, {22, 10}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{57, -2}, {76, -2}, {75, 0}, {81, -3}, {75, -6}, {76, -4}, {57, -4}, {57, -2}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-74, 30}, {-55, 30}, {-56, 32}, {-50, 29}, {-56, 26}, {-55, 28}, {-74, 28}, {-74, 30}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid)}));
end mixer2;
partial model PHAStorage
annotation(
Icon(coordinateSystem(preserveAspectRatio = false, grid = {1, 1}, initialScale = 0.1), graphics = {Rectangle(fillColor = {192, 192, 192}, fillPattern = FillPattern.HorizontalCylinder, extent = {{-90, 6}, {-36, -30}}), Text(extent = {{-98, 100}, {100, 60}}, textString = "%name"),Polygon(fillPattern = FillPattern.Solid, points = {{-72, 26}, {-72, 10}, {-60, 18}, {-72, 26}}), Polygon(fillPattern = FillPattern.Solid, points = {{-60, 18}, {-50, 26}, {-50, 10}, {-60, 18}}), Line(points = {{-60, 18}, {-60, 6}}, thickness = 1), Text(extent = {{-100, 100}, {99, 60}}, textString = "%name"), Ellipse(fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid, lineThickness = 0.5, extent = {{-36, 60}, {80, -40}}, endAngle = 360), Rectangle(lineColor = {0, 0, 255}, fillColor = {192, 192, 192}, pattern = LinePattern.None, fillPattern = FillPattern.Solid, extent = {{-36, 6}, {81, -81}}), Rectangle(lineColor = {170, 0, 255}, fillColor = {170, 0, 255}, fillPattern = FillPattern.Solid, extent = {{-36, -44}, {80, -80}}), Line(points = {{-36, -30}, {-36, -80}, {80, -80}, {80, 6}}, thickness = 0.5), Line(points = {{-36, -14}, {-32, -16}, {-28, -18}, {-26, -22}, {-24, -26}, {-22, -30}, {-20, -34}, {-18, -40}, {-18, -44}}, color = {170, 0, 255}, thickness = 1), Line(points = {{-36, -10}, {-28, -12}, {-24, -16}, {-20, -20}, {-16, -26}, {-12, -34}, {-12, -44}}, color = {170, 0, 255}, thickness = 1), Polygon(fillColor = {160, 160, 164}, fillPattern = FillPattern.Solid, points = {{42, -36}, {52, -50}, {62, -36}, {42, -36}}), Line(points = {{62, -36}, {80, -36}}), Rectangle(lineColor = {160, 160, 164}, fillColor = {160, 160, 164}, fillPattern = FillPattern.Solid, extent = {{-100, -80}, {100, -100}})}),
Documentation(info = "Icon for a wastewater sink"),
Diagram(coordinateSystem(preserveAspectRatio = false, extent = {{-100, -100}, {100, 100}}, grid = {1, 1}), graphics = {Rectangle(extent = {{-90, 6}, {-36, -30}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Polygon(points = {{-72, 26}, {-72, 10}, {-60, 18}, {-72, 26}}, lineColor = {0, 0, 0}, fillColor = {0, 0, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-60, 18}, {-50, 26}, {-50, 10}, {-60, 18}}, lineColor = {0, 0, 0}, fillColor = {0, 0, 0}, fillPattern = FillPattern.Solid), Line(points = {{-60, 18}, {-60, 6}}, thickness = 1), Text(extent = {{-99, 100}, {100, 59}}, textString = "%name"), Ellipse(extent = {{-36, 60}, {80, -40}}, lineColor = {0, 0, 0}, lineThickness = 0.5, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-36, 6}, {81, -81}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-36, -44}, {80, -80}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Line(points = {{-36, -30}, {-36, -80}, {80, -80}, {80, 6}}, thickness = 0.5)}));
end PHAStorage;
partial model mixer3 "Icon for a mixer of 3 flows"
annotation(
Documentation(info = "Icon for a mixer of 3 flows"),
Icon(coordinateSystem(preserveAspectRatio = false, extent = {{-100, -100}, {100, 100}}, grid = {1, 1}), graphics = {Text(extent = {{-100, 99}, {99, 59}}, textString = "%name"), Rectangle(extent = {{-60, 56}, {60, -65}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.VerticalCylinder, fillColor = {160, 160, 164}), Rectangle(extent = {{30, 20}, {90, -30}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-90, 50}, {0, 20}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Text(extent = {{-98, 100}, {100, 60}}, textString = "%name"),Rectangle(extent = {{-90, -30}, {0, -60}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-90, 10}, {0, -20}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Ellipse(extent = {{-50, 50}, {50, -41}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.Sphere, fillColor = {192, 192, 192}), Ellipse(extent = {{-50, 31}, {50, -60}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.Sphere, fillColor = {192, 192, 192}), Ellipse(extent = {{-47, 48}, {47, -38}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-47, 28}, {47, -58}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-90, 47}, {2, 23}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-90, 7}, {2, -17}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-90, -33}, {0, -57}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Rectangle(extent = {{11, 16}, {90, -26}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Polygon(points = {{-20, -7}, {-1, -7}, {-2, -5}, {4, -8}, {-2, -11}, {-1, -9}, {-20, -9}, {-20, -7}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{10, 14}, {29, 14}, {28, 16}, {34, 13}, {28, 10}, {29, 12}, {10, 12}, {10, 14}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{11, -28}, {30, -28}, {29, -26}, {35, -29}, {29, -32}, {30, -30}, {11, -30}, {11, -28}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-75, -1}, {-56, -1}, {-57, 1}, {-51, -2}, {-57, -5}, {-56, -3}, {-75, -3}, {-75, -1}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-74, 41}, {-55, 41}, {-56, 43}, {-50, 40}, {-56, 37}, {-55, 39}, {-74, 39}, {-74, 41}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-71, -49}, {-52, -49}, {-53, -47}, {-47, -50}, {-53, -53}, {-52, -51}, {-71, -51}, {-71, -49}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-30, 33}, {-11, 33}, {-12, 35}, {-6, 32}, {-12, 29}, {-11, 31}, {-30, 31}, {-30, 33}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-28, -42}, {-9, -42}, {-10, -40}, {-4, -43}, {-10, -46}, {-9, -44}, {-28, -44}, {-28, -42}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{44, -7}, {63, -7}, {62, -5}, {68, -8}, {62, -11}, {63, -9}, {44, -9}, {44, -7}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid)}),
Diagram(coordinateSystem(preserveAspectRatio = false, extent = {{-100, -100}, {100, 100}}, grid = {1, 1}), graphics = {Text(extent = {{-99, 98}, {99, 60}}, textString = "%name"), Rectangle(extent = {{-60, 56}, {60, -65}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.VerticalCylinder, fillColor = {160, 160, 164}), Rectangle(extent = {{30, 20}, {90, -30}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-90, 50}, {0, 20}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-90, -30}, {0, -60}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-90, 10}, {0, -20}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Ellipse(extent = {{-50, 50}, {50, -41}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.Sphere, fillColor = {192, 192, 192}), Ellipse(extent = {{-50, 31}, {50, -60}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.Sphere, fillColor = {192, 192, 192}), Ellipse(extent = {{-47, 48}, {47, -38}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-47, 28}, {47, -58}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-90, 47}, {2, 23}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-90, 7}, {2, -17}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-90, -33}, {0, -57}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Rectangle(extent = {{11, 16}, {90, -26}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Polygon(points = {{-20, -7}, {-1, -7}, {-2, -5}, {4, -8}, {-2, -11}, {-1, -9}, {-20, -9}, {-20, -7}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{10, 14}, {29, 14}, {28, 16}, {34, 13}, {28, 10}, {29, 12}, {10, 12}, {10, 14}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{11, -28}, {30, -28}, {29, -26}, {35, -29}, {29, -32}, {30, -30}, {11, -30}, {11, -28}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-75, -1}, {-56, -1}, {-57, 1}, {-51, -2}, {-57, -5}, {-56, -3}, {-75, -3}, {-75, -1}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-74, 41}, {-55, 41}, {-56, 43}, {-50, 40}, {-56, 37}, {-55, 39}, {-74, 39}, {-74, 41}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-71, -49}, {-52, -49}, {-53, -47}, {-47, -50}, {-53, -53}, {-52, -51}, {-71, -51}, {-71, -49}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-30, 33}, {-11, 33}, {-12, 35}, {-6, 32}, {-12, 29}, {-11, 31}, {-30, 31}, {-30, 33}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-28, -42}, {-9, -42}, {-10, -40}, {-4, -43}, {-10, -46}, {-9, -44}, {-28, -44}, {-28, -42}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{44, -7}, {63, -7}, {62, -5}, {68, -8}, {62, -11}, {63, -9}, {44, -9}, {44, -7}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid)}));
end mixer3;
class Source
annotation(
Diagram(graphics = {Ellipse(origin = {-1, 12}, extent = {{-61, 70}, {61, -70}}, endAngle = 360)}),
Icon(graphics = {Ellipse(origin = {0, -1}, fillColor = {182, 121, 0}, fillPattern = FillPattern.HorizontalCylinder, lineThickness = 2, extent = {{-60, 59}, {60, -59}}, endAngle = 360), Text(extent = {{-98, 100}, {100, 60}}, textString = "%name"),Polygon(origin = {40, -50}, fillColor = {179, 119, 0}, fillPattern = FillPattern.VerticalCylinder, lineThickness = 2, points = {{4, 10}, {40, 10}, {40, -10}, {-40, -10}, {4, 10}})}));
end Source;
class Microfilter
annotation(
Diagram(graphics = {Rectangle(origin = {-3, 12}, extent = {{-55, 62}, {55, -62}})}),
Icon(graphics = {Polygon(origin = {0, 10}, fillColor = {0, 154, 231}, fillPattern = FillPattern.Solid, lineThickness = 1.5, points = {{-80, 50}, {80, 50}, {80, -50}, {-80, -50}, {-80, 50}}), Text(extent = {{-98, 100}, {100, 60}}, textString = "%name"),Polygon(origin = {-1, 11}, fillColor = {216, 216, 0}, fillPattern = FillPattern.CrossDiag, lineThickness = 1, points = {{-79, 15}, {81, 15}, {81, -15}, {-79, -15}, {-79, 15}}), Rectangle(origin = {0, 43}, fillColor = {180, 120, 0}, fillPattern = FillPattern.HorizontalCylinder, lineThickness = 2, extent = {{-80, 17}, {80, -17}})}));
end Microfilter;
class Ultrafilter
annotation(
Diagram(graphics = {Rectangle(origin = {-6, 10}, extent = {{-74, 70}, {74, -70}})}),
Icon(graphics = {Rectangle(origin = {0, 40}, fillColor = {0, 170, 255}, fillPattern = FillPattern.Solid, lineThickness = 1, extent = {{-80, 20}, {80, -20}}), Rectangle(origin = {0, 10}, fillColor = {197, 197, 0}, fillPattern = FillPattern.CrossDiag, lineThickness = 1, extent = {{-80, 10}, {80, -10}}), Text(extent = {{-98, 100}, {100, 60}}, textString = "%name"),Rectangle(origin = {0, -20}, fillColor = {0, 170, 255}, fillPattern = FillPattern.Solid, lineThickness = 1, extent = {{-80, 20}, {80, -20}})}));
end Ultrafilter;
class Nanofilter
annotation(
Diagram(graphics = {Rectangle(extent = {{-40, 40}, {40, -40}})}),
Icon(graphics = {Rectangle(origin = {0, 40}, fillColor = {0, 170, 255}, fillPattern = FillPattern.Solid, lineThickness = 1, extent = {{-80, 20}, {80, -20}}), Text(extent = {{-98, 100}, {100, 60}}, textString = "%name"),Rectangle(origin = {0, 10}, fillColor = {202, 202, 100}, fillPattern = FillPattern.CrossDiag, lineThickness = 1, extent = {{-80, 10}, {80, -10}}), Rectangle(origin = {0, -20}, fillColor = {0, 220, 220}, fillPattern = FillPattern.Solid, lineThickness = 1, extent = {{-80, 20}, {80, -20}})}));
end Nanofilter;
class ReverseOsmosis
annotation(
Diagram(graphics = {Rectangle(extent = {{-60, 60}, {60, -60}})}),
Icon(graphics = {Rectangle(origin = {-10, 40}, fillColor = {0, 255, 255}, fillPattern = FillPattern.Solid, lineThickness = 1.5, extent = {{-70, 20}, {70, -20}}), Text(extent = {{-98, 100}, {100, 60}}, textString = "%name"),Rectangle(origin = {-10, 10}, fillColor = {179, 179, 0}, fillPattern = FillPattern.CrossDiag, lineThickness = 1.5, extent = {{-70, 10}, {70, -10}}), Rectangle(origin = {-10, -20}, fillColor = {170, 255, 255}, fillPattern = FillPattern.Solid, lineThickness = 1.5, extent = {{-70, 20}, {70, -20}})}));
end ReverseOsmosis;
partial model mixer4 "Icon for a mixer of 3 flows"
annotation(
Documentation(info = "Icon for a mixer of 3 flows"),
Icon(coordinateSystem(preserveAspectRatio = false, extent = {{-100, -100}, {100, 100}}, grid = {1, 1}), graphics = {Text(extent = {{-100, 99}, {99, 59}}, textString = "%name"), Rectangle(extent = {{-60, 56}, {60, -65}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.VerticalCylinder, fillColor = {160, 160, 164}), Rectangle(extent = {{30, 20}, {90, -30}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-90, 50}, {0, 20}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-90, -30}, {0, -60}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Rectangle(extent = {{-90, 10}, {0, -20}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Ellipse(extent = {{-50, 50}, {50, -41}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.Sphere, fillColor = {192, 192, 192}), Ellipse(extent = {{-50, 31}, {50, -60}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.Sphere, fillColor = {192, 192, 192}), Ellipse(extent = {{-47, 48}, {47, -38}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Ellipse(extent = {{-47, 28}, {47, -58}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-90, 47}, {2, 23}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-90, 7}, {2, -17}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-90, -33}, {0, -57}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Rectangle(extent = {{11, 16}, {90, -26}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {223, 191, 159}, fillPattern = FillPattern.Solid), Polygon(points = {{-20, -7}, {-1, -7}, {-2, -5}, {4, -8}, {-2, -11}, {-1, -9}, {-20, -9}, {-20, -7}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{10, 14}, {29, 14}, {28, 16}, {34, 13}, {28, 10}, {29, 12}, {10, 12}, {10, 14}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{11, -28}, {30, -28}, {29, -26}, {35, -29}, {29, -32}, {30, -30}, {11, -30}, {11, -28}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-75, -1}, {-56, -1}, {-57, 1}, {-51, -2}, {-57, -5}, {-56, -3}, {-75, -3}, {-75, -1}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-74, 41}, {-55, 41}, {-56, 43}, {-50, 40}, {-56, 37}, {-55, 39}, {-74, 39}, {-74, 41}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-71, -49}, {-52, -49}, {-53, -47}, {-47, -50}, {-53, -53}, {-52, -51}, {-71, -51}, {-71, -49}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-30, 33}, {-11, 33}, {-12, 35}, {-6, 32}, {-12, 29}, {-11, 31}, {-30, 31}, {-30, 33}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-28, -42}, {-9, -42}, {-10, -40}, {-4, -43}, {-10, -46}, {-9, -44}, {-28, -44}, {-28, -42}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{44, -7}, {63, -7}, {62, -5}, {68, -8}, {62, -11}, {63, -9}, {44, -9}, {44, -7}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid)}),
Diagram(coordinateSystem(preserveAspectRatio = false, grid = {1, 1}, initialScale = 0.1), graphics = {Text(extent = {{-99, 98}, {99, 60}}, textString = "%name"), Rectangle(fillColor = {160, 160, 164}, fillPattern = FillPattern.VerticalCylinder, extent = {{-60, 56}, {60, -65}}), Rectangle(fillColor = {192, 192, 192}, fillPattern = FillPattern.HorizontalCylinder, extent = {{30, 20}, {90, -30}}), Rectangle(origin = {0, -6}, fillColor = {192, 192, 192}, fillPattern = FillPattern.HorizontalCylinder, extent = {{-90, 51}, {0, 30}}), Rectangle(origin = {0, 1}, fillColor = {192, 192, 192}, fillPattern = FillPattern.HorizontalCylinder, extent = {{-90, -40}, {0, -60}}), Rectangle(origin = {0, 13}, fillColor = {192, 192, 192}, fillPattern = FillPattern.HorizontalCylinder, extent = {{-89, 4}, {0, -20}}), Ellipse(fillColor = {192, 192, 192}, fillPattern = FillPattern.Sphere, extent = {{-50, 50}, {50, -41}}, endAngle = 360), Ellipse(fillColor = {192, 192, 192}, fillPattern = FillPattern.Sphere, extent = {{-50, 31}, {50, -60}}, endAngle = 360), Ellipse(lineColor = {0, 0, 255}, fillColor = {223, 191, 159}, pattern = LinePattern.None, fillPattern = FillPattern.Solid, extent = {{-47, 48}, {47, -38}}, endAngle = 360), Ellipse(lineColor = {0, 0, 255}, fillColor = {223, 191, 159}, pattern = LinePattern.None, fillPattern = FillPattern.Solid, extent = {{-47, 28}, {47, -58}}, endAngle = 360), Rectangle(origin = {1, -4}, lineColor = {0, 0, 255}, fillColor = {223, 191, 159}, pattern = LinePattern.None, fillPattern = FillPattern.Solid, extent = {{-90, 47}, {-2, 30}}), Rectangle(origin = {0, 4}, lineColor = {0, 0, 255}, fillColor = {223, 191, 159}, pattern = LinePattern.None, fillPattern = FillPattern.Solid, extent = {{-88, 11}, {1, -9}}), Rectangle(lineColor = {0, 0, 255}, fillColor = {223, 191, 159}, pattern = LinePattern.None, fillPattern = FillPattern.Solid, extent = {{-89, -40}, {0, -57}}), Rectangle(lineColor = {0, 0, 255}, fillColor = {223, 191, 159}, pattern = LinePattern.None, fillPattern = FillPattern.Solid, extent = {{11, 16}, {90, -26}}), Polygon(origin = {-1, -34}, lineColor = {0, 0, 255}, fillColor = {191, 95, 0}, pattern = LinePattern.None, fillPattern = FillPattern.Solid, points = {{-20, -7}, {-1, -7}, {-2, -5}, {4, -8}, {-2, -11}, {-1, -9}, {-20, -9}, {-20, -7}}), Polygon(lineColor = {0, 0, 255}, fillColor = {191, 95, 0}, pattern = LinePattern.None, fillPattern = FillPattern.Solid, points = {{10, 14}, {29, 14}, {28, 16}, {34, 13}, {28, 10}, {29, 12}, {10, 12}, {10, 14}}), Polygon(lineColor = {0, 0, 255}, fillColor = {191, 95, 0}, pattern = LinePattern.None, fillPattern = FillPattern.Solid, points = {{11, -28}, {30, -28}, {29, -26}, {35, -29}, {29, -32}, {30, -30}, {11, -30}, {11, -28}}), Polygon(origin = {0, 37}, lineColor = {0, 0, 255}, fillColor = {191, 95, 0}, pattern = LinePattern.None, fillPattern = FillPattern.Solid, points = {{-75, -1}, {-56, -1}, {-57, 1}, {-51, -2}, {-57, -5}, {-56, -3}, {-75, -3}, {-75, -1}}), Polygon(origin = {45, -19}, lineColor = {0, 0, 255}, fillColor = {191, 95, 0}, pattern = LinePattern.None, fillPattern = FillPattern.Solid, points = {{-74, 41}, {-55, 41}, {-56, 43}, {-50, 40}, {-56, 37}, {-55, 39}, {-74, 39}, {-74, 41}}), Polygon(origin = {-4, 54}, lineColor = {0, 0, 255}, fillColor = {191, 95, 0}, pattern = LinePattern.None, fillPattern = FillPattern.Solid, points = {{-71, -49}, {-52, -49}, {-53, -47}, {-47, -50}, {-53, -53}, {-52, -51}, {-71, -51}, {-71, -49}}), Polygon(origin = {24, -40}, lineColor = {0, 0, 255}, fillColor = {191, 95, 0}, pattern = LinePattern.None, fillPattern = FillPattern.Solid, points = {{-30, 33}, {-11, 33}, {-12, 35}, {-6, 32}, {-12, 29}, {-11, 31}, {-30, 31}, {-30, 33}}), Polygon(origin = {-46, -5}, lineColor = {0, 0, 255}, fillColor = {191, 95, 0}, pattern = LinePattern.None, fillPattern = FillPattern.Solid, points = {{-28, -42}, {-9, -42}, {-10, -40}, {-4, -43}, {-10, -46}, {-9, -44}, {-28, -44}, {-28, -42}}), Polygon(lineColor = {0, 0, 255}, fillColor = {191, 95, 0}, pattern = LinePattern.None, fillPattern = FillPattern.Solid, points = {{44, -7}, {63, -7}, {62, -5}, {68, -8}, {62, -11}, {63, -9}, {44, -9}, {44, -7}}), Rectangle(origin = {-55, -21}, fillColor = {12, 12, 13}, fillPattern = FillPattern.HorizontalCylinder, extent = {{-35, 9}, {4, -12}}), Rectangle(origin = {-49, -22.5}, fillColor = {223, 191, 159}, pattern = LinePattern.None, fillPattern = FillPattern.Solid, extent = {{-40, 8.5}, {40, -8.5}}), Polygon(origin = {-3, 28}, lineColor = {0, 0, 255}, fillColor = {191, 95, 0}, pattern = LinePattern.None, fillPattern = FillPattern.Solid, points = {{-71, -49}, {-52, -49}, {-53, -47}, {-47, -50}, {-53, -53}, {-52, -51}, {-71, -51}, {-71, -49}}), Polygon(origin = {-10, -41}, lineColor = {0, 0, 255}, fillColor = {191, 95, 0}, pattern = LinePattern.None, fillPattern = FillPattern.Solid, points = {{-30, 33}, {-11, 33}, {-12, 35}, {-6, 32}, {-12, 29}, {-11, 31}, {-30, 31}, {-30, 33}})}));
end mixer4;
partial model SolventSink
annotation(
Icon(coordinateSystem(preserveAspectRatio = false, grid = {1, 1}, initialScale = 0.1), graphics = {Rectangle(fillColor = {192, 192, 192}, fillPattern = FillPattern.HorizontalCylinder, extent = {{-90, 6}, {-36, -30}}), Polygon(fillPattern = FillPattern.Solid, points = {{-72, 26}, {-72, 10}, {-60, 18}, {-72, 26}}), Polygon(fillPattern = FillPattern.Solid, points = {{-60, 18}, {-50, 26}, {-50, 10}, {-60, 18}}), Line(points = {{-60, 18}, {-60, 6}}, thickness = 1), Text(extent = {{-100, 100}, {99, 60}}, textString = "%name"), Ellipse(fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid, lineThickness = 0.5, extent = {{-36, 60}, {80, -40}}, endAngle = 360), Rectangle(lineColor = {0, 0, 255}, fillColor = {192, 192, 192}, pattern = LinePattern.None, fillPattern = FillPattern.Solid, extent = {{-36, 6}, {81, -81}}), Rectangle(lineColor = {144, 191, 144}, fillColor = {144, 191, 144}, fillPattern = FillPattern.Solid, extent = {{-36, -44}, {80, -80}}), Line(points = {{-36, -30}, {-36, -80}, {80, -80}, {80, 6}}, thickness = 0.5), Line(points = {{-36, -14}, {-32, -16}, {-28, -18}, {-26, -22}, {-24, -26}, {-22, -30}, {-20, -34}, {-18, -40}, {-18, -44}}, color = {144, 191, 144}, thickness = 1), Line(points = {{-36, -10}, {-28, -12}, {-24, -16}, {-20, -20}, {-16, -26}, {-12, -34}, {-12, -44}}, color = {140, 186, 140}, thickness = 1), Polygon(fillColor = {160, 160, 164}, fillPattern = FillPattern.Solid, points = {{42, -36}, {52, -50}, {62, -36}, {42, -36}}), Line(points = {{62, -36}, {80, -36}}), Rectangle(lineColor = {160, 160, 164}, fillColor = {160, 160, 164}, fillPattern = FillPattern.Solid, extent = {{-100, -80}, {100, -100}})}),
Documentation(info = "Icon for a wastewater sink"),
Diagram(coordinateSystem(preserveAspectRatio = false, extent = {{-100, -100}, {100, 100}}, grid = {1, 1}), graphics = {Rectangle(extent = {{-90, 6}, {-36, -30}}, lineColor = {0, 0, 0}, fillPattern = FillPattern.HorizontalCylinder, fillColor = {192, 192, 192}), Polygon(points = {{-72, 26}, {-72, 10}, {-60, 18}, {-72, 26}}, lineColor = {0, 0, 0}, fillColor = {0, 0, 0}, fillPattern = FillPattern.Solid), Polygon(points = {{-60, 18}, {-50, 26}, {-50, 10}, {-60, 18}}, lineColor = {0, 0, 0}, fillColor = {0, 0, 0}, fillPattern = FillPattern.Solid), Line(points = {{-60, 18}, {-60, 6}}, thickness = 1), Text(extent = {{-99, 100}, {100, 59}}, textString = "%name"), Ellipse(extent = {{-36, 60}, {80, -40}}, lineColor = {0, 0, 0}, lineThickness = 0.5, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-36, 6}, {81, -81}}, lineColor = {0, 0, 255}, pattern = LinePattern.None, fillColor = {192, 192, 192}, fillPattern = FillPattern.Solid), Rectangle(extent = {{-36, -44}, {80, -80}}, lineColor = {191, 95, 0}, fillColor = {191, 95, 0}, fillPattern = FillPattern.Solid), Line(points = {{-36, -30}, {-36, -80}, {80, -80}, {80, 6}}, thickness = 0.5), Line(points = {{-36, -14}, {-32, -16}, {-28, -18}, {-26, -22}, {-24, -26}, {-22, -30}, {-20, -34}, {-18, -40}, {-18, -44}}, color = {191, 95, 0}, thickness = 1), Line(points = {{-36, -10}, {-28, -12}, {-24, -16}, {-20, -20}, {-16, -26}, {-12, -34}, {-12, -44}}, color = {191, 95, 0}, thickness = 1), Polygon(points = {{42, -36}, {52, -50}, {62, -36}, {42, -36}}, lineColor = {0, 0, 0}, fillColor = {160, 160, 164}, fillPattern = FillPattern.Solid), Line(points = {{62, -36}, {80, -36}}), Rectangle(extent = {{-100, -80}, {100, -100}}, lineColor = {160, 160, 164}, fillColor = {160, 160, 164}, fillPattern = FillPattern.Solid)}));
end SolventSink;
end Icons;
package Interfaces
extends Modelica.Icons.Library;
connector InFlowAD
flow Real Q;
Real Xc;
Real Xch;
Real Xpr;
Real Xli;
Real Xsu;
Real Xaa;
Real Xfa;
Real Xch4;
Real Xpro;
Real Xac;
Real Xh2;
Real XI;
Real Ssu;
Real Saa;
Real Sfa;
Real Sva;
Real Sbu;
Real Spro;
Real Sac;
Real Sh2;
Real Sch4;
Real PHA;
Real XPHA;
Real Xs;
Real XSurfact;
Real Xphe;
Real Xlim;
Real Vis;
Real Fw;
Real So;
end InFlowAD;
connector OutFlowAD
flow Real Q;
Real Xc;
Real Xch;
Real Xpr;
Real Xli;
Real Xsu;
Real Xaa;
Real Xfa;
Real Xch4;
Real Xpro;
Real Xac;
Real Xh2;
Real XI;
Real Ssu;
Real Saa;
Real Sfa;
Real Sva;
Real Sbu;
Real Spro;
Real Sac;
Real Sh2;
Real Sch4;
Real PHA;
Real XPHA;
Real Xs;
Real XSurfact;
Real Xphe;
Real Xlim;
Real Vis;
Real Fw;
Real So;
end OutFlowAD;
connector AirFlow "Airflow connector"
flow Real Q_air;
annotation(
Documentation(info = "The Airflow connector consists of a flow variable describing the exchange of
air between blower and PHA production tank."));
end AirFlow;
end Interfaces;
model sensor_O2 "Ideal sensor to measure dissolved oxygen concentration"
extends AFTERLIFE.Icons.sensor_O2;
Interfaces.InFlowAD In annotation(
Placement(transformation(extent = {{-10, -110}, {10, -90}})));
Modelica.Blocks.Interfaces.RealOutput So annotation(
Placement(transformation(extent = {{88, -10}, {108, 10}})));
equation
In.Q = 0;
So = In.So;
annotation(
Documentation(info = "This component measures the dissolved oxygen concentration [g/m3].
"),
Diagram(coordinateSystem(preserveAspectRatio = false, extent = {{-100, -100}, {100, 100}}, grid = {2, 2}), graphics = {Ellipse(extent = {{-50, 50}, {50, -50}}, lineColor = {0, 0, 0}, lineThickness = 0.5, fillColor = {223, 223, 159}, fillPattern = FillPattern.Solid), Line(points = {{0, 50}, {0, 38}}, thickness = 0.5), Line(points = {{-50, 0}, {38, 0}}, thickness = 0.5), Line(points = {{50, 0}, {38, 0}}, thickness = 0.5), Line(points = {{-36, 34}, {-28, 26}}, thickness = 0.5), Line(points = {{34, 36}, {26, 28}}, thickness = 0.5), Line(points = {{0, 0}, {26, 28}}, thickness = 0.5), Polygon(points = {{30, 32}, {10, 24}, {24, 12}, {30, 32}}, lineColor = {0, 0, 0}, fillColor = {0, 0, 0}, fillPattern = FillPattern.Solid), Text(extent = {{-36, -10}, {36, -32}}, textString = "O2"), Line(points = {{0, -50}, {0, -90}}, thickness = 0.5), Line(points = {{50, 0}, {88, 0}}), Text(extent = {{-80, 100}, {80, 60}}, textString = "%name")}));
end sensor_O2;
model blower "Blower for the aeration of the nitrification tanks"
extends AFTERLIFE.Icons.blower;
package AFT = AFTERLIFE.Units;
parameter AFT.VolumeFlowRate Q_max = 0.23148 "maximum blower capacity";
parameter AFT.VolumeFlowRate Q_min = 0.000001 "minimum blower capacity";
Real H;
// this is just a help variable to reduce expressions
Interfaces.AirFlow AirOut annotation(
Placement(transformation(extent = {{-20, 90}, {0, 110}})));
Modelica.Blocks.Interfaces.RealInput u annotation(
Placement(transformation(origin = {98, -30}, extent = {{-10, -10}, {10, 10}}, rotation = 180)));
equation
H = if noEvent(0.5 * ((-Q_min) + Q_max) + u * 0.5 * ((-Q_min) + Q_max) + Q_min > Q_max) then Q_max else if noEvent(0.5 * ((-Q_min) + Q_max) + u * 0.5 * ((-Q_min) + Q_max) + Q_min < Q_min) then Q_min else 0.5 * ((-Q_min) + Q_max) + u * 0.5 * ((-Q_min) + Q_max) + Q_min;
AirOut.Q_air = -H;
annotation(
Documentation(info = "This component models a blower of a wastewater treatment plant which generates an airflow that is needed
for the nitrification.
The blower is connected to the nitrification tank.
The airflow is controlled by a signal u (-1 <= u <= 1).
Parameter:
Qmax - maximum blower capacity [m3 Air/d], this is produced when the control signal u is 1 or greater.
Qmin - minimum blower capacity [m3 Air/d], this is produced when the control signal u is -1 or below.
"));
end blower;
model GasSink "Gas sink"
// only for graphical termination in diagram layer, no equation needed
extends AFTERLIFE.Icons.GasSink;
Interfaces.InFlowAD In annotation(
Placement(transformation(extent = {{-110, -22}, {-90, -2}})));
annotation(
Documentation(info = "This component terminates the gas stream of an AD process.
Storage or further gas treatment is not jet considered."));
end GasSink;
model SludgeSink "Sludge sink"
// only for graphical termination in diagram layer, no equation needed
extends AFTERLIFE.Icons.SludgeSink;
Interfaces.InFlowAD In annotation(
Placement(transformation(extent = {{-110, -22}, {-90, -2}})));
annotation(
Documentation(info = "This component terminates the sludge stream of an AD process.
Storage or further sludge treatment is not jet considered."));
end SludgeSink;
partial model Ratios
Real rXc;
Real rXch;
Real rXpr;
Real rXli;
Real rXsu;
Real rXaa;
Real rXfa;
Real rXc4;
Real rXpro;
Real rXac;
Real rXh2;
Real rXI;
Real rXPha;
Real rPha;
Real rSsu;
Real rSaa;
Real rSfa;
Real rSva;
Real rSbu;
Real rSpro;
Real rSac;
Real rSh2;
Real rSch4;
Real rSo;
end Ratios;
model Recovery
extends AFTERLIFE.Icons.Separator;
extends AFTERLIFE.Ratios;
Interfaces.InFlowAD In annotation(
Placement(transformation(extent = {{-110, 0}, {-90, 20}})));
Interfaces.OutFlowAD GasPhase annotation(
Placement(transformation(extent = {{90, 60}, {100, 70}})));
Interfaces.OutFlowAD Effluent annotation(
Placement(transformation(extent = {{10, -90}, {20, -100}})));
Interfaces.OutFlowAD Waste annotation(
Placement(transformation(extent = {{-10, -90}, {-20, -100}})));
Real G, Xf, Sf, X, S, GAS;
parameter Real CR = 5;
equation
In.Q + Effluent.Q + Waste.Q = 0;
G = In.Sh2 + In.Sch4 + In.So;
GasPhase.Q = 0.00008205746 * (-In.Q) * G / 16 * 310.15 "Metano";
GAS = GasPhase.Q * 1.213 "Biogas";
rSh2 = if noEvent(G > 0.0) then In.Sh2 / G else In.Sh2;
rSch4 = if noEvent(G > 0.0) then In.Sch4 / G else In.Sch4;
rSo = if noEvent(G > 0.0) then In.So / G else In.So;
// ratios of solid components
rXc = if noEvent(Xf > 0) then In.Xc / Xf else In.Xc;
rXch = if noEvent(Xf > 0) then In.Xch / Xf else In.Xch;
rXpr = if noEvent(Xf > 0) then In.Xpr / Xf else In.Xpr;
rXli = if noEvent(Xf > 0) then In.Xli / Xf else In.Xli;
rXsu = if noEvent(Xf > 0) then In.Xsu / Xf else In.Xsu;
rXaa = if noEvent(Xf > 0) then In.Xaa / Xf else In.Xaa;
rXfa = if noEvent(Xf > 0) then In.Xfa / Xf else In.Xfa;
rXc4 = if noEvent(Xf > 0) then In.Xch4 / Xf else In.Xch4;
rXpro = if noEvent(Xf > 0) then In.Xpro / Xf else In.Xpro;
rXac = if noEvent(Xf > 0) then In.Xac / Xf else In.Xac;
rXh2 = if noEvent(Xf > 0) then In.Xh2 / Xf else In.Xh2;
rXI = if noEvent(Xf > 0) then In.XI / Xf else In.XI;
rXPha = if noEvent(Xf > 0) then In.XPHA / Xf else In.XPHA;
rPha = if noEvent(Xf > 0) then In.PHA / Xf else In.PHA;
// ratios of soluble components
rSsu = if noEvent(Sf > 0) then In.Ssu / Sf else In.Ssu;
rSaa = if noEvent(Sf > 0) then In.Saa / Sf else In.Saa;
rSfa = if noEvent(Sf > 0) then In.Sfa / Sf else In.Sfa;
rSva = if noEvent(Sf > 0) then In.Sva / Sf else In.Sva;
rSbu = if noEvent(Sf > 0) then In.Sbu / Sf else In.Sbu;
rSpro = if noEvent(Sf > 0) then In.Spro / Sf else In.Spro;
rSac = if noEvent(Sf > 0) then In.Sac / Sf else In.Sac;
Xf = In.Xc + In.Xch + In.Xpr + In.Xli + In.Xsu + In.Xaa + In.Xfa + In.Xch4 + In.Xpro + In.Xac + In.Xh2 + In.XI + In.XPHA + In.PHA;
X = CR * Xf;
Waste.Q * X = (-In.Q) * Xf;
Sf = In.Ssu + In.Saa + In.Sfa + In.Sva + In.Sbu + In.Spro + In.Sac;
Effluent.Q * abs(S) = (-In.Q) * Sf;
// gas flow
GasPhase.Xc = 0;
GasPhase.Xch = 0;
GasPhase.Xpr = 0;
GasPhase.Xli = 0;
GasPhase.Xsu = 0;
GasPhase.Xaa = 0;
GasPhase.Xfa = 0;
GasPhase.Xch4 = 0;
GasPhase.Xpro = 0;
GasPhase.Xac = 0;
GasPhase.Xh2 = 0;
GasPhase.XI = 0;
GasPhase.Ssu = 0;
GasPhase.Saa = 0;
GasPhase.Sfa = 0;
GasPhase.Sva = 0;
GasPhase.Sbu = 0;
GasPhase.Spro = 0;
GasPhase.Sac = 0;
GasPhase.Sh2 = rSh2 * G;
GasPhase.Sch4 = rSch4 * G;
GasPhase.PHA = 0;
GasPhase.XPHA = 0;
GasPhase.So = rSo * G;
GasPhase.Fw = 0;
GasPhase.Xlim = 0;
GasPhase.Xphe = 0;
GasPhase.XSurfact = 0;
GasPhase.Vis = 0;
GasPhase.Xs = 0;
// effluent, solid and soluble components
Effluent.Xc = 0;
Effluent.Xch = 0;
Effluent.Xpr = 0;
Effluent.Xli = 0;
Effluent.Xsu = 0;
Effluent.Xaa = 0;
Effluent.Xfa = 0;
Effluent.Xch4 = 0;
Effluent.Xpro = 0;
Effluent.Xac = 0;
Effluent.Xh2 = 0;
Effluent.XI = 0;
Effluent.Ssu = rSsu * S;
Effluent.Saa = rSaa * S;
Effluent.Sfa = rSfa * S;
Effluent.Sva = rSva * S;
Effluent.Sbu = rSbu * S;
Effluent.Spro = rSpro * S;
Effluent.Sac = rSac * S;
Effluent.Sh2 = 0;
Effluent.Sch4 = 0;
Effluent.PHA = 0;
Effluent.XPHA = 0;
Effluent.Xs = 0;
Effluent.Fw = 0;
Effluent.Xlim = 0;
Effluent.Xphe = 0;
Effluent.XSurfact = 0;
Effluent.Vis = 0;
Effluent.So = 0;
// waste sludge flow, solid and soluble components
Waste.Xc = rXc * X;
Waste.Xch = rXch * X;
Waste.Xpr = rXpr * X;
Waste.Xli = rXli * X;
Waste.Xsu = rXsu * X;
Waste.Xaa = rXaa * X;
Waste.Xfa = rXfa * X;
Waste.Xch4 = rXc4 * X;
Waste.Xpro = rXpro * X;
Waste.Xac = rXac * X;
Waste.Xh2 = rXh2 * X;
Waste.XI = rXI * X;
Waste.Ssu = rSsu * S;
Waste.Saa = rSaa * S;
Waste.Sfa = rSfa * S;
Waste.Sva = rSva * S;
Waste.Sbu = rSbu * S;
Waste.Spro = rSpro * S;
Waste.Sac = rSac * S;
Waste.Sh2 = 0;
Waste.Sch4 = 0;
Waste.PHA = rPha * X;
Waste.XPHA = rXPha * X;
Waste.Xs = 0;
Waste.Fw = In.Fw;
Waste.Xlim = In.Xlim;
Waste.Xphe = In.Xphe;
Waste.XSurfact = In.XSurfact;
Waste.Vis = In.Vis;
Waste.So = 0;
end Recovery;
model PHAStorage
// only for graphical termination in diagram layer, no equation needed
extends AFTERLIFE.Icons.PHAStorage;
Interfaces.InFlowAD In annotation(
Placement(transformation(extent = {{-110, -22}, {-90, -2}})));
Real Q;
equation
Q = -In.Q;
end PHAStorage;
model Source
extends AFTERLIFE.Icons.Source;
AFTERLIFE.Interfaces.OutFlowAD Out annotation(
Placement(visible = true, transformation(extent = {{88, -80}, {108, -60}}, rotation = 0), iconTransformation(extent = {{80, -60}, {100, -40}}, rotation = 0)));
Modelica.Blocks.Interfaces.RealInput data[31] annotation(
Placement(transformation(extent = {{-100, -10}, {-80, 10}})));
equation
Out.Q = -data[1];
Out.Xc = -data[2];
Out.Xch = -data[3];
Out.Xpr = -data[4];
Out.Xli = -data[5];
Out.Xsu = -data[6];
Out.Xaa = -data[7];
Out.Xfa = -data[8];
Out.Xch4 = -data[9];
Out.Xpro = -data[10];
Out.Xac = -data[11];
Out.Xh2 = -data[12];
Out.XI = -data[13];
Out.Ssu = -data[14];
Out.Saa = -data[15];
Out.Sfa = -data[16];
Out.Sva = -data[17];
Out.Sbu = -data[18];
Out.Spro = -data[19];
Out.Sac = -data[20];
Out.Sh2 = -data[21];
Out.Sch4 = -data[22];
Out.PHA = -data[23];
Out.XPHA = -data[24];
Out.Xs = -data[25];
Out.Vis = -data[26];
Out.XSurfact = -data[27];
Out.Xphe = -data[28];
Out.Xlim = -data[29];
Out.Fw = -data[30];
Out.So = -data[31];
end Source;
model SolventSink "Sludge sink"
// only for graphical termination in diagram layer, no equation needed
extends AFTERLIFE.Icons.SolventSink;
Interfaces.InFlowAD In annotation(
Placement(transformation(extent = {{-110, -22}, {-90, -2}})));
Real Q;
equation
Q = -In.Q;
annotation(
Documentation(info = "This component terminates the sludge stream of an AD process.
Storage or further sludge treatment is not jet considered."));
end SolventSink;
function NET
//input
input Real Qi, Qii, Qiii, Qiv;
input Real Phap, Pa;
input Real yMF, QAMF, yUF, QAUF, yRO, QARO;
input Real AD1GAS, AD2GAS;
input Real ChC, EC, QL, QS;
input Real AMF, AUF, ARO, VAF, VAD, VAR;
output Real NPV, inv, c_op, ben;
protected
parameter Integer n = 6;
parameter Integer ni = 2;
//fixed
//parameter Real[n] a = {0.0014, 0.005, 0.003, 5.5, 20, 4.6};
// material and working costs
parameter Real r = 2;
parameter Integer t = 20;
parameter Real cmin = 0.94;
parameter Real Cw = 0.8;
parameter Real Pcw = 1;
parameter Real CPhap = 0.2;
parameter Real PcPhap = 4.5;
parameter Real Pe = 0.06;
parameter Real ECRfi = 0.25;
parameter Real ECRa = 0.02;
parameter Real den = 997;
parameter Real Cp = 0.00418;
parameter Real DT = 15;
parameter Real F = 0.8;
parameter Real EHS = 0.45;
parameter Real ERM = 0.009;
parameter Real ERA = 0.23;
parameter Real Pch4 = 3.16;
parameter Real PPha = 5;
parameter Real Pum = 1615.55 "Bombas";
parameter Real Pump = 757 "Bombas purga";
parameter Real Aic = 251.52 "Air compresor";
parameter Real Int = 9000 "Intercambiador";
parameter Real Val = 30 "Valvulas";
parameter Real STan = 8000 "Tanque pulmon";
parameter Real Dry = 6000 "Dryer 0.5 m2";
parameter Real Cen = 900 "centrifugue";
parameter Real Fil = 300 "Filtro ceramico 5 m2";
Real yc, ye;
Real ECM, ECU, ECRO, ECAD, ECAF, ECAR;
Real CAPEX, SALES, OPEX;
Real Caf, Cad, Cmi, Cul, Cro, Car;
Real Pag, PHA, LF, SM;
algorithm
Cmi := 10 ^ (3.2107 + 0.7597 * log10(AMF) + 0.0027 * log10(AMF) ^ 2);
Cul := 10 ^ (3.2107 + 0.7597 * log10(AUF) + 0.0027 * log10(AUF) ^ 2);
Cro := 10 ^ (3.2107 + 0.7597 * log10(ARO) + 0.0027 * log10(ARO) ^ 2);
Caf := 10 ^ (4.1052 + 0.5320 * log10(VAF) + (-1) * 0.0005 * log10(VAF) ^ 2);
Cad := 10 ^ (4.1052 + 0.5320 * log10(VAD) + (-1) * 0.0005 * log10(VAD) ^ 2);
Car := 10 ^ (4.1052 + 0.5320 * log10(VAR) + (-1) * 0.0005 * log10(VAR) ^ 2);
CAPEX := (Cmi + Cul + Cro + Caf + Cad + Car + Pum * 10 + Pump * 3 + Aic * 2 + Int + STan * 6 + Dry + Cen + Fil * 2) * 0.9;
yc := ((Qi + Qii + Qiii) * Cw + ChC + Qiv * cmin) * 365;
ECM := ECRfi * yMF + ECRa * QAMF;
ECU := ECRfi * yUF + ECRa * QAUF;
ECRO := ECRfi * yRO + ECRa * QARO;
ECAD := den * Cp / 1000 * DT * F / EHS + ERM * VAF / 1000;
ECAF := den * Cp / 1000 * DT * F / EHS + ERM * VAD / 1000;
ECAR := den * Cp / 1000 * DT * F / EHS * 0.277778 + ERA * 4.01718 + ERM * VAR;
ye := (ECM + ECU + ECRO + ECAD + ECAF + ECAR + EC) * 0.277 * Pe * 365;
OPEX := yc + ye;
Pag := abs(Pa) * 0.8;
PHA := Phap / 1000 * PPha;
LF := abs(QL) * 0.007;
SM := abs(QS) * 273;
SALES := (Pag + PHA + LF + SM + (AD1GAS + AD2GAS) * 0.2 + 0.3) * 365;
NPV := (-1) * CAPEX + sum((SALES - OPEX) / (1 + r / 100) ^ i for i in 1:t);
inv:=CAPEX;
c_op:= OPEX;
ben:=SALES;
end NET;
model MicrofilterA
extends AFTERLIFE.Icons.Microfilter;
AFTERLIFE.Interfaces.InFlowAD In1 annotation(
Placement(visible = true, transformation(extent = {{-78, 54}, {-58, 74}}, rotation = 0), iconTransformation(extent = {{-90, 34}, {-70, 54}}, rotation = 0)));
AFTERLIFE.Interfaces.OutFlowAD Out1 annotation(
Placement(visible = true, transformation(extent = {{52, 54}, {72, 74}}, rotation = 0), iconTransformation(extent = {{70, 34}, {90, 54}}, rotation = 0)));
AFTERLIFE.Interfaces.OutFlowAD Out2 annotation(
Placement(visible = true, transformation(origin = {62, -40}, extent = {{-10, -10}, {10, 10}}, rotation = 0), iconTransformation(origin = {80, -24}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
//Parameters
parameter Real Beta = 0 "Filter medium resistance";
parameter Real Rm(unit = "m") = 10e11 "Membrane resistance";
parameter Real A(unit = "m2") = 0.0014 "Membrane area";
parameter Real Dc = 0.0 "Diffusivity coefficient";
parameter Real Dch = 1 "Diffusivity coefficient";
parameter Real Dpr = 1 "Diffusivity coefficient";
parameter Real Dli = 0 "Diffusivity coefficient";
parameter Real Dsu = 0 "Diffusivity coefficient";
parameter Real Daa = 0 "Diffusivity coefficient";
parameter Real Dfa = 0 "Diffusivity coefficient";
parameter Real Dch4 = 0 "Diffusivity coefficient";
parameter Real Dpro = 0 "Diffusivity coefficient";
parameter Real Dac = 0 "Diffusivity coefficient";
parameter Real Dh2 = 0 "Diffusivity coefficient";
parameter Real DI = 1 "Diffusivity coefficient";
parameter Real DSsu = 1 "Diffusivity coefficient";
parameter Real DSaa = 1 "Diffusivity coefficient";
parameter Real DSva = 1 "Diffusivity coefficient";
parameter Real DSfa = 1 "Diffusivity coefficient";
parameter Real DSbu = 1 "Diffusivity coefficient";
parameter Real DSpro = 1 "Diffusivity coefficient";
parameter Real DSac = 1 "Diffusivity coefficient";
parameter Real DSh2 = 1 "Diffusivity coefficient";
parameter Real DSch4 = 1 "Diffusivity coefficient";
parameter Real DPHA = 0 "Diffusivity coefficient";
parameter Real DXPHA = 0 "Diffusivity coefficient";
parameter Real DXs = 0 "Diffusivity coefficient";
parameter Real Dphe = 1 "Diffusivity coefficient";
parameter Real Dlim = 1 "Diffusivity coefficient";
parameter Real ECRfi(unit = "kWh/m3") = 0.25 "Energy Consumption ratio of a filtration process";
parameter Real T(unit = "ºC") = 25 "Temperature";
parameter Real R(unit = "L.kPa/k.mol") = 8.314472;
parameter Real ECRa(unit = "KWh/m3") = 0.02 "Energy consumption ratio of air compresor";
parameter Real Va(unit = "m3/s") = 0.002393;
parameter Real Sb0 = 1;
parameter Real b = -1;
parameter Real den(unit = "g/m3") = 997000;
parameter Real Ec = 0.1;
parameter Real Omega = 0.01;
parameter Real Kz = 10;
parameter Real dia(unit = "m") = 1e-5;
parameter Real pi = 1e14;
parameter Real pii = 0.4;
parameter Real DPmem = 50000;
parameter Real DPm = 10000;
parameter Real Eco2 = 0.1;
//Feed
Real Xcf "Particulate Composite concentration";
Real Xchf "Particulate Carbohydrates concentration";
Real Xprf "Particulate Proteins concentration";
Real Xlif "Particulate Lipids concentration";
Real Xsuf "Particulate Sugars concentration";
Real Xaaf "Particulate Aminoacids concentration";
Real Xfaf "Particulate Fatty Acids concentration";
Real Xch4f "Particulate Methane concentration";
Real Xprof "Particulate Propionate concentration";
Real Xacf "Particulate Acetate concentration";
Real Xh2f "Particulate Hydrogen concentration";
Real XIf "Particulate Inert Fraction concentration";
Real Ssuf "Soluble Sugars concentration";
Real Saaf "Soluble Aminoacids concentration";
Real Sfaf "Soluble Fatty Acids concentration";
Real Svaf "Soluble Volatile Acids concentration";
Real Sbuf "Soluble Butyrate concentration";
Real Sprof "Soluble Propionate concentration";
Real Sacf "Soluble Acetate concentration";
Real Sh2f "Soluble Hydrogen concentration";
Real Sch4f "Soluble Methane concentration";
Real PHAf "Soluble PHA concentration";
Real XPHAf "Particulate PHA concentration";
Real Xsf "Suspended Solids concentration";
Real Xphef "Particulate Phenolics concentration";
Real Xlimf "Particulate Limonin concentration";
Real XSurfactf "Particulate Surfactant concentration";
//Permeate concentrations
Real Xcp(unit = "g/m3");
Real Xchp(unit = "g/m3");
Real Xprp(unit = "g/m3");
Real Xlip(unit = "g/m3");
Real Xsup(unit = "g/m3");
Real Xaap(unit = "g/m3");
Real Xfap(unit = "g/m3");
Real Xch4p(unit = "g/m3");
Real Xprop(unit = "g/m3");
Real Xacp(unit = "g/m3");
Real Xh2p(unit = "g/m3");
Real XIp(unit = "g/m3");
Real Ssup(unit = "g/m3");
Real Saap(unit = "g/m3");
Real Sfap(unit = "g/m3");
Real Svap(unit = "g/m3");
Real Sbup(unit = "g/m3");
Real Sprop(unit = "g/m3");
Real Sacp(unit = "g/m3");
Real Sh2p(unit = "g/m3");
Real Sch4p(unit = "g/m3");
Real PHAp(unit = "g/m3");
Real XPHAp(unit = "g/m3");
Real Xsp(unit = "g/m3");
Real Xphep(unit = "g/m3");
Real Xlimp(unit = "g/m3");
Real XSurfactp(unit = "g/m3");
//Retained concentrations
Real Xcr(unit = "g/m3");
Real Xchr(unit = "g/m3");
Real Xprr(unit = "g/m3");
Real Xlir(unit = "g/m3");
Real Xsur(unit = "g/m3");
Real Xaar(unit = "g/m3");
Real Xfar(unit = "g/m3");
Real Xch4r(unit = "g/m3");
Real Xpror(unit = "g/m3");
Real Xacr(unit = "g/m3");
Real Xh2r(unit = "g/m3");
Real XIr(unit = "g/m3");
Real Ssur(unit = "g/m3");
Real Saar(unit = "g/m3");
Real Sfar(unit = "g/m3");
Real Svar(unit = "g/m3");
Real Sbur(unit = "g/m3");
Real Spror(unit = "g/m3");
Real Sacr(unit = "g/m3");
Real Sh2r(unit = "g/m3");
Real Sch4r(unit = "g/m3");
Real PHAr(unit = "g/m3");
Real XPHAr(unit = "g/m3");
Real Xsr(unit = "g/m3");
Real Xpher(unit = "g/m3");
Real Xlimr(unit = "g/m3");
Real XSurfactr(unit = "g/m3");
Real Jv(start = 0.00228, unit = "m3/s.m2") "Solvent flow throught membrane";
Real q1(unit = "m3/s") "Wastewater volumetric flow rate";
Real q3(unit = "m3/s") "Retained volumetric flow rate";
Real q4(unit = "m3/s") "Permeate volumetric flow rate";
//Flux through membrane
Real JXc(unit = "g/m3.m2");
Real JXch(unit = "g/m3.m2");
Real JXpr(unit = "g/m3.m2");
Real JXli(unit = "g/m3.m2");
Real JXsu(unit = "g/m3.m2");
Real JXaa(unit = "g/m3.m2");
Real JXfa(unit = "g/m3.m2");
Real JXch4(unit = "g/m3.m2");
Real JXpro(unit = "g/m3.m2");
Real JXac(unit = "g/m3.m2");
Real JXh2(unit = "g/m3.m2");
Real JXI(unit = "g/m3.m2");
Real JSsu(unit = "g/m3.m2");
Real JSaa(unit = "g/m3.m2");
Real JSfa(unit = "g/m3.m2");
Real JSva(unit = "g/m3.m2");
Real JSbu(unit = "g/m3.m2");
Real JSpro(unit = "g/m3.m2");
Real JSac(unit = "g/m3.m2");
Real JSh2(unit = "g/m3.m2");
Real JSch4(unit = "g/m3.m2");
Real JPHA(unit = "g/m3.m2");
Real JXPHA(unit = "g/m3.m2");
Real JXs(unit = "g/m3.m2");
Real JXlim(unit = "g/m3.m2");
Real JXphe(unit = "g/m3.m2");
Real JXSurfact(unit = "g/m3.m2");
//Viscosity
Real VisW(unit = "Pa.s") "Water viscosity";
Real VisWs(unit = "Pa.s") "Wastewater viscosity";
Real VisSf(unit = "Pa.s") "Surfactant viscosity";
Real Vis(unit = "Pa.s") "Filtration viscosity";
//Enery Balance
Real EC "Energy Consumption";
Real PTm "Transmembrane pressure";
Real Fw "Wastewater Fraction";
Real Visp(unit = "Pa.s") "Viscosity of Permeated";
Real Visr(unit = "Pa.s") "Viscosity of Retained";
Real Rc(start = 0.0, fixed = true);
Real Rt;
Real H(start = 0.0, fixed = true);
Real Cc;
Real Kc;
Real yT;
initial equation
PTm = 200000 + DPmem;
equation
In1.Q + Out1.Q + Out2.Q = 0;
q1 = -In1.Q;
Xcf = In1.Xc;
Xchf = In1.Xch;
Xprf = In1.Xpr;
Xlif = In1.Xli;
Xsuf = In1.Xsu;
Xaaf = In1.Xaa;
Xfaf = In1.Xfa;
Xch4f = In1.Xch4;
Xprof = In1.Xpro;
Xacf = In1.Xac;
Xh2f = In1.Xh2;
XIf = In1.XI;
Ssuf = In1.Ssu;
Saaf = In1.Saa;
Sfaf = In1.Sfa;
Svaf = In1.Sva;
Sbuf = In1.Sbu;
Sprof = In1.Spro;
Sacf = In1.Sac;
Sh2f = In1.Sh2;
Sch4f = In1.Sch4;
PHAf = In1.PHA;
XPHAf = In1.XPHA;
Xsf = In1.Xs;
Xphef = In1.Xphe;
Xlimf = In1.Xlim;
XSurfactf = In1.XSurfact;
VisSf = In1.Vis;
Fw = In1.Fw;
q1 * Xcf = q3 * Xcr + q4 * Xcp;
q1 * Xchf = q3 * Xchr + q4 * Xchp;
q1 * Xprf = q3 * Xprr + q4 * Xprp;
q1 * Xlif = q3 * Xlir + q4 * Xlip;
q1 * Xsuf = q3 * Xsur + q4 * Xsup;
q1 * Xaaf = q3 * Xaar + q4 * Xaap;
q1 * Xfaf = q3 * Xfar + q4 * Xfap;
q1 * Xch4f = q3 * Xch4r + q4 * Xch4p;
q1 * Xphef = q3 * Xpher + q4 * Xphep;
q1 * Xprof = q3 * Xpror + q4 * Xprop;
q1 * Xlimf = q3 * Xlimr + q4 * Xlimp;
q1 * Xacf = q3 * Xacr + q4 * Xacp;
q1 * Xh2f = q3 * Xh2r + q4 * Xh2p;
q1 * XIf = q3 * XIr + q4 * XIp;
q1 * Ssuf = q3 * Ssur + q4 * Ssup;
q1 * Saaf = q3 * Saar + q4 * Saap;
q1 * Sfaf = q3 * Sfar + q4 * Sfap;
q1 * Svaf = q3 * Svar + q4 * Svap;
q1 * Sbuf = q3 * Sbur + q4 * Sbup;
q1 * Sprof = q3 * Spror + q4 * Sprop;
q1 * Sacf = q3 * Sacr + q4 * Sacp;
q1 * Sh2f = q3 * Sh2r + q4 * Sh2p;
q1 * Sch4f = q3 * Sch4r + q4 * Sch4p;
q1 * PHAf = q3 * PHAr + q4 * PHAp;
q1 * XPHAf = q3 * XPHAr + q4 * XPHAp;
q1 * Xsf = q3 * Xsr + q4 * Xsp;
q1 * XSurfactf = q3 * XSurfactr + q4 * XSurfactp;
JXc = Dc * Xcf * Jv;
JXch = Dch * Xchf * Jv;
JXpr = Dpr * Xprf * Jv;
JXli = Dli * Xlif * Jv;
JXsu = Dsu * Xsuf * Jv;
JXaa = Daa * Xaaf * Jv;
JXfa = Dfa * Xfaf * Jv;
JXch4 = Dch4 * Xch4f * Jv;
JXphe = Dphe * Xphef * Jv;
JXpro = Dpro * Xprof * Jv;
JXlim = Dlim * Xlimf * Jv;
JXac = Dac * Xacf * Jv;
JXh2 = Dh2 * Xh2f * Jv;
JXI = DI * XIf * Jv;
JSsu = DSsu * Ssuf * Jv;
JSaa = DSaa * Saaf * Jv;
JSfa = DSfa * Sfaf * Jv;
JSva = DSva * Svaf * Jv;
JSbu = DSbu * Sbuf * Jv;
JSpro = DSpro * Sprof * Jv;
JSac = DSac * Sacf * Jv;
JSh2 = DSh2 * Sh2f * Jv;
JSch4 = DSch4 * Sch4f * Jv;
JPHA = DPHA * PHAf * Jv;
JXPHA = DXPHA * XPHAf * Jv;
JXs = DXs * Xsf * DXs * Jv;
JXSurfact = XSurfactf * Jv;
Xcp = JXc / Jv;
Xchp = JXch / Jv;
Xprp = JXpr / Jv;
Xlip = JXli / Jv;
Xsup = JXsu / Jv;
Xaap = JXaa / Jv;
Xfap = JXfa / Jv;
Xphep = JXphe / Jv;
Xch4p = JXch4 / Jv;
Xlimp = JXlim / Jv;
Xprop = JXpro / Jv;
Xacp = JXac / Jv;
Xh2p = JXh2 / Jv;
XIp = JXI / Jv;
Ssup = JSsu / Jv;
Saap = JSaa / Jv;
Sfap = JSfa / Jv;
Svap = JSva / Jv;
Sbup = JSbu / Jv;
Sprop = JSpro / Jv;
Sacp = JSac / Jv;
Sh2p = JSh2 / Jv;
Sch4p = JSch4 / Jv;
PHAp = JPHA / Jv;
XPHAp = JXPHA / Jv;
Xsp = JXs / Jv;
XSurfactp = JXSurfact / Jv;
der(PTm) = der(DPm * H);
//PTm=5000000;
//if noEvent((q4/A + Va/A) / 3600 / 24 * Vis * Rt > 5e5) then 5e5 else (q4/A + Va/A) / 3600 / 24 * Vis * Rt;
VisW = 0.001 * 1.78 * exp(-0.041 * T ^ 0.785);
VisWs = VisW * (0.0254 * (Xcf / 1000) ^ 2 - 0.1674 * Xcf / 1000 + 1.5918);
Vis = VisWs;
Visp = if Xcp > 0 then exp(log(VisW * (0.0254 * (Xcp / 1000) ^ 2 - 0.1674 * Xcp / 1000 + 1.5918))) else 0.001;
Visr = if Xcr > 0 then exp(log(VisW * (0.0254 * (Xcr / 1000) ^ 2 - 0.1674 * Xcr / 1000 + 1.5918))) else 0.001;
Rt = Rm + Rc;
der(Rc) = der(H) * Kc;
Kc = pi * PTm ^ pii;
der(H) = Jv * Omega * Xcf / Cc;
Ec = Cc / den;
//q4 = if noEvent(Jv * A * 3600 * 24 > q1) then q1 * 0.00001 else Jv * A * 3600 * 24;
q4 = 0.9 * q1;
Jv = q4 / 3600 / A / 24;
//der(Jv) = der(PTm / (Rt * Vis));
//der(1 / q4) = Rm * Vis / (PTm * A) * (Kc * q4 * Xsf * Vis / (2 * PTm * A ^ 2));
EC = ECRfi * q4 + ECRa * Va;
yT = EC * Eco2;
Out1.Q = q3;
Out1.Xc = Xcr;
Out1.Xch = Xchr;
Out1.Xpr = Xprr;
Out1.Xli = Xlir;
Out1.Xsu = Xsur;
Out1.Xaa = Xaar;
Out1.Xfa = Xfar;
Out1.Xch4 = Xch4r;
Out1.Xphe = Xpher;
Out1.Xpro = Xpror;
Out1.Xlim = Xlimr;
Out1.Xac = Xacr;
Out1.Xh2 = Xh2r;
Out1.XI = XIr;
Out1.Ssu = Ssur;
Out1.Saa = Saar;
Out1.Sfa = Sfar;
Out1.Sva = Svar;
Out1.Sbu = Sbur;
Out1.Spro = Spror;
Out1.Sac = Sacr;
Out1.Sh2 = Sh2r;
Out1.Sch4 = Sch4r;
Out1.Vis = Visr;
Out1.PHA = PHAr;
Out1.XPHA = XPHAr;
Out1.Xs = Xsr;
Out1.XSurfact = XSurfactr;
Out1.Fw = Fw;
Out1.So = In1.So;
Out2.Q = q4;
Out2.Xc = Xcp;
Out2.Xch = Xchp;
Out2.Xpr = Xprp;
Out2.Xli = Xlip;
Out2.Xsu = Xsup;
Out2.Xaa = Xaap;
Out2.Xfa = Xfap;
Out2.Xch4 = Xch4p;
Out2.Xphe = Xphep;
Out2.Xpro = Xprop;
Out2.Xlim = Xlimp;
Out2.Xac = Xacp;
Out2.Xh2 = Xh2p;
Out2.XI = XIp;
Out2.Ssu = Ssup;
Out2.Saa = Saap;
Out2.Sfa = Sfap;
Out2.Sva = Svap;
Out2.Sbu = Sbup;
Out2.Spro = Sprop;
Out2.Sac = Sacp;
Out2.Sh2 = Sh2p;
Out2.Sch4 = Sch4p;
Out2.Vis = Visp;
Out2.PHA = PHAp;
Out2.XPHA = XPHAp;
Out2.Xs = Xsp;
Out2.XSurfact = XSurfactp;
Out2.Fw = Fw;
Out2.So = In1.So;
end MicrofilterA;
model UltrafilterA
extends AFTERLIFE.Icons.Ultrafilter;
AFTERLIFE.Interfaces.InFlowAD In annotation(
Placement(visible = true, transformation(extent = {{-78, 54}, {-58, 74}}, rotation = 0), iconTransformation(extent = {{-90, 34}, {-70, 54}}, rotation = 0)));
AFTERLIFE.Interfaces.OutFlowAD Out1 annotation(
Placement(visible = true, transformation(extent = {{52, 54}, {72, 74}}, rotation = 0), iconTransformation(extent = {{70, 34}, {90, 54}}, rotation = 0)));
AFTERLIFE.Interfaces.OutFlowAD Out2 annotation(
Placement(visible = true, transformation(origin = {62, -40}, extent = {{-10, -10}, {10, 10}}, rotation = 0), iconTransformation(origin = {80, -24}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
//Parameters
parameter Real Beta = 0 "Filter medium resistance";
parameter Real Rm(unit = "m") = 3.7e11 "Membrane resistance";
parameter Real A(unit = "m2") = 0.005 "Membrane area";
parameter Real Dc = 0 "Diffusivity coefficient";
parameter Real Dch = 0 "Diffusivity coefficient";
parameter Real Dpr = 0 "Diffusivity coefficient";
parameter Real Dli = 0.0 "Diffusivity coefficient";
parameter Real Dsu = 1 "Diffusivity coefficient";
parameter Real Daa = 0.0 "Diffusivity coefficient";
parameter Real Dfa = 0.0 "Diffusivity coefficient";
parameter Real Dch4 = 0.0 "Diffusivity coefficient";
parameter Real Dpro = 0 "Diffusivity coefficient";
parameter Real Dac = 0.0 "Diffusivity coefficient";
parameter Real Dh2 = 0.0 "Diffusivity coefficient";
parameter Real DI = 0.5 "Diffusivity coefficient";
parameter Real DSsu = 1 "Diffusivity coefficient";
parameter Real DSaa = 1 "Diffusivity coefficient";
parameter Real DSfa = 1 "Diffusivity coefficient";
parameter Real DSva = 1 "Diffusivity coefficient";
parameter Real DSbu = 1 "Diffusivity coefficient";
parameter Real DSpro = 1 "Diffusivity coefficient";
parameter Real DSac = 1 "Diffusivity coefficient";
parameter Real DSh2 = 0.33 "Diffusivity coefficient";
parameter Real DSch4 = 0.33 "Diffusivity coefficient";
parameter Real DPHA = 0.0 "Diffusivity coefficient";
parameter Real DXPHA = 0.0 "Diffusivity coefficient";
parameter Real DXs = 0.0 "Diffusivity coefficient";