Debian Codegraph @

texmf-dist/doc/latex/pfdicons/pfdicons-doc.tex

raw
1 \documentclass[11pt]{article}
2 \usepackage[margin=1in]{geometry}
3 \usepackage{tikz, stix2, inconsolata, ifthen, lipsum, array, xspace, listings, booktabs, adjustbox, longtable, enumitem, amsmath, siunitx}
4 \usepackage[hidelinks, colorlinks=true, linkcolor=red]{hyperref}
5 \usetikzlibrary{positioning, shapes, arrows.meta, matrix, calc, intersections, spath3, plotmarks, fit, decorations.pathmorphing, quotes}
6 \usepackage{pfdicons}
7
8 \definecolor{LightGray}{gray}{0.93}
9 \lstset{
10 language=[LaTeX]TeX,
11 texcsstyle=*\bfseries,
12 commentstyle=\color{gray}\ttfamily,
13 emph={draw, node, path, coordinate}, emphstyle=\bfseries,
14 tabsize=3,
15 numbers=left,
16 breaklines=true,
17 backgroundcolor=\color{LightGray},
18 basicstyle=\footnotesize\ttfamily,
19 xleftmargin=5ex,
20 xrightmargin=4ex}
21 \lstMakeShortInline|
22
23 % Attempt to improve copy/paste for code:
24 \usepackage{accsupp}
25 \lstset{numberstyle=\color{gray}\small\noncopynumber, columns=fullflexible}
26 \newcommand{\noncopynumber}[1]{
27 \BeginAccSupp{method=escape,ActualText={}}
28 #1\hspace{-1em}
29 \EndAccSupp{}
30 }
31
32 \newcommand\Tikz{Ti\textit{k}Z\xspace}
33 \newcommand\redtt[1]{{\color{red}\texttt{#1}}}
34 \newcommand\boldtt[1]{\textbf{\texttt{#1}}}
35
36 \def\markpolar{
37 \foreach \theta in {0,10,20,...,350}{
38 \fill[red] (f.\theta) circle (0.75pt);
39 }
40 }
41
42 \def\scalegrid{
43 \draw[help lines, blue!5, step=1mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
44 \draw[help lines, blue!10, step=5mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
45 \draw[red!20, thin] (-10mm,0mm) to (10mm, 0mm);
46 \draw[red!20, thin] (0mm, -10mm) to (0mm, 10mm);
47 \node[left] at (-10mm,0mm) {\color{blue!20}0};
48 \node[left] at (-10mm,5mm) {\color{blue!20}$+5$};
49 \node[left] at (-10mm,-5mm) {\color{blue!20}$-5$};
50 \node[left] at (-10mm,10mm) {\color{blue!20}$+10$};
51 \node[left] at (-10mm,-10mm){\color{blue!20}$-10$};
52 \node[anchor=north east] at (12mm,-10mm) {\color{blue!20}mm};
53 }
54
55 \newcommand\plainicon[1]{
56 \node[#1] {};
57 }
58
59 \newcommand\scaleicon[1]{
60 \scalegrid
61 \node[#1] {};
62 }
63
64 \newcommand\anchoricon[2]{
65 \node[#1, scale=#2, draw=lightgray, thick] (f) {};
66 \node[red] at (f.center) {$\times$};
67 }
68
69 \def\markcardinal{
70 \foreach \anchor/\pos in {
71 n/above,
72 e/right,
73 w/left,
74 s/below}
75 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
76 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
77 }
78
79 \def\markoffcardinal{
80 \foreach \anchor/\pos in {
81 ne/right,
82 nw/left,
83 se/right,
84 sw/left}
85 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
86 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
87 }
88
89
90
91
92
93
94
95 \title{The \boldtt{pfdicons} Package: Documentation}
96 \author{\Large Aaron Drews\\ \texttt{[email protected]}}
97 \date{v1.1 from 2026/02/11}
98 \setcounter{tocdepth}{2}
99
100 \begin{document}
101 \maketitle
102
103 \tableofcontents
104
105
106 \section{Introduction}
107 This package provides \Tikz shapes and a few supporting functions to draw icons and streams for process flow diagrams (PFDs) in chemical engineering. Unit operations provided by this package are expected to cover--in Turton's estimate--about 90\% of fluid processing systems. Additional icons have been provided for solids processing, instrumentation, safety, and stream labeling and descriptions.
108
109 This package was developed to support students and faculty in undergraduate chemical engineering courses where excessive detail and customization are not necessary to convey meaning, as opposed to professionals who may require more customization than this package currently provides. Examples from several standard textbooks in undergraduate chemical engineering have been reproduced in the Examples section to illustrate the applicability of this package. A visual summary of all process units is provided at the end of this document as a quick reference.
110
111 \section{Usage}
112 To use this package simply provide
113 \begin{lstlisting}[numbers=none]
114 \usepackage{tikz}
115 \usepackage{pfdicons}
116 \end{lstlisting}
117 in your preamble. The |tikz| package must be loaded first. The |pfdicons| package automatically loads the |ifthen| package as well as the following \Tikz libraries: |positioning|, |shapes|, |arrows.meta|, and |spath3|. Most shapes provided by the package are drawn within a |tikzpicture|
118 environment using the basic syntax
119 \begin{lstlisting}[numbers=none]
120 \begin{tikzpicture}
121 \node[<shape>] {};
122 \end{tikzpicture}
123 \end{lstlisting}
124 where |<shape>| is the desired process unit. Like most \Tikz shapes the icons provided by |pfdicons| can be scaled, rotated, and colored in the usual ways:
125 \begin{center}
126 \begin{minipage}{5in}
127 \begin{lstlisting}
128 \begin{tikzpicture}
129 \node[basic hx] at (0,0) {};
130 \node[basic hx, draw=blue] at (1,0) {};
131 \node[basic hx, draw=red, fill=yellow] at (0,-1) {};
132 \node[basic hx, scale=0.75, rotate=90, anchor=center] at (1,-1) {};
133 \end{tikzpicture}
134 \end{lstlisting}
135 \end{minipage}\hspace{0.25in}
136 \begin{minipage}{1in}
137 \begin{center}
138 \begin{tikzpicture}
139 \node[basic hx] at (0,0) {};
140 \node[basic hx, draw=blue] at (1,0) {};
141 \node[basic hx, draw=red, fill=yellow] at (0,-1) {};
142 \node[basic hx, scale=0.75, rotate=90, thick] at (1,-1) {};
143 \end{tikzpicture}
144 \end{center}
145 \end{minipage}
146 \end{center}
147 Two additional PGF keys are available for some process units: |unit int| which modifies the interior contents of the process unit, and |unit ext| which modifies the exterior of the process unit.\footnote{A few other keys are available for specific units and are introduced in the documentation for those units.} These keys can be used as
148 \begin{lstlisting}[numbers=none]
149 \node[<shape>, unit int=<intopt>, unit ext=<extopt>] {};
150 \end{lstlisting}
151 where |<intopt>| and |<extopt>| are interior and exterior options specific to the process unit. For most process units both keys can be used to combine effects. For example, the |basic hx| shape drawn above has keys |U tube| and |stems| which can be combined as follows:
152 \begin{center}
153 \begin{minipage}{5in}
154 \begin{lstlisting}
155 \begin{tikzpicture}
156 \node[basic hx] at (0,0) {};
157 \node[basic hx, unit ext=util] at (1,0) {};
158 \node[basic hx, unit fill=U tube] at (0,-1) {};
159 \node[basic hx, unit fill=U tube, unit ext=util] at (1,-1) {};
160 \end{tikzpicture}
161 \end{lstlisting}
162 \end{minipage}\hspace{0.25in}
163 \begin{minipage}{1in}
164 \begin{center}
165 \begin{tikzpicture}
166 \node[basic hx] at (0,0) {};
167 \node[basic hx, unit ext=util] at (1,0) {};
168 \node[basic hx, unit int=U tube] at (0,-1) {};
169 \node[basic hx, unit int=U tube, unit ext=util] at (1,-1) {};
170 \end{tikzpicture}
171 \end{center}
172 \end{minipage}
173 \end{center}
174 Since the flowsheet icons are intended to be geometric shapes \textit{the curly braces should always be empty}; that is, text cannot be directly included as part of the node. Annotations and labels of shapes from |pfdicons| can be included as labels or separate nodes:
175 \begin{center}
176 \begin{minipage}{5in}
177 \begin{lstlisting}
178 \begin{tikzpicture}
179 % No:
180 \node[basic hx] at (0,0) {H-101};
181
182 % Yes, as a separate node:
183 \node[basic hx, blue] at (0,-1.5) (g) {};
184 \node[right] at (g.east) {H-101};
185
186 % Yes, using standard label syntax:
187 \node[basic hx, red, label={right:H-101}] at (0,-3) {};
188
189 % Yes, with \usetikzlibrary{quotes} syntax:
190 \node[basic hx, brown, "H-101" right] at (0,-4.5) {};
191 \end{tikzpicture}
192 \end{lstlisting}
193 \end{minipage}\hspace{0.25in}
194 \begin{minipage}{1in}
195 \begin{center}
196 \begin{tikzpicture}
197 % No:
198 \node[basic hx] at (0,0) {H-101};
199
200 % Yes, as a separate node:
201 \node[basic hx, blue] at (0,-1.5) (g) {};
202 \node[right] at (g.east) {H-101};
203
204 % Yes, using standard label syntax:
205 \node[basic hx, red, label={right:H-101}] at (0,-3) {};
206
207 % Yes, with \usetikzlibrary{quotes} syntax:
208 \node[basic hx, brown, "H-101" right] at (0,-4.5) {};
209 \end{tikzpicture}
210 \end{center}
211 \end{minipage}
212 \end{center}
213
214 \subsection{Anchors, anchor aliases, and polar coordinate specification}
215 All process units have the standard cardinal and off-cardinal anchors which can be accessed using the standard \Tikz anchor notation such as |f.north| or |mycolumn.south east|. Some units have additional anchors on half-cardinal points (\textit{e.g.}, |north north east| or |east south east|) or special process unit features (\textit{e.g.}, |east jacket| or |actuator|).
216
217 All cardinal anchors of custom shapes provided by the |pfdicons| package are \textbf{aliased with abbreviated versions}, \textit{e.g.}, |n| for |north|, |ene| for |east north east|, \textit{etc.} to allow for shortened code. Full anchor names can always be used to provide syntax consistency with core \Tikz.
218
219 Most shapes support polar coordinate specifications such as |mycolumn.75| (as of v1.1). The border on which anchors specified in this manner will appear \textit{mostly} coincides with the anchors described above but some icons may have variations.
220
221 The following shapes are used to denote various anchors in this documentation:
222 \begin{center}
223 \begin{tabular}{cl}
224 \tikz\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=0.6em] {}; & cardinal and off-cardinal anchors such as |north|, |south east|, |w|, |nw|, \textit{etc}. \\
225 \tikz\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=0.6em] {}; & special anchors for specific icon locations, \textit{e.g.} |north motor|, |east jacket|, \textit{etc}. \\
226 \tikz\node[circle, fill=red, inner sep=0pt, minimum size=0.3em] {}; & anchor border for anchors placed using polar notation such as |shape.75|, |shape.-135|, \textit{etc}.\\
227 \tikz[baseline=-0.5ex]\node[red]{$\times$}; & |center| anchor of node \\
228 \end{tabular}
229 \end{center}
230
231
232 \section{Process units}
233 \subsection{Reactors}
234 \subsubsection{Tank reactor}
235 \begin{lstlisting}[numbers=none]
236 \node[tank reactor] {};
237 \end{lstlisting}
238 \begin{figure}[h!]
239 \centering
240 \begin{tikzpicture}[line width=0.6pt]
241 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
242 \node[tank reactor] {};
243
244 &
245
246 \scalegrid
247 \node[tank reactor] {};
248
249 &
250
251 \node[tank reactor, scale=1.5, draw=lightgray, thick] (f) {};
252 \markpolar
253
254 \foreach \anchor/\pos in {
255 n/above,
256 e/right,
257 w/left,
258 s/below}
259 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
260 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
261
262 \foreach \anchor/\pos in {
263 ne/right,
264 nw/left,
265 se/right,
266 sw/left,
267 nne/above right,
268 nnw/above left,
269 sse/below right,
270 ssw/below left,
271 ese/right,
272 wsw/left}
273 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
274 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
275
276 \node[red] at (f.center) {$\times$};
277 \\
278 };
279 \end{tikzpicture}
280 \end{figure}
281 The |tank reactor| shape provides a cylindrical tank reactor, also referred to as a stirred-tank reactor, continuous stirred-tank reactor (CSTRs), or autoclave. The |center| anchor is offset slightly to accommodate fill and interior options as described below. Several key modifiers are available:
282
283 \begin{center}
284 \begin{longtable}{p{1.2in}p{2.5in}c}
285 \caption{Key-value pairs for the \boldtt{tank reactor} shape.}\\
286 \toprule
287 \texttt{key=value} & Description & Example \\
288 \midrule
289 \endfirsthead
290
291 \multicolumn{3}{c}{\tablename\ \thetable: Key-value pairs for the \boldtt{tank reactor} shape \textit{(cont'd)}} \\
292 \midrule
293 \endhead
294
295 \bottomrule
296 \endfoot
297
298 \bottomrule
299 \endlastfoot
300
301 \texttt{unit int=stirred} & Adds a rounded stirrer with motor and
302 mixing blade. Three additional anchors are specific to this option:
303 \redtt{west motor}, \redtt{north motor}, and \redtt{east motor}. &
304 \adjustbox{valign=t}{
305 \begin{tikzpicture}
306 \node[tank reactor, unit int=stirred] (f) {};
307 \node[tank reactor, unit int=stirred, above=of f.north] {};
308 \foreach \anchor/\pos in {
309 west motor/left,
310 north motor/above,
311 east motor/right}
312 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
313 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
314
315 \end{tikzpicture}} \\
316 & & \\
317
318 \texttt{unit int=liquid} & Adds wavy lines from |west| to |east| to
319 indicate a liquid surface. &
320 \adjustbox{valign=t}{
321 \begin{tikzpicture}
322 \node[tank reactor, unit int=liquid] {};
323 \end{tikzpicture}} \\
324 & & \\
325
326 \texttt{unit int=stirred} \texttt{liquid} & A combination of |unit int=stirred| and |unit int=liquid|.
327 &
328 \adjustbox{valign=t}{
329 \begin{tikzpicture}
330 \node[tank reactor, unit int=stirred liquid] {};
331 \end{tikzpicture}} \\
332 & & \\
333
334 \texttt{unit ext=lower} \texttt{jacket} & Adds a jacket around the lower portion of the reactor. Two additional anchors are specific to this option: \redtt{west jacket} and \redtt{east jacket}. &
335 \adjustbox{valign=t}{
336 \begin{tikzpicture}
337 \node[tank reactor, unit ext=lower jacket] (f) {};
338 \foreach \anchor/\pos in {
339 west jacket/left,
340 east jacket/right}
341 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};}
342
343 \node[align=left, anchor=west] at (f.east jacket) {\footnotesize\texttt{east}\\ \footnotesize\texttt{jacket}};
344 \node[align=right, anchor=east] at (f.west jacket) {\footnotesize\texttt{west}\\ \footnotesize\texttt{jacket}};
345 \end{tikzpicture}} \\
346 & & \\
347
348 \texttt{unit ext=side} \texttt{jacket} & Adds a jacket around the side of the reactor. Several additional anchors available: \redtt{west jacket}, \redtt{north west jacket}, \redtt{south west jacket}, \redtt{east jacket}, \redtt{north east jacket}, and \redtt{south east jacket}. &
349 \adjustbox{valign=t}{
350 \begin{tikzpicture} [font=\footnotesize\ttfamily]
351 \node[tank reactor, unit ext=side jacket] (f) {};
352 \foreach \anchor in {
353 west jacket,
354 east jacket,
355 north west jacket,
356 north east jacket,
357 south west jacket,
358 south east jacket}
359 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};}
360
361 \node[align=left, anchor=west] at (f.east jacket) {east jacket};
362 \node[align=left, anchor=south west] at (f.north east jacket) {north east\\[-3pt]jacket};
363 \node[align=left, anchor=north west] at (f.south east jacket) {south east\\[-3pt]jacket};
364 \node[align=right, anchor=east] at (f.west jacket) {west jacket};
365 \node[align=right, anchor=south east] at (f.north west jacket) {north west\\[-3pt]jacket};
366 \node[align=right, anchor=north east] at (f.south west jacket) {south west\\[-3pt]jacket};
367
368 \end{tikzpicture}} \\
369 \end{longtable}
370 \end{center}
371
372
373
374
375 \subsubsection{Tube reactor}
376 \begin{lstlisting}{numbers=none}
377 \node[tube reactor] {};
378 \end{lstlisting}
379 \begin{figure}[h!]
380 \centering
381 \begin{tikzpicture}[line width=0.6pt]
382 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
383 \node[tube reactor] {};
384 &
385 \scalegrid
386 \node[tube reactor] {};
387 &
388 \node[tube reactor, scale=1.8, draw=lightgray, thick] (f) {};
389 \markpolar
390
391 \foreach \anchor/\pos in {
392 n/above,
393 e/right,
394 w/left,
395 s/below}
396 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
397 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
398
399 \foreach \anchor/\pos in {
400 ne/above right,
401 nw/above left,
402 se/below right,
403 sw/below left,
404 nne/above,
405 nnw/above,
406 sse/below,
407 ssw/below,
408 ese/right,
409 wsw/left,
410 wnw/left,
411 ene/right}
412 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
413 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
414
415 \node[red] at (f.center) {$\times$};
416
417 \\
418 };
419 \end{tikzpicture}
420 \end{figure}
421 The |tube reactor| shape provides a horizontal cylinder with curved sides to be used for such reactors as plug flow reactors, packed bed reactors, fixed bed reactors, tubular reactors, and so forth. Several key-value pairs can be provided to indicate common fills and utility features:
422 \begin{center}
423 \begin{longtable}{p{1.5in}p{3in}c}
424 \caption{Key-value pairs for the \boldtt{tube reactor} shape.}\\
425 \toprule
426 \texttt{key=value} & Description & Example \\
427 \midrule
428 \endfirsthead
429
430 \multicolumn{3}{c}{\tablename\ \thetable: Key-value pairs for the \boldtt{tube reactor} shape \textit{(cont'd)}} \\
431 \midrule
432 \endhead
433
434 \bottomrule
435 \endfoot
436
437 \bottomrule
438 \endlastfoot
439
440 \texttt{unit int=packed} & Adds a cross representing a packed, dumped, or random fill within the reactor. &
441 \adjustbox{valign=t}{
442 \begin{tikzpicture}
443 \node[tube reactor, unit int=packed] {};
444 \end{tikzpicture}} \\
445 & & \\
446 \texttt{unit int=fixed} & Adds angled lines representing a fixed bed.&
447 \adjustbox{valign=t}{
448 \begin{tikzpicture}
449 \node[tube reactor, unit int=fixed] {};
450 \end{tikzpicture}} \\
451 & & \\
452 \texttt{unit int=tubular} & Adds horizontal lines representing tubes for (\textit{e.g.}) shell-and-tube reactors, double-pipe reactors, and so forth.&
453 \adjustbox{valign=t}{
454 \begin{tikzpicture}
455 \node[tube reactor, unit int=tubular] {};
456 \end{tikzpicture}} \\
457
458 & & \\
459 \texttt{unit ext=cis shell} & Adds two shell-side stems, both on the north side with anchors \redtt{west shell} and \redtt{east shell}. Stems can be moved to the south side by rotating (|rotate=180|) or scaling (|yscale=-1|) the node. &
460 \adjustbox{valign=t}{
461 \begin{tikzpicture}[font=\footnotesize\ttfamily]
462 \node[tube reactor, unit ext=cis shell] (f) {};
463 \foreach \anchor in {west shell, east shell}
464 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};}
465 \node[align=right, anchor=south east] at (f.west shell) {west\\[-3pt]shell};
466 \node[align=left, anchor=south west] at (f.east shell) {east\\[-3pt]shell};
467 \end{tikzpicture}} \\
468
469 & & \\
470 \texttt{unit ext=trans shell} & Adds two shell-side stems, one on the north side and one on the south side, with anchors \redtt{north shell} and \redtt{south shell}. Stem locations can be swapped by scaling the node (|yscale=-1| or |xscale=-1|). &
471 \adjustbox{valign=t}{
472 \begin{tikzpicture}[font=\footnotesize\ttfamily]
473 \node[tube reactor, unit ext=trans shell] (f) {};
474 \foreach \anchor in {north shell, south shell}
475 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};}
476 \node[align=right, anchor=south east] at (f.north shell) {north\\[-3pt]shell};
477 \node[align=left, anchor=north west] at (f.south shell) {south\\[-3pt]shell};
478 \end{tikzpicture}} \\
479 \end{longtable}
480 \end{center}
481
482
483
484
485
486
487 \subsection{Heat exchangers}
488 \subsubsection{Basic heat exchanger}
489 \begin{lstlisting}[numbers=none]
490 \node[basic hx] {};
491 \end{lstlisting}
492 \begin{figure}[h!]
493 \centering
494 \begin{tikzpicture}[line width=0.6pt]
495 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
496 \node[basic hx] {};
497 &
498 \scalegrid
499 \node[basic hx] {};
500 &
501 \node[basic hx, scale=1.5, draw=lightgray, thick] (f) {};
502 \markpolar
503
504 \foreach \anchor/\pos in {
505 n/above,
506 e/right,
507 w/left,
508 s/below}
509 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
510 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
511
512 \foreach \anchor/\pos in {
513 ne/above right,
514 nw/above left,
515 se/below right,
516 sw/below left}
517 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
518 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
519
520 \node[red] at (f.center) {$\times$};
521 \\
522 };
523 \end{tikzpicture}
524 \end{figure}
525 The |basic hx| shape provides a circle with a jagged interior line and represents a generic heat exchange unit. Only the four cardinal and intercardinal anchors are used; the half-cardinals |nnw|, |nne|, |ssw|, and |sse| anchors are not used. Protrusions from the inner ``tube'' line can be added to provide additional indication of tube-side fluids, typically to indicate utility fluids (hence the |util| value). Additional anchors can be used to place labels at ends of the protrusions.
526 \begin{center}
527 \begin{longtable}{p{1.5in}p{3in}c}
528 \caption{Key-value pairs for the \boldtt{basic hx} shape.}\\
529 \toprule
530 \texttt{key=value} & Description & Example \\
531 \midrule
532 \endfirsthead
533
534 \multicolumn{3}{c}{\tablename\ \thetable: Key-value pairs for the \boldtt{basic hx} shape \textit{(cont'd)}} \\
535 \midrule
536 \endhead
537
538 \bottomrule
539 \endfoot
540
541 \bottomrule
542 \endlastfoot
543
544 \texttt{unit ext=util} & Adds protrusions from the inner tube, typically to indicate utility fluids. Additional anchors \redtt{south util} and \redtt{north util} are available at the terminals. &
545 \adjustbox{valign=t}{
546 \begin{tikzpicture}
547 \node[basic hx, unit ext=util] (f) {};
548 \foreach \anchor/\pos in {
549 north util/above,
550 south util/below}
551 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
552 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
553 \end{tikzpicture}} \\
554 & & \\
555 \texttt{unit int=U tube} & Modifies interior to a generic U-tube orientation with both tube points on the same shell side. The |south west| and |south east| anchors are located at these tube points. &
556 \adjustbox{valign=t}{
557 \begin{tikzpicture}
558 \node[basic hx, unit int=U tube] {};
559 \end{tikzpicture}} \\
560 & & \\
561 \texttt{unit int=U tube,}\newline \texttt{unit ext=util} & Modifies interior to U-tube orientation and adds protrusions, typically to indicate utility fluids. Additional anchors \redtt{west util} and \redtt{east util} are available at the terminals. &
562 \adjustbox{valign=t}{
563 \begin{tikzpicture}
564 \node[basic hx, unit int=U tube, unit ext=util] (f) {};
565 \foreach \anchor/\pos in {
566 west util/below left,
567 east util/below right}
568 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
569 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
570 \end{tikzpicture}} \\
571 \end{longtable}
572 \end{center}
573
574
575 \subsubsection{Shell and tube heat exchanger}
576 \begin{lstlisting}[numbers=none]
577 \node[shell and tube hx] {};
578 \end{lstlisting}
579 \begin{figure}[h!]
580 \centering
581 \begin{tikzpicture}[line width=0.6pt]
582 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
583 \node[shell and tube hx] (g) {};
584 &
585 \scalegrid
586 \node[shell and tube hx] {};
587 &
588 \node[shell and tube hx, scale=1.5, draw=lightgray, thick] (f) {};
589 \markpolar
590
591 \foreach \anchor/\pos in {
592 n/above,
593 e/right,
594 w/left,
595 s/below}
596 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
597 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
598
599 \foreach \anchor/\pos in {
600 ne/above right,
601 nw/above left,
602 se/below right,
603 sw/below left,
604 nne/above,
605 nnw/above,
606 sse/below,
607 ssw/below,
608 ese/right,
609 wsw/left,
610 wnw/left,
611 ene/right}
612 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
613 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
614
615 \node[red] at (f.center) {$\times$};
616 \\
617 };
618 \end{tikzpicture}
619 \end{figure}
620 The |shell and tube hx| shape provides a rectangle with an inner set of horizontal lines representing a shell and tube heat exchanger. Keys can modify the appearance to provide shell-side stems or modify the tube ends to represent two-pass or four-pass arrangements.
621 \begin{center}
622 \begin{longtable}{p{1.5in}p{3in}c}
623 \caption{Key-value pairs for the \boldtt{shell and tube hx} shape.}\\
624 \toprule
625 \texttt{key=value} & Description & Example \\
626 \midrule
627 \endfirsthead
628
629 \multicolumn{3}{c}{\tablename\ \thetable: Key-value pairs for the \boldtt{shell and tube hx} shape \textit{(cont'd)}} \\
630 \midrule
631 \endhead
632
633 \bottomrule
634 \endfoot
635
636 \bottomrule
637 \endlastfoot
638
639 \texttt{unit int=two pass} & Adds a horizontal line on the west shell side to indicate a two-pass heat exchanger.&
640 \adjustbox{valign=t}{
641 \begin{tikzpicture}
642 \node[shell and tube hx, unit int=two pass] (f) {};
643 \end{tikzpicture}} \\
644 & & \\
645 \texttt{unit int=four pass} & Adds two horizontal line on the west shell side and one on the east to indicate a four-pass heat exchanger.&
646 \adjustbox{valign=t}{
647 \begin{tikzpicture}
648 \node[shell and tube hx, unit int=four pass] (f) {};
649 \end{tikzpicture}} \\
650 & & \\
651
652 \texttt{unit ext=cis shell} & Adds two shell-side stems, both on the north side with anchors \redtt{west shell} and \redtt{east shell}. Stems can be moved to the south side by rotating (|rotate=180|) or scaling (|yscale=-1|) the node. &
653 \adjustbox{valign=t}{
654 \begin{tikzpicture}[font=\footnotesize\ttfamily]
655 \node[shell and tube hx, unit ext=cis shell] (f) {};
656 \foreach \anchor in {west shell, east shell}
657 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};}
658 \node[align=right, anchor=south east] at (f.west shell) {west\\[-3pt]shell};
659 \node[align=left, anchor=south west] at (f.east shell) {east\\[-3pt]shell};
660 \end{tikzpicture}} \\
661
662 & & \\
663 \texttt{unit ext=trans shell} & Adds two shell-side stems, one on the north side and one on the south side, with anchors \redtt{north shell} and \redtt{south shell}. Stem locations can be swapped by scaling the node (|yscale=-1| or |xscale=-1|). &
664 \adjustbox{valign=t}{
665 \begin{tikzpicture}[font=\footnotesize\ttfamily]
666 \node[shell and tube hx, unit ext=trans shell] (f) {};
667 \foreach \anchor in {north shell, south shell}
668 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};}
669 \node[align=right, anchor=south east] at (f.north shell) {north\\[-3pt]shell};
670 \node[align=left, anchor=north west] at (f.south shell) {south\\[-3pt]shell};
671 \end{tikzpicture}} \\
672 \end{longtable}
673 \end{center}
674
675
676
677 \subsubsection{Plate heat exchanger}
678 \begin{lstlisting}[numbers=none]
679 \node[plate hx] {};
680 \end{lstlisting}
681 \begin{figure}[h!]
682 \centering
683 \begin{tikzpicture}[line width=0.6pt]
684 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
685 \node[plate hx] {};
686 &
687 \scalegrid
688 \node[plate hx] {};
689 &
690 \node[plate hx, scale=1.8, draw=lightgray, thick] (f) {};
691 \markpolar
692
693 \foreach \anchor/\pos in {
694 n/above,
695 e/right,
696 w/left,
697 s/below}
698 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
699 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
700
701 \foreach \anchor/\pos in {
702 ne/above right,
703 nw/above left,
704 se/below right,
705 sw/below left,
706 nne/above,
707 nnw/above,
708 sse/below,
709 ssw/below,
710 ese/right,
711 wsw/left,
712 wnw/left,
713 ene/right}
714 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
715 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
716
717 \node[red] at (f.center) {$\times$};
718 \\
719 };
720 \end{tikzpicture}
721 \end{figure}
722 The |plate hx| shape provides a rectangle with an inner set of vertical lines representing a plate-and-frame heat exchanger. This unit has no |key=value| pairs for additional modification.
723
724
725 \subsubsection{Fired heater}
726 \begin{lstlisting}[numbers=none]
727 \node[fired hx] {};
728 \end{lstlisting}
729 \begin{figure}[h!]
730 \centering
731 \begin{tikzpicture}[line width=0.6pt]
732 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
733 \node[fired hx] {};
734 &
735 \scalegrid
736 \node[fired hx] {};
737 &
738 \node[fired hx, scale=1, draw=lightgray, thick] (f) {};
739 \markpolar
740
741 \foreach \anchor/\pos in {
742 n/above,
743 e/right,
744 w/left,
745 s/below}
746 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
747 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
748
749 \foreach \anchor/\pos in {
750 ne/above right,
751 nw/above left,
752 se/right,
753 sw/left,
754 nne/right,
755 nnw/left,
756 sse/below right,
757 ssw/below left,
758 ese/below right,
759 wsw/below left,
760 wnw/left,
761 ene/right}
762 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
763 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
764
765 \node[red] at (f.center) {$\times$};
766 \\
767 };
768 \end{tikzpicture}
769 \end{figure}
770 The |fired hx| shape provides a square unit with tapered chimney representing a fired heat exchanger or fired heater. A horizontal through-line represents the process tube; a small circular icon at the bottom indicates the combustion region of the heat exchanger. The default number of process tubes is one (|unit int=single| or omitted) but additional process tubes can be added using the |unit int| key. Inlets and outlets will shift to correspond to half-cardinal anchors as shown below.
771 \begin{center}
772 \begin{longtable}{p{1.5in}p{3in}c}
773 \caption{Key-value pairs for the \boldtt{fired hx} shape.}\\
774 \toprule
775 \texttt{key=value} & Description & Example \\
776 \midrule
777 \endfirsthead
778
779 \multicolumn{3}{c}{\tablename\ \thetable: Key-value pairs for the \boldtt{fired hx} shape \textit{(cont'd)}} \\
780 \midrule
781 \endhead
782
783 \bottomrule
784 \endfoot
785
786 \bottomrule
787 \endlastfoot
788
789 \texttt{unit int=double} & Provides two tubes roughly corresponding to
790 the radiative and convective zones. &
791 \adjustbox{valign=t}{
792 \begin{tikzpicture}
793 \node[fired hx, unit int=double] (f) {};
794 \foreach \anchor/\pos in {
795 ese/right,
796 wsw/left,
797 wnw/left,
798 ene/right}
799 {\node[circle, draw, blue, fill=blue, inner sep=0pt, minimum size=2pt] at (f.\anchor) {};
800 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
801 \end{tikzpicture}} \\
802 & & \\
803 \texttt{unit int=triple} & Provides three tubes roughly corresponding to a radiative zone and two convective zones. &
804 \adjustbox{valign=t}{
805 \begin{tikzpicture}
806 \node[fired hx, unit int=triple] (f) {};
807 \foreach \anchor/\pos in {
808 nne/right,
809 nnw/left,
810 ese/right,
811 wsw/left,
812 wnw/left,
813 ene/right}
814 {\node[circle, draw, blue, fill=blue, inner sep=0pt, minimum size=2pt] at (f.\anchor) {};
815 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
816 \end{tikzpicture}} \\
817 \end{longtable}
818 \end{center}
819
820 \newpage
821 \subsubsection{Cooling tower}
822 \begin{lstlisting}[numbers=none]
823 \node[cooling tower] {};
824 \end{lstlisting}
825 \begin{figure}[h!]
826 \centering
827 \begin{tikzpicture}
828 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
829 \node[cooling tower] {};
830 &
831 \scalegrid
832 \node[cooling tower] {};
833 &
834 \node[cooling tower, scale=1.5, draw=lightgray, thick] (f) {};
835 \markpolar
836
837 \foreach \anchor/\pos in {
838 n/above,
839 e/right,
840 w/left,
841 s/below}
842 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
843 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
844
845 \foreach \anchor/\pos in {
846 ne/right,
847 nw/left,
848 se/right,
849 sw/left,
850 ese/right,
851 wsw/left,
852 wnw/left,
853 ene/right}
854 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
855 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
856
857 \node[red] at (f.center) {$\times$};
858 \\
859 };
860 \end{tikzpicture}
861 \end{figure}
862 The default cooling tower unit is of the induced draft design with a fan on top, packing in the middle, and a liquid reservoir at bottom. Options for forced and natural draft are available via the |unit ext| key, which also modifies anchors and anchor border, with |unit ext = induced| the same as not providing a key value.
863 \begin{center}
864 \begin{longtable}{p{1.5in}p{2in}c}
865 \caption{Key-value pairs for the \boldtt{cooling tower} shape.}\\
866 \toprule
867 \texttt{key=value} & Description & Example \\
868 \midrule
869 \endfirsthead
870
871 \multicolumn{3}{c}{\tablename\ \thetable: Key-value pairs for the \boldtt{cooling tower} shape \textit{(cont'd)}} \\
872 \midrule
873 \endhead
874
875 \bottomrule
876 \endfoot
877
878 \bottomrule
879 \endlastfoot
880
881 \texttt{unit ext=forced} & Includes side fan and modifies vent stack for visual distinction. &
882 \adjustbox{valign=t}{
883 \begin{tikzpicture}
884 \node[cooling tower, unit ext = forced, draw=lightgray, thick, scale=1.25] (f) {};
885 \markpolar
886
887 \foreach \anchor/\pos in {
888 n/above,
889 e/right,
890 w/left,
891 s/below}
892 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
893 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
894
895 \foreach \anchor/\pos in {
896 ne/right,
897 nw/left,
898 se/right,
899 sw/left,
900 ese/right,
901 wsw/left,
902 wnw/left,
903 ene/right}
904 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
905 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
906
907 \node[red] at (f.center) {$\times$};
908
909 \node[cooling tower, unit ext=forced, left=1.5cm of f] {};
910
911 \end{tikzpicture}} \\
912 & & \\
913 \texttt{unit ext=natural} & Natural draft tower with sprayer. &
914 \adjustbox{valign=t}{
915 \begin{tikzpicture}
916 \node[cooling tower, unit ext = natural, draw=lightgray, thick, scale=1.25] (f) {};
917 \markpolar
918
919 \foreach \anchor/\pos in {
920 n/above,
921 e/right,
922 w/left,
923 s/below}
924 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
925 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
926
927 \foreach \anchor/\pos in {
928 ne/right,
929 nw/left,
930 se/right,
931 sw/left,
932 ese/right,
933 wsw/left,
934 wnw/left,
935 ene/right}
936 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
937 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
938
939 \node[red] at (f.center) {$\times$};
940
941 \node[cooling tower, unit ext=natural, left=1.5cm of f] {};
942 \end{tikzpicture}} \\
943 \end{longtable}
944 \end{center}
945
946
947 \subsection{Separation units}
948 \subsubsection{Column}
949 \begin{lstlisting}[numbers=none]
950 \node[column] {};
951 \end{lstlisting}
952 \begin{figure}[h!]
953 \centering
954 \begin{tikzpicture}[line width=0.6pt]
955 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
956 \node[column] {};
957 &
958 \scalegrid
959 \node[column] {};
960 &
961 \node[column, draw=lightgray, thick] (f) {};
962 \markpolar
963
964 \foreach \anchor/\pos in {
965 n/above,
966 e/right,
967 w/left,
968 s/below}
969 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
970 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
971
972 \foreach \anchor/\pos in {
973 ne/right,
974 nw/left,
975 se/right,
976 sw/left,
977 nne/above right,
978 nnw/above left,
979 sse/below right,
980 ssw/below left,
981 ese/right,
982 wsw/left,
983 wnw/left,
984 ene/right}
985 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
986 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
987
988 \node[red] at (f.center) {$\times$};
989 \\
990 };
991 \end{tikzpicture}
992 \end{figure}
993 The |column| shape provides a vertical, elongated cylinder as a generic separation column. The default fill is empty but several |key=value| pairs are provided to represent the most common separation units. Several additional anchors and keys are available based on these settings.
994
995 \begin{center}
996 \begin{longtable}{p{1.75in}p{3in}c}
997 \caption{Key-value pairs for the \boldtt{column} shape.}\\
998 \toprule
999 \texttt{key=value} & Description & Example \\
1000 \midrule
1001 \endfirsthead
1002
1003 \multicolumn{3}{c}{\tablename\ \thetable: Key-value pairs for the \boldtt{column} shape \textit{(cont'd)}} \\
1004 \midrule
1005 \endhead
1006
1007 \bottomrule
1008 \endfoot
1009
1010 \bottomrule
1011 \endlastfoot
1012
1013 \texttt{unit ext=simple hx} & Provides stylized representation of condenser and reboiler along with anchors \redtt{distillate} and \redtt{bottoms} for stream connections. These anchors always exist but coincide with |north east| and |south east| when the |simple hx| key is omitted.&
1014 \adjustbox{valign=t}{
1015 \begin{tikzpicture}
1016 \node[column, unit ext=simple hx] (f) {};
1017 \foreach \anchor/\pos in {
1018 distillate/right,
1019 bottoms/right}
1020 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
1021 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
1022 \end{tikzpicture}} \\
1023
1024 & & \\
1025 \texttt{unit int=tray}\newline \texttt{unit int=dashed tray} & Dashed, horizontal lines. Dashes will always have three segments and two openings.&
1026 \adjustbox{valign=t}{
1027 \begin{tikzpicture}
1028 \node[column, unit int=tray] (f) {};
1029 \end{tikzpicture}} \\
1030 & & \\
1031
1032 \texttt{unit int=weir tray} & Solid, horizontal lines with small risers to
1033 represent tray weirs.&
1034 \adjustbox{valign=t}{
1035 \begin{tikzpicture}
1036 \node[column, unit int=weir tray] (f) {};
1037 \end{tikzpicture}} \\
1038 & & \\
1039
1040 \texttt{unit int=numbered tray}\newline\newline\hspace*{1em}\textit{associated keys:}\newline\hspace*{2em}\texttt{top tray=99}\newline\hspace*{2em}\texttt{feed tray=00}\newline\hspace*{2em}\texttt{bottom tray=22} & Dashed, horizontal lines at top, feed, and bottom trays. Associated keys |top tray|, |feed tray|, and |bottom tray| can be used to indicate tray numbers \textbf{if column is not transformed}. If column is transformed then associated keys can be omitted and anchors \redtt{feed tray}, \redtt{top tray}, and \redtt{bottom tray} used for placement of additional text nodes.&
1041 \adjustbox{valign=t}{
1042 \begin{tikzpicture}
1043 \node[column, unit int=numbered tray, top tray=99, feed tray=00,
1044 bottom tray=22] (f) {};
1045 \foreach \anchor/\pos in {
1046 top tray/below,
1047 feed tray/below,
1048 bottom tray/below}
1049 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
1050 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
1051 \end{tikzpicture}} \\
1052 & & \\
1053
1054 \texttt{unit int=packed} & Large cross symbol indicating random or dumped fill (packing).&
1055 \adjustbox{valign=t}{
1056 \begin{tikzpicture}
1057 \node[column, unit int=packed] (f) {};
1058 \end{tikzpicture}} \\
1059 & & \\
1060
1061 \texttt{unit int=double packed} & Two sections of random or dumped fill (packing) separated by a small, central gap.&
1062 \adjustbox{valign=t}{
1063 \begin{tikzpicture}
1064 \node[column, unit int=double packed] (f) {};
1065 \end{tikzpicture}} \\
1066 \end{longtable}
1067 \end{center}
1068
1069
1070
1071
1072
1073
1074 \subsubsection{Vessel}
1075 \begin{lstlisting}[numbers=none]
1076 \node[vessel] {};
1077 \end{lstlisting}
1078 \begin{figure}[h!]
1079 \centering
1080 \begin{tikzpicture}[line width=0.6pt]
1081 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
1082 \node[vessel] {};
1083 &
1084 \scalegrid
1085 \node[vessel] {};
1086 &
1087 \node[vessel, scale=1.5, draw=lightgray, thick] (f) {};
1088 \markpolar
1089
1090 \foreach \anchor/\pos in {
1091 n/above,
1092 e/right,
1093 w/left,
1094 s/below}
1095 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
1096 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
1097
1098 \foreach \anchor/\pos in {
1099 ne/right,
1100 nw/left,
1101 se/right,
1102 sw/left,
1103 nne/above right,
1104 nnw/above left,
1105 sse/below right,
1106 ssw/below left,
1107 ese/right,
1108 wsw/left,
1109 wnw/left,
1110 ene/right}
1111 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
1112 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
1113
1114 \node[red] at (f.center) {$\times$};
1115 \\
1116 };
1117 \end{tikzpicture}
1118 \end{figure}
1119 The |vessel| shape provides a vertical cylinder as a generic vessel. Such a vessel can be, for example, down-scaled and rotated 90${^\circ}$ can represent a product tank or a phase separator after a condenser. The default fill is empty but several |key=value| pairs are provided to represent two common vapor-liquid units as well as liquid accumulation tanks. Several additional anchors are available based on these settings.
1120
1121 \begin{center}
1122 \begin{longtable}{p{1.75in}p{3in}c}
1123 \caption{Key-value pairs for the \boldtt{vessel} shape.}\\
1124 \toprule
1125 \texttt{key=value} & Description & Example \\
1126 \midrule
1127 \endfirsthead
1128
1129 \multicolumn{3}{c}{\tablename\ \thetable: Key-value pairs for the \boldtt{vessel} shape \textit{(cont'd)}} \\
1130 \midrule
1131 \endhead
1132
1133 \bottomrule
1134 \endfoot
1135
1136 \bottomrule
1137 \endlastfoot
1138
1139
1140 \texttt{unit int=liquid} & Adds wavy lines across the middle of the vessel to indicate a liquid level. &
1141 \adjustbox{valign=t}{
1142 \begin{tikzpicture}
1143 \node[vessel, unit int=liquid] (f) {};
1144 \end{tikzpicture}} \\
1145 & & \\
1146
1147 \texttt{unit int = liquid rotated} & Adds wavy lines down the center of the vessel to indicate a liquid level. This key is intended to be used with a rotated node such as
1148 \begin{lstlisting}[numbers=none]
1149 \node[vessel, rotate=90, unit int=liquid rotated] {};
1150 \end{lstlisting}
1151 &
1152 \adjustbox{valign=t}{
1153 \begin{tikzpicture}
1154 \node[vessel, rotate=90, unit int=liquid rotated] (f) {};
1155 \end{tikzpicture}} \\
1156 & & \\
1157
1158 \texttt{unit int=phase sep} & Adds a knock-down element near the |west| anchor and a dashed, horizontal line near the top of the vessel to indicate a demister pad. &
1159 \adjustbox{valign=t}{
1160 \begin{tikzpicture}
1161 \node[vessel, unit int=phase sep] (f) {};
1162 \end{tikzpicture}} \\
1163 & & \\
1164
1165 \texttt{unit ext=simple hx} & Adds a simplified heat transfer element to the bottom portion of the vessel. Two additional anchors, \redtt{north hx} and \redtt{south hx}, are located at the exterior points of the heat exchanger tubes. &
1166 \adjustbox{valign=t}{
1167 \begin{tikzpicture}
1168 \node[vessel, unit ext=simple hx] (f) {};
1169 \foreach \anchor/\pos in {
1170 north hx/right,
1171 south hx/right}
1172 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
1173 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
1174 \end{tikzpicture}} \\
1175
1176 & & \\
1177 \end{longtable}
1178 \end{center}
1179
1180
1181
1182
1183 \subsection{Fluid transport}
1184 \subsubsection{Centrifugal pump}
1185 \begin{lstlisting}[numbers=none]
1186 \node[centrifugal pump] {};
1187 \end{lstlisting}
1188 \begin{figure}[h!]
1189 \centering
1190 \begin{tikzpicture}[line width=0.6pt]
1191 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
1192 \node[centrifugal pump] {};
1193 &
1194 \scalegrid
1195 \node[centrifugal pump] {};
1196 &
1197 \node[centrifugal pump, scale=1.5, draw=lightgray, thick] (f) {};
1198 \markpolar
1199
1200 \foreach \anchor/\pos in {
1201 n/above,
1202 e/right,
1203 w/left,
1204 s/below}
1205 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
1206 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
1207
1208 \foreach \anchor/\pos in {
1209 ne/right,
1210 nw/left,
1211 se/right,
1212 sw/left}
1213 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
1214 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
1215
1216 \node[red] at (f.center) {$\times$};
1217 \\
1218 };
1219 \end{tikzpicture}
1220 \end{figure}
1221
1222 \newpage
1223 The |centrifugal pump| shape provides a circular element with a triangular base to represent a centrifugal pump. An additional half-circle can be added using the |unit int| key to indicate the pump inlet and a rectangular outlet direction can be added using the |unit ext| key.
1224
1225 \begin{center}
1226 \begin{longtable}{p{1.75in}p{3in}c}
1227 \caption{Key-value pairs for the \boldtt{centrifugal pump} shape.}\\
1228 \toprule
1229 \texttt{key=value} & Description & Example \\
1230 \midrule
1231 \endfirsthead
1232
1233 \multicolumn{3}{c}{\tablename\ \thetable: Key-value pairs for the \boldtt{centrifugal pump} shape \textit{(cont'd)}} \\
1234 \midrule
1235 \endhead
1236
1237 \bottomrule
1238 \endfoot
1239
1240 \bottomrule
1241 \endlastfoot
1242
1243 \texttt{unit int=inlet west} & Adds a half-circle around the |center| anchor to accept an inlet stream to enter from the west. &
1244 \adjustbox{valign=t}{
1245 \begin{tikzpicture}
1246 \node[centrifugal pump, unit int=inlet west] (f) {};
1247 \end{tikzpicture}} \\
1248 & & \\
1249
1250 \texttt{unit int=inlet east} & Adds a half-circle around the |center| anchor to accept an inlet stream to enter from the east. &
1251 \adjustbox{valign=t}{
1252 \begin{tikzpicture}
1253 \node[centrifugal pump, unit int=inlet east] (f) {};
1254 \end{tikzpicture}} \\
1255 & & \\
1256
1257 \texttt{unit int=inlet north} & Adds a half-circle around the |center| anchor to accept an inlet stream to enter from the north. &
1258 \adjustbox{valign=t}{
1259 \begin{tikzpicture}
1260 \node[centrifugal pump, unit int=inlet north] (f) {};
1261 \end{tikzpicture}} \\
1262 & & \\
1263
1264 \texttt{unit int=inlet south} & Adds a half-circle around the |center| anchor to accept an inlet stream to enter from the south. Note that there is no means of removing the triangular base; such an inlet stream should be drawn as going through the base. &
1265 \adjustbox{valign=t}{
1266 \begin{tikzpicture}
1267 \node[centrifugal pump, unit int=inlet south] (f) {};
1268 \end{tikzpicture}} \\
1269 & & \\
1270
1271 \texttt{unit ext=outlet east} & Adds a rectangular protrusion facing east to represent an outlet. Also adds the \redtt{outlet} anchor in the center of the outlet box. &
1272 \adjustbox{valign=t}{
1273 \begin{tikzpicture}
1274 \node[centrifugal pump, unit ext=outlet east] (f) {};
1275 \node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.outlet) {};
1276 \node[right] at (f.outlet) {\footnotesize\texttt{outlet}};
1277 \end{tikzpicture}} \\
1278
1279 & & \\
1280 \texttt{unit ext=outlet west} & Adds a rectangular protrusion facing west to represent an outlet. Also adds the \redtt{outlet} anchor in the center of the outlet box. &
1281 \adjustbox{valign=t}{
1282 \begin{tikzpicture}
1283 \node[centrifugal pump, unit ext=outlet west] (f) {};
1284 \node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.outlet) {};
1285 \node[left] at (f.outlet) {\footnotesize\texttt{outlet}};
1286 \end{tikzpicture}} \\
1287
1288 & & \\
1289 \texttt{unit ext=outlet north east} & Adds a rectangular protrusion facing north on the east side of the pump to represent an outlet. Also adds the \redtt{outlet} anchor in the center of the outlet box. &
1290 \adjustbox{valign=t}{
1291 \begin{tikzpicture}
1292 \node[centrifugal pump, unit ext=outlet north east] (f) {};
1293 \node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.outlet) {};
1294 \node[above] at (f.outlet) {\footnotesize\texttt{outlet}};
1295 \end{tikzpicture}} \\
1296
1297 & & \\
1298 \texttt{unit ext=outlet north west} & Adds a rectangular protrusion facing north on the west side of the pump to represent an outlet. Also adds the \redtt{outlet} anchor in the center of the outlet box. &
1299 \adjustbox{valign=t}{
1300 \begin{tikzpicture}
1301 \node[centrifugal pump, unit ext=outlet north west] (f) {};
1302 \node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.outlet) {};
1303 \node[above] at (f.outlet) {\footnotesize\texttt{outlet}};
1304 \end{tikzpicture}} \\
1305 & & \\
1306
1307 \end{longtable}
1308 \end{center}
1309
1310
1311
1312
1313 \subsubsection{Reciprocating pump}
1314 \begin{lstlisting}[numbers=none]
1315 \node[reciprocating pump] {};
1316 \end{lstlisting}
1317 \begin{figure}[h!]
1318 \centering
1319 \begin{tikzpicture}[line width=0.6pt]
1320 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
1321 \node[reciprocating pump] {};
1322 &
1323 \scalegrid
1324 \node[reciprocating pump] {};
1325 &
1326 \node[reciprocating pump, scale=1.25, draw=lightgray, thick] (f) {};
1327 \markpolar
1328
1329 \foreach \anchor/\pos in {
1330 n/above,
1331 e/right,
1332 w/left,
1333 s/below}
1334 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
1335 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
1336
1337 \foreach \anchor/\pos in {
1338 ne/right,
1339 nw/left,
1340 se/right,
1341 sw/left}
1342 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
1343 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
1344
1345 \node[red] at (f.center) {$\times$};
1346 \\
1347 };
1348 \end{tikzpicture}
1349 \end{figure}
1350 The |reciprocating pump| shape provides two square elements--a pump head and motor--connected by a simple shaft. Most anchors are placed relative to the pump head. This unit has no |key=value| pairs for additional modification.
1351
1352
1353 \subsubsection{Compressor}
1354 \begin{lstlisting}[numbers=none]
1355 \node[compressor] {};
1356 \end{lstlisting}
1357 \begin{figure}[h!]
1358 \centering
1359 \begin{tikzpicture}[line width=0.6pt]
1360 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
1361 \node[compressor] {};
1362 &
1363 \scalegrid
1364 \node[compressor] {};
1365 &
1366 \node[compressor, scale=2.5, draw=lightgray, thick] (f) {};
1367 \markpolar
1368
1369 \foreach \anchor/\pos in {
1370 n/above,
1371 e/right,
1372 w/left,
1373 s/below}
1374 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
1375 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
1376
1377 \foreach \anchor/\pos in {
1378 ne/above right,
1379 nw/left,
1380 se/below right,
1381 sw/left,
1382 nne/above,
1383 nnw/above,
1384 sse/below,
1385 ssw/below,
1386 ese/right,
1387 wsw/left,
1388 wnw/left,
1389 ene/right}
1390 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
1391 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
1392
1393 \node[red] at (f.center) {$\times$};
1394 \\
1395 };
1396 \end{tikzpicture}
1397 \end{figure}
1398 The |compressor| shape provides a quadrilateral to represent a gas-phase compressor. This unit has no |key=value| pairs for additional modification. If mirrored along the $x$-axis (\textit{e.g.}, by using something like |xscale=-1| or |rotate=90|) then the |compressor| shape is identical to the |turbine| shape but with different anchor points.
1399
1400
1401
1402 \subsubsection{Turbine}
1403 \begin{lstlisting}[numbers=none]
1404 \node[turbine] {};
1405 \end{lstlisting}
1406 \begin{figure}[h!]
1407 \centering
1408 \begin{tikzpicture}[line width=0.6pt]
1409 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
1410 \node[turbine] {};
1411 &
1412 \scalegrid
1413 \node[turbine] {};
1414 &
1415 \node[turbine, scale=2.5, draw=lightgray, thick] (f) {};
1416 \markpolar
1417
1418 \foreach \anchor/\pos in {
1419 n/above,
1420 e/right,
1421 w/left,
1422 s/below}
1423 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
1424 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
1425
1426 \foreach \anchor/\pos in {
1427 ne/right,
1428 nw/above left,
1429 se/right,
1430 sw/below left,
1431 nne/above,
1432 nnw/above,
1433 sse/below,
1434 ssw/below,
1435 ese/right,
1436 wsw/left,
1437 wnw/left,
1438 ene/right}
1439 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
1440 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
1441
1442 \node[red] at (f.center) {$\times$};
1443 \\
1444 };
1445 \end{tikzpicture}
1446 \end{figure}
1447 The |turbine| shape provides a quadrilateral to represent a gas-phase turbine. This unit has no |key=value| pairs for additional modification. If mirrored along the $x$-axis (\textit{e.g.}, by using something like |xscale=-1| or |rotate=90|) then the |turbine| shape is identical to the |compressor| shape but with different anchor points.
1448
1449
1450 \section{Solids processing}
1451 \subsection{Solids separation}
1452 \subsubsection{Filter}
1453 \begin{lstlisting}[numbers=none]
1454 \node[filter] {};
1455 \end{lstlisting}
1456 \begin{figure}[h!]
1457 \centering
1458 \begin{tikzpicture}[line width=0.6pt]
1459 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
1460 \plainicon{filter}
1461 &
1462 \scaleicon{filter}
1463 &
1464 \anchoricon{filter}{1.5}
1465 \markpolar
1466 \markcardinal
1467 \markoffcardinal
1468 \\
1469 };
1470 \end{tikzpicture}
1471 \end{figure}
1472 The |filter| shape provides a square outline with dashed divider to represent a generic filter operation for solids. This unit has no |key=value| pairs for additional modification.
1473
1474
1475 \subsubsection{Press filter}
1476 \begin{lstlisting}[numbers=none]
1477 \node[press filter] {};
1478 \end{lstlisting}
1479 \begin{figure}[h!]
1480 \centering
1481 \begin{tikzpicture}[line width=0.6pt]
1482 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
1483 \plainicon{press filter}
1484 &
1485 \scaleicon{press filter}
1486 &
1487 \anchoricon{press filter}{1.5}
1488 \markpolar
1489 \markcardinal
1490 \markoffcardinal
1491 \\
1492 };
1493 \end{tikzpicture}
1494 \end{figure}
1495 The |press filter| shape provides a rectangular outline with vertical lines to represent a series of parallel filter sheets pressed together with a frame as a filter operation for solids, usually for liquid/solid. This unit has no |key=value| pairs for additional modification.
1496
1497 \subsubsection{Cyclone}
1498 \begin{lstlisting}[numbers=none]
1499 \node[cyclone] {};
1500 \end{lstlisting}
1501 \begin{figure}[h!]
1502 \centering
1503 \begin{tikzpicture}[line width=0.6pt]
1504 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
1505 \plainicon{cyclone}
1506 &
1507 \scaleicon{cyclone}
1508 &
1509 \anchoricon{cyclone}{1.5}
1510 \markpolar
1511 \markcardinal
1512 \markoffcardinal
1513 \\
1514 };
1515 \end{tikzpicture}
1516 \end{figure}
1517 The |cyclone| shape provides a rectangular top with tapered bottom as a gas/solid separation unit. This unit has no |key=value| pairs for additional modification.
1518
1519 \subsubsection{Centrifuge}
1520 \begin{lstlisting}[numbers=none]
1521 \node[centrifuge] {};
1522 \end{lstlisting}
1523 \begin{figure}[h!]
1524 \centering
1525 \begin{tikzpicture}[line width=0.6pt]
1526 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
1527 \plainicon{centrifuge}
1528 &
1529 \scaleicon{centrifuge}
1530 &
1531 \anchoricon{centrifuge}{1.5}
1532 \markpolar
1533 \markcardinal
1534 \markoffcardinal
1535 \\
1536 };
1537 \end{tikzpicture}
1538 \end{figure}
1539 The |centrifuge| shape provides a square outline with offset inner basket, usually for liquid/solid separations. The inner detail represents a mechanical shaft to spin the inner basket. This unit has no |key=value| pairs for additional modification.
1540
1541 \subsubsection{Belt dryer}
1542 \begin{lstlisting}[numbers=none]
1543 \node[belt dryer] {};
1544 \end{lstlisting}
1545 \begin{figure}[h!]
1546 \centering
1547 \begin{tikzpicture}[line width=0.6pt]
1548 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
1549 \plainicon{belt dryer}
1550 &
1551 \scaleicon{belt dryer}
1552 &
1553 \anchoricon{belt dryer}{1.5}
1554 \markpolar
1555 \markcardinal
1556 \markoffcardinal
1557 \\
1558 };
1559 \end{tikzpicture}
1560 \end{figure}
1561 The |belt dryer| shape provides a long rectangle with oval belt for solids drying. This unit has no |key=value| pairs for additional modification.
1562
1563 \subsubsection{Rotary dryer}
1564 \begin{lstlisting}[numbers=none]
1565 \node[rotary dryer] {};
1566 \end{lstlisting}
1567 \begin{figure}[h!]
1568 \centering
1569 \begin{tikzpicture}[line width=0.6pt]
1570 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
1571 \plainicon{rotary dryer}
1572 &
1573 \scaleicon{rotary dryer}
1574 &
1575 \anchoricon{rotary dryer}{1.5}
1576 \markpolar
1577 \markcardinal
1578 \markoffcardinal
1579 \\
1580 };
1581 \end{tikzpicture}
1582 \end{figure}
1583 The |rotary dryer| shape provides a circle with interior scraper, exterior heater at bottom, and rotation indicator at top. Anchor positioning for this node is slightly outside the drawing itself to provide uniformity of appearance, for example allowing streams entering the top or bottom to not overlap the exterior arcs. This unit has no |key=value| pairs for additional modification.
1584
1585 \subsection{Solids generation}
1586 \subsubsection{Granulator or agglomerator}
1587 \begin{lstlisting}[numbers=none]
1588 \node[granulator] {};
1589 \end{lstlisting}
1590 or
1591 \begin{lstlisting}[numbers=none]
1592 \node[agglomerator] {};
1593 \end{lstlisting}
1594
1595 \begin{figure}[h!]
1596 \centering
1597 \begin{tikzpicture}[line width=0.6pt]
1598 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
1599 \plainicon{granulator}
1600 &
1601 \scaleicon{granulator}
1602 &
1603 \anchoricon{granulator}{1.5}
1604 \markpolar
1605 \markcardinal
1606 \markoffcardinal
1607 \\
1608 };
1609 \end{tikzpicture}
1610 \end{figure}
1611 The |granulator| shape provides a spray drum with gas filter at bottom. This device is also referred to as an agglomerator and is aliased as such for the purpose of generating nodes in typical picture environments. The sprayer inlet can be connected at the |nw| (|north west|) anchor if desired. The underlying PGF shape is only known as a granulator. This shape has no |key=value| pairs for additional modification.
1612
1613 \subsubsection{Crystallizer}
1614 \begin{lstlisting}[numbers=none]
1615 \node[crystallizer] {};
1616 \end{lstlisting}
1617 \begin{figure}[h!]
1618 \centering
1619 \begin{tikzpicture}[line width=0.6pt]
1620 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
1621 \plainicon{crystallizer}
1622 &
1623 \scaleicon{crystallizer}
1624 &
1625 \anchoricon{crystallizer}{1.5}
1626 \markpolar
1627 \markcardinal
1628 \markoffcardinal
1629 \\
1630 };
1631 \end{tikzpicture}
1632 \end{figure}
1633 The |crystallizer| shape provides a small liquid reactor with integrated stirrer and recycle loop with integrated heater for solids production. Anchors |sw| and |s| are positioned for typical feed and product line connections. This unit has no |key=value| pairs for additional modification.
1634
1635 \subsection{Solids size reduction}
1636 \subsubsection{Ball mill}
1637 \begin{lstlisting}[numbers=none]
1638 \node[ball mill] {};
1639 \end{lstlisting}
1640 \begin{figure}[h!]
1641 \centering
1642 \begin{tikzpicture}[line width=0.6pt]
1643 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
1644 \plainicon{ball mill}
1645 &
1646 \scaleicon{ball mill}
1647 &
1648 \anchoricon{ball mill}{1.5}
1649 \markpolar
1650 \markcardinal
1651 \markoffcardinal
1652 \\
1653 };
1654 \end{tikzpicture}
1655 \end{figure}
1656 The |ball mill| shape provides a circle with smaller interior circles (balls) for solids pulverization. At large scale factors the interior circles may lose their alignment with the mill exterior or other circles. This unit has no |key=value| pairs for additional modification.
1657
1658 \subsubsection{Roll crusher}
1659 \begin{lstlisting}[numbers=none]
1660 \node[roll crusher] {};
1661 \end{lstlisting}
1662 \begin{figure}[h!]
1663 \centering
1664 \begin{tikzpicture}[line width=0.6pt]
1665 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
1666 \plainicon{roll crusher}
1667 &
1668 \scaleicon{roll crusher}
1669 &
1670 \anchoricon{roll crusher}{1.5}
1671 \markpolar
1672 \markcardinal
1673 \markoffcardinal
1674 \\
1675 };
1676 \end{tikzpicture}
1677 \end{figure}
1678 The |roll crusher| shape provides a conical feeder with smaller interior circles (rollers) for solids pulverization. At large scale factors the interior circles may lose their alignment with the feeder exterior. This unit has no |key=value| pairs for additional modification.
1679
1680
1681 \section{Streams}
1682
1683
1684 \subsection{Feed terminal}
1685 \begin{lstlisting}[numbers=none]
1686 \node[feed] {};
1687 \end{lstlisting}
1688 \begin{figure}[h!]
1689 \centering
1690 \begin{tikzpicture}[line width=0.6pt]
1691 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
1692 \node[feed] {};
1693 &
1694 \scalegrid
1695 \node[feed] {};
1696 &
1697 \node[feed, scale=3, draw=lightgray, thick] (f) {};
1698 \markpolar
1699
1700 \foreach \anchor/\pos in {
1701 n/above,
1702 w/left,
1703 s/below}
1704 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
1705 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
1706
1707 \node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.stream) {};
1708 \node[right] at (f.stream) {\footnotesize\texttt{\textbf{e}} \textit{or} \redtt{stream}};
1709
1710 \foreach \anchor/\pos in {
1711 ne/above right,
1712 nw/above left,
1713 se/below right,
1714 sw/below left}
1715 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
1716 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
1717
1718 \node[red] at (f.center) {$\times$};
1719 \\
1720 };
1721 \end{tikzpicture}
1722 \end{figure}
1723 The |feed| shape provides a half-filled circle representing a process feed point. The special anchor \redtt{stream} corresponds to the |east| anchor and is provided as an optional method to define stream starting points. This unit has no |key=value| pairs for additional modification.
1724
1725
1726
1727
1728 \subsection{Product terminal}
1729 \begin{lstlisting}[numbers=none]
1730 \node[product] {};
1731 \end{lstlisting}
1732 \begin{figure}[h!]
1733 \centering
1734 \begin{tikzpicture}[line width=0.6pt]
1735 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
1736 \node[product] {};
1737 &
1738 \scalegrid
1739 \node[product] {};
1740 &
1741 \node[product, scale=3, draw=lightgray, thick] (f) {};
1742 \markpolar
1743
1744 \foreach \anchor/\pos in {
1745 n/above,
1746 e/right,
1747 s/below}
1748 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
1749 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
1750
1751 \node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.stream) {};
1752 \node[left] at (f.stream) {\footnotesize \redtt{stream} \textit{or} \boldtt{w}};
1753
1754 \foreach \anchor/\pos in {
1755 ne/above right,
1756 nw/above left,
1757 se/below right,
1758 sw/below left}
1759 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
1760 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
1761
1762 \node[red] at (f.center) {$\times$};
1763 \\
1764 };
1765 \end{tikzpicture}
1766 \end{figure}
1767 The |product| shape provides a half-filled circle representing a process product point. The special anchor \redtt{stream} corresponds to the |west| anchor and is provided as an optional method to define stream ending points. This unit has no |key=value| pairs for additional modification.
1768
1769
1770
1771 \subsection{Stream numbers}
1772 \begin{lstlisting}[numbers=none]
1773 \node[sid] {99};
1774 \end{lstlisting}
1775 \begin{figure}[h!]
1776 \centering
1777 \begin{tikzpicture}[line width=0.6pt]
1778 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
1779 \node[sid] {99};
1780 &
1781 \scalegrid
1782 \node[sid] {99};
1783 &
1784 \node[sid, scale=2, draw=lightgray, thick] (f) {99};
1785 \markpolar
1786
1787 \foreach \anchor/\pos in {
1788 north/above,
1789 east/right,
1790 west/left,
1791 south/below}
1792 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
1793 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
1794
1795 \foreach \anchor/\pos in {
1796 north east/above right,
1797 north west/above left,
1798 south east/below right,
1799 south west/below left}
1800 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
1801 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
1802
1803 \node[red] at (f.center) {$\times$};
1804 \\
1805 };
1806 \end{tikzpicture}
1807 \end{figure}
1808 The |sid| (read ``ess eye dee'' for ``stream identification'') shape provides a modified |diamond| shape from the |shapes| library for the purpose of labeling streams. The anchors \textbf{are not aliased} with their abbreviations because \textit{(a)} this is not a custom shape of the |pfdicons| package and \textit{(b)} the |sid| shape is typically used within a line (stream) without accessing its anchors. The fill of |sid| is white which allows it to be conveniently placed within a stream-drawing command such as
1809 \begin{center}
1810 \begin{minipage}{5in}
1811 \begin{lstlisting}
1812 \begin{tikzpicture}
1813 \draw[->] (0,0) -- node[sid] {00} (2,0);
1814 \end{tikzpicture}
1815 \end{lstlisting}
1816 \end{minipage}\hspace{0.25in}
1817 \begin{minipage}{1in}
1818 \begin{center}
1819 \begin{tikzpicture}
1820 \draw[->] (0,0) -- node[sid] {00} (2,0);
1821 \end{tikzpicture}
1822 \end{center}
1823 \end{minipage}
1824 \end{center}
1825 The |sid| shape has no |key=value| pairs to modify its appearance but you can modify the appearance by redefining its |tikzstyle|, which by default is
1826 \begin{lstlisting}[numbers=none]
1827 \tikzstyle{sid} = [diamond, draw, solid, fill=white, text badly centered, inner sep=1pt, font=\footnotesize]
1828 \end{lstlisting}
1829 Modifications to this definition can occur either in the preamble (to affect all drawings) or within the document (to affect individual drawings or lines). For example, if you'd like to use circular identifiers with a blue fill and more space around bigger numbers then you could do something like this:
1830 \begin{center}
1831 \begin{minipage}{5in}
1832 \begin{lstlisting}
1833 \begin{tikzpicture}
1834 \draw[->] (0,0) -- node[sid] {1} (2,0);
1835
1836 \tikzstyle{sid} = [circle, draw, solid, fill=blue!15, text badly centered, inner sep=3pt, font=\tiny]
1837
1838 \draw[->] (0,-1) -- node[sid] {2} (2,-1);
1839
1840 \draw[->] (0,-2) -- node[sid] {3} (2,-2);
1841 \end{tikzpicture}
1842 \end{lstlisting}
1843 \end{minipage}\hspace{0.25in}
1844 \begin{minipage}{1in}
1845 \begin{center}
1846 \begin{tikzpicture}
1847 \draw[->] (0,0) -- node[sid] {1} (2,0);
1848
1849 \tikzstyle{sid} = [circle, draw, solid,
1850 fill=blue!15, text badly centered,
1851 inner sep=3pt, font=\tiny]
1852
1853 \draw[->] (0,-1) -- node[sid] {2} (2,-1);
1854
1855 \draw[->] (0,-2) -- node[sid] {3} (2,-2);
1856 \end{tikzpicture}
1857 \end{center}
1858 \end{minipage}
1859 \end{center}
1860 You can also modify individual parameters while retaining others by passing additional modifiers within the |sid| node usage, like this:
1861 \begin{center}
1862 \begin{minipage}{5in}
1863 \begin{lstlisting}
1864 \begin{tikzpicture}
1865 \draw[->] (0,0) -- node[sid] {1} (2,0);
1866
1867 \draw[->] (0,-1) -- node[sid, rectangle, fill=red!20] {2} (2,-1);
1868
1869 \draw[->] (0,-2) -- node[sid] {3} (2,-2);
1870 \end{tikzpicture}
1871 \end{lstlisting}
1872 \end{minipage}\hspace{0.25in}
1873 \begin{minipage}{1in}
1874 \begin{center}
1875 \begin{tikzpicture}
1876 \draw[->] (0,0) -- node[sid] {1} (2,0);
1877
1878 \draw[->] (0,-1) -- node[sid, rectangle, fill=red!20] {2} (2,-1);
1879
1880 \draw[->] (0,-2) -- node[sid] {3} (2,-2);
1881 \end{tikzpicture}
1882 \end{center}
1883 \end{minipage}
1884 \end{center}
1885
1886
1887
1888
1889 \subsection{Stream data pins}
1890 Several \Tikz pins--|pfdpin1|, |pfdpin2|, and |pfdpin3|--have been defined to support display of stream properties such as temperature, pressure, mass flow rate, \textit{etc}. Choose the |pfdpinN| such that |N| is the number of information regions desired in the pin. These pins are modifications of the |rectangle split| pin and follow similar syntax, namely
1891 \begin{lstlisting}[numbers=none]
1892 node[pfdpin1={location:my text}] {}
1893 \end{lstlisting}
1894 where |location| can be |above|, |below|, |left|, or |right|. In the labeling of streams this node will typically be included as part of stream drawing statement along with |sid|, for example
1895 \begin{center}
1896 \begin{minipage}{5in}
1897 \begin{lstlisting}
1898 \begin{tikzpicture}
1899 \draw[->] (0,0) -- node[sid, pfdpin1={above:my text}] {99} (3,0);
1900 \end{tikzpicture}
1901 \end{lstlisting}
1902 \end{minipage}\hspace{0.25in}
1903 \begin{minipage}{1in}
1904 \begin{center}
1905 \begin{tikzpicture}
1906 \draw[->] (0,0) -- node[sid, pfdpin1={above:my text}] {99} (3,0);
1907 \end{tikzpicture}
1908 \end{center}
1909 \end{minipage}
1910 \end{center}
1911 It is not required that the |sid| node specification be provided. However the pin connector will connect to the exterior bounding box of the resulting invisible node, so options such as |inner sep| and |minimum height| or |minimum width| must be set to bring the pin to the desired connection point in that event. For example,
1912 \begin{center}
1913 \begin{minipage}{5in}
1914 \begin{lstlisting}
1915 \begin{tikzpicture}
1916 \draw[->] (0,0) -- node[inner sep=0pt, pfdpin1={below:my text}] {} (3,0);
1917 \end{tikzpicture}
1918 \end{lstlisting}
1919 \end{minipage}\hspace{0.25in}
1920 \begin{minipage}{1in}
1921 \begin{center}
1922 \begin{tikzpicture}
1923 \draw[->] (0,0) -- node[inner sep=0pt, pfdpin1={below:my text}] {} (3,0);
1924 \end{tikzpicture}
1925 \end{center}
1926 \end{minipage}
1927 \end{center}
1928 Multiple entries--up to a maximum of 3-- can be obtained by using |pfdpin2| or |pfdpin3|, with corresponding text entries separated using |/|:
1929 \begin{center}
1930 \begin{minipage}{5in}
1931 \begin{lstlisting}
1932 % \usepackage{siunitx} to enable \qty function
1933 \begin{tikzpicture}
1934 \draw[->] (0,0) -- (0.5,0) |- node[sid, pos=0.25, pfdpin2={right:\qty{150}{\celsius}/3 bar}] {A} (0,-1.5);
1935 \end{tikzpicture}
1936 \end{lstlisting}
1937 \end{minipage}\hspace{0.25in}
1938 \begin{minipage}{1in}
1939 \begin{center}
1940 \begin{tikzpicture}
1941 \draw[->] (0,0) -- (0.5,0) |- node[sid, pos=0.25, pfdpin2={right:\qty{150}{\celsius}/3 bar}] {A} (0,-1.5);
1942 \end{tikzpicture}
1943 \end{center}
1944 \end{minipage}
1945 \end{center}
1946 Functions have been provided to modify several aspects of the stream data pin without undertaking redefinition of the underlying |rectangle split| pin. For example,
1947 \begin{center}
1948 \begin{minipage}{5in}
1949 \begin{lstlisting}
1950 \begin{tikzpicture}
1951 \setpfdpindrawcolor{red}
1952 \setpfdpintextcolor{black}
1953 \setpfdpinsecondtextcolor{blue}
1954 \setpfdpinthirdboxfillcolor{yellow}
1955 % appropriate pfdpin3 definition
1956 \end{tikzpicture}
1957 \end{lstlisting}
1958 \end{minipage}\hspace{0.25in}
1959 \begin{minipage}{1in}
1960 \begin{center}
1961 \begin{tikzpicture}
1962 \setpfdpindrawcolor{red}
1963 \setpfdpintextcolor{black}
1964 \setpfdpinsecondtextcolor{blue}
1965 \setpfdpinthirdboxfillcolor{yellow}
1966 \draw[->] (0,0) -- (0.5,0) |- node[sid, pos=0.25, pfdpin3={right:\qty{500}{\mol\per\s}/\qty{150}{\celsius}/3 bar}] {A} (0,-1.5);
1967 \end{tikzpicture}
1968 \end{center}
1969 \end{minipage}
1970 \end{center}
1971 The full list of available modification functions for |pfdpinN| is provided in the table below.
1972
1973 \begin{center}
1974 \begin{longtable}{p{2.25in}p{1.75in}c}
1975 \caption{Modifications for the \boldtt{pfdpinN} stream labels.}\\
1976 \toprule
1977 Function & Description & Example \\
1978 \midrule
1979 \endfirsthead
1980
1981 \multicolumn{3}{c}{\tablename\ \thetable: Modifications for the \boldtt{pfdpinN} stream labels. \textit{(cont'd)}} \\
1982 \midrule
1983 \endhead
1984
1985 \bottomrule
1986 \endfoot
1987
1988 \bottomrule
1989 \endlastfoot
1990
1991 |\setpfdpindrawcolor{<color>}| \newline |\resetpfdpindrawcolor| & Set box and pin stroke color. Default is |gray|. &
1992 \adjustbox{valign=t}{
1993 \begin{tikzpicture}
1994 \setpfdpindrawcolor{red}
1995 \node [anchor=south west] (ref) {|\setpfdpindrawcolor{red}|};
1996 \node [below=0mm of ref] {
1997 \begin{tikzpicture}[baseline]
1998 \draw [->] (0,0) -- (0.3,0) |- node[sid, pos=0.1, pfdpin3={right:line 1/line 2/line 3}] (f) {X} (0,-1);
1999 \end{tikzpicture}
2000 };
2001 \resetpfdpinproperties
2002 \end{tikzpicture}} \\
2003 & & \\
2004
2005 |\setpfdpintextcolor{<color>}| \newline
2006 |\resetpfdpintextcolor|
2007 & Set all pin text colors. Default is |gray|. &
2008 \adjustbox{valign=t}{
2009 \begin{tikzpicture}
2010 \setpfdpintextcolor{red}
2011 \node [anchor=south west] (ref) {|\setpfdpintextcolor{red}|};
2012 \node [below=0mm of ref] {
2013 \begin{tikzpicture}[baseline]
2014 \draw [->] (0,0) -- (0.3,0) |- node[sid, pos=0.1, pfdpin3={right:line 1/line 2/line 3}] (f) {X} (0,-1);
2015 \end{tikzpicture}
2016 };
2017 \resetpfdpinproperties
2018 \end{tikzpicture}} \\
2019 & & \\
2020
2021 |\setpfdpinfirsttextcolor{<color>}| \newline
2022 |\resetpfdpinfirsttextcolor|
2023 & Set pin text color of first (top) box. Default is |gray|. Change |first| to |second| or |third| to target middle or bottom boxes. &
2024 \adjustbox{valign=t}{
2025 \begin{tikzpicture}
2026 \setpfdpinfirsttextcolor{red}
2027 \node [anchor=south west] (ref) {|\setpfdpinfirsttextcolor{red}|};
2028 \node [below=0mm of ref] {
2029 \begin{tikzpicture}[baseline]
2030 \draw [->] (0,0) -- (0.3,0) |- node[sid, pos=0.1, pfdpin3={right:line 1/line 2/line 3}] (f) {X} (0,-1);
2031 \end{tikzpicture}
2032 };
2033 \resetpfdpinproperties
2034 \end{tikzpicture}} \\
2035 & & \\
2036
2037 |\setpfdpinboxfillcolor{<color>}| \newline
2038 |\resetpfdpinboxfillcolor|
2039 & Set all box fill colors. Default is |none|. &
2040 \adjustbox{valign=t}{
2041 \begin{tikzpicture}
2042 \setpfdpinboxfillcolor{red!10}
2043 \node [anchor=south west] (ref) {|\setpfdpinboxfillcolor{red!10}|};
2044 \node [below=0mm of ref] {
2045 \begin{tikzpicture}[baseline]
2046 \draw [->] (0,0) -- (0.3,0) |- node[sid, pos=0.1, pfdpin3={right:line 1/line 2/line 3}] (f) {X} (0,-1);
2047 \end{tikzpicture}
2048 };
2049 \resetpfdpinproperties
2050 \end{tikzpicture}} \\
2051 & & \\
2052
2053 |\setpfdpinfirstboxfillcolor{<color>}| \newline
2054 |\resetpfdpinfirstboxfillcolor|
2055 & Set first (top) box fill colors. Default is |none|. Change |first| to |second| or |third| to target middle or bottom boxes. &
2056 \adjustbox{valign=t}{
2057 \begin{tikzpicture}
2058 \setpfdpinfirstboxfillcolor{red!10}
2059 \node [anchor=south west] (ref) {|\setpfdpinfirstboxfillcolor{red!10}|};
2060 \node [below=0mm of ref] {
2061 \begin{tikzpicture}[baseline]
2062 \draw [->] (0,0) -- (0.3,0) |- node[sid, pos=0.1, pfdpin3={right:line 1/line 2/line 3}] (f) {X} (0,-1);
2063 \end{tikzpicture}
2064 };
2065 \resetpfdpinproperties
2066 \end{tikzpicture}} \\
2067 & & \\
2068
2069 |\setpfdpintextsize{<size>}| \newline
2070 |\resetpfdpintextsize|
2071 & Set all pin text size. Default is |\scriptsize|. &
2072 \adjustbox{valign=t}{
2073 \begin{tikzpicture}
2074 \setpfdpintextsize{\large}
2075 \node [anchor=south west] (ref) {|\setpfdpintextsize{\large}|};
2076 \node [below=0mm of ref] {
2077 \begin{tikzpicture}[baseline]
2078 \draw [->] (0,0) -- (0.3,0) |- node[sid, pos=0.1, pfdpin3={right:line 1/line 2/line 3}] (f) {X} (0,-1);
2079 \end{tikzpicture}
2080 };
2081 \resetpfdpinproperties
2082 \end{tikzpicture}} \\
2083 & & \\
2084
2085 |\setpfdpindistance{<dist>}| \newline
2086 |\resetpfdpindistance|
2087 & Set length of pin connector. Default is |5pt|. &
2088 \adjustbox{valign=t}{
2089 \begin{tikzpicture}
2090 \setpfdpindistance{2cm}
2091 \node [anchor=south west] (ref) {|\setpfdpindistance{2cm}|};
2092 \node [below=0mm of ref] {
2093 \begin{tikzpicture}[baseline]
2094 \draw [->] (0,0) -- (0.3,0) |- node[sid, pos=0.1, pfdpin3={right:line 1/line 2/line 3}] (f) {X} (0,-1);
2095 \end{tikzpicture}
2096 };
2097 \resetpfdpinproperties
2098 \end{tikzpicture}} \\
2099 & & \\
2100
2101 |\setpfdpinconnector{<style>}| \newline
2102 |\resetpfdpinconnector|
2103 & Set connector line style. Default is |solid|. Try increasing pin distance if effect is not observable. &
2104 \adjustbox{valign=t}{
2105 \begin{tikzpicture}
2106 \setpfdpindistance{1cm}
2107 \setpfdpinconnector{dashed}
2108 \node [anchor=south west] (ref) {|\setpfdpinconnector{dashed}|};
2109 \node [below=0mm of ref] {
2110 \begin{tikzpicture}[baseline]
2111 \draw [->] (0,0) -- (0.3,0) |- node[sid, pos=0.1, pfdpin3={right:line 1/line 2/line 3}] (f) {X} (0,-1);
2112 \end{tikzpicture}
2113 };
2114 \resetpfdpinproperties
2115 \end{tikzpicture}} \\
2116 & & \\
2117
2118 |\resetpfdpinproperties|
2119 & Reset all |pfdpin| properties to the defaults noted above. & \\
2120
2121 \end{longtable}
2122 \end{center}
2123
2124
2125
2126
2127
2128
2129 \subsection{Stream arrow tips}
2130 The arrow tip is set using the standard TikZ syntax
2131 \begin{lstlisting}[numbers=none]
2132 \tikzset{>=<tip style>}
2133 \end{lstlisting}
2134 When loaded the |pfdicons| package sets |<tip style>| to |Triangle| as
2135 \begin{lstlisting}[numbers=none]
2136 \tikzset{>=Triangle}
2137 \end{lstlisting}
2138 You can change this setting in the preamble or within the document itself to whatever arrow tip you prefer (see \S16.5 in the PGF manual for a summary of arrow tips). For example,
2139 \begin{center}
2140 \begin{minipage}{5in}
2141 \begin{lstlisting}
2142 \begin{tikzpicture}
2143 \draw[->] (0,0) -- (1,0);
2144
2145 \tikzset{>=Latex[open]}
2146 \draw[->] (0,-0.5) -- (1,-0.5);
2147 \draw[->] (0,-1) -- (1,-1);
2148 \end{tikzpicture}
2149 \end{lstlisting}
2150 \end{minipage}\hspace{0.25in}
2151 \begin{minipage}{1in}
2152 \begin{center}
2153 \begin{tikzpicture}
2154 \draw[->] (0,0) -- (1,0);
2155 \tikzset{>=Latex[open]} % Latex-style arrow tip
2156 \draw[->] (0,-0.5) -- (1,-0.5);
2157 \draw[->] (0,-1) -- (1,-1);
2158 \end{tikzpicture}
2159 \end{center}
2160 \end{minipage}
2161 \end{center}
2162 You can also make modifications to individual arrow tips simply by using a different tip for that particular arrow:
2163 \begin{center}
2164 \begin{minipage}{5in}
2165 \begin{lstlisting}
2166 \begin{tikzpicture}
2167 \draw[->] (0,0) -- (1,0);
2168 \draw[-{Stealth[red]}] (0,-0.5) -- (1,-0.5);
2169 \draw[->] (0,-1) -- (1,-1);
2170 \end{tikzpicture}
2171 \end{lstlisting}
2172 \end{minipage}\hspace{0.25in}
2173 \begin{minipage}{1in}
2174 \begin{center}
2175 \begin{tikzpicture}
2176 \draw[->] (0,0) -- (1,0);
2177 \draw[-{Stealth[red]}] (0,-0.5) -- (1,-0.5);
2178 \draw[->] (0,-1) -- (1,-1);
2179 \end{tikzpicture}
2180 \end{center}
2181 \end{minipage}
2182 \end{center}
2183
2184
2185 \subsection{Stream crossings}
2186 When two streams cross it's desirable to indicate their status as distinct streams to avoid confusion with junctions or mixing points. Consider the following example:
2187 \begin{center}
2188 \begin{minipage}{5in}
2189 \begin{lstlisting}
2190 \begin{tikzpicture}
2191 \draw[->] (0,0.5) -- node[sid, pos=0.25]{1} (2,0.5);
2192 \draw[->] (0,0) -- node[sid]{2} (1.5,0) -- (1.5,1) -- (2,1);
2193 \end{tikzpicture}
2194 \end{lstlisting}
2195 \end{minipage}\hspace{0.25in}
2196 \begin{minipage}{1in}
2197 \begin{center}
2198 \begin{tikzpicture}
2199 \draw[->] (0,0.5) -- node[sid, pos=0.25]{1} (2,0.5);
2200 \draw[->] (0,0) -- node[sid]{2} (1.3,0) -- (1.3,1) -- (2,1);
2201 \end{tikzpicture}
2202 \end{center}
2203 \end{minipage}
2204 \end{center}
2205 It may not be immediately obvious that the intersection between streams 1 and 2 is not a four-way pipe junction with two inlets and two outlets. To make such distinction a \textit{bridge} can be used, most commonly in the form of a break in one stream, an arc of one stream, or a combination of a break and an arc. The |pfdicons| package provides a |bridge| style which uses the |spath3| package to detect crossings and create bridges. The workflow to use the |bridge| style is as follows:
2206 \begin{enumerate}
2207 \item Identify that a crossing has occurred (\textit{e.g.}, by completing a drawing as done above). Determine which stream is to be drawn continuously (the |over| stream) and which stream is to be broken (the |under| stream).
2208 \item Re-define the original streams using the |path| operation, removing all decorations.
2209 \item Use the |bridge| key with |tikzset| to set the |over| and |under| paths as |\tikzset{bridge={over}{under}}|.
2210 \item Re-draw the streams with a |draw| operation, replacing any previously removed decorations.
2211 \end{enumerate}
2212 To demonstrate this process on the previous example we select stream 1 as the |over| stream (Turton recommends horizontal streams be continuous and vertical streams be broken). The remaining steps are completed as follows:
2213 \begin{center}
2214 \begin{minipage}{5in}
2215 \begin{lstlisting}
2216 \begin{tikzpicture}
2217 % \draw[->] (0,0.5) -- node[sid, pos=0.25]{1} (2,0.5);
2218 % \draw[->] (0,0) -- node[sid]{2} (1.5,0) -- (1.5,1) -- (2,1);
2219 \path[spath/save=over] (0,0.5) -- (2,0.5);
2220 \path[spath/save=under] (0,0) -- (1.3,0) -- (1.3,1) -- (2,1);
2221 \tikzset{bridge={over}{under}}
2222 \draw[->, spath/use=over] node[sid, pos=0.15]{1};
2223 \draw[->, spath/use=under] node[sid, pos=0.1]{2};
2224 \end{tikzpicture}
2225 \end{lstlisting}
2226 \end{minipage}\hspace{0.25in}
2227 \begin{minipage}{1in}
2228 \begin{center}
2229 \begin{tikzpicture}
2230 \path[spath/save=over] (0,0.5) -- (2,0.5);
2231 \path[spath/save=under] (0,0) -- (1.3,0) -- (1.3,1) -- (2,1);
2232 \tikzset{bridge={over}{under}}
2233 \draw[->, spath/use=over] node[sid, pos=0.2]{1};
2234 \draw[->, spath/use=under] node[sid, pos=0.1]{2};
2235 \end{tikzpicture}
2236 \end{center}
2237 \end{minipage}
2238 \end{center}
2239 Lines 4 and 5 define the original streams using the |path| operation. Line 6 sets the |bridge| key to identify the |over| and |under| stream (the names here could be anything as long as the first input is the ``over'' path and the second input is the ``under'' path). Lines 7 and 8 re-draw the streams with an appropriate \texttt{draw} operation, adding the stream labels as well. Notice that the positioning of the stream labels must be modified slightly from the original syntax; getting the labels \textit{precisely} where they were before the bridging operation can be challenging (but is usually not necessary).
2240
2241 The bridge style can be modified by using |\tikzset| to set the value of two keys, |bridge gap| and |bridge radius|, as summarized below.
2242 \begin{center}
2243 \begin{longtable}{p{1in}p{3in}c}
2244 \caption{Key-value pairs for use with stream crossings}\\
2245 \toprule
2246 \texttt{key} & Description & Example \\
2247 \midrule
2248 \endfirsthead
2249
2250 \multicolumn{3}{c}{\tablename\ \thetable: Key-value pairs for the use with stream crossings \textit{(cont'd)}} \\
2251 \midrule
2252 \endhead
2253
2254 \bottomrule
2255 \endfoot
2256
2257 \bottomrule
2258 \endlastfoot
2259
2260 \texttt{bridge gap} & Adjusts the amount of space around a stream break. The default value is |4pt|. &
2261 \adjustbox{valign=t}{
2262 \begin{tikzpicture}
2263 \node[above] at (1,1) {\footnotesize\verb|\tikzset{bridge gap=0pt}|};
2264 \tikzset{bridge gap=0pt}
2265 \path[spath/save=over] (0,0.5) -- (2,0.5);
2266 \path[spath/save=under] (0,0) -- (1,0) -- (1,1) -- (2,1);
2267 \tikzset{bridge={over}{under}}
2268 \draw[->, spath/use=over] ;
2269 \draw[->, spath/use=under] ;
2270 \end{tikzpicture}} \\
2271
2272 & & \\
2273
2274 & &
2275 \adjustbox{valign=t}{
2276 \begin{tikzpicture}
2277 \node[above] at (1,1) {\footnotesize\verb|\tikzset{bridge gap=15pt}|};
2278 \tikzset{bridge gap=15pt}
2279 \path[spath/save=over] (0,0.5) -- (2,0.5);
2280 \path[spath/save=under] (0,0) -- (1,0) -- (1,1) -- (2,1);
2281 \tikzset{bridge={over}{under}}
2282 \draw[->, spath/use=over] ;
2283 \draw[->, spath/use=under] ;
2284 \end{tikzpicture}} \\
2285
2286 & & \\
2287
2288 \texttt{bridge radius} & Adjusts the radius of an arc bridge. The default value is |0pt| which produces a straight line. &
2289 \adjustbox{valign=t}{
2290 \begin{tikzpicture}
2291 \node[above] at (1,1) {\footnotesize\verb|\tikzset{bridge radius=8pt}|};
2292 \tikzset{bridge gap=4pt}
2293 \tikzset{bridge radius=8pt}
2294 \path[spath/save=over] (0,0.5) -- (2,0.5);
2295 \path[spath/save=under] (0,0) -- (1,0) -- (1,1) -- (2,1);
2296 \tikzset{bridge={over}{under}}
2297 \draw[->, spath/use=over] ;
2298 \draw[->, spath/use=under] ;
2299 \end{tikzpicture}} \\
2300
2301 & & \\
2302
2303 & &
2304 \adjustbox{valign=t}{
2305 \begin{tikzpicture}
2306 \node[above] at (1,1) {\footnotesize\verb|\tikzset{bridge radius=20pt}|};
2307 \tikzset{bridge radius=16pt}
2308 \path[spath/save=over] (0,0.5) -- (2,0.5);
2309 \path[spath/save=under] (0,0) -- (1,0) -- (1,1) -- (2,1);
2310 \tikzset{bridge={over}{under}}
2311 \draw[->, spath/use=over] ;
2312 \draw[->, spath/use=under] ;
2313 \end{tikzpicture}} \\
2314
2315 & & \\
2316
2317 \end{longtable}
2318 \end{center}
2319
2320 \section{Control elements}
2321
2322 \subsection{Valve}
2323 \begin{lstlisting}[numbers=none]
2324 \node[valve] {};
2325 \end{lstlisting}
2326 \begin{figure}[h!]
2327 \centering
2328 \begin{tikzpicture}[line width=0.6pt]
2329 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
2330 \node[valve] {};
2331 &
2332 \scalegrid
2333 \node[valve] {};
2334 &
2335 \node[valve, scale=3, draw=lightgray, thick] (f) {};
2336 \markpolar
2337
2338 \foreach \anchor/\pos in {
2339 n/above,
2340 e/right,
2341 w/left,
2342 s/below}
2343 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
2344 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
2345
2346 \foreach \anchor/\pos in {
2347 ne/above right,
2348 nw/above left,
2349 se/below right,
2350 sw/below left}
2351 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
2352 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
2353
2354 \node[red] at (f.center) {$\times$};
2355 \\
2356 };
2357 \end{tikzpicture}
2358 \end{figure}
2359 The |valve| shape provides two opposing triangles as a generic valve shape. Unlike most other shapes the fill color of a |valve| shape is white which allows it to be conveniently placed within a line-drawing operation such as
2360 \begin{center}
2361 \begin{minipage}{4in}
2362 \begin{lstlisting}
2363 \begin{tikzpicture}
2364 \draw[->] (0,0) -- node[valve] {} (2,0);
2365 \end{tikzpicture}
2366 \end{lstlisting}
2367 \end{minipage}\hspace{0.25in}
2368 \begin{minipage}{1in}
2369 \begin{center}
2370 \begin{tikzpicture}
2371 \draw[->] (0,0) -- node[valve] {} (2,0);
2372 \end{tikzpicture}
2373 \end{center}
2374 \end{minipage}
2375 \end{center}
2376 Placement of the valve on the stream can be modified using the standard placement keys (\textit{e.g.}, |middle| or |near start|) or by the |pos=number| key. The valve can also be rotated to an arbitrary angle using the |rotate=degree| key. For example:
2377 \begin{center}
2378 \begin{minipage}{5in}
2379 \begin{lstlisting}
2380 \begin{tikzpicture}
2381 \draw[->] (0,0) -- node[valve, near start] {} (2,0);
2382 \draw[->] (0,-0.5) -- node[valve, near end] {} (2,-0.5);
2383 \draw[->] (0,-1) -- node[valve, pos=0.4] {} (2,-1);
2384 \draw[->] (0,-1.5) -- (1,-1.5) -- node[valve, rotate=90] {} (1,-2.5) -- ++(1,0);
2385 \end{tikzpicture}
2386 \end{lstlisting}
2387 \end{minipage}\hspace{0.25in}
2388 \begin{minipage}{1in}
2389 \begin{center}
2390 \begin{tikzpicture}
2391 \draw[->] (0,0) -- node[valve, near start] {} (2,0);
2392 \draw[->] (0,-0.5) -- node[valve, near end] {} (2,-0.5);
2393 \draw[->] (0,-1) -- node[valve, pos=0.4] {} (2,-1);
2394 \draw[->] (0,-1.5) -- (1,-1.5) --node[valve, rotate=90] {}
2395 (1,-2.5) -- ++(1,0);
2396 \end{tikzpicture}
2397 \end{center}
2398 \end{minipage}
2399 \end{center}
2400
2401
2402 A generic actuator can be added to the |valve| shape by using the |unit ext| key as summarized below.
2403 \begin{center}
2404 \begin{longtable}{p{1.5in}p{3in}c}
2405 \caption{Key-value pairs for the \boldtt{valve} shape.}\\
2406 \toprule
2407 \texttt{key=value} & Description & Example \\
2408 \midrule
2409 \endfirsthead
2410
2411 \multicolumn{3}{c}{\tablename\ \thetable: Key-value pairs for the \boldtt{valve} shape \textit{(cont'd)}} \\
2412 \midrule
2413 \endhead
2414
2415 \bottomrule
2416 \endfoot
2417
2418 \bottomrule
2419 \endlastfoot
2420
2421 \texttt{unit ext=actuator} & Adds a hemisphere-capped protrusion as an indicator of a generic actuation device. The \redtt{actuator} anchor is placed at the top of the hemisphere for electrical connections. Polar coordinate border adjusts to include actuator; no other anchors are shifted. &
2422 \adjustbox{valign=t}{
2423 \begin{tikzpicture}
2424 \node[valve, unit ext=actuator, scale=1.5] (f) {};
2425 \markpolar
2426 \foreach \anchor/\pos in {
2427 actuator/above}
2428 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
2429 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
2430 \end{tikzpicture}} \\
2431 \end{longtable}
2432 \end{center}
2433
2434
2435
2436 \subsection{Non-return valve}
2437 \begin{lstlisting}[numbers=none]
2438 \node[nrv] {};
2439 \end{lstlisting}
2440 \begin{figure}[h!]
2441 \centering
2442 \begin{tikzpicture}[line width=0.6pt]
2443 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
2444 \plainicon{nrv}
2445 &
2446 \scaleicon{nrv}
2447 &
2448 \anchoricon{nrv}{2}
2449 \markpolar
2450 \markcardinal
2451 \markoffcardinal
2452 \\
2453 };
2454 \end{tikzpicture}
2455 \end{figure}
2456 The |nrv| shape provides a slanted arrow between vertical lines as a no-return (or non-return) valve. The arrow tip is set to |Latex[round]| to distinguish the valve operation from other streams. Generally the direction of the arrow should indicate the allowable direction of flow; valve direction can be flipped with |xscale=-1|. This valve is intended to be placed on streams just as |valve| is, and thus the interior fill is white by default. This unit has no |key=value| pairs for additional modification.
2457
2458
2459 \subsection{Pressure relief valve}
2460 \begin{lstlisting}[numbers=none]
2461 \node[prv] {};
2462 \end{lstlisting}
2463 \begin{figure}[h!]
2464 \centering
2465 \begin{tikzpicture}[line width=0.6pt]
2466 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
2467 \plainicon{prv}
2468 &
2469 \scaleicon{prv}
2470 &
2471 \anchoricon{prv}{2}
2472 \markcardinal
2473 \markoffcardinal
2474 \\
2475 };
2476 \end{tikzpicture}
2477 \end{figure}
2478 The |prv| shape provides a pressure relief valve. The shape's center is offset to provide simple alignment in most use cases where the valve is located above another node, for example
2479 \begin{center}
2480 \begin{minipage}{5in}
2481 \begin{lstlisting}
2482 \begin{tikzpicture}
2483 \node [tank reactor, unit int=liquid, unit ext=lower jacket] (r) {};
2484 \node [prv] at (r.nnw) {};
2485 \node [prv, red, xscale=-1] at (r.nne) {};
2486 \end{tikzpicture}
2487 \end{lstlisting}
2488 \end{minipage}\hspace{0.25in}
2489 \begin{minipage}{1in}
2490 \begin{center}
2491 \begin{tikzpicture}
2492 \node [tank reactor, unit int=liquid, unit ext=lower jacket] (r) {};
2493 \node [prv] at (r.nnw) {};
2494 \node [prv, red, xscale=-1] at (r.nne) {};
2495 \end{tikzpicture}
2496 \end{center}
2497 \end{minipage}
2498 \end{center}
2499 The arrow tip is set to |Latex[round]| to distinguish the vent line from other streams. This unit has no |key=value| pairs for additional modification and does not support polar coordinate notation.
2500
2501
2502
2503
2504
2505 \subsection{Controller}
2506 \begin{lstlisting}[numbers=none]
2507 \node[ctrl, ctrl sense=X, ctrl type=YY] {};
2508 \end{lstlisting}\begin{figure}[h!]
2509 \centering
2510 \begin{tikzpicture}[line width=0.6pt]
2511 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
2512 \plainicon{ctrl, ctrl sense=X, ctrl type=YY}
2513 &
2514 \scaleicon{ctrl, ctrl sense=X, ctrl type=YY}
2515 &
2516 \anchoricon{ctrl, ctrl sense=X, ctrl type=YY}{1.5}
2517 \markpolar
2518 \markcardinal
2519 \markoffcardinal
2520 \\
2521 };
2522 \end{tikzpicture}
2523 \end{figure}
2524 The |ctrl| shape provides a flexible controller shape for providing detailed controller information. The various |key=value| pairs shown below allow customization of measured variable, controller type, controller alarm, controller display, and controller numerical identification. Shape conventions follow those of Towler and Sinnott, 2013, Ch. 5.3.
2525 \begin{center}
2526 \begin{longtable}{p{1.5in}p{4in}}
2527 \caption{Key-value pairs for the \boldtt{ctrl} shape.}\\
2528 \toprule
2529 \texttt{key} & Description \\
2530 \midrule
2531 \endfirsthead
2532
2533 \multicolumn{2}{c}{\tablename\ \thetable: Key-value pairs for the \boldtt{ctrl} shape \textit{(cont'd)}} \\
2534 \midrule
2535 \endhead
2536
2537 \bottomrule
2538 \endfoot
2539
2540 \bottomrule
2541 \endlastfoot
2542
2543 |ctrl sense| & Sets the process variable to be measured such as |T| = temperature, |P| = pressure, |F| = flow, \textit{etc}. This key must be combined with a controller type (below) to appear on the controller. This signal variable is copied to the |alarm| setting if provided. \\
2544 & \\
2545 |ctrl type| & Sets the type of controller. Typical types are |I| = indicating, |C| = controlling, |IC| = indicating controlling, |RC| = recording controlling, |T| = transmitting, |V| = final control element.\\
2546 & \\
2547 |ctrl display| & This key sets the shape outline--round or square--and the location of text. Allowable values are |field| = field controller (default, round), |panel| (round with horizontal line), |shared simple| (round and square together), and |shared full| (round, square, and horizontal line all together). \\
2548 & \\
2549 |ctrl alarm| & Alarm indicator. Allowable values are |L| = low alarm only, |H| = high alarm only, |LH| or |HL| = both high and low alarms. \\
2550 & \\
2551 |ctrl alarm side| & Sets the side on which alarm indicator will be drawn. Allowable values are |left| = left side, |right| = right side. \\
2552 & \\
2553 |ctrl numID| & Numerical value to serve as identification, up to 3 digits. \\
2554 \end{longtable}
2555 \end{center}
2556 Below are several examples. Combinations of |ctrl sense| and |ctrl type| should not exceed four characters to avoid sizing issues. In these examples, |ctrl sense=X| and |ctrl type=YY| for illustration purposes.
2557 \begin{figure}[h!]
2558 \centering
2559 \begin{tikzpicture}
2560 \matrix[ column sep=1cm, row sep=0.25cm, nodes={font=\footnotesize}]{%
2561 % Row 1:
2562 &
2563 \node {\texttt{field}}; &
2564 \node {\texttt{panel}}; &
2565 \node {\texttt{shared simple}}; &
2566 \node {\texttt{shared full}}; \\
2567
2568 % Row 2:
2569 &
2570 \node[ctrl, ctrl display = field, ctrl sense = X, ctrl type = YY]{}; &
2571 \node[ctrl, ctrl display = panel, ctrl sense = X, ctrl type = YY]{}; &
2572 \node[ctrl, ctrl display = shared simple, ctrl sense = X, ctrl type = YY]{}; &
2573 \node[ctrl, ctrl display = shared full, ctrl sense = X, ctrl type = YY]{}; \\
2574
2575 % Row 3:
2576 \node[align=left] {\texttt{ctrl numID = 222}}; &
2577 \node[ctrl, ctrl display = field, ctrl sense = X, ctrl type = YY, ctrl numID = 222]{}; &
2578 \node[ctrl, ctrl display = panel, ctrl sense = X, ctrl type = YY, ctrl numID = 222]{}; &
2579 \node[ctrl, ctrl display = shared simple, ctrl sense = X, ctrl type = YY, ctrl numID = 222]{}; &
2580 \node[ctrl, ctrl display = shared full, ctrl sense = X, ctrl type = YY, ctrl numID = 222,]{}; \\
2581
2582 % Row 4:
2583
2584 \node[align=left] {\texttt{ctrl alarm = LH}}; &
2585 \node[ctrl, ctrl display = field, ctrl sense = X, ctrl type = YY, ctrl alarm = LH]{}; &
2586 \node[ctrl, ctrl display = panel, ctrl sense = X, ctrl type = YY, ctrl alarm = LH]{}; &
2587 \node[ctrl, ctrl display = shared simple, ctrl sense = X, ctrl type = YY, ctrl alarm = LH]{}; &
2588 \node[ctrl, ctrl display = shared full, ctrl sense = X, ctrl type = YY, ctrl alarm = LH]{}; \\
2589 };
2590 \end{tikzpicture}
2591 \end{figure}
2592
2593
2594
2595
2596
2597 \subsection{Electrical instruments}
2598
2599 \begin{lstlisting}[numbers=none]
2600 \node[elec] {XX};
2601 \end{lstlisting}
2602 \begin{figure}[h!]
2603 \centering
2604 \begin{tikzpicture}[line width=0.6pt]
2605 \matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
2606 \node[elec] {XX};
2607 &
2608 \scalegrid
2609 \node[elec] {XX};
2610 &
2611 \node[elec, scale=2, draw=lightgray, thick] (f) {XX};
2612 \markpolar
2613
2614 \foreach \anchor/\pos in {
2615 north/above,
2616 east/right,
2617 west/left,
2618 south/below}
2619 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
2620 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
2621
2622 \foreach \anchor/\pos in {
2623 north east/above right,
2624 north west/above left,
2625 south east/below right,
2626 south west/below left}
2627 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
2628 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
2629
2630 \node[red] at (f.center) {$\times$};
2631 \\
2632 };
2633 \end{tikzpicture}
2634 \end{figure}
2635
2636 The |elec| shape provides a modified |circle| shape from the |shapes| library for the purpose of indicating (in a general way) electrical instrumentation such as analyzers, transmitters, and controllers (see the |ctrl| node for more advanced controller design). The anchors \textbf{are not aliased} with their abbreviations because this is not a custom shape of the |pfdicons| package. The fill of |elec| is white which allows it to be conveniently placed within a stream-drawing command such as
2637 \begin{center}
2638 \begin{minipage}{5in}
2639 \begin{lstlisting}
2640 \begin{tikzpicture}
2641 \draw[dashed] (0,0) -- node[elec] {XX} (2,0);
2642 \end{tikzpicture}
2643 \end{lstlisting}
2644 \end{minipage}\hspace{0.25in}
2645 \begin{minipage}{1in}
2646 \begin{center}
2647 \begin{tikzpicture}
2648 \draw[dashed] (0,0) -- node[elec] {XX} (2,0);
2649 \end{tikzpicture}
2650 \end{center}
2651 \end{minipage}
2652 \end{center}
2653 The |elec| shape has no |key=value| pairs to modify its appearance but you can modify the appearance by redefining its |tikzstyle|, which by default is
2654 \begin{lstlisting}[numbers=none]
2655 \tikzstyle{elec} = [circle, draw, solid, fill=white, text badly centered, inner sep=1pt, font=\footnotesize]
2656 \end{lstlisting}
2657 Modifications to this definition can occur either in the preamble (to affect all drawings) or within the document (to subsequent drawings or lines). For example, if you'd like to use circular identifiers with a blue fill and more space around bigger numbers then you could do something like this:
2658 \begin{center}
2659 \begin{minipage}{5in}
2660 \begin{lstlisting}
2661 \begin{tikzpicture}
2662 \draw[dashed] (0,0) -- node[elec] {TT} (2,0);
2663
2664 \tikzstyle{elec} = [circle, draw, solid, fill=blue!15, text badly centered, inner sep=3pt, font=\tiny]
2665
2666 \draw[dashed] (0,-1) -- node[elec] {LT} (2,-1);
2667
2668 \draw[dashed] (0,-2) -- node[elec] {PT} (2,-2);
2669 \end{tikzpicture}
2670 \end{lstlisting}
2671 \end{minipage}\hspace{0.25in}
2672 \begin{minipage}{1in}
2673 \begin{center}
2674 \begin{tikzpicture}
2675 \draw[dashed] (0,0) -- node[elec] {TT} (2,0);
2676
2677 \tikzstyle{elec} = [circle, draw, solid, fill=blue!15, text badly centered, inner sep=3pt, font=\tiny]
2678
2679 \draw[dashed] (0,-1) -- node[elec] {LT} (2,-1);
2680
2681 \draw[dashed] (0,-2) -- node[elec] {PT} (2,-2);
2682 \end{tikzpicture}
2683 \end{center}
2684 \end{minipage}
2685 \end{center}
2686 You can also modify individual parameters while retaining others by passing additional modifiers within the |sid| node usage, like this:
2687 \begin{center}
2688 \begin{minipage}{5in}
2689 \begin{lstlisting}
2690 \begin{tikzpicture}
2691 \draw[dashed] (0,0) -- node[elec] {TT} (2,0);
2692
2693 \draw[dashed] (0,-1) -- node[elec, rectangle, fill=red!20] {LT} (2,-1);
2694
2695 \draw[dashed] (0,-2) -- node[elec] {PT} (2,-2);
2696 \end{tikzpicture}
2697 \end{lstlisting}
2698 \end{minipage}\hspace{0.25in}
2699 \begin{minipage}{1in}
2700 \begin{center}
2701 \begin{tikzpicture}
2702 \draw[dashed] (0,0) -- node[elec] {TT} (2,0);
2703
2704 \draw[dashed] (0,-1) -- node[elec, rectangle, fill=red!20] {LT} (2,-1);
2705
2706 \draw[dashed] (0,-2) -- node[elec] {PT} (2,-2);
2707 \end{tikzpicture}
2708 \end{center}
2709 \end{minipage}
2710 \end{center}
2711
2712
2713 \section{Examples}
2714 The following examples use the |pfdicons| package to replicate process flow diagrams and other diagrams found in several standard undergraduate textbooks. The examples are generally grouped according to the (approximate) course in which they occur: material and energy balances, thermodynamics, reaction engineering, separations, process controls, and capstone design.
2715
2716 \textbf{Caution:} Sometimes copy/pasting example code will introduce artifacts (mostly whitespaces) into the pasted code which are not apparent in this document. If this occurs you can (1) check and remove any erroneous whitespaces in your pasted code, (2) type out the examples here by hand, or (3) copy the code directly from the |pfdicons-doc.tex| file on the CTAN page for this package.
2717
2718 \subsection{Material and energy balances}
2719 \begin{enumerate}[itemindent=0.75in, leftmargin=0.25in, label=\textsc{\textbf{Example \arabic*:}}]
2720
2721 \item A basic separation process consisting of a pump, flash unit, and valve. Source: Himmelblau, D.; Riggs, J. \textit{Basic Principles and Calculations in Chemical Engineering}, 8th ed.; Prentice Hall, 2012.
2722 \begin{center}
2723 \begin{tikzpicture}
2724 \node[centrifugal pump, unit ext=outlet east] (c) {};
2725 \node[vessel, right=2cm of c.outlet] (s) {};
2726 \draw[<-] (c.west) -- ++(-2,0);
2727 \draw[->] (c.outlet) -- (s.west);
2728 \draw[->] (s.north) -- ++(0,0.5) -- node[valve] {} ++(2,0);
2729 \draw[->] (s.south) |- ++(2,-0.5);
2730 \end{tikzpicture}
2731 \end{center}
2732 \begin{lstlisting}
2733 \begin{tikzpicture}
2734 \node[centrifugal pump, unit ext=outlet east] (c) {};
2735 \node[vessel, right=2cm of c.outlet] (s) {};
2736 \draw[<-] (c.west) -- ++(-2,0);
2737 \draw[->] (c.outlet) -- (s.west);
2738 \draw[->] (s.north) -- ++(0,0.5) -- node[valve] {} ++(2,0);
2739 \draw[->] (s.south) |- ++(2,-0.5);
2740 \end{tikzpicture}
2741 \end{lstlisting}
2742
2743 \item A simplified ethylene dichloride synthesis process illustrating the reactor-separator-recycle-purge (RSRP) arrangement. Source: Himmelblau, D.; Riggs, J. \textit{Basic Principles and Calculations in Chemical Engineering}, 8th ed.; Prentice Hall, 2012.
2744 \begin{center}
2745 \begin{tikzpicture}
2746 \node[tube reactor, unit int=packed] (r) {};
2747 \node[column, right=of r] (s) {};
2748 \coordinate [left=of r] (m); % helps set recycle merge point
2749
2750 \draw[<-] (r.west) -- ++(-2,0);
2751 \draw[->] (r.east) -- (s.west);
2752 \draw[->] (s.south) |- ++(1,-0.5);
2753 \draw[->] (s.north) -- ++(0,1);
2754 \draw[->] (s.north) -- ++(0,0.5) -| (m);
2755 \end{tikzpicture}
2756 \end{center}
2757 \begin{lstlisting}
2758 \begin{tikzpicture}
2759 \node[tube reactor, unit int=packed] (r) {};
2760 \node[column, right=of r] (s) {};
2761 \coordinate [left=of r] (m);
2762
2763 \draw[<-] (r.west) -- ++(-2,0);
2764 \draw[->] (r.east) -- (s.west);
2765 \draw[->] (s.south) |- ++(1,-0.5);
2766 \draw[->] (s.north) -- ++(0,1);
2767 \draw[->] (s.north) -- ++(0,0.5) -| (m);
2768 \end{tikzpicture}
2769 \end{lstlisting}
2770 \end{enumerate}
2771
2772
2773 \subsection{Thermodynamics}
2774 \begin{enumerate}[resume*]
2775 \item A simple steam power plant. Source: Figure 8.1 on pg. 270 in Smith, J.M.; Van Ness, H.C.; Abbot, M.M. \textit{Introduction to Chemical Engineering Thermodynamics}, 6th ed.; McGraw-Hill, 2001.
2776 \begin{center}
2777 \begin{tikzpicture}[font=\footnotesize]
2778 % Nodes
2779 \node [basic hx, rotate=90] (boiler) {};
2780 \node [turbine, below right=1cm and 2cm of boiler] (turbine) {};
2781 \node [basic hx, rotate=90, below left=of turbine] (cond) {};
2782 \node [centrifugal pump, below left=of boiler, unit int=inlet south,
2783 unit ext=outlet north west] (pump) {};
2784
2785 % Streams
2786 \draw[->] (boiler.south) -| (turbine.nnw);
2787 \draw[->] (turbine.sse) |- (cond.south);
2788 \draw[->] (cond.north) -| (pump.center);
2789 \draw[->] (pump.outlet) |- (boiler.north);
2790
2791 % Labels
2792 \node[below] at (boiler.west) {Boiler};
2793 \node[above] at (cond.east) {Condenser};
2794 \node[left] at (turbine.west) {Turbine};
2795 \draw[<-] (boiler.east) -- node[pos=1.5] {$\dot{Q}_H$} ++(0,5mm);
2796 \draw[->] (cond.west) -- node[pos=1.5] {$\dot{Q}_C$} ++(0,-5mm);
2797 \draw[->] (turbine.east) -- node[pos=1.5] {$\dot{W}_s$} ++(5mm,0);
2798 \draw[<-] (pump.west) -- node[pos=1.5] {$\dot{W}_s$} ++(-5mm,0);
2799 \end{tikzpicture}
2800 \end{center}
2801 \begin{lstlisting}
2802 \begin{tikzpicture}[font=\footnotesize]
2803 % Units
2804 \node [basic hx, rotate=90] (boiler) {};
2805 \node [turbine, below right=1cm and 2cm of boiler] (turbine) {};
2806 \node [basic hx, rotate=90, below left=of turbine] (cond) {};
2807 \node [centrifugal pump, below left=of boiler, unit int=inlet south, unit ext=outlet north west] (pump) {};
2808
2809 % Streams
2810 \draw[->] (boiler.south) -| (turbine.nnw);
2811 \draw[->] (turbine.sse) |- (cond.south);
2812 \draw[->] (cond.north) -| (pump.center);
2813 \draw[->] (pump.outlet) |- (boiler.north);
2814
2815 % Labels
2816 \node[below] at (boiler.west) {Boiler};
2817 \node[above] at (cond.east) {Condenser};
2818 \node[left] at (turbine.west) {Turbine};
2819 \draw[<-] (boiler.east) -- node[pos=1.5] {$\dot{Q}_H$} ++(0,5mm);
2820 \draw[->] (cond.west) -- node[pos=1.5] {$\dot{Q}_C$} ++(0,-5mm);
2821 \draw[->] (turbine.east) -- node[pos=1.5] {$\dot{W}_s$} ++(5mm,0);
2822 \draw[<-] (pump.west) -- node[pos=1.5] {$\dot{W}_s$} ++(-5mm,0);
2823 \end{tikzpicture}
2824 \end{lstlisting}
2825
2826
2827 \item A two-stage cascade refrigeration system. Here a |matrix| structure is used for node placement but one could equally use positioning keys (\textit{i.e.}, |above|, |below|, and so forth) to achieve similar placement. Source: Figure 9.3 on pg. 301 in Smith, J.M.; Van Ness, H.C.; Abbot, M.M. \textit{Introduction to Chemical Engineering Thermodynamics}, 6th ed.; McGraw-Hill, 2001.
2828 \begin{center}
2829 \begin{tikzpicture}[font=\footnotesize]
2830 % Nodes
2831 \matrix [column sep=1.5cm, row sep=0.75 cm] {
2832 % Row 1
2833 & \node[basic hx, rotate=90] (cond) {};
2834 & \\
2835 % Row 2
2836 \node[valve, rotate=90] (v2) {}; &
2837 \node{\normalsize Cycle 2}; &
2838 \node[turbine] (c2) {}; \\
2839 % Row 3
2840 & \node[shell and tube hx] (intx) {};
2841 & \\
2842 % Row 4
2843 \node[valve, rotate=90] (v1) {}; &
2844 \node{\normalsize Cycle 1}; &
2845 \node[turbine] (c1) {}; \\
2846 % Row 5
2847 & \node[basic hx, rotate=90] (evap) {}; & \\
2848 };
2849
2850 % Streams
2851 \tikzset{>=Stealth}
2852 % Upper loop
2853 \draw[->] (cond.n) -| (v2.e);
2854 \draw[->] (v2.w) |- (intx.wnw);
2855 \draw[->] (intx.ene) -| (c2.sse);
2856 \draw[->] (c2.nnw) |- (cond.s);
2857 % Lower loop
2858 \draw[->] (intx.wsw) -| (v1.e);
2859 \draw[->] (v1.w) |- (evap.n);
2860 \draw[->] (evap.s) -| (c1.sse);
2861 \draw[->] (c1.nnw) |- (intx.ese);
2862
2863 % Labels
2864 \node[above] at (intx.north) {Interchanger};
2865 \node[below] at (cond.w) {Condenser at $T_H$};
2866 \node[above] at (evap.e) {Evaporator at $T_C$};
2867 \node[above left=1pt and 7mm of intx.wnw] {$T^{\prime}_C$};
2868 \node[below left=1pt and 7mm of intx.wsw] {$T^{\prime}_H$};
2869
2870 \draw[<-] (c2.e) -- node[pos=2] {$W_s(2)$} ++(5mm,0);
2871 \draw[<-] (c1.e) -- node[pos=2] {$W_s(1)$} ++(5mm,0);
2872 \draw[->] (cond.e) -- node[pos=1.5] {$\lvert Q_H \rvert$} ++(0,5mm);
2873 \draw[<-] (evap.w) -- node[pos=1.5] {$\lvert Q_C \rvert$} ++(0,-5mm);
2874 \end{tikzpicture}
2875 \end{center}
2876
2877 \begin{lstlisting}
2878 \begin{tikzpicture}[font=\footnotesize]
2879 % \usetikzlibrary{matrix}
2880 % Units
2881 \matrix [column sep=1.5cm, row sep=0.75 cm] {
2882 % Row 1
2883 & \node[basic hx, rotate=90] (cond) {};
2884 & \\
2885 % Row 2
2886 \node[valve, rotate=90] (v2) {}; &
2887 \node{\normalsize Cycle 2}; &
2888 \node[turbine] (c2) {}; \\
2889 % Row 3
2890 & \node[shell and tube hx] (intx) {};
2891 & \\
2892 % Row 4
2893 \node[valve, rotate=90] (v1) {}; &
2894 \node{\normalsize Cycle 1}; &
2895 \node[turbine] (c1) {}; \\
2896 % Row 5
2897 & \node[basic hx, rotate=90] (evap) {}; & \\
2898 };
2899
2900 % Streams
2901 \tikzset{>=Stealth}
2902 % Upper loop
2903 \draw[->] (cond.n) -| (v2.e);
2904 \draw[->] (v2.w) |- (intx.wnw);
2905 \draw[->] (intx.ene) -| (c2.sse);
2906 \draw[->] (c2.nnw) |- (cond.s);
2907 % Lower loop
2908 \draw[->] (intx.wsw) -| (v1.e);
2909 \draw[->] (v1.w) |- (evap.n);
2910 \draw[->] (evap.s) -| (c1.sse);
2911 \draw[->] (c1.nnw) |- (intx.ese);
2912
2913 % Labels
2914 \node[above] at (intx.north) {Interchanger};
2915 \node[below] at (cond.w) {Condenser at $T_H$};
2916 \node[above] at (evap.e) {Evaporator at $T_C$};
2917 \node[above left=1pt and 7mm of intx.wnw] {$T^{\prime}_C$};
2918 \node[below left=1pt and 7mm of intx.wsw] {$T^{\prime}_H$};
2919
2920 \draw[<-] (c2.e) -- node[pos=2] {$W_s(2)$} ++(5mm,0);
2921 \draw[<-] (c1.e) -- node[pos=2] {$W_s(1)$} ++(5mm,0);
2922 \draw[->] (cond.e) -- node[pos=1.5] {$\lvert Q_H \rvert$} ++(0,5mm);
2923 \draw[<-] (evap.w) -- node[pos=1.5] {$\lvert Q_C \rvert$} ++(0,-5mm);
2924 \end{tikzpicture}
2925 \end{lstlisting}
2926 \end{enumerate}
2927
2928
2929
2930 \subsection{Reaction engineering}
2931 \begin{enumerate}[resume*]
2932 \item A series of two CSTRs followed by a PFR as part of a discussion regarding Levenspiel plots. Source: Figure 2-10 on pg. 61 in Fogler, H.S. \textit{Elements of Chemical Reaction Engineering}, 4th ed.; Pearson, 2006.
2933
2934 \begin{center}
2935 \begin{tikzpicture}[font=\footnotesize]
2936 % Custom point marker
2937 \tikzstyle{dot} = [circle, draw, fill=black, inner sep=1.5pt]
2938
2939 % Units
2940 \node[tank reactor, unit int=stirred liquid] (R1) {};
2941 \node[tank reactor, unit int=stirred liquid, below right=of R1]
2942 (R2) {};
2943 \node[tube reactor, unit int=tubular, right=2cm of R2.ese] (R3) {};
2944
2945 % Streams
2946 \draw[<-] (R1.nnw) |- coordinate[at end] (p0) ++(-1.5,0.5);
2947 \draw[->] (R1.ese) -| node[dot, pos=0.3] (p1) {} (R2.nnw);
2948 \draw[->] (R2.ese) -- node[dot, pos=0.3] (p2) {} (R3.w);
2949 \draw[->] (R3.e) -- node[dot] (p3) {} coordinate[at end] (p4) ++(1.5,0);
2950
2951 % Labels
2952 \node[left, align=right] at (p0) {$F_{A0}$\\$X=0$};
2953 \node[above] at (p1) {(1)};
2954 \node[right=5mm of p1, align=left] {$F_{A1}$\\$X_1$};
2955 \node[above] at (p2) {(2)};
2956 \node[above left, align=left] at (R3.w) {$F_{A2}$\\$X_2$};
2957 \node[above] at (p3) {(3)};
2958 \node[right, align=left] at (p4) {$F_{A3}$\\$X_3$};
2959 \end{tikzpicture}
2960 \end{center}
2961 \begin{lstlisting}
2962 \begin{tikzpicture}[font=\footnotesize]
2963 % Custom point marker
2964 \tikzstyle{dot} = [circle, draw, fill=black, inner sep=1.5pt]
2965
2966 % Units
2967 \node[tank reactor, unit int=stirred liquid] (R1) {};
2968 \node[tank reactor, unit int=stirred liquid, below right=of R1] (R2) {};
2969 \node[tube reactor, unit int=tubular, right=2cm of R2.ese] (R3) {};
2970
2971 % Streams
2972 \draw[<-] (R1.nnw) |- coordinate[at end] (p0) ++(-1.5,0.5);
2973 \draw[->] (R1.ese) -| node[dot, pos=0.3] (p1) {} (R2.nnw);
2974 \draw[->] (R2.ese) -- node[dot, pos=0.3] (p2) {} (R3.w);
2975 \draw[->] (R3.e) -- node[dot] (p3) {} coordinate[at end] (p4) ++(1.5,0);
2976
2977 % Labels
2978 \node[left, align=right] at (p0) {$F_{A0}$\\$X=0$};
2979 \node[above] at (p1) {(1)};
2980 \node[right=5mm of p1, align=left] {$F_{A1}$\\$X_1$};
2981 \node[above] at (p2) {(2)};
2982 \node[above left, align=left] at (R3.w) {$F_{A2}$\\$X_2$};
2983 \node[above] at (p3) {(3)};
2984 \node[right, align=left] at (p4) {$F_{A3}$\\$X_3$};
2985 \end{tikzpicture}
2986 \end{lstlisting}
2987
2988 \item Two adiabatic reactors separated by a heat exchanger as part of a discussion regarding interstage heating and cooling. Source: Figure 11.2 on pg. 300 in Drews, A. \textit{An Introduction to Chemical Reaction Engineering with MATLAB}; \texttt{ceng113.eng.ucsd.edu} (2019).
2989
2990 \begin{center}
2991 \begin{tikzpicture}[font=\footnotesize]
2992 % Units
2993 \node[tank reactor, unit int=stirred liquid] (R1) {};
2994 \node[basic hx, unit ext=util, right=2cm of R1] (HX1) {};
2995 \node[tube reactor, unit int=tubular, right=2cm of HX1] (R2) {};
2996
2997 % Streams
2998 \draw[<-] (R1.w) -- node[above, near end] {0} ++(-2,0);
2999 \draw[->] (R1.e) -- node[above] {1} (HX1.w);
3000 \draw[->] (HX1.e) -- node[above] {2} (R2.w);
3001 \draw[->] (R2.e) -- node[above] {3} ++(2,0);
3002
3003 % Control volumes
3004 \coordinate[above left=7mm and 5mm of R1.nw] (a);
3005 \coordinate[below right=7mm and 5mm of R1.se] (b);
3006 \coordinate[above left=9mm and 8mm of R1.nw] (c);
3007 \coordinate[below right=11mm and 5mm of R2.se] (d);
3008 \draw[dashed] (a) rectangle (b);
3009 \draw[dashed] (c) rectangle (d);
3010
3011 % Labels
3012 \node[below] at (R1.s) {R-1};
3013 \node[below] at (HX1.south util) {HX-1};
3014 \node[below] at (R2.s) {R-2};
3015 \node[anchor=base west] at (b) {\textbf{CV1}};
3016 \node[anchor=base west] at (d) {\textbf{CV2}};
3017 \end{tikzpicture}
3018 \end{center}
3019
3020 \begin{lstlisting}
3021 \begin{tikzpicture}[font=\footnotesize]
3022 % Units
3023 \node[tank reactor, unit int=stirred liquid] (R1) {};
3024 \node[basic hx, unit ext=util, right=2cm of R1] (HX1) {};
3025 \node[tube reactor, unit int=tubular, right=2cm of HX1] (R2) {};
3026
3027 % Streams
3028 \draw[<-] (R1.w) -- node[above, near end] {0} ++(-2,0);
3029 \draw[->] (R1.e) -- node[above] {1} (HX1.w);
3030 \draw[->] (HX1.e) -- node[above] {2} (R2.w);
3031 \draw[->] (R2.e) -- node[above] {3} ++(2,0);
3032
3033 % Control volumes
3034 \coordinate[above left=7mm and 5mm of R1.nw] (a);
3035 \coordinate[below right=7mm and 5mm of R1.se] (b);
3036 \coordinate[above left=9mm and 8mm of R1.nw] (c);
3037 \coordinate[below right=11mm and 5mm of R2.se] (d);
3038 \draw[dashed] (a) rectangle (b);
3039 \draw[dashed] (c) rectangle (d);
3040
3041 % Labels
3042 \node[below] at (R1.s) {R-1};
3043 \node[below] at (HX1.south util) {HX-1};
3044 \node[below] at (R2.s) {R-2};
3045 \node[anchor=base west] at (b) {\textbf{CV1}};
3046 \node[anchor=base west] at (d) {\textbf{CV2}};
3047 \end{tikzpicture}
3048 \end{lstlisting}
3049 \end{enumerate}
3050
3051
3052
3053
3054 \subsection{Separations}
3055 \begin{enumerate}[resume*]
3056 \item A general distillation system using a total condenser and partial reboiler. Some annotations have been excluded for clarity (clarity of this document, not the figure: if so desired it would only be a matter of additional |node| elements to replace the excluded annotations). Source: Figure 7.2 on pg. 261 in Seader, J.D.; Henley, E.J.; Roper, D.K. \textit{Separation Process Principles}, 3rd ed.; John Wiley and Sons, 2011.
3057 \begin{center}
3058 \begin{tikzpicture}[font=\footnotesize]
3059 %\usetikzlibrary{decorations.pathmorphing}
3060 % Units
3061 \node[column, unit int=numbered tray, scale=1.5] (c) {};
3062 \node[vessel, rotate=90, unit int=liquid rotated, above right=8mm
3063 and 15mm of c, anchor=north] (drum) {};
3064 \node[basic hx, unit ext=util, above left=8mm and 5mm of drum.north] (cond) {};
3065 \node[basic hx, unit int=U tube, unit ext=util, rotate=90, below
3066 right=5mm and 5mm of c, anchor=east] (reboil) {};
3067
3068 % Helpful points
3069 \coordinate[left=3cm of c.west] (F);
3070 \coordinate[right=4cm of c.north east] (D);
3071 \coordinate[below right=2cm and 2.5cm of c.south east] (B);
3072
3073 % Streams
3074 \draw[->] (c.north) |- (cond.west);
3075 \draw[->] (cond.east) -| (drum.east);
3076 \draw[->] (drum.west) |- (c.north east);
3077 \draw[->] (drum.west) |- (D);
3078 \draw[->] (c.south) |- (reboil.north);
3079 \draw[->] (reboil.east) |- (c.south east);
3080 \draw[->] (reboil.west) |- (B);
3081 \draw[->] (F) -- node[valve, near end] {} (c.west);
3082
3083 % Distillate labels
3084 \node[above=0.5pt of c.top tray] {1};
3085 \node[left=5mm of c.top tray, anchor=east] {Top stage};
3086 \node[anchor=south west] at (c.ne) {Reflux};
3087 \node[above] at (D) {Distillate};
3088 \node[above right] at (cond.ne) {Total condenser};
3089 \node[above right] at (drum.south east) {Reflux drum};
3090
3091 % Feed labels
3092 \node[above=0.5pt of c.feed tray] {$f$};
3093 \node[anchor=south west] at (F) {Feed};
3094 \node[right=5mm of c.feed tray, anchor=west] {Feed stage};
3095 \node[align=left, anchor=north west] at (F) {Light-key\\mole frac, $z_F$};
3096
3097 % Bottoms labels
3098 \node[above=0.5pt of c.bottom tray] {$N$};
3099 \node[above] at (B) {Bottoms};
3100 \node[right] at (reboil.south) {Partial reboiler};
3101 \node[left=5mm of c.bottom tray, anchor=east, align=center] {Bottom\\stage};
3102 \node[below, align=center] at (D) {Light-key\\mole frac, $x_D$};
3103 \node[below, align=center] at (B) {Light-key\\mole frac, $x_B$};
3104 \end{tikzpicture}
3105 \end{center}
3106 \begin{lstlisting}
3107 \begin{tikzpicture}[font=\footnotesize]
3108 %\usetikzlibrary{decorations.pathmorphing}
3109 % Units
3110 \node[column, unit int=numbered tray, scale=1.5] (c) {};
3111 \node[vessel, rotate=90, unit int=liquid rotated, above right=8mm and 15mm of c, anchor=north] (drum) {};
3112 \node[basic hx, unit ext=util, above left=8mm and 5mm of drum.north] (cond) {};
3113 \node[basic hx, unit int=U tube, unit ext=util, rotate=90, below right=5mm and 5mm of c, anchor=east] (reboil) {};
3114
3115 % Helpful points
3116 \coordinate[left=3cm of c.west] (F);
3117 \coordinate[right=4cm of c.north east] (D);
3118 \coordinate[below right=2cm and 2.5cm of c.south east] (B);
3119
3120 % Streams
3121 \draw[->] (c.north) |- (cond.west);
3122 \draw[->] (cond.east) -| (drum.east);
3123 \draw[->] (drum.west) |- (c.north east);
3124 \draw[->] (drum.west) |- (D);
3125 \draw[->] (c.south) |- (reboil.north);
3126 \draw[->] (reboil.east) |- (c.south east);
3127 \draw[->] (reboil.west) |- (B);
3128 \draw[->] (F) -- node[valve, near end] {} (c.west);
3129
3130 % Distillate labels
3131 \node[above=0.5pt of c.top tray] {1};
3132 \node[left=5mm of c.top tray, anchor=east] {Top stage};
3133 \node[anchor=south west] at (c.ne) {Reflux};
3134 \node[above] at (D) {Distillate};
3135 \node[above right] at (cond.ne) {Total condenser};
3136 \node[above right] at (drum.south east) {Reflux drum};
3137
3138 % Feed labels
3139 \node[above=0.5pt of c.feed tray] {$f$};
3140 \node[anchor=south west] at (F) {Feed};
3141 \node[right=5mm of c.feed tray, anchor=west] {Feed stage};
3142 \node[align=left, anchor=north west] at (F) {Light-key\\mole frac, $z_F$};
3143
3144 % Bottoms labels
3145 \node[above=0.5pt of c.bottom tray] {$N$};
3146 \node[above] at (B) {Bottoms};
3147 \node[right] at (reboil.south) {Partial reboiler};
3148 \node[left=5mm of c.bottom tray, anchor=east, align=center] {Bottom\\stage};
3149 \node[below, align=center] at (D) {Light-key\\mole frac, $x_D$};
3150 \node[below, align=center] at (B) {Light-key\\mole frac, $x_B$};
3151 \end{tikzpicture}
3152 \end{lstlisting}
3153
3154 \item A schematic of pressure-swing adsorption for the dehydration of air. In this diagram the original authors used approximately the same symbol for a filter as the adsorber, a similarity retained here. A matrix was again used to help with alignment and several |tikzstyle| definitions were used to create ``shortcut'' shapes for the |filter|, |ads|, and |pump| units. Source: Figure 15.2 on pg. 570 in Seader, J.D.; Henley, E.J.; Roper, D.K. \textit{Separation Process Principles}, 3rd ed.; John Wiley and Sons, 2011.
3155
3156 \begin{center}
3157 \begin{tikzpicture}[font=\footnotesize]
3158 % \usetikzlibrary{matrix}
3159
3160 % Definitions
3161 \tikzstyle{filter} = [tube reactor, unit int=packed, rotate=90,
3162 scale=0.75];
3163 \tikzstyle{ads} = [tube reactor, unit int=packed, rotate=90];
3164 \tikzstyle{pump} = [reciprocating pump, yscale=-1];
3165
3166 % Nodes
3167 \matrix [column sep=1.5cm, row sep=0.5 cm] {
3168 % 4 columns: & & & \\
3169 & & \node[filter] (f1) {}; & \\
3170 & & & \\
3171 & & & \\
3172 & \node[ads] (ads1) {}; & & \node[ads] (ads2) {};\\
3173 & & & \\
3174 & & \node[filter] (f2) {}; & \\ % f2
3175 \node[pump] (p) {}; & \node[basic hx, unit ext=util] (hx) {};& & \\ % pump+cooler
3176 };
3177
3178 % Helper points
3179 \coordinate[above=5mm of f2.e] (v2); % for valves near f2
3180 \coordinate[below=11mm of f1.w] (v1); % for valves near f1
3181
3182 % Streams
3183 \draw[<-] (p.w) -- node[pos=1.7] {Moist air} ++(-1,0);
3184 \draw[->] (p.e) -- (hx.w);
3185 \draw[->] (hx.e) -| (f2.w);
3186 \draw[->] (f2.e) -- (v2);
3187 \draw (v2) -| node[valve, near start] {} (ads1.w);
3188 \draw[->] (ads1.w |- v2) -- node[valve] {} node[anchor=north, at end] {Purge} ++(-2,0);
3189 \draw (v2) -| node[valve, near start] {} (ads2.w);
3190 \draw[->] (ads2.w |- v2) -- node[valve] {} node[anchor=north, at end] {Purge} ++(2,0);
3191 \draw (ads1.e) |- node[valve, near end] {} (v1) -| node[valve, near start] {} (ads2.e);
3192 \draw (v1) -- node[valve, rotate=90] {} (f1.w);
3193 \draw (ads1.e) -- ++(0,1.3) -| (ads2.e);
3194 \draw[->] (f1.e) -- ++(0,5mm);
3195
3196 % Labels
3197 \node[right, align=center] at (f1.s) {Particulate\\filter};
3198 \node[right, align=center] at (ads2.s) {Adsorber\\no. 2};
3199 \node[left, align=center] at (ads1.n) {Adsorber\\no. 1};
3200 \node[right, align=center] at (f2.s) {Coalescing\\filter};
3201 \node[below, align=center] at (p.n) {Gas\\compressor};
3202 \node[below] at (hx.south util) {Aftercooler};
3203 \node[above] at (hx.north util) {cw};
3204
3205 \end{tikzpicture}
3206 \end{center}
3207
3208
3209 \begin{lstlisting}
3210 \begin{tikzpicture}[font=\footnotesize]
3211 % \usetikzlibrary{matrix}
3212
3213 % Definitions
3214 \tikzstyle{filter} = [tube reactor, unit int=packed, rotate=90, scale=0.75];
3215 \tikzstyle{ads} = [tube reactor, unit int=packed, rotate=90];
3216 \tikzstyle{pump} = [reciprocating pump, yscale=-1];
3217
3218 % Nodes
3219 \matrix [column sep=1.5cm, row sep=0.5 cm] {
3220 % 4 columns: & & & \\
3221 & & \node[filter] (f1) {}; & \\
3222 & & & \\
3223 & & & \\
3224 & \node[ads] (ads1) {}; & & \node[ads] (ads2) {};\\
3225 & & & \\
3226 & & \node[filter] (f2) {}; & \\ % f2
3227 \node[pump] (p) {}; & \node[basic hx, unit ext=util] (hx) {};& & \\ % pump+cooler
3228 };
3229
3230 % Helper points
3231 \coordinate[above=5mm of f2.e] (v2); % for valves near f2
3232 \coordinate[below=11mm of f1.w] (v1); % for valves near f1
3233
3234 % Streams
3235 \draw[<-] (p.w) -- node[pos=1.7] {Moist air} ++(-1,0);
3236 \draw[->] (p.e) -- (hx.w);
3237 \draw[->] (hx.e) -| (f2.w);
3238 \draw[->] (f2.e) -- (v2);
3239 \draw (v2) -| node[valve, near start] {} (ads1.w);
3240 \draw[->] (ads1.w |- v2) -- node[valve] {} node[anchor=north, at end] {Purge} ++(-2,0);
3241 \draw (v2) -| node[valve, near start] {} (ads2.w);
3242 \draw[->] (ads2.w |- v2) -- node[valve] {} node[anchor=north, at end] {Purge} ++(2,0);
3243 \draw (ads1.e) |- node[valve, near end] {} (v1) -| node[valve, near start] {} (ads2.e);
3244 \draw (v1) -- node[valve, rotate=90] {} (f1.w);
3245 \draw (ads1.e) -- ++(0,1.3) -| (ads2.e);
3246 \draw[->] (f1.e) -- ++(0,5mm);
3247
3248 % Labels
3249 \node[right, align=center] at (f1.s) {Particulate\\filter};
3250 \node[right, align=center] at (ads2.s) {Adsorber\\no. 2};
3251 \node[left, align=center] at (ads1.n) {Adsorber\\no. 1};
3252 \node[right, align=center] at (f2.s) {Coalescing\\filter};
3253 \node[below, align=center] at (p.n) {Gas\\compressor};
3254 \node[below] at (hx.south util) {Aftercooler};
3255 \node[above] at (hx.north util) {cw};
3256
3257 \end{tikzpicture}
3258 \end{lstlisting}
3259 \end{enumerate}
3260
3261
3262 \subsection{Process controls}
3263 \begin{enumerate}[resume*]
3264 \item A comparison of feedforward and feedback control systems. This example illustrates the use of absolute positioning (only for variety, not because it's necessary). Source: Figure E1.9 on pg. 13 in Seborg, D.E.; Edgar, T.F.; Mellichamp, D.A.; Doyle III, F.J. \textit{Process Dynamics and Control}, 4th ed.; John Wiley and Sons, 2016.
3265 \begin{center}
3266 \begin{tikzpicture}[font=\footnotesize]
3267 % Feedforward system
3268 \draw[->] (0,0) -- ++(4,0);
3269 \node[elec] at (1, 0.5) (ft1) {FT};
3270 \node[elec] at (2, 1.2) (fc1) {FC};
3271 \node[valve, unit ext=actuator, scale=1.5] at (3,0) (v1) {};
3272 \node[left] at (0,0) {Liquid};
3273 \node[below] at (2,-0.1) {System A};
3274 \draw (1,0) -- (ft1.south);
3275 \draw[->, dashed] (ft1.north) |- (fc1.west);
3276 \draw[->, dashed] (fc1.east) -| (v1.actuator);
3277
3278 % Feedback system
3279 \draw[->] (0,-2.5) -- ++(4,0);
3280 \node[valve, unit ext=actuator, scale=1.5] at (1,-2.5) (v2) {};
3281 \node[elec] at (2, -1.2) (fc2) {FC};
3282 \node[elec] at (3, -2) (ft2) {FT};
3283
3284 \node[left] at (0,-2.5) {Liquid};
3285 \node[below] at (2,-2.6) {System B};
3286 \draw (3,-2.5) -- (ft2.south);
3287 \draw[->, dashed] (ft2.north) |- (fc2.east);
3288 \draw[->, dashed] (fc2.west) -| (v2.actuator);
3289 \end{tikzpicture}
3290 \end{center}
3291 \begin{lstlisting}
3292 \begin{tikzpicture}[font=\footnotesize]
3293 % Feedforward system
3294 \draw[->] (0,0) -- ++(4,0);
3295 \node[elec] at (1, 0.5) (ft1) {FT};
3296 \node[elec] at (2, 1.2) (fc1) {FC};
3297 \node[valve, unit ext=actuator, scale=1.5] at (3,0) (v1) {};
3298 \node[left] at (0,0) {Liquid};
3299 \node[below] at (2,-0.1) {System A};
3300 \draw (1,0) -- (ft1.south);
3301 \draw[->, dashed] (ft1.north) |- (fc1.west);
3302 \draw[->, dashed] (fc1.east) -| (v1.actuator);
3303
3304 % Feedback system
3305 \draw[->] (0,-2.5) -- ++(4,0);
3306 \node[valve, unit ext=actuator, scale=1.5] at (1,-2.5) (v2) {};
3307 \node[elec] at (2, -1.2) (fc2) {FC};
3308 \node[elec] at (3, -2) (ft2) {FT};
3309
3310 \node[left] at (0,-2.5) {Liquid};
3311 \node[below] at (2,-2.6) {System B};
3312 \draw (3,-2.5) -- (ft2.south);
3313 \draw[->, dashed] (ft2.north) |- (fc2.east);
3314 \draw[->, dashed] (fc2.west) -| (v2.actuator);
3315 \end{tikzpicture}
3316 \end{lstlisting}
3317
3318
3319
3320 \item A blending system controlled by measuring the composition of the stream 1 and adjusting a control valve on stream two. Source: Figure 1.5 on pg. 5 in Seborg, D.E.; Edgar, T.F.; Mellichamp, D.A.; Doyle III, F.J. \textit{Process Dynamics and Control}, 4th ed.; John Wiley and Sons, 2016.
3321 \begin{center}
3322 \begin{tikzpicture}[font=\footnotesize]
3323 % Units
3324 \node[tank reactor, unit int=stirred liquid, scale=2] (r) {};
3325 \node[elec, above=of r] (ac) {AC};
3326
3327 % Helpful points
3328 \coordinate[left=2cm of r.nw] (f1);
3329 \coordinate[right=2cm of r.ne] (f2);
3330 \coordinate[right=2cm of r.se] (p);
3331
3332 % Streams and stream labels
3333 \draw[->] (f1) -- coordinate[pos=0.7] (s) (r.nw);
3334 \draw[->] (f2) -- node[valve, unit ext=actuator, pos=0.6] (v) {} (r.ne);
3335 \draw[->] (r.e) -- ++(3mm,0) |- (p);
3336 \node[left, align=right] at (f1) {$x_1$\\$w_1$};
3337 \node[right, align=left] at (f2) {$x_2=1$\\$w_2$};
3338 \node[right, align=left] at (p) {$x$\\$w$};
3339
3340 % Control elements
3341 \node[elec, above=5mm of s] (at) {AT};
3342 \draw (s) -- (at.south);
3343 \draw[->, dashed] (at.north) |- (ac.west);
3344 \draw[->, dashed] (ac.east) -| (v.actuator);
3345
3346 % Labels
3347 \node[align=center, anchor=south east] at (at.west) {Composition\\analyzer/transmitter};
3348 \node[align=left, anchor=south west] at (v.ne) {Control\\valve};
3349 \node[align=center, above] at (ac.north) {Composition\\controller};
3350 \end{tikzpicture}
3351 \end{center}
3352 \begin{lstlisting}
3353 \begin{tikzpicture}[font=\footnotesize]
3354 % Units
3355 \node[tank reactor, unit int=stirred liquid, scale=2] (r) {};
3356 \node[elec, above=of r] (ac) {AC};
3357
3358 % Helpful points
3359 \coordinate[left=2cm of r.nw] (f1);
3360 \coordinate[right=2cm of r.ne] (f2);
3361 \coordinate[right=2cm of r.se] (p);
3362
3363 % Streams and stream labels
3364 \draw[->] (f1) -- coordinate[pos=0.7] (s) (r.nw);
3365 \draw[->] (f2) -- node[valve, unit ext=actuator, pos=0.6] (v) {} (r.ne);
3366 \draw[->] (r.e) -- ++(3mm,0) |- (p);
3367 \node[left, align=right] at (f1) {$x_1$\\$w_1$};
3368 \node[right, align=left] at (f2) {$x_2=1$\\$w_2$};
3369 \node[right, align=left] at (p) {$x$\\$w$};
3370
3371 % Control elements
3372 \node[elec, above=5mm of s] (at) {AT};
3373 \draw (s) -- (at.south);
3374 \draw[->, dashed] (at.north) |- (ac.west);
3375 \draw[->, dashed] (ac.east) -| (v.actuator);
3376
3377 % Labels
3378 \node[align=center, anchor=south east] at (at.west) {Composition\\analyzer/transmitter};
3379 \node[align=center, anchor=south west] at (v.ne) {Control\\valve};
3380 \node[align=center, above] at (ac.north) {Composition\\controller};
3381 \end{tikzpicture}
3382 \end{lstlisting}
3383
3384
3385
3386 \item A typical control loop with transmitter, controller, alarms, and control element. Source: Figure 5.8 on pg. 221 in Sinnott, T.; Towler, G. \textit{Chemical Engineering Design}, 6th ed.; Elsevier, 2020.
3387 \begin{center}
3388 \begin{tikzpicture}[font=\footnotesize]
3389 % Main elements
3390 \draw[thick] (0,0) -- (5cm, 0cm); % process stream
3391 \node [valve, unit ext=actuator, scale=1.5] (v) at (1cm, 0cm) {}; % valve w/ actuator
3392 \node [ctrl, ctrl sense=P, ctrl type=V, above right=2mm and 4mm of v.actuator] (pv) {}; % valve label
3393 \node [ctrl, ctrl sense=P, ctrl type=T, above right=5mm and 15mm of v] (pt) {}; % transmitter
3394 \node [ctrl,
3395 ctrl display=shared full,
3396 ctrl sense=P,
3397 ctrl type=IC,
3398 ctrl alarm=HL, ctrl alarm side=left,
3399 right=of pt
3400 ] (pic) {}; % indicating cont. w/ alarms
3401
3402 % Lines
3403 \draw (pt.s) -- (pt.s |- v.w); % transmitter to process
3404 \draw[dashed] (pt.e) -- (pic.w); % transmitter to IC
3405 \draw[dashed] (pic.n) -- ++(0mm,5mm) -| (v.actuator); % IC to V
3406 \draw (pv.sw) -- ++(225:2.5mm); % unusual label
3407 \end{tikzpicture}
3408 \end{center}
3409 \begin{lstlisting}
3410 \begin{tikzpicture}
3411 % Process stream
3412 \draw[thick] (0,0) -- (5cm, 0cm);
3413
3414 % Controller elements
3415 \node [valve, unit ext=actuator, scale=1.5] (v) at (1cm, 0cm) {};
3416 \node [ctrl, ctrl sense=P, ctrl type=V, above right=2mm and 4mm of v.actuator] (pv) {};
3417 \node [ctrl, ctrl sense=P, ctrl type=T, above right=5mm and 15mm of v] (pt) {};
3418 \node [ctrl,
3419 ctrl display=shared full,
3420 ctrl sense=P,
3421 ctrl type=IC,
3422 ctrl alarm=HL,
3423 ctrl alarm side=left,
3424 right=of pt
3425 ] (pic) {};
3426
3427 % Signal lines
3428 \draw (pt.s) -- (pt.s |- v.w);
3429 \draw[dashed] (pt.e) -- (pic.w);
3430 \draw[dashed] (pic.n) -- ++(0mm,5mm) -| (v.actuator);
3431 \draw (pv.sw) -- ++(215:2mm);
3432 \end{tikzpicture}
3433 \end{lstlisting}
3434
3435 \end{enumerate}
3436
3437 \newpage
3438 \subsection{Capstone processes}
3439 \begin{enumerate}[resume*]
3440 \item Hydrodealkylation of toluene to produce benzene. Source: Figure 1.3 in Turton, R.; Bailie, R.C.; Whiting, W.B.; Shaeiwitz, J.A. \textit{Analysis, Synthesis, and Design of Chemical Processes}, 3rd ed.; Pearson, 2009.
3441 \end{enumerate}
3442
3443
3444 \begin{center}
3445 \makebox[\textwidth][c]{%
3446 \begin{tikzpicture}[font=\footnotesize]
3447 % Reduce stream label sizes
3448 \tikzstyle{sid} = [diamond, draw, solid, fill=white, text badly centered, inner sep=1pt, font=\tiny]
3449
3450 % Units
3451 \node[vessel, rotate=90] (V101) {};
3452 \node[reciprocating pump, below right=0.75cm and 0.5cm of V101] (P101) {};
3453 \node[basic hx, unit ext=util, above right=0.25cm and 2.75cm of V101] (E101) {};
3454 \node[fired hx, below right=1cm and 0.6cm of E101, anchor=west] (H101) {};
3455 \node[tube reactor, unit int=packed, right=of H101, anchor=center, rotate=90] (R101) {};
3456 \node[turbine, right=1.5cm of R101.se] (C101) {};
3457 \node[basic hx, unit ext=util, below=of C101] (E102) {};
3458 \node[vessel, unit int=phase sep, right=0.5cm of E102] (V102) {};
3459 \node[vessel, unit int=phase sep, below=of V102.se, anchor=west] (V103) {};
3460 \node[basic hx, unit ext=util, right=2.75cm of C101] (E103) {};
3461 \node[column, unit int=tray, right=1cm of E103] (T101) {};
3462 \node[basic hx, unit ext=util, below left=0.5cm and 0.7cm of T101.s] (E106) {};
3463 \node[basic hx, unit ext=util, above right=0.5cm and 1cm of T101.n] (E104) {};
3464 \node[vessel, rotate=90, below right=1cm and 0.5cm of E104] (V104) {};
3465 \node[centrifugal pump, below=1cm of V104.nw] (P102) {};
3466 \node[basic hx, unit ext=util, below=0.5cm of P102] (E105) {};
3467 \node[product, right=1.3cm of E105] (bz) {};
3468 \node[product, above=4.5cm of bz] (fuel) {};
3469 \node[feed, above left=0.75cm and 1cm of V101.ne] (tol) {};
3470 \node[feed, below=3.5cm of tol] (h2) {};
3471
3472 % Streams
3473 \draw[->] (tol.e) -| node[sid, near start]{1} node[valve, near end, rotate=90]{} (V101.ne);
3474 \draw[->] (V101.sw) |- (P101.w);
3475 \draw[->] (P101.n) |- (E101.w);
3476 \draw[<-] (V101.se) |- node[valve, pos=0.6]{} node[sid, pos=0.83]{2} (E101.w) node[pos=0.92](n1){} ;
3477 \draw[->] (E101.e) -- ++(0.2,0) |- node[sid, near start]{4} (H101.w);
3478 \draw[->] (H101.e) -| node[sid,near end]{6} ++(0.3,1) -| (R101.e);
3479 \draw[->] (E102.e) -- (V102.w);
3480 \draw[->] (V102.s) |- node[valve, rotate=90, near start]{} (V103.w);
3481 \draw[->] (V103.s) |- node[valve, rotate=90, near start]{} ++(0.5,-0.6) |- node[sid, near start]{18} (E103.w);
3482 \draw[->] (E103.e) -- node[sid, pos=0.4]{10} (T101.w);
3483 \draw[->] (T101.ssw) |- (E106.e);
3484 \draw[->] (E106.w) -- ++(-0.2,0) |- (T101.sw);
3485 \draw[->] (T101.n) |- node[sid,near end]{13} (E104.w);
3486 \draw[->] (E104.e) -| (V104.ne);
3487 \draw[->] (V104.sw) |- (P102.e);
3488 \draw[->] (P102.w) -- ++(-0.75,0) |- node[sid,pos=0.15]{12} node[valve,rotate=90,pos=0.4]{} (T101.ne);
3489 \draw[->] (P102.w) -- node[sid]{14} ++(-0.75,0) |- node[valve,rotate=90,near start]{} (E105.w);
3490 \draw[->] (E105.e) -- (bz.w);
3491 \draw[->] (V103.n) |- node[sid, pos=0.2]{17} node[valve,rotate=90, pos=0.3]{} (fuel.w);
3492 \draw[->] (V102.n) |- node[sid, pos=0.2]{8} node[valve,rotate=90, pos=0.3]{} node[sid, pos=0.96]{16} (fuel.w);
3493 \draw[->] (V104.e) -- node[sid,pos=0.3]{19} node[valve,rotate=90,pos=0.6]{} (V104 |- fuel);
3494 \draw[->] (V102.n) |- (C101.e);
3495 \draw[->] (C101.w) -- node[valve, near start]{} node[sid,near end]{7} (R101.se) node[pos=0.5](n2){};
3496
3497
3498 % Cross stream 9 over 5
3499 \path[spath/save=over1] (R101.w) |- (E102.w);
3500 \path[spath/save=under1] (n2 |- C101) |- (n1 |- V103) -| (n1 |- E101);
3501 \tikzset{bridge={over1}{under1}}
3502 \draw[->, spath/use=over1] node[sid, pos=0.5]{9};
3503 \draw[->, spath/use=under1] node[sid, pos=0.5]{5};
3504
3505
3506 % Cross stream 3 over 11
3507 \path[spath/save=over2] (h2.e) -- (n1 |- h2);
3508 \path[spath/save=under2] (T101.s) -- ++(0,-3.5) -| (V101.w);
3509 \tikzset{bridge={over2}{under2}}
3510 \draw[->, spath/use=over2] node[sid, pos=0.2]{3};
3511 \draw[->, spath/use=under2] node[sid, pos=0.4]{11};
3512
3513
3514 % Unit labels
3515 \node at (V101.center) {V-101};
3516 \node[below] at (P101.s) {P-101};
3517 \node[above] at (E101.north util) {E-101};
3518 \node[left] at (H101.sw) {H-101};
3519 \node[above=4mm of R101.e] {R-101};
3520 \node[above=1mm of C101.n] {C-101};
3521 \node[below] at (E102.south util) {E-102};
3522 \node[left, anchor=south east] at (V102.n) {V-102};
3523 \node[below left, anchor=north east] at (V103.sw) {V-103};
3524 \node[above] at (E103.north util) {E-103};
3525 \node[above left] at (T101.nw) {T-101};
3526 \node[above] at (E104.north util) {E-104};
3527 \node at (V104.center) {V-104};
3528 \node[above] at (P102.n) {P-102};
3529 \node[below] at (E105.south util) {E-105};
3530 \node[below] at (E106.south util) {E-106};
3531
3532 % Stream labels
3533 \node[above] at (tol.n) {toluene};
3534 \node[above] at (h2.n) {hydrogen};
3535 \node[below] at (bz.s) {benzene};
3536 \node[above] at (fuel.n) {fuel gas};
3537
3538 % Utility labels
3539 \tikzset{font=\scriptsize}
3540 \node[right] at (E105.north util) {cw};
3541 \node[below] at (E104.south util) {cw};
3542 \node[above] at (E102.north util) {cw};
3543 \node[right] at (E106.north util) {mps};
3544 \node[below] at (E101.south util) {hps};
3545
3546 \draw[->] (H101.n) -- node[at end, right, align=center] {combustion\\products} ++(0,0.8);
3547 \draw[<-] (H101.sse) -- node[right, align=left] {fuel\\gas} ++(0,-0.8);
3548 \draw[<-] (H101.ssw) -- node[left] {air} ++(0,-0.8);
3549 \end{tikzpicture}
3550 }
3551 \end{center}
3552
3553 \begin{lstlisting}
3554 \begin{tikzpicture}[font=\footnotesize]
3555 % Reduce stream label sizes
3556 \tikzstyle{sid} = [diamond, draw, solid, fill=white, text badly centered, inner sep=1pt, font=\tiny]
3557
3558 % Units
3559 \node[vessel, rotate=90] (V101) {};
3560 \node[reciprocating pump, below right=0.75cm and 0.5cm of V101] (P101) {};
3561 \node[basic hx, unit ext=util, above right=0.25cm and 2.75cm of V101] (E101) {};
3562 \node[fired hx, below right=1cm and 0.6cm of E101, anchor=west] (H101) {};
3563 \node[tube reactor, unit int=packed, right=of H101, anchor=center, rotate=90] (R101) {};
3564 \node[turbine, right=1.5cm of R101.se] (C101) {};
3565 \node[basic hx, unit ext=util, below=of C101] (E102) {};
3566 \node[vessel, unit int=phase sep, right=0.5cm of E102] (V102) {};
3567 \node[vessel, unit int=phase sep, below=of V102.se, anchor=west] (V103) {};
3568 \node[basic hx, unit ext=util, right=2.75cm of C101] (E103) {};
3569 \node[column, unit int=tray, right=1cm of E103] (T101) {};
3570 \node[basic hx, unit ext=util, below left=0.5cm and 0.7cm of T101.s] (E106) {};
3571 \node[basic hx, unit ext=util, above right=0.5cm and 1cm of T101.n] (E104) {};
3572 \node[vessel, rotate=90, below right=1cm and 0.5cm of E104] (V104) {};
3573 \node[centrifugal pump, below=1cm of V104.nw] (P102) {};
3574 \node[basic hx, unit ext=util, below=0.5cm of P102] (E105) {};
3575 \node[product, right=1.3cm of E105] (bz) {};
3576 \node[product, above=4.5cm of bz] (fuel) {};
3577 \node[feed, above left=0.75cm and 1cm of V101.ne] (tol) {};
3578 \node[feed, below=3.5cm of tol] (h2) {};
3579
3580 % Streams
3581 \draw[->] (tol.e) -| node[sid, near start]{1} node[valve, near end, rotate=90]{} (V101.ne);
3582 \draw[->] (V101.sw) |- (P101.w);
3583 \draw[->] (P101.n) |- (E101.w);
3584 \draw[<-] (V101.se) |- node[valve, pos=0.6]{} node[sid, pos=0.83]{2} (E101.w) node[pos=0.92](n1){} ;
3585 \draw[->] (E101.e) -- ++(0.2,0) |- node[sid, near start]{4} (H101.w);
3586 \draw[->] (H101.e) -| node[sid,near end]{6} ++(0.3,1) -| (R101.e);
3587 \draw[->] (E102.e) -- (V102.w);
3588 \draw[->] (V102.s) |- node[valve, rotate=90, near start]{} (V103.w);
3589 \draw[->] (V103.s) |- node[valve, rotate=90, near start]{} ++(0.5,-0.6) |- node[sid, near start]{18} (E103.w);
3590 \draw[->] (E103.e) -- node[sid, pos=0.4]{10} (T101.w);
3591 \draw[->] (T101.ssw) |- (E106.e);
3592 \draw[->] (E106.w) -- ++(-0.2,0) |- (T101.sw);
3593 \draw[->] (T101.n) |- node[sid,near end]{13} (E104.w);
3594 \draw[->] (E104.e) -| (V104.ne);
3595 \draw[->] (V104.sw) |- (P102.e);
3596 \draw[->] (P102.w) -- ++(-0.75,0) |- node[sid,pos=0.15]{12} node[valve,rotate=90,pos=0.4]{} (T101.ne);
3597 \draw[->] (P102.w) -- node[sid]{14} ++(-0.75,0) |- node[valve,rotate=90,near start]{} (E105.w);
3598 \draw[->] (E105.e) -- (bz.w);
3599 \draw[->] (V103.n) |- node[sid, pos=0.2]{17} node[valve,rotate=90, pos=0.3]{} (fuel.w);
3600 \draw[->] (V102.n) |- node[sid, pos=0.2]{8} node[valve,rotate=90, pos=0.3]{} node[sid, pos=0.96]{16} (fuel.w);
3601 \draw[->] (V104.e) -- node[sid,pos=0.3]{19} node[valve,rotate=90,pos=0.6]{} (V104 |- fuel);
3602 \draw[->] (V102.n) |- (C101.e);
3603 \draw[->] (C101.w) -- node[valve, near start]{} node[sid,near end]{7} (R101.se) node[pos=0.5](n2){};
3604
3605 % Cross stream 9 over 5
3606 \path[spath/save=over1] (R101.w) |- (E102.w);
3607 \path[spath/save=under1] (n2 |- C101) |- (n1 |- V103) -| (n1 |- E101);
3608 \tikzset{bridge={over1}{under1}}
3609 \draw[->, spath/use=over1] node[sid, pos=0.5]{9};
3610 \draw[->, spath/use=under1] node[sid, pos=0.5]{5};
3611
3612 % Cross stream 3 over 11
3613 \path[spath/save=over2] (h2.e) -- (n1 |- h2);
3614 \path[spath/save=under2] (T101.s) -- ++(0,-3.5) -| (V101.w);
3615 \tikzset{bridge={over2}{under2}}
3616 \draw[->, spath/use=over2] node[sid, pos=0.2]{3};
3617 \draw[->, spath/use=under2] node[sid, pos=0.4]{11};
3618
3619 % Unit labels
3620 \node at (V101.center) {V-101};
3621 \node[below] at (P101.s) {P-101};
3622 \node[above] at (E101.north util) {E-101};
3623 \node[left] at (H101.sw) {H-101};
3624 \node[above=4mm of R101.e] {R-101};
3625 \node[above=1mm of C101.n] {C-101};
3626 \node[below] at (E102.south util) {E-102};
3627 \node[left, anchor=south east] at (V102.n) {V-102};
3628 \node[below left, anchor=north east] at (V103.sw) {V-103};
3629 \node[above] at (E103.north util) {E-103};
3630 \node[above left] at (T101.nw) {T-101};
3631 \node[above] at (E104.north util) {E-104};
3632 \node at (V104.center) {V-104};
3633 \node[above] at (P102.n) {P-102};
3634 \node[below] at (E105.south util) {E-105};
3635 \node[below] at (E106.south util) {E-106};
3636
3637 % Stream labels
3638 \node[above] at (tol.n) {toluene};
3639 \node[above] at (h2.n) {hydrogen};
3640 \node[below] at (bz.s) {benzene};
3641 \node[above] at (fuel.n) {fuel gas};
3642
3643 % Utility labels
3644 \tikzset{font=\scriptsize}
3645 \node[right] at (E105.north util) {cw};
3646 \node[below] at (E104.south util) {cw};
3647 \node[above] at (E102.north util) {cw};
3648 \node[right] at (E106.north util) {mps};
3649 \node[below] at (E101.south util) {hps};
3650
3651 \draw[->] (H101.n) -- node[at end, right, align=center] {combustion\\products} ++(0,0.8);
3652 \draw[<-] (H101.sse) -- node[right, align=left] {fuel\\gas} ++(0,-0.8);
3653 \draw[<-] (H101.ssw) -- node[left] {air} ++(0,-0.8);
3654 \end{tikzpicture}
3655 \end{lstlisting}
3656
3657
3658 \newgeometry{margin=0.5in}
3659 \pagenumbering{gobble}
3660
3661 \section{Quick reference}
3662 \subsection*{Heat exchangers}
3663 \begin{center}
3664 \begin{tikzpicture}[font=\footnotesize\ttfamily]
3665 \matrix[
3666 column sep=0.25cm,
3667 row sep=0.25cm,
3668 column1/.style={nodes={anchor=center}},
3669 column2/.style={nodes={anchor=center}},
3670 column2/.style={nodes={anchor=center}}]{
3671 % ==========================
3672 % Header
3673 % ==========================
3674 \node (s) {\normalsize\textbf{shape name}};
3675 \draw (s.south west) -- (s.south east);
3676 &
3677 \node (s) {\normalsize\textbf{default}};
3678 \draw (s.south west) -- (s.south east);
3679 &
3680 \node (s) {\normalsize\textbf{anchors}};
3681 \draw (s.south west) -- (s.south east);
3682 &
3683 \node (s) {\normalsize\textbf{unit int}};
3684 \draw (s.south west) -- (s.south east);
3685 &
3686 \node (s) {\normalsize\textbf{unit ext}};
3687 \draw (s.south west) -- (s.south east);
3688 \\
3689
3690
3691
3692 % ==========================
3693 % Basic hx
3694 % ==========================
3695 \node {basic hx};
3696 &
3697 \node [basic hx] {};
3698 &
3699 \anchoricon{basic hx}{1.5}
3700 \markcardinal
3701 \markoffcardinal
3702 &
3703 \node[basic hx, unit ext=util, draw=white] (f) {};
3704 \node[basic hx, unit int=U tube, below=of f] (g) {};
3705 \node[left] at (g.west) {U tube};
3706 &
3707 \node[basic hx, unit ext=util] (f) {};
3708 \node[left] at (f.west) {util};
3709 \foreach \anchor/\pos in {
3710 north util/right,
3711 south util/left}
3712 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
3713 \node[\pos] at (f.\anchor) {\color{red}\footnotesize\texttt{\anchor}};}
3714
3715 \node[basic hx, unit int=U tube, unit ext=util, below=of f] (g)
3716 {};
3717 \node[left] at (g.west) {util};
3718 \foreach \anchor/\pos in {
3719 west util/left,
3720 east util/right}
3721 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (g.\anchor) {};
3722 \node[\pos] at (g.\anchor) {\color{red}\anchor};
3723 }
3724
3725 \\ \hline
3726
3727 % ==========================
3728 % Shell and tube hx
3729 % ==========================
3730 \node {shell and tube hx};
3731 &
3732 \node[shell and tube hx] {};
3733 &
3734 \anchoricon{shell and tube hx}{1.5}
3735 \markcardinal
3736
3737 \foreach \anchor/\pos in {
3738 ne/above right,
3739 nw/above left,
3740 se/below right,
3741 sw/below left,
3742 nne/above,
3743 nnw/above,
3744 sse/below,
3745 ssw/below,
3746 ese/right,
3747 wsw/left,
3748 wnw/left,
3749 ene/right}
3750 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
3751 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
3752
3753 &
3754 \node[shell and tube hx, unit int=two pass] (f) {};
3755 \node[left] at (f.west) {two pass};
3756 \node[shell and tube hx, unit int=four pass, below=0.5cm of f] (g)
3757 {};
3758 \node[left] at (g.west) {four pass};
3759 &
3760 \node[shell and tube hx, unit ext=cis shell] (f) {};
3761 \foreach \anchor/\pos in {west shell/above left, east shell/above right}
3762 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
3763 \node[\pos] at (f.\anchor) {\color{red}\anchor};}
3764 \node[left] at (f.west) {cis shell};
3765
3766 \node[shell and tube hx, unit ext=trans shell, below=7mm of f] (g) {};
3767 \foreach \anchor/\pos in {north shell/above, south shell/below}
3768 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (g.\anchor) {};
3769 \node[\pos] at (g.\anchor) {\color{red}\anchor};}
3770 \node[left] at (g.west) {trans shell};
3771
3772 \\ \hline
3773
3774 % ==========================
3775 % Plate hx
3776 % ==========================
3777 \node {plate hx};
3778 &
3779 \node[plate hx] {};
3780 &
3781 \anchoricon{plate hx}{1.8}
3782 \markcardinal
3783
3784 \foreach \anchor/\pos in {
3785 ne/above right,
3786 nw/above left,
3787 se/below right,
3788 sw/below left,
3789 nne/above,
3790 nnw/above,
3791 sse/below,
3792 ssw/below,
3793 ese/right,
3794 wsw/left,
3795 wnw/left,
3796 ene/right}
3797 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
3798 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
3799
3800 &
3801 % no unit int
3802 &
3803 % no unit ext
3804 \\ \hline
3805
3806 % ==========================
3807 % Fired hx
3808 % ==========================
3809 \node {fired hx};
3810 &
3811 \node[fired hx] {};
3812 &
3813 \anchoricon{fired hx}{1}
3814 \markcardinal
3815
3816 \foreach \anchor/\pos in {
3817 ne/above right,
3818 nw/above left,
3819 se/right,
3820 sw/left,
3821 nne/right,
3822 nnw/left,
3823 sse/below right,
3824 ssw/below left,
3825 ese/below right,
3826 wsw/below left,
3827 wnw/left,
3828 ene/right}
3829 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
3830 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
3831
3832 &
3833 \node[fired hx, unit int=double] at (0,3mm) (f) {};
3834 \node[left=0.7cm of f.west] {double};
3835 \foreach \anchor/\pos in {
3836 ese/right,
3837 wsw/left,
3838 wnw/left,
3839 ene/right}
3840 {\node[circle, draw, blue, fill=blue, inner sep=0pt, minimum size=2pt] at (f.\anchor) {};
3841 \node[\pos] at (f.\anchor) {\color{gray}\footnotesize\texttt{\anchor}};}
3842
3843 \node[fired hx, unit int=triple, below=3mm of f] (g) {};
3844 \node[left=0.7cm of g.west] {triple};
3845 \foreach \anchor/\pos in {
3846 nne/right,
3847 nnw/left,
3848 ese/right,
3849 wsw/left,
3850 wnw/left,
3851 ene/right}
3852 {\node[circle, draw, blue, fill=blue, inner sep=0pt, minimum size=2pt] at (g.\anchor) {};
3853 \node[\pos] at (g.\anchor) {\color{gray}\footnotesize\texttt{\anchor}};}
3854 &
3855 % no unit ext
3856 \\ \hline
3857
3858 % ==========================
3859 % Cooling tower
3860 % ==========================
3861 % text
3862 \node{cooling tower};
3863 &
3864 % basic shape
3865 \node[cooling tower] {};
3866 &
3867 % anchors
3868 \anchoricon{cooling tower}{1};
3869 \markcardinal
3870 \foreach \anchor/\pos in {
3871 ne/right,
3872 nw/left,
3873 se/right,
3874 sw/left,
3875 ese/right,
3876 wsw/left,
3877 wnw/left,
3878 ene/right}
3879 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
3880 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
3881
3882 &
3883 % unit int options
3884 &
3885 % unit ext options
3886 \node[cooling tower, unit ext=forced] (f) {};
3887 \node[cooling tower, unit ext=natural, below=3mm of f] (g) {};
3888 \node[anchor=east] at (f.west) {forced};
3889 \node[anchor=east] at (g.west) {natural};
3890
3891 \\
3892 };
3893 \end{tikzpicture}
3894 \end{center}
3895
3896
3897
3898 \newpage
3899 \subsection*{Vessels}
3900 \begin{center}
3901 \begin{tikzpicture}[font=\footnotesize\ttfamily]
3902 \matrix[
3903 column sep=0.25cm,
3904 row sep=0.25cm,
3905 column1/.style={nodes={anchor=center}},
3906 column2/.style={nodes={anchor=center}},
3907 column2/.style={nodes={anchor=center}}]{
3908 % ==========================
3909 % Header
3910 % ==========================
3911 \node (s) {\normalsize\textbf{shape name}};
3912 \draw (s.south west) -- (s.south east);
3913 &
3914 \node (s) {\normalsize\textbf{default}};
3915 \draw (s.south west) -- (s.south east);
3916 &
3917 \node (s) {\normalsize\textbf{anchors}};
3918 \draw (s.south west) -- (s.south east);
3919 &
3920 \node (s) {\normalsize\textbf{unit int}};
3921 \draw (s.south west) -- (s.south east);
3922 &
3923 \node (s) {\normalsize\textbf{unit ext}};
3924 \draw (s.south west) -- (s.south east);
3925 \\
3926
3927
3928 % ==========================
3929 % Tank reactor
3930 % ==========================
3931 \node[align=center] {tank\\reactor};
3932 &
3933 \node[tank reactor] {};
3934 &
3935 \anchoricon{tank reactor}{1}
3936 \markcardinal
3937
3938 \foreach \anchor/\pos in {
3939 ne/right,
3940 nw/left,
3941 se/right,
3942 sw/left,
3943 nne/above right,
3944 nnw/above left,
3945 sse/below right,
3946 ssw/below left,
3947 ese/right,
3948 wsw/left}
3949 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
3950 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
3951
3952 &
3953 \node[tank reactor, unit int=stirred] at (0,-3mm) (f) {};
3954 \node[left] at (f.west) {stirred};
3955 \foreach \anchor/\pos in {west motor/left, north motor/above}
3956 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
3957 \node[\pos] at (f.\anchor) {\color{red}\anchor};
3958 }
3959 \node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.east motor) {};
3960 \node[rotate=-90, above] at (f.east) {\color{red}east motor};
3961
3962 \node[tank reactor, unit int=liquid, below=3mm of f] (g) {};
3963 \node[left] at (g.west) {liquid};
3964 \node[tank reactor, unit int=stirred liquid, below=5mm of g] (h)
3965 {};
3966 \node[left, align=right] at (h.west) {stirred\\liquid};
3967 &
3968 \node[tank reactor, unit ext=lower jacket] (f) {};
3969 \node[align=center, below] at (f.s) {lower\\[-3pt]jacket};
3970 \foreach \anchor/\pos in {
3971 west jacket/left,
3972 east jacket/right}
3973 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};}
3974
3975 \node[align=left, anchor=west] at (f.east jacket) {\color{red}east\\[-3pt]\color{red}jacket};
3976 \node[align=right, anchor=east] at (f.west jacket) {\color{red}west\\[-3pt]\color{red}jacket};
3977
3978
3979 \node[tank reactor, unit ext=side jacket, below=1.3cm of f] (g) {};
3980 \node[align=center, below] at (g.south) {side\\[-3pt]jacket};
3981 \foreach \anchor in {
3982 west jacket,
3983 east jacket,
3984 north west jacket,
3985 north east jacket,
3986 south west jacket,
3987 south east jacket}
3988 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (g.\anchor) {};}
3989
3990 \node[align=left, anchor=west] at (g.east jacket) {\color{red}east jacket};
3991 \node[align=left, anchor=south west] at (g.north east jacket) {\color{red}north east\\[-3pt]\color{red}jacket};
3992 \node[align=left, anchor=north west] at (g.south east jacket) {\color{red}south east\\[-3pt]\color{red}jacket};
3993 \node[align=right, anchor=east] at (g.west jacket) {\color{red}west jacket};
3994 \node[align=right, anchor=south east] at (g.north west jacket) {\color{red}north west\\[-3pt]\color{red}jacket};
3995 \node[align=right, anchor=north east] at (g.south west jacket) {\color{red}south west\\[-3pt]\color{red}jacket};
3996 \\ \hline
3997
3998 % ==========================
3999 % Tube reactor
4000 % ==========================
4001 \node[align=center]{tube\\reactor};
4002 &
4003 \node[tube reactor] {};
4004 &
4005 \anchoricon{tube reactor}{1.3}
4006 \markcardinal
4007
4008 \foreach \anchor/\pos in {
4009 ne/above right,
4010 nw/above left,
4011 se/below right,
4012 sw/below left,
4013 nne/above,
4014 nnw/above,
4015 sse/below,
4016 ssw/below,
4017 ese/right,
4018 wsw/left,
4019 wnw/left,
4020 ene/right}
4021 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
4022 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
4023
4024 &
4025 \node[tube reactor, unit int=packed] (g) {};
4026 \node[left] at (g.west) {packed};
4027 \node[tube reactor, unit int=fixed, below=0.25cm of g] (h) {};
4028 \node[left] at (h.west) {fixed};
4029 \node[tube reactor, unit int=tubular, below=0.25cm of h] (j) {};
4030 \node[left] at (j.west) {tubular};
4031 &
4032 \node[tube reactor, unit ext=cis shell] (f) {};
4033 \foreach \anchor/\pos in {west shell/above left, east shell/above right}
4034 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
4035 \node[\pos] at (f.\anchor) {\color{red}\anchor};}
4036 \node[left] at (f.west) {cis shell};
4037
4038 \node[tube reactor, unit ext=trans shell, below=7mm of f] (g) {};
4039 \foreach \anchor/\pos in {north shell/above, south shell/below}
4040 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (g.\anchor) {};
4041 \node[\pos] at (g.\anchor) {\color{red}\anchor};}
4042 \node[left] at (g.west) {trans shell};
4043
4044 \\ \hline
4045
4046
4047 % ==========================
4048 % Column
4049 % ==========================
4050 \node{column};
4051 &
4052 \node [column] {};
4053 &
4054 \anchoricon{column}{1}
4055 \markcardinal
4056 \foreach \anchor/\pos in {
4057 ne/right,
4058 nw/left,
4059 se/right,
4060 sw/left,
4061 nne/above right,
4062 nnw/above left,
4063 sse/below right,
4064 ssw/below left,
4065 ese/right,
4066 wsw/left,
4067 wnw/left,
4068 ene/right}
4069 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
4070 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
4071 &
4072 \node[column, unit int=tray] at (-4mm,0mm) (c1) {};
4073 \node[left, align=right] at (c1.west) {tray or\\dashed tray};
4074 \node[column, unit int=weir tray, right=0.25cm of c1] (c2) {};
4075 \node[right] at (c2.east) {weir tray};
4076 \node[column, unit int=double packed, below=0.25cm of c1] (c3) {};
4077 \node[left] at (c3.west) {double packed};
4078 \node[column, unit int=packed, right=0.25cm of c3] (c4) {};
4079 \node[right] at (c4.east) {packed};
4080 \node[column, unit int=numbered tray, feed tray=00, top tray=99,
4081 bottom tray=22, below=0.25cm of c3] (c5) {};
4082 \node[left, align=right] at (c5.west) {numbered tray,\\top tray=99,\\feed tray=00,\\bottom tray=22};
4083 \foreach \anchor/\pos in {
4084 top tray/right,
4085 feed tray/right,
4086 bottom tray/right}
4087 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (c5.\anchor) {};
4088 \node[right=3mm of c5.\anchor] {\color{red}\anchor};}
4089
4090 &
4091 \node[column, unit ext=simple hx] (f) {};
4092 \node[left] at (f.west) {simple hx};
4093 \foreach \anchor/\pos in {
4094 distillate/below,
4095 bottoms/below}
4096 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
4097 \node[\pos, rotate=90] at (f.\anchor) {\color{red}\anchor};}
4098 \\ \hline
4099
4100 % ==========================
4101 % Vessel
4102 % ==========================
4103 \node {vessel};
4104 &
4105 \node[vessel] {};
4106 &
4107 \anchoricon{vessel}{1}
4108 \markcardinal
4109 \foreach \anchor/\pos in {
4110 ne/right,
4111 nw/left,
4112 se/right,
4113 sw/left,
4114 nne/above right,
4115 nnw/above left,
4116 sse/below right,
4117 ssw/below left,
4118 ese/right,
4119 wsw/left,
4120 wnw/left,
4121 ene/right}
4122 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
4123 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
4124 &
4125 \node[vessel, unit int=phase sep] (f) {};
4126 \node[left] at (f.west) {phase sep};
4127 \node[vessel, unit int=liquid, right=2mm of f] (g) {};
4128 \node[right] at (g.east) {liquid};
4129 \node[vessel, unit int=liquid rotated, below=2mm of f] (h) {};
4130 \node[left, align=right] at (h.west) {liquid\\rotated};
4131 &
4132 \node[vessel, unit ext=simple hx] (f) {};
4133 \node[left] at (f.west) {simple hx};
4134 \foreach \anchor/\pos in {
4135 north hx/right,
4136 south hx/right}
4137 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
4138 \node[\pos] at (f.\anchor) {\color{red}\anchor};}
4139 \\
4140 };
4141 \end{tikzpicture}
4142 \end{center}
4143 %
4144
4145
4146
4147 \newpage
4148 \subsection*{Fluid transport}
4149 \begin{center}
4150 \begin{tikzpicture}[font=\footnotesize\ttfamily]
4151 \matrix[
4152 column sep=0.25cm,
4153 row sep=0.25cm,
4154 column1/.style={nodes={anchor=center}},
4155 column2/.style={nodes={anchor=center}},
4156 column2/.style={nodes={anchor=center}}]{
4157 % ==========================
4158 % Header
4159 % ==========================
4160 \node (s) {\normalsize\textbf{shape name}};
4161 \draw (s.south west) -- (s.south east);
4162 &
4163 \node (s) {\normalsize\textbf{default}};
4164 \draw (s.south west) -- (s.south east);
4165 &
4166 \node (s) {\normalsize\textbf{anchors}};
4167 \draw (s.south west) -- (s.south east);
4168 &
4169 \node (s) {\normalsize\textbf{unit int}};
4170 \draw (s.south west) -- (s.south east);
4171 &
4172 \node (s) {\normalsize\textbf{unit ext}};
4173 \draw (s.south west) -- (s.south east);
4174 \\
4175
4176
4177 % ==========================
4178 % Centrifugal pump
4179 % ==========================
4180 \node[align=center] {centrifugal\\pump};
4181 &
4182 \node[centrifugal pump] {};
4183 &
4184 \anchoricon{centrifugal pump}{1}
4185 \markcardinal
4186 \markoffcardinal
4187
4188 &
4189 \node[centrifugal pump, unit int=inlet west] (p1) {};
4190 \node[left] at (p1.west) {inlet west};
4191 \node[centrifugal pump, unit int=inlet east, below=0.25cm of p1]
4192 (p2) {};
4193 \node[left] at (p2.west) {inlet east};
4194 \node[centrifugal pump, unit int=inlet north, below=0.25cm of p2]
4195 (p3) {};
4196 \node[left] at (p3.west) {inlet north};
4197 \node[centrifugal pump, unit int=inlet south, below=0.25cm of p3]
4198 (p4) {};
4199 \node[left] at (p4.west) {inlet south};
4200 &
4201 \node[centrifugal pump, unit ext=outlet north west] (p1) {};
4202 \node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (p1.outlet) {};
4203 \node[left] at (p1.outlet) {\color{red}outlet};
4204 \node[align=right, anchor=east] at (p1.west) {outlet\\[-5pt]north west};
4205
4206 \node[centrifugal pump, unit ext=outlet north east, below=0.25cm of p1] (p2) {};
4207 \node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (p2.outlet) {};
4208 \node[below, rotate=90] at (p2.outlet) {\color{red}outlet};
4209 \node[align=right, anchor=east] at (p2.west) {outlet\\[-5pt]north east};
4210
4211 \node[centrifugal pump, unit ext=outlet west, below=0.25cm of p2] (p3) {};
4212 \node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (p3.outlet) {};
4213 \node[left] at (p3.outlet) {\color{red}outlet};
4214 \node[left] at (p3.west) {outlet west};
4215
4216 \node[centrifugal pump, unit ext=outlet east, below=0.25cm of p3] (p4) {};
4217 \node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (p4.outlet) {};
4218 \node[below, rotate=90] at (p4.outlet) {\color{red}outlet};
4219 \node[left] at (p4.west) {outlet east};
4220 \\ \hline
4221
4222
4223
4224
4225
4226
4227 % ==========================
4228 % Reciprocating pump
4229 % ==========================
4230 \node[align=center]{reciprocating\\pump};
4231 &
4232 \node[reciprocating pump] {};
4233 &
4234 \anchoricon{reciprocating pump}{1}
4235 \markcardinal
4236 \markoffcardinal
4237 &
4238 % no unit int
4239 &
4240 % no unit ext
4241 \\ \hline
4242
4243
4244
4245 % ==========================
4246 % Compressor
4247 % ==========================
4248 \node{compressor};
4249 &
4250 \node[compressor] {};
4251 &
4252 \anchoricon{compressor}{2.5}
4253 \markcardinal
4254 \foreach \anchor/\pos in {
4255 ne/above right,
4256 nw/left,
4257 se/below right,
4258 sw/left,
4259 nne/above,
4260 nnw/above,
4261 sse/below,
4262 ssw/below,
4263 ese/right,
4264 wsw/left,
4265 wnw/left,
4266 ene/right}
4267 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
4268 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
4269 &
4270 % no unit int
4271 &
4272 % no unit ext
4273 \\ \hline
4274
4275 % ==========================
4276 % Turbine
4277 % ==========================
4278 \node{turbine};
4279 &
4280 \node[turbine] {};
4281 &
4282 \anchoricon{turbine}{2.5}
4283 \markcardinal
4284 \foreach \anchor/\pos in {
4285 ne/right,
4286 nw/above left,
4287 se/right,
4288 sw/below left,
4289 nne/above,
4290 nnw/above,
4291 sse/below,
4292 ssw/below,
4293 ese/right,
4294 wsw/left,
4295 wnw/left,
4296 ene/right}
4297 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
4298 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
4299 &
4300 % no unit int
4301 &
4302 % no unit ext
4303 \\
4304 };
4305 \end{tikzpicture}
4306 \end{center}
4307
4308
4309
4310 \subsection*{Solids processing}
4311 \begin{center}
4312 \begin{tikzpicture}[font=\footnotesize\ttfamily]
4313 \matrix[
4314 column sep=0.25cm,
4315 row sep=0.25cm,
4316 every cell/.style={align=center},
4317 ] at (0,0) {
4318 % ==========================
4319 % Header
4320 % ==========================
4321 \node (s) {\normalsize\textbf{shape name}};
4322 \draw (s.south west) -- (s.south east);
4323 &
4324 \node (s) {\normalsize\textbf{default}};
4325 \draw (s.south west) -- (s.south east);
4326 &
4327 \node (s) {\normalsize\textbf{anchors}};
4328 \draw (s.south west) -- (s.south east);
4329 \\
4330
4331
4332 % ==========================
4333 % filter 1
4334 % ==========================
4335 % text
4336 \node{filter};
4337 &
4338 % basic shape
4339 \plainicon{filter}
4340 &
4341 % anchors
4342 \anchoricon{filter}{1};
4343 \markcardinal
4344 \markoffcardinal
4345 \\ \hline
4346
4347
4348 % ==========================
4349 % press filter 2
4350 % ==========================
4351 % text
4352 \node{press filter};
4353 &
4354 % basic shape
4355 \plainicon{press filter}
4356 &
4357 % anchors
4358 \anchoricon{press filter}{1};
4359 \markcardinal
4360 \markoffcardinal
4361 \\ \hline
4362
4363 % ==========================
4364 % cyclone 3
4365 % ==========================
4366 % text
4367 \node{cyclone};
4368 &
4369 % basic shape
4370 \plainicon{cyclone}
4371 &
4372 % anchors
4373 \anchoricon{cyclone}{1};
4374 \markcardinal
4375 \markoffcardinal
4376 \\ \hline
4377
4378
4379
4380 % ==========================
4381 % centrifuge 4
4382 % ==========================
4383 % text
4384 \node{centrifuge};
4385 &
4386 % basic shape
4387 \plainicon{centrifuge}
4388 &
4389 % anchors
4390 \anchoricon{centrifuge}{1};
4391 \markcardinal
4392 \markoffcardinal
4393 \\ \hline
4394
4395
4396 % ==========================
4397 % belt dryer 5
4398 % ==========================
4399 % text
4400 \node{belt dryer};
4401 &
4402 % basic shape
4403 \plainicon{belt dryer}
4404 &
4405 % anchors
4406 \anchoricon{belt dryer}{1};
4407 \markcardinal
4408 \markoffcardinal
4409 \\
4410 };
4411
4412
4413 \matrix[
4414 column sep=0.25cm,
4415 row sep=0.25cm,
4416 every cell/.style={align=center},
4417 ] at (8.5,0) {
4418 % ==========================
4419 % Header
4420 % ==========================
4421 \node (s) {\normalsize\textbf{shape name}};
4422 \draw (s.south west) -- (s.south east);
4423 &
4424 \node (s) {\normalsize\textbf{default}};
4425 \draw (s.south west) -- (s.south east);
4426 &
4427 \node (s) {\normalsize\textbf{anchors}};
4428 \draw (s.south west) -- (s.south east);
4429 \\
4430
4431
4432 % ==========================
4433 % rotary dryer 6
4434 % ==========================
4435 % text
4436 \node{rotary dryer};
4437 &
4438 % basic shape
4439 \plainicon{rotary dryer}
4440 &
4441 % anchors
4442 \anchoricon{rotary dryer}{1};
4443 \markcardinal
4444 \markoffcardinal
4445 \\ \hline
4446
4447
4448 % ==========================
4449 % granulator/agglomerator
4450 % ==========================
4451 % text
4452 \node[align=center]{granulator or\\agglomerator};
4453 &
4454 % basic shape
4455 \plainicon{granulator}
4456 &
4457 % anchors
4458 \anchoricon{granulator}{1};
4459 \markcardinal
4460 \markoffcardinal
4461 \\ \hline
4462
4463
4464 % ==========================
4465 % crystallizer
4466 % ==========================
4467 % text
4468 \node{crystallizer};
4469 &
4470 % basic shape
4471 \plainicon{crystallizer}
4472 &
4473 % anchors
4474 \anchoricon{crystallizer}{1.5};
4475 \markcardinal
4476 \markoffcardinal
4477 \\ \hline
4478
4479
4480 % ==========================
4481 % ball mill
4482 % ==========================
4483 % text
4484 \node{ball mill};
4485 &
4486 % basic shape
4487 \plainicon{ball mill}
4488 &
4489 % anchors
4490 \anchoricon{ball mill}{1};
4491 \markcardinal
4492 \markoffcardinal
4493 \\ \hline
4494
4495 % ==========================
4496 % roll crusher
4497 % ==========================
4498 % text
4499 \node{roll crusher};
4500 &
4501 % basic shape
4502 \plainicon{roll crusher}
4503 &
4504 % anchors
4505 \anchoricon{roll crusher}{1};
4506 \markcardinal
4507 \markoffcardinal
4508 \\
4509 };
4510 \end{tikzpicture}
4511 \end{center}
4512
4513
4514
4515 \newpage
4516 \subsection*{Stream annotations}
4517
4518 \begin{center}
4519 \begin{tikzpicture}[font=\footnotesize\ttfamily]
4520 \matrix[
4521 column sep=0.25cm,
4522 row sep=0.25cm,
4523 column1/.style={nodes={anchor=center}},
4524 column2/.style={nodes={anchor=center}},
4525 column2/.style={nodes={anchor=center}},
4526 ] at (0,0) {
4527 % ==========================
4528 % Header
4529 % ==========================
4530 \node (s) {\normalsize\textbf{shape name}};
4531 \draw (s.south west) -- (s.south east);
4532 &
4533 \node (s) {\normalsize\textbf{default}};
4534 \draw (s.south west) -- (s.south east);
4535 &
4536 \node (s) {\normalsize\textbf{anchors}};
4537 \draw (s.south west) -- (s.south east);
4538 &
4539 \node (s) {\normalsize\textbf{unit int}};
4540 \draw (s.south west) -- (s.south east);
4541 &
4542 \node (s) {\normalsize\textbf{unit ext}};
4543 \draw (s.south west) -- (s.south east);
4544 \\
4545
4546 % ==========================
4547 % Valve
4548 % ==========================
4549 \node{valve};
4550 &
4551 \node[valve] {};
4552 &
4553 \anchoricon{valve}{2}
4554 \markcardinal
4555 \markoffcardinal
4556
4557 &
4558 % no unit int
4559 &
4560 \node[valve, unit ext=actuator, scale=1.5] (f) {};
4561 \node[left] at (f.west) {actuator};
4562 \foreach \anchor/\pos in {
4563 actuator/above}
4564 {\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
4565 \node[\pos] at (f.\anchor) {\color{red}\anchor};}
4566 \\
4567 };
4568
4569 \matrix[
4570 column sep=0.25cm,
4571 row sep=0.25cm,
4572 every cell/.style={align=center},
4573 ] at (-4,-6) {
4574 % ==========================
4575 % Header
4576 % ==========================
4577 \node (s) {\normalsize\textbf{shape name}};
4578 \draw (s.south west) -- (s.south east);
4579 &
4580 \node (s) {\normalsize\textbf{default}};
4581 \draw (s.south west) -- (s.south east);
4582 &
4583 \node (s) {\normalsize\textbf{anchors}};
4584 \draw (s.south west) -- (s.south east);
4585 \\
4586
4587 % ==========================
4588 % Feed
4589 % ==========================
4590 \node{feed};
4591 &
4592 \node[feed] {};
4593 &
4594 \anchoricon{feed}{2.5}
4595 \markcardinal
4596 \markoffcardinal
4597
4598 \node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.stream) {};
4599 \node[right] at ($(f.stream)+(0.5em,0em)$) {\footnotesize or \redtt{stream}};
4600
4601 \\ \hline
4602
4603
4604 % ==========================
4605 % Product
4606 % ==========================
4607 \node{product};
4608 &
4609 \node[product] {};
4610 &
4611 \anchoricon{product}{2.5}
4612 \markcardinal
4613 \markoffcardinal
4614
4615 \node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.stream) {};
4616 \node[left] at ($(f.stream)+(-0.5em,0em)$) {\footnotesize \redtt{stream} or };
4617
4618 \\ \hline
4619
4620
4621 % ==========================
4622 % Stream numbers
4623 % ==========================
4624 \node{\verb|sid|};
4625 &
4626 \node[sid] (f) {99};
4627 &
4628 \node[sid, scale=1.5, draw=lightgray, thick] (f) {99};
4629 \foreach \anchor/\pos in {
4630 north/above,
4631 east/right,
4632 west/left,
4633 south/below}
4634 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
4635 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
4636
4637 \foreach \anchor/\pos in {
4638 north east/above right,
4639 north west/above left,
4640 south east/below right,
4641 south west/below left}
4642 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
4643 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
4644
4645 \draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
4646
4647 \\ \hline
4648
4649 % ==========================
4650 % Electrical components
4651 % ==========================
4652 \node{\verb|elec|};
4653 &
4654 \node[elec] {XX};
4655 &
4656 \node[elec, scale=1.5, draw=lightgray, thick] (f) {XX};
4657 \foreach \anchor/\pos in {
4658 north/above,
4659 east/right,
4660 west/left,
4661 south/below}
4662 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
4663 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
4664
4665 \foreach \anchor/\pos in {
4666 north east/above right,
4667 north west/above left,
4668 south east/below right,
4669 south west/below left}
4670 {\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
4671 \node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
4672
4673 \draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
4674
4675 \\
4676 };
4677
4678
4679
4680 \matrix[
4681 column sep=0.25cm,
4682 row sep=0.25cm,
4683 every cell/.style={align=center},
4684 ] at (5,-4.8) {
4685 % ==========================
4686 % Header
4687 % ==========================
4688 \node (s) {\normalsize\textbf{shape name}};
4689 \draw (s.south west) -- (s.south east);
4690 &
4691 \node (s) {\normalsize\textbf{default}};
4692 \draw (s.south west) -- (s.south east);
4693 &
4694 \node (s) {\normalsize\textbf{anchors}};
4695 \draw (s.south west) -- (s.south east);
4696 \\
4697
4698 % ==========================
4699 % controller
4700 % ==========================
4701 \node{ctrl};
4702 &
4703 \node[ctrl, ctrl sense=X, ctrl type=YY, ctrl display=panel, ctrl numID=99, ctrl alarm=LH] {};
4704 &
4705 \anchoricon{ctrl}{1.5}
4706 \markcardinal
4707 \markoffcardinal
4708
4709 \\ \hline
4710
4711
4712
4713 % ==========================
4714 % no return valve
4715 % ==========================
4716 \node{nrv};
4717 &
4718 \node[nrv] {};
4719 &
4720 \anchoricon{nrv}{2}
4721 \markcardinal
4722 \markoffcardinal
4723
4724 \\ \hline
4725
4726
4727 % ==========================
4728 % pressure relief valve
4729 % ==========================
4730 \node{prv};
4731 &
4732 \node[prv] {};
4733 &
4734 \anchoricon{prv}{2}
4735 \markcardinal
4736 \markoffcardinal
4737
4738 \\
4739 };
4740 \end{tikzpicture}
4741 \end{center}
4742
4743 %\textbf{Drawing streams}
4744 \begin{center}
4745 \begin{minipage}{5in}
4746 \begin{lstlisting}
4747 \begin{tikzpicture}
4748 \draw[->] (0,0) -- node[sid] {99} (2,0);
4749 \draw[->] (0,-0.5) -- node[valve] {} (2,-0.5);
4750 \draw[->] (0,-1) -- node[nrv] {} (2,-1);
4751
4752
4753 \draw[dashed] (0,-2) -- node[elec] {XX} (2,-2);
4754
4755
4756 \draw[dashed] (0,-3.5) --
4757 node[ctrl, solid,
4758 ctrl sense=X,
4759 ctrl type=YY,
4760 ctrl display=shared full,
4761 ctrl numID=99] {} (2,-3.5);
4762
4763 % \usepackage{siunitx} for \qty{}{}
4764 \draw[->] (0,-5.5) -- node[sid,
4765 pfdpin2={below:\qty{25}{\celsius}/1 bar},
4766 ] {A} (2,-5.5);
4767
4768 \end{tikzpicture}
4769 \end{lstlisting}
4770 \end{minipage}\hspace{0.25in}
4771 \begin{minipage}{1in}
4772 \begin{center}
4773 \begin{tikzpicture}
4774 \draw[->] (0,0) -- node[sid] {99} (2,0);
4775 \draw[->] (0,-0.5) -- node[valve] {} (2,-0.5);
4776 \draw[->] (0,-1) -- node[nrv] {} (2,-1);
4777 \draw[dashed] (0,-2) -- node[elec] {XX} (2,-2);
4778 \draw[dashed] (0,-3) --
4779 node[ctrl, solid,
4780 ctrl sense=X,
4781 ctrl type=YY,
4782 ctrl display=shared full,
4783 ctrl numID=99
4784 ] {} (2,-3);
4785 \draw[->] (0,-5.5) -- node[sid, pfdpin2={below:\qty{25}{\celsius}/1 bar}] {A} (2,-5.5);
4786 \end{tikzpicture}
4787 \end{center}
4788 \end{minipage}
4789 \end{center}
4790
4791 \vspace*{-1em}
4792 \begin{center}
4793 \begin{minipage}{5in}
4794 \begin{lstlisting}
4795 \begin{tikzpicture}
4796 \tikzset{bridge radius=8pt} % default 0pt=straight line
4797 \path[->, spath/save=over] (0,0) -- (2,0);
4798 \path[->, spath/save=under] (1,-1) -- (1,1);
4799 \tikzset{bridge={over}{under}}
4800 \draw[->, spath/use=over] node[sid, pos=0.1]{1};
4801 \draw[->, spath/use=under] node[sid, pos=0.2]{2};
4802 \end{tikzpicture}
4803 \end{lstlisting}
4804 \end{minipage}\hspace{0.25in}
4805 \begin{minipage}{1in}
4806 \begin{center}
4807 \begin{tikzpicture}
4808 \tikzset{bridge radius=8pt} % default 0pt=straight line
4809 \path[->, spath/save=over] (0,0) -- (2,0);
4810 \path[->, spath/save=under] (1,-1) -- (1,1);
4811 \tikzset{bridge={over}{under}}
4812 \draw[->, spath/use=over] node[sid, pos=0.1]{1};
4813 \draw[->, spath/use=under] node[sid, pos=0.2]{2};
4814 \end{tikzpicture}
4815 \end{center}
4816 \end{minipage}
4817 \end{center}
4818
4819
4820 \end{document}