-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_BFD.tex
147 lines (126 loc) · 5.15 KB
/
model_BFD.tex
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
% Title: water_treatment model super structure
% Author: Malfrine Das
\documentclass[tikz,14pt,border=10pt]{standalone}
\usepackage{textcomp,tikz}
\usetikzlibrary{shapes,arrows}
\begin{document}
% Definition of blocks:
\tikzset{%
unit/.style = {draw, thick, rectangle, minimum height = 2em, minimum width = 4em},
splitter/.style = {draw, rectangle, minimum height = 1em, minimum width = 1em, fill = black},
dot/.style = {draw, circle, minimum height = 0.5em, minimum width = 0.5em, fill = black, inner sep=0pt},
mixer/.style = {draw, circle, node distance = 2cm, fill=black}
}
\tikzstyle{null} = [coordinate]
\begin{tikzpicture}[auto, node distance= 2cm, >=triangle 45]
\node[draw=none, fill=none] at (0,0) (start_pw) {pw};
\node[draw=none, fill=none, below of = start_pw] (start_muw) {muw};
\node[draw=none, fill=none, below of = start_muw] (start_bbd) {bbd};
%mixer 6
\draw
node [mixer, right of = start_pw] (mixer6_pw) {}
node [mixer, right of = start_bbd] (mixer6_bbd) {};
%splitter 1
\draw
node [splitter, right of = mixer6_pw] (splitter1_pw) {}
node [splitter, below of = splitter1_pw] (splitter1_muw) {}
node [splitter, below of = splitter1_muw] (splitter1_bbd) {};
%mixer 1
\draw
node [mixer, right of = splitter1_pw] (mixer1_orf) {}
node [mixer, above of = mixer1_orf] (mixer1_igf) {}
node [mixer, above of = mixer1_igf] (mixer1_st) {}
node [mixer, below of = mixer1_orf] (mixer1_hcy) {}
node [mixer, below of = mixer1_hcy] (mixer1_ls) {}
node [mixer, below of = mixer1_ls] (mixer1_wac) {}
node [mixer, below of = mixer1_wac] (mixer1_evap) {};
%treatment units
\draw
node [unit, right of = mixer1_st] (st) {st}
node [unit, below of = st] (igf) {igf}
node [unit, below of = igf] (orf) {orf}
node [unit, below of = orf] (hcy) {hcy}
node [unit, below of = hcy] (ls) {ls}
node [unit, below of = ls] (wac) {wac}
node [unit, below of = wac] (evap) {evap};
%mixer 2
\draw
node [dot, above right of = st, yshift = -0.5cm] (mixer2_st) {}
node [dot, below of = mixer2_st] (mixer2_igf) {}
node [dot, below of = mixer2_igf] (mixer2_orf) {}
node [dot, below of = mixer2_orf] (mixer2_hcy) {}
node [dot, below of = mixer2_hcy] (mixer2_ls) {}
node [dot, below of = mixer2_ls] (mixer2_wac) {}
node [dot, below of = mixer2_wac] (mixer2_evap) {};
\draw
node [null, left of = mixer2_st] (m2null_st) {}
node [null, left of = mixer2_igf] (m2null_igf) {}
node [null, left of = mixer2_orf] (m2null_orf) {}
node [null, left of = mixer2_hcy] (m2null_hcy) {}
node [null, left of = mixer2_ls] (m2null_ls) {}
node [null, left of = mixer2_wac] (m2null_wac) {}
node [null, left of = mixer2_evap] (m2null_evap) {};
%splitter 2
\draw
node [splitter, below right of = mixer2_st, yshift = 0.5cm, xshift = 0.5cm] (splitter2_st) {}
node [splitter, below of = splitter2_st] (splitter2_igf) {}
node [splitter, below of = splitter2_igf] (splitter2_orf) {}
node [splitter, below of = splitter2_orf] (splitter2_hcy) {}
node [splitter, below of = splitter2_hcy] (splitter2_ls) {}
node [splitter, below of = splitter2_ls] (splitter2_wac) {}
node [splitter, below of = splitter2_wac] (splitter2_evap) {};
%mixer 3
\draw
node [mixer, right of = splitter2_orf] (mixer3_db) {}
node [mixer, below of = mixer3_db] (mixer3_hrsg) {}
node [mixer, below of = mixer3_hrsg] (mixer3_otsg) {};
%steam generation
\draw
node [unit, right of = mixer3_db] (db) {db}
node [unit, below of = db] (hrsg) {hrsg}
node [unit, below of = hrsg] (otsg) {otsg};
%mixer 4
\draw
node [mixer, right of = db, yshift = -1cm] (mixer4_wi) {}
node [mixer, below of = mixer4_wi ] (mixer4_eg) {};
%production
\draw
node [unit, right of = mixer4_wi] (wi) {wi}
node [unit, below of = wi] (eg) {eg};
%prod recycle to pw
\draw
node [null, below of = wi, yshift =8.5cm] (pr1) {pr1}
node [null] (pr2) at (pr1 -| mixer6_pw) {pr2};
%db recycle to bbd
\draw
node [null, below of = otsg, yshift = -3cm] (otsgr1) {otsgr1}
node [null] (otsgr2) at (otsgr1 -| mixer6_bbd) {otsgr2}
node [null] (egr) at (otsgr1 -| eg) {egr};
%unit class labels
\node[above of = splitter1_pw, yshift = 4cm] (s1_label) {s1};
\node[draw=none, fill=none, above of = mixer1_st] (m1_label) {m1};
\node[draw=none, fill=none, above of = st] (tu_label) {tu};
\node[draw=none, fill=none, above of = mixer2_st, yshift = -0.91cm] (m2_label) {m2};
\node[draw=none, fill=none, above of = splitter2_st] (s2_label) {s2};
\node[draw=none, fill=none, above of = mixer3_db, yshift = 4cm] (m3_label) {m3};
\node[draw=none, fill=none, above of = db, yshift = 3.9cm] (sgu_label) {sgu};
\node[draw=none, fill=none, above of = mixer4_wi, yshift = 4.95cm] (m4_label) {m4};
\node[draw=none, fill=none, above of = wi, yshift = 4.95cm] (prod_label) {prod};
%arrows
%start to s1
\draw[->](mixer6_pw)--(splitter1_pw);
\draw[->](start_muw)--(splitter1_muw);
\draw[->](mixer6_bbd)--(splitter1_bbd);
\input{arrows.tex}
%pu to m5
\draw[-] (wi) -- (pr1);
\draw[-] (eg) -- (egr);
\draw[-] (egr) -- (otsgr1);
%pr to pw
\draw[-] (pr1) -- (pr2);
\draw[->] (pr2) -- (mixer6_pw);
%otsgr to bbd
\draw[-] (otsgr1) -- (otsgr2);
\draw[->] (otsgr2) -- (mixer6_bbd);
\end{tikzpicture}
\end{document}