Debian Codegraph @

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

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 %% chemplants-doc.tex
3 %% Copyright 2018-2021 Elia Arnese Feffin
4 %
5 % This work may be distributed and/or modified under the
6 % conditions of the LaTeX Project Public License, either version 1.3c
7 % of this license or (at your option) any later version.
8 % The latest version of this license is in
9 % http://www.latex-project.org/lppl.txt
10 % and version 1.3c or later is part of all distributions of LaTeX
11 % version 2008/05/04 or later.
12 %
13 % This work has the LPPL maintenance status "maintained".
14 %
15 % The Current Maintainer of this work is Elia Arnese Feffin.
16 % The Current Maintainer can be reached at the e-mail: [email protected].
17 %
18 % This work consists of the files chemplants.sty, chemplants-doc.tex
19 % and chemplants-changes.tex, together with the derived files
20 % chemplants-doc.pdf and chemplants-changes.pdf.
21 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
22
23 %: Primary Settings
24
25 \documentclass[12pt]{article} % Document Class
26 \usepackage[T1]{fontenc} % Font Encoding
27 \usepackage[utf8]{inputenc} % Input Encoding
28 \usepackage[italian,english]{babel} % Document Language
29
30 %: Page Geometry
31
32 \usepackage[a4paper]{geometry} % Page Geometry
33 \geometry{top=2.0cm,bottom=2.5cm}
34 \geometry{left=2.75cm,right=2.75cm}
35 \geometry{heightrounded}
36
37 %: Colors
38
39 \usepackage{guit} % GuIT Logo
40 \definecolor{LinkColor}{rgb}{% % Link Color
41 0.116, 0.565, 1.000%
42 }
43 \definecolor{URLColor}{rgb}{% % URL Color
44 1.000, 0.250, 0.250%
45 }
46 \definecolor{CiteColor}{rgb}{% % Citation Color
47 0.235, 0.700, 0.444%
48 }
49
50 %: Text
51
52 \usepackage{microtype} % Micro Typography
53 \usepackage{relsize} % Text Rescale
54 \newcommand{\foreignformat}{% % Foreign Text Format
55 \itshape%
56 }
57 \providecommand*{\ap}[1]{% % Upright Superscript
58 \textormath{\textsuperscript{#1}}{^{\mathrm{#1}}}%
59 }
60 \providecommand*{\ped}[1]{% % Upright Subscript
61 \textormath{$_{\mbox{\fontsize\sf@size\z@\selectfont#1}}$}{_\mathrm{#1}}%
62 }
63 \newcommand{\italiano}[1]{% % Italian Text
64 \foreignlanguage{italian}{\foreignformat #1}%
65 }
66 \newcommand*{\ac}[1]{% % Acronyms
67 \textsmaller{#1}%
68 }
69 \raggedbottom % Raggedbottom Document
70
71 %: Sectioning and Contents
72
73 \setcounter{secnumdepth}{2} % Section Heads Level
74 \setcounter{tocdepth}{2} % TOC Level
75 %\renewcommand{\subsubsection}[1]{} % Gobbles Any \subsubsec
76
77 %: Figures
78
79 \usepackage{graphicx} % External Images
80
81 %: Floats
82
83 \usepackage{caption} % Captions
84 \captionsetup{%
85 font=small,%
86 labelfont={bf},%
87 format=hang,%
88 tableposition=top,%
89 figureposition=bottom%
90 }
91 \usepackage{float} % Floats
92 \floatplacement{table}{htp} % Tables Placement
93 \floatplacement{figure}{htp} % Figures Placement
94
95 %: Bibliography
96
97 \usepackage[autostyle,italian=guillemets]{csquotes} % Citations
98 \usepackage[%
99 useprefix,%
100 hyperref,%
101 url=true,%
102 language=auto,%
103 autolang=hyphen,%
104 bibstyle=numeric,%
105 citestyle=authoryear%
106 ]{biblatex} % Bibliography
107 \begin{filecontents}{chemplants-bd.bib}
108 @book{cacciatore:disegno,
109 title = {Manuale di disegno di impianti chimici},
110 author = {Cacciatore, Alfonso and Calatozzolo, Mariano},
111 date = {2018},
112 publisher = {Edisco},
113 location = {Torino},
114 isbn = {978\,88\,441\,2085\,6},
115 langid = {italian},
116 }
117 @book{cremer:tikz,
118 title = {A Very Minimal Introduction to \TikZ},
119 author = {Cr\'emer, Jacques},
120 date = {2011},
121 url = {http://cremeronline.com/LaTeX/minimaltikz.pdf},
122 langid = {english},
123 }
124 @book{fiadrino:tikz,
125 title = {Introduzione all'uso di \TikZ\ in ingegneria},
126 author = {Fiandrino, Claudio},
127 date = {2014},
128 url = {http://www.guitex.org/home/images/doc/GuideGuIT/introingtikz.pdf},
129 langid = {italian},
130 }
131 @book{pantieri:latexpedia,
132 title = {\LaTeX pedia},
133 author = {Pantieri, Lorenzo},
134 date = {2017},
135 url = {http://www.lorenzopantieri.net/LaTeX_files/LaTeXpedia.pdf},
136 langid = {italian},
137 }
138 @book{pantieri:artedi,
139 title = {L'arte di disegnare con \LaTeX},
140 author = {Pantieri, Lorenzo and Gordini, Tommaso},
141 date = {2014},
142 langid = {italian},
143 }
144 @manual{tantau:tikz,
145 title = {\TikZ\ and \PGF\ Manual},
146 subtitle = {Version 3.1.1},
147 author = {Tantau, Till},
148 date = {2019},
149 url = {http://ctan.mirror.garr.it/mirrors/CTAN/graphics/pgf/base/doc/pgfmanual.pdf},
150 langid = {english},
151 }
152 @manual{unichim:impianti,
153 title = {Impianti chimici},
154 subtitle = {Simboli e sigle per schemi e disegni},
155 number = {Manuale N.~6},
156 author = {\ac{UNICHIM}},
157 date = {1994},
158 location = {Milano},
159 langid = {italian},
160 }
161 \end{filecontents}
162 \bibliography{chemplants-bd} % Bibliography Database
163
164 %: Chemical Process Schemes
165
166 \usepackage{chemplants} % Process Schemes
167 \tikzset{every node/.style={font=\footnotesize}}
168 \tikzset{anchor mark/.pic=% % Anchor Point
169 {%
170 \draw [red]
171 (-2.828pt,0) -- (2.828pt,0)
172 (0,-2.828pt) -- (0,2.828pt);
173 }%
174 }
175 \tikzset{node mark/.pic=% % Remarkable Node
176 {%
177 \draw [blue]
178 (-2pt,-2pt) -- (2pt,2pt)
179 (2pt,-2pt) -- (-2pt,2pt);
180 }%
181 }
182
183 %: Math
184
185 \usepackage{amsmath} % Math Package
186 \renewcommand{\vec}[1]{\boldsymbol{#1}} % Vectors
187 \newcommand*{\flow}[1]{\dot{#1}} % Flow-Rate
188
189 %: Physics
190
191 \usepackage{siunitx} % Measurement Units
192 \sisetup{exponent-product={\cdot}}
193
194 %: Chemistry
195
196 \usepackage{chemmacros} % Chemistry Utilities
197 \chemsetup{formula=chemformula,greek=textgreek}
198
199 %: Codes
200
201 \usepackage{listings} % Listings
202 \lstset{escapeinside={ÂŁ!}{!ÂŁ}}
203 \newcommand*{\meta}[1]{% % Metacode
204 $\langle$\textrm{\textit{#1}}$\rangle$%
205 }
206 \lstnewenvironment{chpcode}[1][]{% % chemplats Code
207 \lstset{%
208 basicstyle=\small\ttfamily,%
209 frame=none,%
210 numbers=none,%
211 %numberstyle=\footnotesize,%
212 tabsize=4,%
213 showstringspaces=false,%
214 language=[LaTeX]TeX,%
215 keywordstyle=\color{black},%
216 commentstyle=\color{black},%
217 gobble=4,%
218 #1%
219 }%
220 }{}
221 \newcommand*{\chpn}[1]{\texttt{#1}} % chemplats Node
222 \newcommand*{\chpp}[1]{\texttt{#1}} % chemplats Unit
223 \newcommand*{\chps}[1]{\texttt{#1}} % chemplats Path Style
224 \newcommand*{\chpa}[1]{\texttt{#1}} % chemplats Pic Argument
225 \newcommand*{\chemplants}{chemplants}
226 \newcommand*{\TikZ}{Ti\textit{k}Z}
227 \newcommand*{\CircuiTikZ}{Circui\TikZ}
228 \newcommand*{\PGF}{PGF}
229 \newcommand*{\UNICHIM}{\ac{UNICHIM}}
230 \newcommand*{\siunitx}{siunitx}
231 \newcommand*{\chemformula}{chemformula}
232 \newcommand*{\babel}{babel}
233 \newcommand*{\TeXlive}{\TeX live}
234 \newcommand*{\MiKTeX}{MiK\TeX}
235
236 %: Cross References
237
238 \newcommand*{\figurerefname}{}
239 \addto\captionsenglish{\renewcommand*{\figurerefname}{figure}}
240 \newcommand*{\fref}[1]{\figurerefname~\ref{#1}}
241 \newcommand*{\listingrefname}{}
242 \addto\captionsenglish{\renewcommand*{\listingrefname}{listing}}
243 \newcommand*{\lref}[1]{\listingrefname~\ref{#1}}
244
245 %: Hyper References
246
247 \usepackage{url} % Web Sites
248 \usepackage[hyperfootnotes=false]{hyperref} % Hyperlinks
249 \hypersetup{%
250 linkbordercolor=LinkColor,%
251 urlbordercolor=URLColor,%
252 citebordercolor=CiteColor}
253 \newcommand{\mail}[1]{% % eMail as Hypertext
254 \href{mailto:#1}{\texttt{#1}}%
255 }
256 \usepackage[all]{hypcap} % Captions References
257
258 %: Bookmarks
259
260 \usepackage{bookmark} % PDF Bookmarks
261 \bookmarksetup{%
262 numbered,%
263 open,%
264 depth=3%
265 }
266
267 %: Document Informations
268
269 \title{The chemplants package}
270 \author{Elia Arnese Feffin\footnote{e-mail: \mail{[email protected]}}}
271 \date{Version \chpversion\ -- \chpdate}
272
273 %: PDF Properties
274
275 \hypersetup{pdfinfo={%
276 Title={The chemplants package},%
277 Author={Elia Arnese Feffin},%
278 Subject={version \chpversion},%
279 Creator={pdfLaTeX},%
280 Producer={TeXShop with LaTeX Compiler}%
281 }}
282
283 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
284
285 %: Document Start
286
287 \begin{document} % Document Begins
288
289 %: Frontpage
290
291 \pdfbookmark[1]{Frontpage}{fronts} % Frontpage Bookmark
292
293 \maketitle % Title
294
295 \begin{abstract}
296 The \chemplants\ package offers tools to draw simple or barely complex schemes of
297 chemical processes. Process units and styles for streams and utilities are
298 defined to be a sort of extension of the \TikZ\ package, thus a basic knowledge
299 of the logic of this powerful tool is required to profitably use \chemplants.
300 \end{abstract}
301
302 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
303
304 \pdfbookmark[1]{\contentsname}{tabcon} % Contents Bookmark
305
306 \tableofcontents % Table of Contents
307
308 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
309
310 \section{Motivations}
311
312 The \chemplants\ package had birth during my bachelor's degree in Chemical
313 Engineering at the University of Padova. I discovered \LaTeX\ during the first
314 year and I started using it to write my lecture notes, my reports and almost
315 every document I had to produce; the more I used it, the more I explored the
316 boundless universe of extensions available, both using them and studying relative
317 documentation (and guides). Soon, I encountered one the most beautiful and
318 complex packages of the \LaTeX\ distribution: the \TikZ\ package.
319
320 Programmed drawing really changed the way I look at technical drawings and
321 schematic representation. \TikZ\ gives the author the possibility to use one
322 program only to produce written documents and the drawings they require, allowing
323 a perfect integration between them. I used this extremely powerful tool to draw
324 schematics of mechanics, sketches of diagrams and electrical circuits (with
325 another powerful package based on \TikZ: \CircuiTikZ).
326
327 At a certain point, as a chemical engineering student, I had the need to start
328 drawing schematics of chemical processes in the forms of a block flow diagram
329 (\ac{BFD}) or of a process flow diagram (\ac{PFD}). \ac{BFD}s are not an issue
330 since they are very simple, but \ac{PFD}s require specific symbols for the
331 representation of process units. I looked for a long time for a \CircuiTikZ-like
332 package useful for chemical plants, but nothing seems to be available to this
333 aim.
334
335 At that point \chemplants\ kicked in, starting as a simple idea: to use \TikZ,
336 in particular the possibility to define custom styles and pics, to fix a standard
337 set of symbols to be used with \TikZ\ drawing commands, symbols meant to be
338 easy-to-use and easy-to-modify. Initially, just the units I had the need to
339 represent were considered, but then the set of definitions started growing and a
340 more flexible code structure was required, thus the real birth of the package
341 took place. This happened during the first year of my master's degree.
342
343 As already told, the motivations of the \chemplants\ package are to fill a lack
344 in the \LaTeX\ packages tree and to give everyone the possibility to draw
345 schematics of chemical processes, particularly \ac{PFD}s, in a simple way. A
346 basic knowledge of \TikZ\ is clearly required.
347
348 All of the symbols and styles defined are based on the \UNICHIM\ regulation,
349 the Italian code to draw chemical processes diagrams. It takes its name from
350 the homolog association: \italiano{associazione per l'unificazione del settore
351 dell'industria chimica}. This package is not pretentious enough to strictly
352 follow \UNICHIM, also because this regulation defines parameters to draw
353 schematics way more complex than \ac{PFD}s. Anyway, \UNICHIM\ is still the
354 guiding light of the representation of units and streams defined by
355 \chemplants.
356
357 \section{Starting Point}
358
359 \subsection{Licensing}
360
361 The \chemplants\ package is covered by the \LaTeX\ Project Public License
362 (\ac{LPPL}), version 1.3c or later. Basically, this means that users are free to
363 use, modify and distribute any part of the package. More accurate and detailed
364 informations can be found into the license itself, the latest version of which
365 is available at \url{http://www.latex-project.org/lppl.txt}.
366
367 \subsection{Installation}
368
369 The package is supplied as a simple zip archive containing the
370 \verb|chemplants.sty| file, the main code of the package, and the
371 \verb|chemplants_doc.pdf| file, the documentation (this file), together with its
372 source code. The simplest way to make the package work is to place
373 \verb|chemplants.sty| into the same directory of the \verb|.tex| file that uses
374 \chemplants, a solution useful to users who do not want to go along a full
375 installation.
376
377 A better installation procedure for users who adopt the \TeXlive\ distribution
378 on a Linux-like system (including MacOS) consists in looking for the main
379 directory of the distribution and following the path:
380 \begin{chpcode}
381 ../texlive/texmf-local/tex/latex/
382 \end{chpcode}
383 in which a new folder called \verb|chemplants| should be created. The file
384 \verb|chemplants.sty| should be placed into that folder. After that, it is
385 necessary to let \TeX\ know that the tree structure is changed and that a new
386 package is available, hence it is necessary to type in the terminal of the
387 system:
388 \begin{chpcode}
389 sudo texhash
390 \end{chpcode}
391 and to wait for the magic to be done (the insertion of the user password may be
392 required after this instruction). Another option is to let the \verb|tlmgr|
393 utility do all the work, moving the terminal action to the directory in which
394 \verb|chemplants.sty| is (\verb|cd| instruction) and typing:
395 \begin{chpcode}
396 sudo tlmgr install chemplants
397 \end{chpcode}
398
399 For a Windows system running \TeXlive\ it should work the same way, but commands
400 have to be typed in the prompt removing the \verb|sudo| prefix, used by
401 Linux-like systems. Finally, \MiKTeX\ should provide a custom package manager to
402 handle the \TeX\ tree structure, so \chemplants\ have to be installed in the way
403 \MiKTeX\ manager usually handles new packages.
404
405 \subsection{Basic Knowledge Required}
406
407 In order to profitably use the \chemplants\ package, a basic knowledge of the
408 \TikZ\ package is required. There are a lot of excellent introductory guides to
409 this gigantic package and for every doubt there is also the enormous and
410 excellent documentation of the package: \cite{tantau:tikz}. For impatient
411 readers, \cite{cremer:tikz} (available on \ac{CTAN} into the \TikZ\ package
412 directory) offers a short but useful introduction to \TikZ.
413
414 Italian language users can find on the internet some very useful guides
415 to learn the bases of \TikZ\ (and more of what is needed to use \chemplants). A
416 short but effective introduction is given in a dedicated chapter of
417 \cite{pantieri:latexpedia}, derived from a previous article of the same author:
418 \cite{pantieri:artedi}. Users who want to be really surprised by the capability
419 of \TikZ, besides the full documentation aforementioned, can check
420 \cite{fiadrino:tikz}, an excellent guide available on the \GuIT\ website (the
421 Italian \TeX\ and \LaTeX\ users group).
422
423 Finally, readers interested on \UNICHIM\ regulations can easily find some
424 tables on the internet, or a more interesting source of information in
425 \cite{cacciatore:disegno}. This book reports a selection of tables coming form
426 \cite{unichim:impianti}, the official \UNICHIM\ manual, mainly the ones
427 concerning process units, styles for streams and control instrumentation; there
428 are also some examples of \ac{PFD}s.
429
430 \subsection{Purposes of the Package}
431
432 Having mentioned the \UNICHIM\ regulation, it is important to spend a couple
433 of words more about the aim of this package. The \chemplants\ package is meant
434 to help users which have a basic knowledge of \TikZ\ in representing schemes of
435 chemical processes and plants in a simple way. This requires to access to symbols
436 for process units, styles for streams and, possibly, symbols and styles for
437 control instrumentation. These three elements, plus a rudimental mechanism to
438 set the main parameters of the drawing, are what \chemplants\ provides.
439
440 This package is not meant to produce representation of complex units or of very
441 specialised equipments such as the Linde column used in air distillation plants
442 or the Casale reactor used in ammonia synthesis. A fine representation of units
443 like the two just mentioned requires more than a simple symbol to be placed
444 somewhere in a \ac{PFD}, but a complex and detailed scheme, which goes beyond the
445 scope of \chemplants. Moreover, complex drawings like these are not that common,
446 so they do not need to be defined as pics in order to be extensively used and
447 easily modified. Users in the need to represent specialised schematics should
448 exploit the basic and advanced features of the \TikZ\ package in a more general
449 way, rather than asking \chemplants\ to do it for them.
450
451 \section{Streams and Utilities}
452
453 Streams to be used in \ac{BFD}s and \ac{PFD}s can be obtained by means of the
454 \verb|\draw| command of \TikZ\ to represent lines with the operator \verb|--|.
455 The graphicas aspect of a stream is defined as a \TikZ\ style and can be applied
456 to any \verb|\draw| command as an option to the command itself. Although not
457 explicitly showed, all of the following example instructions are intended to be
458 used within a \verb|tikzpicture| environment.
459
460 \subsection{Main Stream}
461
462 A main stream indicates the main path of a process, the one prime matters
463 follow to be transformed into the desired products. It is defined as a style
464 called \chps{main stream}, to be applied to the \verb|\draw| command:
465 \begin{chpcode}
466 \draw[main stream] (0,0) -- (2,0);
467 \end{chpcode}
468 and yields an arrow of \verb|semithick| thickness:
469 \begin{center}
470 \begin{tikzpicture}
471 \draw[main stream] (0,0) -- (2,0);
472 \end{tikzpicture}
473 \end{center}
474 As for all of the \TikZ\ arrows declared through the \verb|->| option, the tip
475 is present only on the last point of the path:
476 \begin{center}
477 \begin{tikzpicture}
478 \draw[main stream] (0,0) -- (1,0) -- (1,1) -| (2,0);
479 \end{tikzpicture}
480 \end{center}
481 so every main stream (arrow) to be represented requires its own \verb|\draw|
482 command.
483
484 \subsection{Secondary Stream}
485
486 A secondary stream indicates a process stream different from the main one, still
487 very important to the process, though not as the principal line (reactants
488 recycle is an example). It is defined as a style called \chps{secondary stream},
489 to be applied to the \verb|\draw| command:
490 \begin{chpcode}
491 \draw[secondary stream] (0,0) -- (2,0);
492 \end{chpcode}
493 and yields an arrow of \verb|thin| thickness:
494 \begin{center}
495 \begin{tikzpicture}
496 \draw[secondary stream] (0,0) -- (2,0);
497 \end{tikzpicture}
498 \end{center}
499
500 \subsection{Utility Stream}
501
502 A utility stream indicates all of the streams different from the main and
503 secondary ones, but anyway useful to the process (at least in a \ac{PFD}), such
504 as heating steam or cooling water. It is defined as a style called
505 \chps{utility stream}, to be applied to the \verb|\draw| command:
506 \begin{chpcode}
507 \draw[utility stream] (0,0) -- (2,0);
508 \end{chpcode}
509 and yields an arrow of \verb|very thin| thickness (the standard one in \TikZ):
510 \begin{center}
511 \begin{tikzpicture}
512 \draw[utility stream] (0,0) -- (2,0);
513 \end{tikzpicture}
514 \end{center}
515
516 The standard arrow tip defined for \chps{main stream}, \chps{secondary stream}
517 and \chps{utility stream} styles (and for everything else in \chemplants\ that
518 has an arrow tip) is the \verb|stealth| arrow of \TikZ. This can be changed, as
519 a lot of other graphical parameters can. The way such customisations can be
520 achieved will be discussed after the introduction of all units.
521
522 \subsection{Signal}
523
524 In a \ac{PFD}, it is possibile to sketch also the main paths of the control
525 system of a chemical plant. Controllers are connected to units and to actuators
526 through a signal line, which in a \ac{PFD} is intended as a generic signal (no
527 distinction between pneumatic, electric and so on). It is defined as a style
528 called \chps{signal}, to be applied to the \verb|\draw| command:
529 \begin{chpcode}
530 \draw[signal] (0,0) -- (2,0);
531 \end{chpcode}
532 and yields a line of \verb|very thin| thickness with parallel and oblique short
533 lines placed at regular intervals:
534 \begin{center}
535 \begin{tikzpicture}
536 \draw[signal] (0,0) -- (2,0);
537 \end{tikzpicture}
538 \end{center}
539
540 It should be notice that \chps{signal} style is not very flexible. Markings
541 start \SI{5}{\mm} after the path initial point and are spaced by \SI{5}{\mm},
542 ending at least \SI{5}{\mm} before the final point of the path. Thus, the optimal
543 result is obtained if a path has a length which is a multiple of \SI{5}{\mm}.
544 Otherwise, there will be an ``uncovered portion'' of the path. For example, the
545 code:
546 \begin{chpcode}
547 \draw[signal] (0,2) -- (2,2);
548 \draw[signal] (0,1) -- (1.8,1);
549 \draw[signal] (0,0) -- (2.2,0);
550 \end{chpcode}
551 yields:
552 \begin{center}
553 \begin{tikzpicture}
554 \draw[signal] (0,2) -- (2,2);
555 \draw[signal] (0,1) -- (1.9,1);
556 \draw[signal] (0,0) -- (2.1,0);
557 \end{tikzpicture}
558 \end{center}
559 The top line only yields the correct graphical result. Notice also that the
560 minimum length a \chps{signal} path should have is \SI{1}{\mm}, which results
561 into a short signal with a single mark on its middle point.
562
563 Sometimes the \chps{signal} style is not flexible enough, such as for very short
564 paths. For this specific aim, a \chps{short signal} style is defined, to be used
565 in the same way of the standard \chps{signal}, but it places a single mark in
566 the middle of the path:
567 \begin{center}
568 \begin{tikzpicture}
569 \draw[short signal] (0,0) -- (0.5,0);
570 \end{tikzpicture}
571 \end{center}
572 so it is recommended when a signal shorter than \SI{1}{\cm} has to be drawn.
573
574 \subsection{Hidden Streams and Components}
575
576 Although not really considered by the \UNICHIM\ regulation, it is sometimes
577 useful to show streams and components within a unit. Two special styles are
578 defined to this aim.
579
580 The \chps{hidden stream} style is defined to be applied to the \verb|\draw|
581 command:
582 \begin{chpcode}
583 \draw[main stream, hidden stream] (0,0) -- (2,0);
584 \end{chpcode}
585 and yields a \verb|dashed| line with no specified thickness, so it has to be
586 used with either \chps{main stream} or \chps{utility stream} to draw the arrow
587 of the right thickness:
588 \begin{center}
589 \begin{tikzpicture}
590 \draw[main stream, hidden stream] (0,0) -- (2,0);
591 \end{tikzpicture}
592 \end{center}
593
594 The \chps{hidden component} style is defined to be applied to the \verb|\pic|
595 command to draw components within a unit (in the way that will be introduced
596 later):
597 \begin{chpcode}
598 \pic[hidden component] at (0,0) {valve=main};
599 \end{chpcode}
600 and yields the required unit represented not with a solid line, but with a
601 \verb|densely dotted| pattern:
602 \begin{center}
603 \begin{tikzpicture}
604 \pic[hidden component] at (0,0) {valve=main};
605 \end{tikzpicture}
606 \end{center}
607
608 \section{Process Units}
609
610 Process units are defined as pics. A pic is a \TikZ\ object that represents a
611 simple draw to be placed at certain coordinates through the \verb|\pic| command.
612 The advantages of using a pic to define a standard symbol are the easiness of
613 use and of modification of the symbol itself, if needed.
614
615 In order to define a pic, it is important to specify the starting point and, of
616 course, the code that draws the pic. The starting point is the most important
617 point of the pic since it is its anchor, the point that will be placed to the
618 coordinates declared by the \verb|\pic| command. The drawing code defines,
619 instead, the dimensions of the pic and its default orientation (and the line
620 thickness, \verb|thick| by default in \chemplants).
621
622 The two features just introduced imply to specify what is the logic of the
623 pics defined by \chemplants. The main anchor is almost always defined as the
624 centre of the symbol (or as an important point close to it). This choice let all
625 of the transformation options defined by \TikZ\ to be applied to the pics
626 representing the units, so a high flexibility in placing and orienting units is
627 granted. However, there is also a drawback in this approach: the coordinates of
628 the main anchor of the pic cn be established, but the coordinates of the points
629 in which streams touch the unit have to be calculated by hand.
630
631 The problem just highlighted was the main trouble of the \chemplants\ package.
632 This issue was fixed redefining units in a more cleaver way and using more
633 advanced tools of the \TikZ\ package. I would like to explain a little bit of
634 history of the package before going on.
635
636 When I started to define units, since they where few and very simple (and since I
637 was not that able in programmed drawing), pics contained the simple geometrical
638 description of the symbols. This was easy to do, but it had the great
639 disadvantage of forcing the user (only me at that time) to manually calculate
640 coordinates for the placement of units and for streams connections. In a certain
641 way, the problem is also an opportunity because it forces the drawer to
642 accurately plan the layout of the schematics, but it is silly and very
643 time-consuming in large and complex drawings.
644
645 My dream was to build a simple automatic interface like the \CircuiTikZ\
646 one, which uses the \verb|to| operator of \TikZ\ in a very clever way (within a
647 custom environment of the package). Anyway, electric networks schematics are
648 simpler than chemical processes drawing under this aspect: a great part of
649 electrical components, such as resistors, capacitors and inductors, are bipoles,
650 which means with one input and one output only, just two connections points. In
651 chemical plants, most of the units are not simple bipoles, but can have a wide
652 variety of inlet and outlet streams connected in variable points. Due to this
653 necessity, I was not able to find a simple solution during the very first writing
654 of the package code.
655
656 After some researches, I saw the light: coordinate nodes. The \TikZ\ package
657 offers the possibility to define a pic with some internal coordinate nodes,
658 special points to which a name can be assigned. In this way it is not necessary
659 to calculate by hand the position of the remarkable points of a unit, but it is
660 enough to know the names of the coordinate nodes which represent them to snap a
661 stream on those points. Moving a unit will then move also anchors, so the snap
662 will be held. Finally, \TikZ\ let a pic to be prefixed with a name that
663 univocally identifies the pic. This name is prefixed also to anchors declared
664 in the pic definition, hence also anchors are univocally determined, avoiding to
665 snap a stream to the wrong unit.
666
667 \subsection{Understanding Symbols}
668
669 Units defined by \chemplants\ can be two different kinds of pics:
670 \begin{itemize}
671 \item simple pic objects, which can be used by just calling them through a
672 \verb|\pic| command;
673 \item pic objects with a mandatory argument, in which the pic name called
674 through the \verb|\pic| command has to be followed by a specification.
675 \end{itemize}
676 The second category is particularly useful to draw similar units distinguished
677 by some details, such as different columns types, or to let units to be
678 sensible to the context, for example units that have to be drawn with different
679 thicknesses. A third possibility is to give a text argument to the pic that has
680 to be represented inside the pic itself; this is particularly useful for control
681 instruments.
682
683 \subsubsection{The General Pic Syntax}
684
685 A pic is a \TikZ\ object which can be called by the \verb|\pic| command. The
686 general syntax of the command is more or less:
687 \begin{chpcode}
688 \pic [ÂŁ!\meta{options}!ÂŁ] (ÂŁ!\meta{identifier}!ÂŁ) at (ÂŁ!\meta{coordinate}!ÂŁ) {ÂŁ!\meta{name}!ÂŁ};
689 \end{chpcode}
690 where:
691 \begin{itemize}
692 \item \meta{options} is a list of options to be passed to the pic and it
693 is, as the name says, an optional argument;
694 \item \meta{identifier} is a user-defined name assigned to the pic that
695 should univocally determine it and that will be prefixed, together with
696 a dash, \verb|-|, to all of the nodes names (it is an optional argument
697 for the pic, but mandatory if one wants to access the node features);
698 \item \meta{coordinates} is whichever expression \TikZ\ recognises as a
699 specification of the coordinates on its canvas;
700 \item \meta{name} is the name of the pic to be drawn.
701 \end{itemize}
702 This syntax holds true for simple pics only. Units defined as pics with arguments
703 have a similar syntax, but with an extra argument:
704 \begin{chpcode}
705 \pic [ÂŁ!\meta{options}!ÂŁ] (ÂŁ!\meta{identifier}!ÂŁ) at (ÂŁ!\meta{coordinate}!ÂŁ) {ÂŁ!\meta{name}!ÂŁ=ÂŁ!\meta{type}!ÂŁ};
706 \end{chpcode}
707 where \meta{type} is the argument to be passed to the \meta{name} unit and which
708 specifies some features of the unit itself. The usage of these syntaxes will
709 be clearer in the future, when examples will be shown.
710
711 \subsubsection{Common Nodes}
712
713 In the following, units defined by \chemplants\ are listed, described and shown.
714 In order to profitably draw units it is important to know where their anchors
715 and nodes are, what their dimensions are and which is their default orientation.
716 Units will be drawn and some information will be given in the meanwhile:
717 \begin{itemize}
718 \item drawings will be shown in their default orientation;
719 \item anchors will be represented on units by a little
720 \textcolor{red}{red cross};
721 \item remarkable nodes, the ones defined by the pic code, will be
722 represented on units by a little \textcolor{blue}{blue cross} with an
723 abbreviation of the name of the node on its side;
724 \item dimensions will be marked on drawings, both total dimensions and
725 distances from the important points to the anchor.
726 \end{itemize}
727
728 Only instructions to produce the ``raw units'' will be shown, so, in order to
729 avoid confusion, three units will be presented: a ``pure'' unit; a unit marked
730 with dimensions; a unit marked with the nodes.
731
732 What concerns the names of the remarkable nodes which will be used in the
733 following require a clarification. As a general rule, nine standard names are
734 used to identify \chemplants\ nodes. These names are long for the sake of
735 clearance, but they will be abbreviated in this discussion just to limit the
736 space they require. A short list:
737 \begin{itemize}
738 \item the node \chpn{anchor} is always placed where the pic is anchored and
739 it will be never marked by a name, but only by the small red cross
740 mentioned above;
741 \item the node \chpn{left} is placed on the left limit of the unit, in its
742 centre, and will be indicated using the abbreviated name \chpn{l};
743 \item the node \chpn{bottom left} is placed on the left limit of the unit,
744 in its lower useful point, and will be indicated using the abbreviated
745 name \chpn{bl};
746 \item the node \chpn{bottom} is placed on the lower limit of the unit, in
747 its centre, and will be indicated using the abbreviated name \chpn{b};
748 \item the node \chpn{bottom right} is placed on the right limit of the unit,
749 in its lower useful point, and will be indicated using the abbreviated
750 name \chpn{br};
751 \item the node \chpn{right} is placed on the right limit of the unit, in its
752 centre, and will be indicated using the abbreviated name \chpn{r};
753 \item the node \chpn{top right} is placed on the right limit of the unit,
754 in its upper useful point, and will be indicated using the abbreviated
755 name \chpn{tr};
756 \item the node \chpn{top} is placed on the upper limit of the unit, in
757 its centre, and will be indicated using the abbreviated name \chpn{t};
758 \item the node \chpn{top left} is placed on the left limit of the unit,
759 in its upper useful point, and will be indicated using the abbreviated
760 name \chpn{tl}.
761 \end{itemize}
762
763 Taking as example a tank, full names of the nodes, shown on the unit on the left,
764 will be indicated using abbreviated names, as on the unit on the right:
765 \begin{center}
766 \begin{tikzpicture}
767 \pic (T1) at (0,0) {tank};
768 \pic at (T1-anchor) {anchor mark};
769 \pic at (T1-left) {node mark};
770 \pic at (T1-bottom left) {node mark};
771 \pic at (T1-bottom) {node mark};
772 \pic at (T1-bottom right) {node mark};
773 \pic at (T1-right) {node mark};
774 \pic at (T1-top right) {node mark};
775 \pic at (T1-top) {node mark};
776 \pic at (T1-top left) {node mark};
777 \node[left] at (T1-left) {\chpn{left}};
778 \node[left] at (T1-bottom left) {\chpn{bottom left}};
779 \node[below] at (T1-bottom) {\chpn{bottom}};
780 \node[right] at (T1-bottom right) {\chpn{bottom right}};
781 \node[right] at (T1-right) {\chpn{right}};
782 \node[right] at (T1-top right) {\chpn{top right}};
783 \node[above] at (T1-top) {\chpn{top}};
784 \node[left] at (T1-top left) {\chpn{top left}};
785 \pic (T2) at (8,0) {tank};
786 \pic at (T2-anchor) {anchor mark};
787 \pic at (T2-left) {node mark};
788 \pic at (T2-bottom left) {node mark};
789 \pic at (T2-bottom) {node mark};
790 \pic at (T2-bottom right) {node mark};
791 \pic at (T2-right) {node mark};
792 \pic at (T2-top right) {node mark};
793 \pic at (T2-top) {node mark};
794 \pic at (T2-top left) {node mark};
795 \node[left] at (T2-left) {\chpn{l}};
796 \node[left] at (T2-bottom left) {\chpn{bl}};
797 \node[below] at (T2-bottom) {\chpn{b}};
798 \node[right] at (T2-bottom right) {\chpn{br}};
799 \node[right] at (T2-right) {\chpn{r}};
800 \node[right] at (T2-top right) {\chpn{tr}};
801 \node[above] at (T2-top) {\chpn{t}};
802 \node[left] at (T2-top left) {\chpn{tl}};
803 \end{tikzpicture}
804 \end{center}
805
806 It should be noticed that not all of the ``boundary nodes'' are defined for
807 every unit. Usually they are all present in a rectangle-shaped unit, such as a
808 tank, but in circle-shaped units the ``corner nodes'' are not present.
809 Furthermore, units represented by strange symbols can have some special nodes to
810 indicate their remarkable points. Special nodes will be discussed, both with
811 extended and abbreviated names, describing units which require them.
812
813 It is important to recall that to access the node features of pics it is
814 mandatory to assign an identifier to the \verb|\pic| command. Assuming that
815 such identifier is \chpn{T}, then one can access to all of the nodes inside the
816 pic thanks to it using them as coordinates nodes (as they are). Also interposing
817 a dash, \verb|-|, is fundamental. For example \chpn{T-bottom right} used as
818 coordinate identifies the point of the \chpn{bottom right} node of the pic
819 identified (prefixed) by \chpn{T}.
820
821 \subsubsection{A Command to Show Measures}
822
823 By the way, \chemplants\ defines a command to draw dimensions: \verb|\measure|.
824 This command has to be used directly within a \verb|tikzpicture| environment
825 (also without the final semicolon) and requires three mandatory arguments:
826 start point coordinates, end point coordinates and the text of the measure.
827 Coordinates can be declared in any way recognised by \TikZ, while the text can
828 be anything that can be placed into a \TikZ\ node.
829
830 The default appearance of a measure is a grey \verb|thin| line with flat tips.
831 The measure is yield as text placed in the middle of the line, sloped in its
832 direction and always below it. Anyway, \verb|\measure| accepts an optional
833 argument in which any anchor specification that can be passed to a \TikZ\ node
834 can be used. The most useful is \verb|above|, which moves the text of a measure
835 above the line.
836
837 Some examples using the \siunitx\ package (but also normal text will work).
838 The code:
839 \begin{chpcode}
840 \measure{(0,0)}{(2,0)}{\SI{2}{\cm}}
841 \measure{(0,1.2)}{(0,0.2)}{\SI{1}{\cm}}
842 \measure{(1,0.2)}{(1,1.2)}{\SI{1}{\cm}}
843 \measure[above]{(2,1.2)}{(2,0.2)}{\SI{1}{\cm}}
844 \measure[above]{(0,1.4)}{(2,1.4)}{\SI{2}{\cm}}
845 \end{chpcode}
846 yields:
847 \begin{center}
848 \begin{tikzpicture}
849 \measure{(0,0)}{(2,0)}{\SI{2}{\cm}}
850 \measure{(0,1.2)}{(0,0.2)}{\SI{1}{\cm}}
851 \measure{(1,0.2)}{(1,1.2)}{\SI{1}{\cm}}
852 \measure[above]{(2,1.2)}{(2,0.2)}{\SI{1}{\cm}}
853 \measure[above]{(0,1.4)}{(2,1.4)}{\SI{2}{\cm}}
854 \end{tikzpicture}
855 \end{center}
856 It is important to notice that the value of the measure is not calculated
857 automatically, but it must be passed as an argument. This is useful to indicate,
858 for example, the length of a pipe or the real dimensions of a unit in a process
859 scheme.
860
861 \subsection{Fluids and Solids Storage}
862 \label{subsec:storag}
863
864 \subsubsection{Tank}
865
866 A tank is a generic recipient useful to store process fluids or solids. A generic
867 symbol is defined for a process tank and it can be used with no distinction on
868 its shape, which is represented by a rectangle with rounded bases. It is defined
869 as a simple pic called \chpp{tank}:
870 \begin{chpcode}
871 \pic at (0,0) {tank};
872 \end{chpcode}
873 and yields a vertical tank anchored in its centre:
874 \begin{center}
875 \begin{tikzpicture}
876 \pic at (-4,0) {tank};
877 \pic at (0,0) {tank};
878 \measure{(-1,-1.7)}{(1,-1.7)}{\SI{20}{\mm}}
879 \measure{(-1.2,1.5)}{(-1.2,-1.5)}{\SI{30}{\mm}}
880 \measure[above]{(1.2,0.915)}{(1.2,0)}{\SI{9.15}{\mm}}
881 \pic at (0,0) {anchor mark};
882 \pic (T) at (4,0) {tank};
883 \pic at (T-anchor) {anchor mark};
884 \pic at (T-left) {node mark};
885 \pic at (T-bottom left) {node mark};
886 \pic at (T-bottom) {node mark};
887 \pic at (T-bottom right) {node mark};
888 \pic at (T-right) {node mark};
889 \pic at (T-top right) {node mark};
890 \pic at (T-top) {node mark};
891 \pic at (T-top left) {node mark};
892 \node[left] at (T-left) {\chpn{l}};
893 \node[left] at (T-bottom left) {\chpn{bl}};
894 \node[below] at (T-bottom) {\chpn{b}};
895 \node[right] at (T-bottom right) {\chpn{br}};
896 \node[right] at (T-right) {\chpn{r}};
897 \node[right] at (T-top right) {\chpn{tr}};
898 \node[above] at (T-top) {\chpn{t}};
899 \node[left] at (T-top left) {\chpn{tl}};
900 \end{tikzpicture}
901 \end{center}
902 where the measure on the right indicates the distance from the middle of the tank
903 to the point where the curvature begins. This point is identified by the
904 \chpn{top right} node and by its analogous.
905
906 The \chpp{tank} pic is generic and it is useful to represent process tanks.
907 Storage tanks can be represented with the same pic, but there are also some
908 specific symbols.
909
910 \subsubsection{Cone Roof Tank}
911
912 A cone roof tank is a large tank placed on the ground and useful to store
913 process fluids or solids. As the name says, it has a cone-shaped roof. It is
914 defined as a simple pic called \chpp{cone tank}:
915 \begin{chpcode}
916 \pic at (0,0) {cone tank};
917 \end{chpcode}
918 and yields a rectangle, in which centre there is the anchor, with a cone-shaped
919 roof:
920 \begin{center}
921 \begin{tikzpicture}
922 \pic at (-5,0) {cone tank};
923 \pic at (0,0) {cone tank};
924 \measure{(-1.5,-1.7)}{(1.5,-1.7)}{\SI{30}{\mm}}
925 \measure{(-1.7,1.5)}{(-1.7,-1.5)}{\SI{30}{\mm}}
926 \measure[above]{(1.7,1.1)}{(1.7,0)}{\SI{11}{\mm}}
927 \measure[above]{(1.7,0)}{(1.7,-1.4)}{\SI{14}{\mm}}
928 \pic at (0,0) {anchor mark};
929 \pic (T) at (5,0) {cone tank};
930 \pic at (T-anchor) {anchor mark};
931 \pic at (T-left) {node mark};
932 \pic at (T-bottom left) {node mark};
933 \pic at (T-bottom) {node mark};
934 \pic at (T-bottom right) {node mark};
935 \pic at (T-right) {node mark};
936 \pic at (T-top right) {node mark};
937 \pic at (T-top) {node mark};
938 \pic at (T-top left) {node mark};
939 \node[left] at (T-left) {\chpn{l}};
940 \node[left] at (T-bottom left) {\chpn{bl}};
941 \node[below] at (T-bottom) {\chpn{b}};
942 \node[right] at (T-bottom right) {\chpn{br}};
943 \node[right] at (T-right) {\chpn{r}};
944 \node[right] at (T-top right) {\chpn{tr}};
945 \node[above] at (T-top) {\chpn{t}};
946 \node[left] at (T-top left) {\chpn{tl}};
947 \end{tikzpicture}
948 \end{center}
949 where the measure on the bottom right indicates the distance from the middle of
950 the tank to the point where the outlet stream should be connected. This point is
951 identified by the \chpn{bottom right} node and by its analogous node on the left.
952
953 \subsubsection{Dome Roof Tank}
954
955 A dome roof tank is the same of a cone roof tank, but, clearly, it has a
956 dome-shaped roof. It is defined as a simple pic called \chpp{dome tank}:
957 \begin{chpcode}
958 \pic at (0,0) {dome tank};
959 \end{chpcode}
960 and yields a rectangle, in which centre there is the anchor, with a dome-shaped
961 roof:
962 \begin{center}
963 \begin{tikzpicture}
964 \pic at (-5,0) {dome tank};
965 \pic at (0,0) {dome tank};
966 \measure{(-1.5,-1.7)}{(1.5,-1.7)}{\SI{30}{\mm}}
967 \measure{(-1.7,1.5)}{(-1.7,-1.5)}{\SI{30}{\mm}}
968 \measure[above]{(1.7,0.7)}{(1.7,0)}{\SI{7}{\mm}}
969 \measure[above]{(1.7,0)}{(1.7,-1.4)}{\SI{14}{\mm}}
970 \pic at (0,0) {anchor mark};
971 \pic (T) at (5,0) {dome tank};
972 \pic at (T-anchor) {anchor mark};
973 \pic at (T-left) {node mark};
974 \pic at (T-bottom left) {node mark};
975 \pic at (T-bottom) {node mark};
976 \pic at (T-bottom right) {node mark};
977 \pic at (T-right) {node mark};
978 \pic at (T-top right) {node mark};
979 \pic at (T-top) {node mark};
980 \pic at (T-top left) {node mark};
981 \node[left] at (T-left) {\chpn{l}};
982 \node[left] at (T-bottom left) {\chpn{bl}};
983 \node[below] at (T-bottom) {\chpn{b}};
984 \node[right] at (T-bottom right) {\chpn{br}};
985 \node[right] at (T-right) {\chpn{r}};
986 \node[right] at (T-top right) {\chpn{tr}};
987 \node[above] at (T-top) {\chpn{t}};
988 \node[left] at (T-top left) {\chpn{tl}};
989 \end{tikzpicture}
990 \end{center}
991 where the measure on the top right indicates the distance from the middle of the
992 tank to the point where the curvature begins, while the measure on the bottom
993 right indicates the distance from the middle of the tank to the point where the
994 outlet stream should be connected. This last point is identified by the
995 \chpn{bottom right} node and by its analogous node on the left.
996
997 \subsubsection{Floating Roof Tank}
998
999 A floating roof tank is a large tank placed on the ground and useful to store
1000 process fluids or solids. It has the advantage to change in volume depending on
1001 how much it is filled, which allows to compensate pressure unbalances during
1002 the filling and the draining of the tank, also to avoid the formation of a gas
1003 pocket above the stored substance. It is defined as a simple pic called
1004 \chpp{floating roof tank}:
1005 \begin{chpcode}
1006 \pic at (0,0) {floating roof tank};
1007 \end{chpcode}
1008 and yields a rectangle, in which centre there is the anchor, with a sketch of the
1009 floating roof:
1010 \begin{center}
1011 \begin{tikzpicture}
1012 \pic at (-5,0) {floating roof tank};
1013 \pic at (0,0) {floating roof tank};
1014 \measure{(-1.5,-1.7)}{(1.5,-1.7)}{\SI{30}{\mm}}
1015 \measure{(-1.7,1.5)}{(-1.7,-1.5)}{\SI{30}{\mm}}
1016 \measure[above]{(1.7,1.2)}{(1.7,0)}{\SI{12}{\mm}}
1017 \measure[above]{(1.7,0)}{(1.7,-1.4)}{\SI{14}{\mm}}
1018 \pic at (0,0) {anchor mark};
1019 \pic (T) at (5,0) {floating roof tank};
1020 \pic at (T-anchor) {anchor mark};
1021 \pic at (T-left) {node mark};
1022 \pic at (T-bottom left) {node mark};
1023 \pic at (T-bottom) {node mark};
1024 \pic at (T-bottom right) {node mark};
1025 \pic at (T-right) {node mark};
1026 \pic at (T-top right) {node mark};
1027 \pic at (T-top) {node mark};
1028 \pic at (T-top left) {node mark};
1029 \node[left] at (T-left) {\chpn{l}};
1030 \node[left] at (T-bottom left) {\chpn{bl}};
1031 \node[below] at (T-bottom) {\chpn{b}};
1032 \node[right] at (T-bottom right) {\chpn{br}};
1033 \node[right] at (T-right) {\chpn{r}};
1034 \node[right] at (T-top right) {\chpn{tr}};
1035 \node[above] at (T-top) {\chpn{t}};
1036 \node[left] at (T-top left) {\chpn{tl}};
1037 \end{tikzpicture}
1038 \end{center}
1039 where the measure on the bottom right indicates the distance from the middle of
1040 the tank to the point where the outlet stream should be connected. This point is
1041 identified by the \chpn{bottom right} node and by its analogous node on the left.
1042
1043 \subsubsection{Spherical Tank}
1044
1045 A special kind of tank, quite used for gas storage, is shaped like a sphere. It
1046 is defined as a simple pic called \chpp{spherical tank}:
1047 \begin{chpcode}
1048 \pic at (0,0) {spherical tank};
1049 \end{chpcode}
1050 and yields a circle, in which centre there is the anchor, supported by two stems:
1051 \begin{center}
1052 \begin{tikzpicture}
1053 \pic at (-5,0) {spherical tank};
1054 \pic at (0,0) {spherical tank};
1055 \measure{(-1.5,-1.7)}{(1.5,-1.7)}{\SI{30}{\mm}}
1056 \measure{(-1.7,1.4)}{(-1.7,-1.5)}{\SI{29}{\mm}}
1057 \measure[above]{(-1.4,1.6)}{(1.4,1.6)}{\SI{28}{\mm}}
1058 \measure[above]{(1.7,0)}{(1.7,-1.5)}{\SI{15}{\mm}}
1059 \pic at (0,0) {anchor mark};
1060 \pic (T) at (5,0) {spherical tank};
1061 \pic at (T-anchor) {anchor mark};
1062 \pic at (T-left) {node mark};
1063 \pic at (T-bottom) {node mark};
1064 \pic at (T-right) {node mark};
1065 \pic at (T-top) {node mark};
1066 \node[left] at (T-left) {\chpn{l}};
1067 \node[below] at (T-bottom) {\chpn{b}};
1068 \node[right] at (T-right) {\chpn{r}};
1069 \node[above] at (T-top) {\chpn{t}};
1070 \end{tikzpicture}
1071 \end{center}
1072 where the measure on the bottom indicates the total width of the unit (the stands
1073 protrude by \SI{1}{\mm} each side of the circle), the measure on the right
1074 indicates the distance from the centre of the circle to its base, while the
1075 measure on the top indicates the diameter of the circle. Besides the
1076 \chpn{anchor} node, only \chpn{left}, \chpn{top}, \chpn{bottom} and \chpn{right}
1077 nodes are defined for this unit.
1078
1079 \subsubsection{Bell GasHolder}
1080
1081 Tanks introduced so far can be used to represent general systems to store either
1082 solids, liquids and gases. For gases storage, a specific kind of tanks exists,
1083 which is designed to control the gas pressure in a simple way: gasholders.
1084
1085 The most common gasholder uses a bell-shaped floating roof to expand and contract
1086 its volume depending on the amount of gas to be stored. It is defined as a simple
1087 pic called \chpp{bell gasholder}:
1088 \begin{chpcode}
1089 \pic at (0,0) {bell gasholder};
1090 \end{chpcode}
1091 and yields a rectangle, in which centre there is the anchor, with a sketch of
1092 the bell-shaped floating roof:
1093 \begin{center}
1094 \begin{tikzpicture}
1095 \pic at (-5,0) {bell gasholder};
1096 \pic at (0,0) {bell gasholder};
1097 \measure{(-1.5,-1.7)}{(1.5,-1.7)}{\SI{30}{\mm}}
1098 \measure{(-1.7,1.5)}{(-1.7,-1.5)}{\SI{30}{\mm}}
1099 \measure[above]{(1.7,0.7)}{(1.7,0)}{\SI{7}{\mm}}
1100 \measure[above]{(1.7,0)}{(1.7,-1.4)}{\SI{14}{\mm}}
1101 \measure[above]{(-1.45,1.7)}{(1.45,1.7)}{\SI{29}{\mm}}
1102 \pic at (0,0) {anchor mark};
1103 \pic (T) at (5,0) {bell gasholder};
1104 \pic at (T-anchor) {anchor mark};
1105 \pic at (T-left) {node mark};
1106 \pic at (T-bottom left) {node mark};
1107 \pic at (T-bottom) {node mark};
1108 \pic at (T-bottom right) {node mark};
1109 \pic at (T-right) {node mark};
1110 \pic at (T-top right) {node mark};
1111 \pic at (T-top) {node mark};
1112 \pic at (T-top left) {node mark};
1113 \node[left] at (T-left) {\chpn{l}};
1114 \node[left] at (T-bottom left) {\chpn{bl}};
1115 \node[below] at (T-bottom) {\chpn{b}};
1116 \node[right] at (T-bottom right) {\chpn{br}};
1117 \node[right] at (T-right) {\chpn{r}};
1118 \node[right] at (T-top right) {\chpn{tr}};
1119 \node[above] at (T-top) {\chpn{t}};
1120 \node[left] at (T-top left) {\chpn{tl}};
1121 \end{tikzpicture}
1122 \end{center}
1123 where the measure on the top indicates the width of the moving roof, th measure
1124 on the top right indicates the distance from the middle of the gasholder to the
1125 point where the curvature begins and the measure on the bottom right indicates
1126 the distance from the middle of the gasholder to the point where a stream should
1127 be connected. This last point is identified by the \chpn{bottom right} node and
1128 by its analogous node on the left.
1129
1130 It should be quite obvious that \chpn{left} and \chpn{right} nodes, falling on
1131 the roof rails, are not meant to be used for stream connections, but just to
1132 labelling purposes or for control instrumentation connections.
1133
1134 \subsubsection{Dry GasHolder}
1135
1136 Another kind of gasholder is the so called dry gasholder, where there is a fixed
1137 structure that contains an ``expandable ballon'' in which the gas is stored. It
1138 is defined as a simple pic called \chpp{dry gasholder}:
1139 \begin{chpcode}
1140 \pic at (0,0) {dry gasholder};
1141 \end{chpcode}
1142 and yields a rectangle, in which centre there is the anchor, with a sketch of the
1143 ballon inside it:
1144 \begin{center}
1145 \begin{tikzpicture}
1146 \pic at (-5,0) {dry gasholder};
1147 \pic at (0,0) {dry gasholder};
1148 \measure{(-1.5,-1.2)}{(1.5,-1.2)}{\SI{30}{\mm}}
1149 \measure{(-1.7,1.0)}{(-1.7,-1.0)}{\SI{20}{\mm}}
1150 \measure[above]{(1.7,0.5)}{(1.7,0)}{\SI{5}{\mm}}
1151 \measure[above]{(2.2,0)}{(2.2,-0.9)}{\SI{9}{\mm}}
1152 \pic at (0,0) {anchor mark};
1153 \pic (T) at (5,0) {dry gasholder};
1154 \pic at (T-anchor) {anchor mark};
1155 \pic at (T-left) {node mark};
1156 \pic at (T-bottom left) {node mark};
1157 \pic at (T-bottom) {node mark};
1158 \pic at (T-bottom right) {node mark};
1159 \pic at (T-right) {node mark};
1160 \pic at (T-top right) {node mark};
1161 \pic at (T-top) {node mark};
1162 \pic at (T-top left) {node mark};
1163 \pic at (T-dome top) {node mark};
1164 \node[left] at (T-left) {\chpn{l}};
1165 \node[left] at (T-bottom left) {\chpn{bl}};
1166 \node[below] at (T-bottom) {\chpn{b}};
1167 \node[right] at (T-bottom right) {\chpn{br}};
1168 \node[right] at (T-right) {\chpn{r}};
1169 \node[right] at (T-top right) {\chpn{tr}};
1170 \node[above] at (T-top) {\chpn{t}};
1171 \node[left] at (T-top left) {\chpn{tl}};
1172 \node[above] at (T-dome top) {\chpn{dt}};
1173 \end{tikzpicture}
1174 \end{center}
1175 where the measure on the top right indicates the distance from the middle of the
1176 gasholder to the top of the internal balloon, while the measure on the bottom
1177 right indicates the distance from the middle of the gasholder to the point where
1178 a stream should be connected. This last point is identified by the
1179 \chpn{bottom right} node and by its analogous node on the left.
1180
1181 A special node is defined for the \chpp{dry gasholder}: usually the inlet stream
1182 is connected to one bottom side of the balloon, on the \chpn{bottom right} node
1183 or on the \chpn{bottom left} node, while the outlet is connected to the top of
1184 the dome (and not to the top of the containing structure). This special node is
1185 called \chpn{dome top} and it is marked in the above drawing using the
1186 abbreviated name \chpn{dt}. This node can be called in the usual way: for
1187 example, in a \chpn{dry gasholder} identified as \chpn{G} the node is
1188 \chpn{G-dome top}.
1189
1190 \subsubsection{Silos}
1191
1192 Also considering solids, more precisely granula materials, some special storage
1193 unit exist. Among them, the silos is for sure the most iconic. It is defined as a
1194 simple pic calles \chpp{silos}:
1195 \begin{chpcode}
1196 \pic at (0,0) {silos};
1197 \end{chpcode}
1198 and yields a thin vertical tank, in which centre there is the anchor, supported
1199 by two stems and with a sketch of the outlet hopper:
1200 \begin{center}
1201 \begin{tikzpicture}
1202 \pic at (-3.6,0) {silos};
1203 \pic at (0,0) {silos};
1204 \measure{(-0.8,-2.2)}{(0.8,-2.2)}{\SI{16}{\mm}}
1205 \measure{(-1.5,2)}{(-1.5,-2)}{\SI{40}{\mm}}
1206 \measure{(-1,2)}{(-1,0)}{\SI{20}{\mm}}
1207 \measure{(-1,0)}{(-1,-2)}{\SI{20}{\mm}}
1208 \measure[above]{(-0.7,2.2)}{(0.7,2.2)}{\SI{14}{\mm}}
1209 \measure[above]{(1.5,1.590)}{(1.5,0)}{\SI{15.9}{\mm}}
1210 \measure[above]{(1.5,0)}{(1.5,-1.8)}{\SI{18}{\mm}}
1211 \measure[above]{(1,0)}{(1,-0.8)}{\SI{8}{\mm}}
1212 \pic at (0,0) {anchor mark};
1213 \pic (T) at (3.6,0) {silos};
1214 \pic at (T-anchor) {anchor mark};
1215 \pic at (T-left) {node mark};
1216 \pic at (T-bottom left) {node mark};
1217 \pic at (T-outlet) {node mark};
1218 \pic at (T-bottom right) {node mark};
1219 \pic at (T-right) {node mark};
1220 \pic at (T-top right) {node mark};
1221 \pic at (T-top) {node mark};
1222 \pic at (T-top left) {node mark};
1223 \node[left] at (T-left) {\chpn{l}};
1224 \node[left] at (T-bottom left) {\chpn{bl}};
1225 \node[below] at (T-outlet) {\chpn{o}};
1226 \node[right] at (T-bottom right) {\chpn{br}};
1227 \node[right] at (T-right) {\chpn{r}};
1228 \node[right] at (T-top right) {\chpn{tr}};
1229 \node[above] at (T-top) {\chpn{t}};
1230 \node[left] at (T-top left) {\chpn{tl}};
1231 \end{tikzpicture}
1232 \end{center}
1233
1234 Measures concerning this unit are quite complex. The unit has a total width of
1235 \SI{16}{\mm} and a total height of \SI{40}{\mm}. The \chpn{anchor} node is placed
1236 halfway the overall height. Since the stands of the units protrudes by
1237 \SI{1}{\mm} on each side, the silos body has a width of \SI{14}{\mm}. Moving to
1238 nodes, the \chpn{top right} node and its analogous are placed \SI{15.9}{\mm}
1239 above the anchor and the \chpn{bottom right} node and its analogous are placed
1240 \SI{8}{\mm} below the anchor.
1241
1242 No \chpn{bottom} node is defined for the \chpp{silos}, but a special node exists:
1243 the outlet stream have to be connected to the end of the hopper on the bottom
1244 of the unit. This special node is called \chpn{outlet} and it is marked in the
1245 above drawing using the abbreviated name \chpn{o}. This node is placed
1246 \SI{18}{\mm} below the anchor.
1247
1248 \subsubsection{Drum}
1249
1250 The last storage unit defined by \chemplants\ is a small horizontal tank. It can
1251 be used to indicate, in general, a surge tank, but its sole purpose is indeed to
1252 mark reflux drums of distillation columns. It is defined as a simple pic called
1253 \chpp{drum}:
1254 \begin{chpcode}
1255 \pic at (0,0) {drum};
1256 \end{chpcode}
1257 and yields a horizontal tank anchored in its centre:
1258 \begin{center}
1259 \begin{tikzpicture}
1260 \pic at (-3,0) {drum};
1261 \pic at (0,0) {drum};
1262 \measure{(-0.5,-0.5)}{(0.5,-0.5)}{\SI{10}{\mm}}
1263 \measure{(-0.7,0.3)}{(-0.7,-0.3)}{\SI{6}{\mm}}
1264 \measure[above]{(0.324,0.5)}{(0,0.5)}{\SI{3.24}{\mm}}
1265 \pic at (0,0) {anchor mark};
1266 \pic (T) at (3,0) {drum};
1267 \pic at (T-anchor) {anchor mark};
1268 \pic at (T-left) {node mark};
1269 \pic at (T-bottom left) {node mark};
1270 \pic at (T-bottom) {node mark};
1271 \pic at (T-bottom right) {node mark};
1272 \pic at (T-right) {node mark};
1273 \pic at (T-top right) {node mark};
1274 \pic at (T-top) {node mark};
1275 \pic at (T-top left) {node mark};
1276 \node[left] at (T-left) {\chpn{l}};
1277 \node[below left] at (T-bottom left) {\chpn{bl}};
1278 \node[below] at (T-bottom) {\chpn{b}};
1279 \node[below right] at (T-bottom right) {\chpn{br}};
1280 \node[right] at (T-right) {\chpn{r}};
1281 \node[above right] at (T-top right) {\chpn{tr}};
1282 \node[above] at (T-top) {\chpn{t}};
1283 \node[above left] at (T-top left) {\chpn{tl}};
1284 \end{tikzpicture}
1285 \end{center}
1286 where the measure on the top indicates the distance from the middle of the tank
1287 to the point where the curvature begins. This point is identified by the
1288 \chpn{top right} node and by its analogous.
1289
1290 \subsection{Liquid Handling}
1291
1292 Fluid handling devices are essential to chemical plants because it is always
1293 necessary to move a fluid, from one place to another against pressure drops
1294 generated by pipes or units. Fluid handling units used in the chemical industry
1295 are basically classified considering the kind of fluid they can move, either a
1296 liquid or a gas. Liquid handling units are considered first.
1297
1298 \subsubsection{Centrifugal Pump}
1299
1300 A pump is a mechanical machine useful to move a liquid and to increase its
1301 pressure. The most simple and widely used pump is a simple kinetic machine known
1302 as centrifugal pump. It is defined as a simple pic called
1303 \chpp{centrifugal pump}:
1304 \begin{chpcode}
1305 \pic at (0,0) {centrifugal pump};
1306 \end{chpcode}
1307 and yields a circle, in which centre there is the anchor, supported by a
1308 triangular base and containing a little circle representing the inlet nozzle:
1309 \begin{center}
1310 \begin{tikzpicture}
1311 \pic at (-3,0) {centrifugal pump};
1312 \pic at (0,0) {centrifugal pump};
1313 \measure{(-0.5,-0.8)}{(0.5,-0.8)}{\SI{10}{\mm}}
1314 \measure{(-0.7,0.4)}{(-0.7,-0.6)}{\SI{10}{\mm}}
1315 \measure[above]{(-0.4,0.6)}{(0.4,0.6)}{\SI{8}{\mm}}
1316 \measure[above]{(0.7,0)}{(0.7,-0.6)}{\SI{6}{\mm}}
1317 \pic at (0,0) {anchor mark};
1318 \pic (P) at (3,0) {centrifugal pump};
1319 \pic at (P-anchor) {anchor mark};
1320 \pic at (P-left) {node mark};
1321 \pic at (P-bottom) {node mark};
1322 \pic at (P-right) {node mark};
1323 \pic at (P-top) {node mark};
1324 \node[left] at (P-left) {\chpn{l}};
1325 \node[below] at (P-bottom) {\chpn{b}};
1326 \node[right] at (P-right) {\chpn{r}};
1327 \node[above] at (P-top) {\chpn{t}};
1328 \end{tikzpicture}
1329 \end{center}
1330 where the measure on the right indicates the distance from the inlet of the pump
1331 to its base, while the measure on the top indicates the diameter of the circle.
1332
1333 Nodes are defined only for the remarkable outlet points of the pump, but not for
1334 its inlet: this is placed on the anchor point, so it should not be difficult to
1335 find it (use the \chpn{anchor} node to snap purposes). Anyway, it should be
1336 noticed that the centrifugal pump, together with the fan that will be introduced
1337 later on, is the only unit that requires the inlet to be placed in the centre of
1338 the symbol, while other units do not. Finally, the \chpn{bottom} node is not
1339 really meant to connect streams, but it could be exploited to labelling purposes.
1340
1341 The centrifugal pump is for sure the most widely used one, but its applications
1342 are quite limiting with respect to the pressure rise and the kind of treatable
1343 liquid. Other pumps exist, such as the ones belonging to the volumetric machines:
1344 these are mainly rotary pumps and reciprocating pumps.
1345
1346 \subsubsection{Rotary Pump}
1347
1348 Rotary pumps are themselves a large family of machines, but \UNICHIM\ defines
1349 a generic symbol to represent them all. It is defined as a simple pic called
1350 \chpp{rotary pump}:
1351 \begin{chpcode}
1352 \pic at (0,0) {rotary pump};
1353 \end{chpcode}
1354 and yields an oblong circle supported by a triangular base and containing the
1355 sketch of two little circle, where the anchor is in the centre of the lowest
1356 one:
1357 \begin{center}
1358 \begin{tikzpicture}
1359 \pic at (-3,0) {rotary pump};
1360 \pic at (0,0) {rotary pump};
1361 \measure{(-0.5,-0.8)}{(0.5,-0.8)}{\SI{10}{\mm}}
1362 \measure{(-0.7,0.9)}{(-0.7,-0.6)}{\SI{13}{\mm}}
1363 \measure[above]{(-0.4,1.1)}{(0.4,1.1)}{\SI{8}{\mm}}
1364 \measure[above]{(0.7,0.25)}{(0.7,0)}{\SI{2.5}{\mm}}
1365 \measure[above]{(1.2,0)}{(1.2,-0.6)}{\SI{6}{\mm}}
1366 \pic at (0,0) {anchor mark};
1367 \pic (P) at (3,0) {rotary pump};
1368 \pic at (P-anchor) {anchor mark};
1369 \pic at (P-left) {node mark};
1370 \pic at (P-bottom) {node mark};
1371 \pic at (P-right) {node mark};
1372 \pic at (P-top) {node mark};
1373 \node[left] at (P-left) {\chpn{l}};
1374 \node[below] at (P-bottom) {\chpn{b}};
1375 \node[right] at (P-right) {\chpn{r}};
1376 \node[above] at (P-top) {\chpn{t}};
1377 \end{tikzpicture}
1378 \end{center}
1379 where measures on the right indicate the distance from the inlet of the pump
1380 (placed on its boundary, either \chpn{left} or \chpn{right} nodes) to its
1381 anchor, \SI{2.5}{\mm}, and the distance form the anchor of the pump to its
1382 base, \SI{6}{\mm}, while the measure on the top indicates the width of the body.
1383
1384 \subsubsection{Liquid Ring Pump}
1385
1386 As told before, the \chpp{rotary pump} is generic, so it can be used to
1387 represent gear pumps, lobe pumps, screw pumps, hollow disc pumps and other
1388 similar machines. A remarkable exception of a rotary pump not representable by
1389 means of the generic symbol is the liquid ring pump, useful to aspire a fluid
1390 rather than to compress it, hence to generate vacuum. It is defined as a simple
1391 pic called \chpp{liquid ring pump}:
1392 \begin{chpcode}
1393 \pic at (0,0) {liquid ring pump};
1394 \end{chpcode}
1395 and yields a circle, in which centre there is the anchor, supported by a
1396 triangular base and containing a smaller circle representing the liquid ring:
1397 \begin{center}
1398 \begin{tikzpicture}
1399 \pic at (-3,0) {liquid ring pump};
1400 \pic at (0,0) {liquid ring pump};
1401 \measure{(-0.5,-0.8)}{(0.5,-0.8)}{\SI{10}{\mm}}
1402 \measure{(-0.7,0.4)}{(-0.7,-0.6)}{\SI{10}{\mm}}
1403 \measure[above]{(-0.4,0.6)}{(0.4,0.6)}{\SI{8}{\mm}}
1404 \measure[above]{(0.7,0)}{(0.7,-0.6)}{\SI{6}{\mm}}
1405 \pic at (0,0) {anchor mark};
1406 \pic (P) at (3,0) {liquid ring pump};
1407 \pic at (P-anchor) {anchor mark};
1408 \pic at (P-left) {node mark};
1409 \pic at (P-bottom) {node mark};
1410 \pic at (P-right) {node mark};
1411 \pic at (P-top) {node mark};
1412 \node[left] at (P-left) {\chpn{l}};
1413 \node[below] at (P-bottom) {\chpn{b}};
1414 \node[right] at (P-right) {\chpn{r}};
1415 \node[above] at (P-top) {\chpn{t}};
1416 \end{tikzpicture}
1417 \end{center}
1418 where the measure on the right indicates the distance from the inlet of the pump
1419 (placed on its boundary) to its base, while the measure on the top indicates the
1420 diameter of the circle.
1421
1422 \subsubsection{Reciprocating Pump}
1423
1424 The other category of volumetric pumps are the reciprocating ones, which work
1425 through the classical principle of cylinder and piston. A generic reciprocating
1426 pump is defined as a simple pic called \chpp{reciprocating pump}:
1427 \begin{chpcode}
1428 \pic at (0,0) {reciprocating pump};
1429 \end{chpcode}
1430 and yields a square, in which centre there is the anchor, supported by a
1431 squared base:
1432 \begin{center}
1433 \begin{tikzpicture}
1434 \pic at (-3,0) {reciprocating pump};
1435 \pic at (0,0) {reciprocating pump};
1436 \measure{(-0.5,-0.8)}{(0.5,-0.8)}{\SI{10}{\mm}}
1437 \measure{(-0.7,0.4)}{(-0.7,-0.6)}{\SI{10}{\mm}}
1438 \measure[above]{(-0.4,0.6)}{(0.4,0.6)}{\SI{8}{\mm}}
1439 \measure[above]{(0.7,0)}{(0.7,-0.6)}{\SI{6}{\mm}}
1440 \pic at (0,0) {anchor mark};
1441 \pic (P) at (3,0) {reciprocating pump};
1442 \pic at (P-anchor) {anchor mark};
1443 \pic at (P-left) {node mark};
1444 \pic at (P-bottom) {node mark};
1445 \pic at (P-right) {node mark};
1446 \pic at (P-top) {node mark};
1447 \node[left] at (P-left) {\chpn{l}};
1448 \node[below] at (P-bottom) {\chpn{b}};
1449 \node[right] at (P-right) {\chpn{r}};
1450 \node[above] at (P-top) {\chpn{t}};
1451 \end{tikzpicture}
1452 \end{center}
1453 where the measure on the right indicates the distance from the inlet of the pump
1454 (placed on its boundary) to its base, while the measure on the top indicates the
1455 length of the side side of the square.
1456
1457 \subsection{Gas Handling}
1458 \label{subsec:gashan}
1459
1460 Liquid handling equipments are done, so the description can move to gas handling
1461 units. As told before, these are mainly distinguished on the basis of the
1462 pressure rise they can achieve, but also on their working principle. Considering
1463 the pressure rise, there are: fans, blowers and compressors. Discussing gas
1464 handling units is also a good opportunity to introduce pressure reduction
1465 operations.
1466
1467 \subsubsection{Fan}
1468
1469 If it is simply required to move a gas, without a significant pressure rise, a
1470 fan or, at most, a blower, is enough. These two units are simple kinetic machines
1471 similar to a centrifugal pump and both of them are defined by \UNICHIM\ as a
1472 single symbol, which in \chemplants\ can be found under the name of \chpp{fan}:
1473 \begin{chpcode}
1474 \pic at (0,0) {fan};
1475 \end{chpcode}
1476 and yields a circle, in which centre there is the anchor, with a squared
1477 vertex, supported by a triangular base and containing a little circle
1478 representing the inlet nozzle:
1479 \begin{center}
1480 \begin{tikzpicture}
1481 \pic at (-3,0) {fan};
1482 \pic at (0,0) {fan};
1483 \measure{(-0.5,-0.8)}{(0.5,-0.8)}{\SI{10}{\mm}}
1484 \measure{(-0.7,0.4)}{(-0.7,-0.6)}{\SI{10}{\mm}}
1485 \measure[above]{(-0.4,0.6)}{(0.4,0.6)}{\SI{8}{\mm}}
1486 \measure[above]{(0.7,0)}{(0.7,-0.6)}{\SI{6}{\mm}}
1487 \pic at (0,0) {anchor mark};
1488 \pic (F) at (3,0) {fan};
1489 \pic at (F-anchor) {anchor mark};
1490 \pic at (F-left) {node mark};
1491 \pic at (F-bottom) {node mark};
1492 \pic at (F-right) {node mark};
1493 \pic at (F-top) {node mark};
1494 \pic at (F-outlet) {node mark};
1495 \node[left] at (F-left) {\chpn{l}};
1496 \node[below] at (F-bottom) {\chpn{b}};
1497 \node[right] at (F-right) {\chpn{r}};
1498 \node[above] at (F-top) {\chpn{t}};
1499 \node[above right] at (F-outlet) {\chpn{o}};
1500 \end{tikzpicture}
1501 \end{center}
1502 where the measure on the right indicates the distance from the inlet of the fan
1503 (this time again placed in its centre) to its base, while the measure on the top
1504 indicates the diameter of the circle.
1505
1506 A special node is defined for the \chpp{fan}: the squared vertex indicates the
1507 outlet of the unit, thus it is identified by the \chpn{outlet} node, indicated
1508 as \chpn{o} in the above representation. As for the centrifugal pump, the
1509 \chpn{anchor} node should be used to snap the inlet stream to the fan.
1510
1511 \subsubsection{Compressor}
1512
1513 When a gas needs a high pressure rise, there is no other way but using a
1514 compressor. If one has the need to represent a generic compression operations
1515 rather than a specific compressor, a general symbol can be used. It is defined
1516 as a simple pic called \chpp{compressor}:
1517 \begin{chpcode}
1518 \pic at (0,0) {compressor};
1519 \end{chpcode}
1520 and yields a cone frustum, in which middle there is the anchor:
1521 \begin{center}
1522 \begin{tikzpicture}
1523 \pic at (-2.8,0) {compressor};
1524 \pic at (0,0) {compressor};
1525 \measure{(-0.4,-0.7)}{(0.4,-0.7)}{\SI{8}{\mm}}
1526 \measure{(-0.6,0.5)}{(-0.6,-0.5)}{\SI{10}{\mm}}
1527 \measure[above]{(0.6,0.2)}{(0.6,-0.2)}{\SI{4}{\mm}}
1528 \pic at (0,0) {anchor mark};
1529 \pic (C) at (2.8,0) {compressor};
1530 \pic at (C-anchor) {anchor mark};
1531 \pic at (C-left) {node mark};
1532 \pic at (C-right) {node mark};
1533 \pic at (C-inlet bottom) {node mark};
1534 \pic at (C-outlet bottom) {node mark};
1535 \pic at (C-outlet top) {node mark};
1536 \pic at (C-inlet top) {node mark};
1537 \node[left] at (C-left) {\chpn{l}};
1538 \node[right] at (C-right) {\chpn{r}};
1539 \node[below] at (C-inlet bottom) {\chpn{ib}};
1540 \node[below] at (C-outlet bottom) {\chpn{ob}};
1541 \node[above] at (C-outlet top) {\chpn{ot}};
1542 \node[above] at (C-inlet top) {\chpn{it}};
1543 \end{tikzpicture}
1544 \end{center}
1545 where the measure on the right indicates the height of the smallar base of the
1546 cone frustum.
1547
1548 Nodes require some clarifications. The shape of the \chpp{compressor} recalls a
1549 volume reduction, hence entering streams should be attached to the larger base of
1550 the unit, while leaving streams should be connected to the smaller one. Besides
1551 the usual \chpn{left} and \chpn{right} nodes, four special nodes are defined:
1552 \begin{itemize}
1553 \item a node called \chpn{inlet bottom}, abbreviated in the picture above as
1554 \chpn{ib};
1555 \item a node called \chpn{outlet bottom}, abbreviated in the picture above as
1556 \chpn{ob};
1557 \item a node called \chpn{outlet top}, abbreviated in the picture above as
1558 \chpn{ot};
1559 \item a node called \chpn{inlet top}, abbreviated in the picture above as
1560 \chpn{it}.
1561 \end{itemize}
1562
1563 \subsubsection{Centrifugal Compressor}
1564
1565 Besides the two ``generic'' units introduced above, \chemplants\ defines also
1566 more specific symbols to be used to represent particular compressors. The only
1567 kinetic machine useful to compress a gas that has a symbol defined by
1568 \chemplants\ is the centrifugal compressor. It is defined as a simple pic called
1569 \chpp{centrifugal compressor}:
1570 \begin{chpcode}
1571 \pic at (0,0) {centrifugal compressor};
1572 \end{chpcode}
1573 and yields a cone frustum, in which middle there is the anchor, supported by a
1574 squared base:
1575 \begin{center}
1576 \begin{tikzpicture}
1577 \pic at (-4,0) {centrifugal compressor};
1578 \pic at (0,0) {centrifugal compressor};
1579 \measure{(-1.0,-0.8)}{(1.0,-0.8)}{\SI{20}{\mm}}
1580 \measure{(-1.7,0.4)}{(-1.7,-0.6)}{\SI{10}{\mm}}
1581 \measure{(-1.2,0.4)}{(-1.2,-0.4)}{\SI{8}{\mm}}
1582 \measure[above]{(-0.9,0.6)}{(0.9,0.6)}{\SI{18}{\mm}}
1583 \measure[above]{(1.2,0.2)}{(1.2,-0.2)}{\SI{4}{\mm}}
1584 \pic at (0,0) {anchor mark};
1585 \pic (C) at (4,0) {centrifugal compressor};
1586 \pic at (C-anchor) {anchor mark};
1587 \pic at (C-left) {node mark};
1588 \pic at (C-bottom) {node mark};
1589 \pic at (C-right) {node mark};
1590 \pic at (C-inlet bottom) {node mark};
1591 \pic at (C-outlet bottom) {node mark};
1592 \pic at (C-outlet top) {node mark};
1593 \pic at (C-inlet top) {node mark};
1594 \node[left] at (C-left) {\chpn{l}};
1595 \node[below] at (C-bottom) {\chpn{b}};
1596 \node[right] at (C-right) {\chpn{r}};
1597 \node[below left] at (C-inlet bottom) {\chpn{ib}};
1598 \node[below right] at (C-outlet bottom) {\chpn{ob}};
1599 \node[above] at (C-outlet top) {\chpn{ot}};
1600 \node[above] at (C-inlet top) {\chpn{it}};
1601 \end{tikzpicture}
1602 \end{center}
1603
1604 Measures require some clarifications. The unit has a total width of \SI{20}{\mm}
1605 and a total height of \SI{10}{\mm}. The cone frustum has a length of
1606 \SI{18}{\mm} (the base protrudes horizontally \SI{1}{\mm} on each side, as for
1607 all of the other symbols defined as fluid handling units), its larger base has
1608 a height of \SI{8}{\mm} and the smaller one of \SI{4}{\mm}.
1609
1610 Nodes have to be interpreted similarly to the one of the \chpp{compressor}. As
1611 always, the \chpn{bottom} node is defined to labelling purposes. This time, the
1612 \chpn{left} and \chpn{right} nodes should not be used to connect streams, but can
1613 be exploited to connect control instrumentation or to represent the shaft of the
1614 compressor. Given the operations principle of a centrifugal compressor, streams
1615 should be connected on the sides of the cone frustum: more precisely the inlet
1616 stream has to enter the unit on the side of the larger base and the outlet one
1617 has to leave the unit on the side of the smaller one, both of them vertically, in
1618 the direction perpendicular to the axis of the cone frustum. To this aim, four
1619 special nodes are defined:
1620 \begin{itemize}
1621 \item a node called \chpn{inlet bottom}, abbreviated in the picture above as
1622 \chpn{ib};
1623 \item a node called \chpn{outlet bottom}, abbreviated in the picture above as
1624 \chpn{ob};
1625 \item a node called \chpn{outlet top}, abbreviated in the picture above as
1626 \chpn{ot};
1627 \item a node called \chpn{inlet top}, abbreviated in the picture above as
1628 \chpn{it}.
1629 \end{itemize}
1630 (At most, it is possible to tolerate the inlet placed on the left side of the
1631 unit, on the \chpn{left} node, but the outlet has to be compulsorily on the side
1632 of the smaller base.)
1633
1634 \subsubsection{Rotary Compressor}
1635
1636 As for pumps, also compressors are not kinetic machines only, but also
1637 volumetric, again rotary and reciprocating. Also in this case, a generic symbol
1638 is defined by \UNICHIM\ to indicate all of the rotary compressors. It is defined
1639 as a simple pic called \chpp{rotary compressor}:
1640 \begin{chpcode}
1641 \pic at (0,0) {rotary compressor};
1642 \end{chpcode}
1643 and yields an oblong circle supported by a triangular base and containing the
1644 sketch of a sort of S, where the anchor is in the centre of the lowest branch:
1645 \begin{center}
1646 \begin{tikzpicture}
1647 \pic at (-3,0) {rotary compressor};
1648 \pic at (0,0) {rotary compressor};
1649 \measure{(-0.5,-0.8)}{(0.5,-0.8)}{\SI{10}{\mm}}
1650 \measure{(-0.7,0.9)}{(-0.7,-0.6)}{\SI{13}{\mm}}
1651 \measure[above]{(-0.4,1.1)}{(0.4,1.1)}{\SI{8}{\mm}}
1652 \measure[above]{(0.7,0.25)}{(0.7,0)}{\SI{2.5}{\mm}}
1653 \measure[above]{(1.2,0)}{(1.2,-0.6)}{\SI{6}{\mm}}
1654 \pic at (0,0) {anchor mark};
1655 \pic (P) at (3,0) {rotary compressor};
1656 \pic at (P-anchor) {anchor mark};
1657 \pic at (P-left) {node mark};
1658 \pic at (P-bottom) {node mark};
1659 \pic at (P-right) {node mark};
1660 \pic at (P-top) {node mark};
1661 \node[left] at (P-left) {\chpn{l}};
1662 \node[below] at (P-bottom) {\chpn{b}};
1663 \node[right] at (P-right) {\chpn{r}};
1664 \node[above] at (P-top) {\chpn{t}};
1665 \end{tikzpicture}
1666 \end{center}
1667 where measures on the right indicate the distance from the inlet of the
1668 compressor (placed on its boundary, either \chpn{left} or \chpn{right} nodes)
1669 to its anchor, \SI{2.5}{\mm}, and the distance from the anchor of the
1670 compressor to its base, \SI{6}{\mm}, while the measure on the top indicates the
1671 width of the body.
1672
1673 \subsubsection{Reciprocating Compressor}
1674
1675 Differently from what happens for pumps, reciprocating compressors are
1676 represented by means of two different symbols, one for single stage operations
1677 and one for multistage units. The simple stage unit is defined as a simple pic
1678 called \chpp{reciprocating compressor}:
1679 \begin{chpcode}
1680 \pic at (0,0) {reciprocating compressor};
1681 \end{chpcode}
1682 and yields a circle, in which centre there is the anchor, merged with the
1683 rectangular body of the unit, all of which is supported by a squared base:
1684 \begin{center}
1685 \begin{tikzpicture}
1686 \pic at (-4,0) {reciprocating compressor};
1687 \pic at (0,0) {reciprocating compressor};
1688 \measure{(-0.5,-1.3)}{(1.5,-1.3)}{\SI{20}{\mm}}
1689 \measure{(-0.4,-0.8)}{(1.4,-0.8)}{\SI{18}{\mm}}
1690 \measure{(-1.2,0.4)}{(-1.2,-0.6)}{\SI{10}{\mm}}
1691 \measure{(-0.7,0.4)}{(-0.7,-0.4)}{\SI{8}{\mm}}
1692 \measure[above]{(0,1.1)}{(1.4,1.1)}{\SI{14}{\mm}}
1693 \measure[above]{(0,0.6)}{(0.8,0.6)}{\SI{8}{\mm}}
1694 \measure[above]{(1.7,0)}{(1.7,-0.6)}{\SI{6}{\mm}}
1695 \measure[above]{(2.2,0.346)}{(2.2,-0.346)}{\SI{6.92}{\mm}}
1696 \pic at (0,0) {anchor mark};
1697 \pic (C) at (4,0) {reciprocating compressor};
1698 \pic at (C-anchor) {anchor mark};
1699 \pic at (C-left) {node mark};
1700 \pic at (C-bottom) {node mark};
1701 \pic at (C-top) {node mark};
1702 \pic at (C-inlet bottom) {node mark};
1703 \pic at (C-outlet) {node mark};
1704 \pic at (C-inlet top) {node mark};
1705 \node[left] at (C-left) {\chpn{l}};
1706 \node[below] at (C-bottom) {\chpn{b}};
1707 \node[above] at (C-top) {\chpn{t}};
1708 \node[above] at (C-inlet bottom) {\chpn{ib}};
1709 \node[right] at (C-outlet) {\chpn{o}};
1710 \node[above] at (C-inlet top) {\chpn{it}};
1711 \end{tikzpicture}
1712 \end{center}
1713 The circle is a sketch of the engine of the compressor, while the rectangle is
1714 the main body of the unit, where the gas gets effectively compressed.
1715
1716 Measures require some clarification. The unit has a total width of \SI{20}{\mm}
1717 and a total height of \SI{10}{\mm}. The figure obtained joining the circle and
1718 the rectangle has a length of \SI{18}{\mm} (the base protrudes horizontally
1719 \SI{1}{\mm} on each side). The circle has a diameter of \SI{8}{\mm}, while the
1720 rectangle has a height of \SI{6.92}{\mm}. The base of the unit is \SI{6}{\mm}
1721 below its anchor point.
1722
1723 Since the ``real'' compressing part of the unit is the rectangle, nodes on the
1724 circle should be used to labelling purposes, to connect the control
1725 instrumentation or to sketch the shaft of the engine. The gas inlet stream
1726 should be connected to the \chpn{inlet bottom} or \chpn{inlet top} nodes, showed
1727 in the above drawing using the abbreviated names \chpn{ib} and \chpn{it}
1728 respectively, while the outlet stream has to be connected to the \chpn{outlet}
1729 node, \chpn{o} in the above representation. The two measures not cited yet are
1730 referred to these remarkable points of the unit: inlet nodes are \SI{8}{\mm} to
1731 the right of the anchor, while the outlet node is \SI{14}{\mm} to the right of
1732 the anchor.
1733
1734 \subsubsection{MultiStage Compressor}
1735
1736 Besides all of the above mentioned symbols, the most common unit used to indicate
1737 gas handling machine is the one that represents the multistage reciprocating
1738 compressor. Indeed, this is also widely used to represent a generic compression
1739 unit, despite its real meaning. It is defined as a simple pic called
1740 \chpp{multistage compressor}:
1741 \begin{chpcode}
1742 \pic at (0,0) {multistage compressor};
1743 \end{chpcode}
1744 and yields a circle, in which centre there is the anchor, merged with three
1745 rectangles, all of which is supported by a squared base:
1746 \begin{center}
1747 \begin{tikzpicture}
1748 \pic at (-4,0) {multistage compressor};
1749 % \pic at (0,0) {multistage compressor};
1750 % \measure{(-0.5,-1.3)}{(1.5,-1.3)}{\SI{20}{\mm}}
1751 % \measure{(-0.4,-0.8)}{(1.4,-0.8)}{\SI{18}{\mm}}
1752 % \measure{(-1.7,0.4)}{(-1.7,-0.6)}{\SI{10}{\mm}}
1753 % \measure{(-1.2,0.4)}{(-1.2,-0.4)}{\SI{8}{\mm}}
1754 % \measure{(-0.7,0)}{(-0.7,-0.6)}{\SI{6}{\mm}}
1755 % \measure[above]{(0,2.1)}{(1.4,2.1)}{\SI{14}{\mm}}
1756 % \measure[above]{(0,1.6)}{(1.25,1.6)}{\SI{12.5}{\mm}}
1757 % \measure[above]{(0,1.1)}{(0.9,1.1)}{\SI{9}{\mm}}
1758 % \measure[above]{(0,0.6)}{(0.45,0.6)}{\SI{4.5}{\mm}}
1759 % \measure[above]{(2.7,0.346)}{(2.7,-0.346)}{\SI{6.92}{\mm}}
1760 % \measure[above]{(2.1,0.231)}{(2.1,-0.231)}{\SI{4.62}{\mm}}
1761 % \measure[above]{(1.7,0.116)}{(1.7,-0.116)}{\SI{2.32}{\mm}}
1762 % \pic at (0,0) {anchor mark};
1763 % \pic (C) at (4,0) {multistage compressor};
1764 % \pic at (C-anchor) {anchor mark};
1765 % \pic at (C-left) {node mark};
1766 % \pic at (C-bottom) {node mark};
1767 % \pic at (C-top) {node mark};
1768 % \pic at (C-first bottom) {node mark};
1769 % \pic at (C-second bottom) {node mark};
1770 % \pic at (C-third bottom) {node mark};
1771 % \pic at (C-outlet) {node mark};
1772 % \pic at (C-third top) {node mark};
1773 % \pic at (C-second top) {node mark};
1774 % \pic at (C-first top) {node mark};
1775 % \node[left] at (C-left) {\chpn{l}};
1776 % \node[below] at (C-bottom) {\chpn{b}};
1777 % \node[above] at (C-top) {\chpn{t}};
1778 % \node[above left] at (C-first bottom) {\chpn{fb}};
1779 % \node[above] at (C-second bottom) {\chpn{sb}};
1780 % \node[below right] at (C-third bottom) {\chpn{tb}};
1781 % \node[right] at (C-outlet) {\chpn{o}};
1782 % \node[above] at (C-third top) {\chpn{tt}};
1783 % \node[above] at (C-second top) {\chpn{st}};
1784 % \node[above] at (C-first top) {\chpn{ft}};
1785 \end{tikzpicture}
1786 \end{center}
1787 Again the circle is a sketch of the engine of the compressor, while the three
1788 rectangles are the main body of the unit and represent the compression stages.
1789 Rigorously, there should be as many rectangles as the compression stages are, but
1790 usually a symbol with three rectangles is used independently of the number of
1791 stages.
1792
1793 No measures or nodes are shown in the above drawing, that is the pure symbol,
1794 because of its complexity. In order to better understand measures and nodes,
1795 here is a huge \chpp{multistage compressor}:
1796 \begin{center}
1797 \begin{tikzpicture}
1798 \pic[scale=3] (C) at (0,0) {multistage compressor};
1799 \pic at (C-anchor) {anchor mark};
1800 \pic at (C-left) {node mark};
1801 \pic at (C-bottom) {node mark};
1802 \pic at (C-top) {node mark};
1803 \pic at (C-first bottom) {node mark};
1804 \pic at (C-second bottom) {node mark};
1805 \pic at (C-third bottom) {node mark};
1806 \pic at (C-outlet) {node mark};
1807 \pic at (C-third top) {node mark};
1808 \pic at (C-second top) {node mark};
1809 \pic at (C-first top) {node mark};
1810 \node[left] at (C-left) {\chpn{l}};
1811 \node[below] at (C-bottom) {\chpn{b}};
1812 \node[above] at (C-top) {\chpn{t}};
1813 \node[above] at (C-first bottom) {\chpn{fb}};
1814 \node[above] at (C-second bottom) {\chpn{sb}};
1815 \node[above] at (C-third bottom) {\chpn{tb}};
1816 \node[right] at (C-outlet) {\chpn{o}};
1817 \node[above] at (C-third top) {\chpn{tt}};
1818 \node[above] at (C-second top) {\chpn{st}};
1819 \node[above] at (C-first top) {\chpn{ft}};
1820 \measure{(-1.5,-2.9)}{(4.5,-2.9)}{\SI{20}{\mm}}
1821 \measure{(-1.2,-2.4)}{(4.2,-2.4)}{\SI{18}{\mm}}
1822 \measure{(-3.1,1.2)}{(-3.1,-1.8)}{\SI{10}{\mm}}
1823 \measure{(-2.6,1.2)}{(-2.6,-1.2)}{\SI{8}{\mm}}
1824 \measure{(-2.1,0)}{(-2.1,-1.8)}{\SI{6}{\mm}}
1825 \measure[above]{(0,3.3)}{(4.2,3.3)}{\SI{14}{\mm}}
1826 \measure[above]{(0,2.8)}{(3.75,2.8)}{\SI{12.5}{\mm}}
1827 \measure[above]{(0,2.3)}{(2.7,2.3)}{\SI{9}{\mm}}
1828 \measure[above]{(0,1.8)}{(1.35,1.8)}{\SI{4.5}{\mm}}
1829 \measure[above]{(6.1,1.038)}{(6.1,-1.038)}{\SI{6.92}{\mm}}
1830 \measure[above]{(5.6,0.639)}{(5.6,-0.693)}{\SI{4.62}{\mm}}
1831 \measure[above]{(5.1,0.348)}{(5.1,-0.348)}{\SI{2.32}{\mm}}
1832 \end{tikzpicture}
1833 \end{center}
1834 where measure bars are just expanded, but numbers are correct and refer to the
1835 real dimensions of the little unit above.
1836
1837 The unit has a total width of \SI{20}{\mm} and a total height of \SI{10}{\mm}.
1838 The figure obtained joining the circle and the three rectangles has a length of
1839 \SI{18}{\mm}. The circle has a diameter of \SI{8}{\mm}, while the base of the
1840 unit is \SI{6}{\mm} below its anchor point. Measures on the right refer to the
1841 heights of the three rectangles: starting from the left of the symbol, the first
1842 rectangle has a height of \SI{6.92}{\mm}, the second one has a height of
1843 \SI{4.62}{\mm} and the third one is \SI{2.32}{\mm} high.
1844
1845 Understanding measures on the top requires to discuss first about nodes. As for
1846 the single stage reciprocating compressor, inlets are on the sides of the
1847 rectangles, which means on the top and on the bottom of each one, while the
1848 outlet is on the right side of the unit, point identified by the \chpn{outlet}
1849 node marked in the drawing as \chpn{o} and placed \SI{14}{\mm} to the right of
1850 the anchor.
1851
1852 Since rectangles represent compression stages, two nodes are defined for each
1853 one:
1854 \begin{itemize}
1855 \item the first stage is provided with a node called \chpn{first bottom} and
1856 with a node called \chpn{first top}, marked in the drawing as \chpn{fb}
1857 and \chpn{ft} respectively and both placed \SI{4.5}{\mm} to the right
1858 of the anchor;
1859 \item the second stage is provided with a node called \chpn{second bottom}
1860 and with a node called \chpn{second top}, marked in the drawing as
1861 \chpn{sb} and \chpn{st} respectively and both placed \SI{9}{\mm} to the
1862 right of the anchor;
1863 \item the third stage is provided with a node called \chpn{third bottom} and
1864 with a node called \chpn{third top}, marked in the drawing as \chpn{tb}
1865 and \chpn{tt} respectively and both placed \SI{12.5}{\mm} to the right
1866 of the anchor.
1867 \end{itemize}
1868 These nodes should be used as connection points for the inlet and are present to
1869 enable a flexible representation when complex necessities exist, such as the
1870 case of a stream which has to enter the compressor in the second stage, being
1871 mixed and compressed together with the one that enters in the first. Also
1872 complex paths can be produced thanks to these nodes, using them improperly as
1873 outlets to represent cooling operations applied to the fluid and interposed
1874 between compression stages.
1875
1876 \subsubsection{Lamination Valve}
1877
1878 A completely different kind of gas handling units is not aimed at increasing
1879 the pressure of the gas, but at reducing it. The simplest way in which this
1880 pressure reduction can be accomplished is passing the gas through a valve with
1881 high pressure drop, hence achieving an operation known as lamination. In fact, a
1882 lamination valve is a unit useful to expand a fluid. It can be represented using
1883 a simple pic called \chpp{lamination valve}:
1884 \begin{chpcode}
1885 \pic at (0,0) {lamination valve};
1886 \end{chpcode}
1887 which yields a rectangle anchored in its centre in which there is an arrow
1888 sketch:
1889 \begin{center}
1890 \begin{tikzpicture}
1891 \pic at (-2.4,0) {lamination valve};
1892 \pic at (0,0) {lamination valve};
1893 \measure{(-0.2,-0.3)}{(0.2,-0.3)}{\SI{4}{\mm}}
1894 \measure{(-0.4,0.1)}{(-0.4,-0.1)}{\SI{2}{\mm}}
1895 \pic at (0,0) {anchor mark};
1896 \pic (V) at (2.4,0) {lamination valve};
1897 \pic at (V-anchor) {anchor mark};
1898 \pic at (V-inlet) {node mark};
1899 \pic at (V-outlet) {node mark};
1900 \node[left] at (V-inlet) {\chpn{i}};
1901 \node[right] at (V-outlet) {\chpn{o}};
1902 \end{tikzpicture}
1903 \end{center}
1904
1905 Nodes defined for the \chpp{lamination valve} are particular. A lamination
1906 valve is a unit much more similar to a simple electric bipole, in fact it has
1907 only two nodes (plus the \chpn{anchor}); moreover this unit is a ``one way
1908 operation'', so the nodes have a simple logic: one \chpn{inlet} and one
1909 \chpn{outlet}. These two are indicated in the drawing above as \chpn{i} and
1910 \chpn{o} respectively.
1911
1912 \subsubsection{Turbine}
1913
1914 Another way to reduce the pressure of a gas also allows to recover a part of the
1915 energy released. In a sense, this operations is the exact opposite of
1916 compression: expansion in a turbine. A generic symbols to represent this is made
1917 available by \chemplants. It is defined as a simple pic called \chpp{turbine}:
1918 \begin{chpcode}
1919 \pic at (0,0) {turbine};
1920 \end{chpcode}
1921 and yields a ``reversed'' cone frustum, in which middle there is the anchor:
1922 \begin{center}
1923 \begin{tikzpicture}
1924 \pic at (-2.8,0) {turbine};
1925 \pic at (0,0) {turbine};
1926 \measure{(-0.4,-0.7)}{(0.4,-0.7)}{\SI{8}{\mm}}
1927 \measure{(-0.6,0.2)}{(-0.6,-0.2)}{\SI{4}{\mm}}
1928 \measure[above]{(0.6,0.5)}{(0.6,-0.5)}{\SI{10}{\mm}}
1929 \pic at (0,0) {anchor mark};
1930 \pic (T) at (2.8,0) {turbine};
1931 \pic at (T-anchor) {anchor mark};
1932 \pic at (T-left) {node mark};
1933 \pic at (T-right) {node mark};
1934 \pic at (T-inlet bottom) {node mark};
1935 \pic at (T-outlet bottom) {node mark};
1936 \pic at (T-outlet top) {node mark};
1937 \pic at (T-inlet top) {node mark};
1938 \node[left] at (T-left) {\chpn{l}};
1939 \node[right] at (T-right) {\chpn{r}};
1940 \node[below] at (T-inlet bottom) {\chpn{ib}};
1941 \node[below] at (T-outlet bottom) {\chpn{ob}};
1942 \node[above] at (T-outlet top) {\chpn{ot}};
1943 \node[above] at (T-inlet top) {\chpn{it}};
1944 \end{tikzpicture}
1945 \end{center}
1946 where the measure on the right indicates the height of the larger base of the
1947 cone frustum.
1948
1949 Nodes have to be used in a similar was to the one just outlined for the
1950 \chpp{compressor}. This time, the shape of the \chpp{turbine} recalls a volume
1951 expansion, hence entering streams should be attached to the smaller base of
1952 the unit, while leaving streams should be connected to the larger one. Besides
1953 the usual \chpn{left} and \chpn{right} nodes, four special nodes are defined:
1954 \begin{itemize}
1955 \item a node called \chpn{inlet bottom}, abbreviated in the picture above as
1956 \chpn{ib};
1957 \item a node called \chpn{outlet bottom}, abbreviated in the picture above as
1958 \chpn{ob};
1959 \item a node called \chpn{outlet top}, abbreviated in the picture above as
1960 \chpn{ot};
1961 \item a node called \chpn{inlet top}, abbreviated in the picture above as
1962 \chpn{it}.
1963 \end{itemize}
1964
1965 A turbine is usually associated to a mechanical work production: the \chpn{right}
1966 node (or the \chpn{left} node) comes in hand in this situation, since it can be
1967 exploited to symbolise the connection of the shaft of a generator.
1968
1969 \subsubsection{Ejector}
1970
1971 The last gas handling unit defined by \chemplants\ is neither a kinetic nor
1972 a volumetric machine, but it belongs to (and is the most remarkable example of)
1973 static machines category. Properly, it is not even a gas handling machine as
1974 classically intended (which means using mechanical work to move a gas). The
1975 ejector works thanks to the relation of the pressure energy with the kinetic
1976 energy of a fluid, usually a gas, and most of the time is used to suck a
1977 secondary fluid into a driving stream or to generate vacuum thanks to this
1978 effect. It is defined as a simple pic called \chpp{ejector}:
1979 \begin{chpcode}
1980 \pic at (0,0) {ejector};
1981 \end{chpcode}
1982 and yields a square, in which centre there is the anchor, jointed with a cone
1983 frustum:
1984 \begin{center}
1985 \begin{tikzpicture}
1986 \pic at (-3.5,0) {ejector};
1987 \pic at (0,0) {ejector};
1988 \measure{(-0.25,-0.45)}{(1.25,-0.45)}{\SI{15}{\mm}}
1989 \measure{(-0.45,0.25)}{(-0.45,-0.25)}{\SI{5}{\mm}}
1990 \measure[above]{(0,0.45)}{(1.25,0.45)}{\SI{12.5}{\mm}}
1991 \pic at (0,0) {anchor mark};
1992 \pic (E) at (3.5,0) {ejector};
1993 \pic at (E-anchor) {anchor mark};
1994 \pic at (E-main inlet) {node mark};
1995 \pic at (E-suck inlet bottom) {node mark};
1996 \pic at (E-outlet) {node mark};
1997 \pic at (E-suck inlet top) {node mark};
1998 \node[left] at (E-main inlet) {\chpn{mi}};
1999 \node[below] at (E-suck inlet bottom) {\chpn{sib}};
2000 \node[right] at (E-outlet) {\chpn{o}};
2001 \node[above] at (E-suck inlet top) {\chpn{sit}};
2002 \end{tikzpicture}
2003 \end{center}
2004 where the measure on the top indicates the distance from the outlet of the
2005 ejector to its anchor.
2006
2007 None of the common nodes are defined for the \chpp{ejector} since its symbols
2008 recall its real shape, where every point has a specific function. The driving
2009 stream enters from the \chpn{main inlet} node, abbreviated as \chpn{mi}, while
2010 the secondary one is aspired through the \chpn{suck inlet bottom} node or the
2011 \chpn{suck inlet top} node, abbreviated as \chpn{sib} and \chpn{sit}
2012 respectively. The two streams, mixed together, leave the unit from the
2013 \chpn{outlet} node, identified as \chpn{o} in the above drawing.
2014
2015 \subsection{Solid Handling}
2016
2017 Solids, especially if under the form of granular material, are very common in the
2018 chemical industry. Processing granular materials require some special
2019 machines and even some special unit operations exist for solids. Also moving
2020 granular materials is not an easy task and, clearly, pumps and compressors are
2021 useless to this purpose (except for some very special case of suspended
2022 transport). The \chemplants\ package defines some special symbols to denote
2023 ``pure'' solid handling units.
2024
2025 \subsubsection{Hopper}
2026
2027 The hopper is a simple ``funnel'' which channel granular materials to their
2028 destinations. The most common place where one can find a hopper is below a silos,
2029 in fact the \chpp{silos} introduced in subsection~\ref{subsec:storag} ends in a
2030 hopper. Sometimes, a hopper can exist by itself and a special symbol is defined
2031 to indicate such case. It is defined as a simple pic called \chpp{hopper}:
2032 \begin{chpcode}
2033 \pic at (0,0) {hopper};
2034 \end{chpcode}
2035 and yields the sketch of a hopper anchored at its top:
2036 \begin{center}
2037 \begin{tikzpicture}
2038 \pic at (-3,0) {hopper};
2039 \pic at (0,0) {hopper};
2040 \measure{(-0.4,-1.7)}{(0.4,-1.7)}{\SI{8}{\mm}}
2041 \measure{(-0.3,-1.2)}{(0,-1.2)}{\SI{3}{\mm}}
2042 \measure{(-1.2,0)}{(-1.2,-1)}{\SI{10}{\mm}}
2043 \measure{(-0.7,0)}{(-0.7,-0.5)}{\SI{5}{\mm}}
2044 \measure[above]{(-0.5,0.2)}{(0.5,0.2)}{\SI{10}{\mm}}
2045 \measure[above]{(0.7,0)}{(0.7,-0.4)}{\SI{4}{\mm}}
2046 \pic at (0,0) {anchor mark};
2047 \pic (H) at (3,0) {hopper};
2048 \pic at (H-anchor) {anchor mark};
2049 \pic at (H-left) {node mark};
2050 \pic at (H-outlet) {node mark};
2051 \pic at (H-right) {node mark};
2052 \node[left] at (H-left) {\chpn{l}};
2053 \node[below] at (H-outlet) {\chpn{o}};
2054 \node[right] at (H-right) {\chpn{r}};
2055 \end{tikzpicture}
2056 \end{center}
2057
2058 Measures require some clarifications. The unit has a total width of \SI{10}{\mm}
2059 and a total height of \SI{10}{\mm}. Since the top line protrudes by \SI{1}{\mm}
2060 on each side, the hopper body has a width of \SI{8}{\mm}. Moving to
2061 nodes, the \chpn{right} node is placed \SI{4}{\mm} below the anchor and the
2062 \chpn{left} node is placed \SI{5}{\mm} below the anchor.
2063
2064 The inlet stream should be connected to the top of the hopper (use the
2065 \chpn{anchor} node to snap purposes), while the outlet stream should leave the
2066 unit from the bottom. A special node is defined to this last purpose: the
2067 \chpn{outlet} node, \chpn{o} in the above representation. This node is placed
2068 \SI{3}{\mm} to the left of the anchor.
2069
2070 \subsubsection{Conveyor Belt}
2071
2072 Carrying solids around a plant is an operation accomplished by special mechanical
2073 units. The simplest one is the conveyor belt. It is defined as a simple pic
2074 called \chpp{conveyor belt}:
2075 \begin{chpcode}
2076 \pic at (0,0) {conveyor belt};
2077 \end{chpcode}
2078 and yields the sketch of a conveyor belt at its centre:
2079 \begin{center}
2080 \begin{tikzpicture}
2081 \pic at (-4,0) {conveyor belt};
2082 \pic at (0,0) {conveyor belt};
2083 \measure{(-1,-0.4)}{(1,-0.4)}{\SI{20}{\mm}}
2084 \measure{(-1.2,0.2)}{(-1.2,-0.2)}{\SI{4}{\mm}}
2085 \measure[above]{(0,0.4)}{(0.6,0.4)}{\SI{6}{\mm}}
2086 \pic at (0,0) {anchor mark};
2087 \pic (C) at (4,0) {conveyor belt};
2088 \pic at (C-anchor) {anchor mark};
2089 \pic at (C-outlet left) {node mark};
2090 \pic at (C-bottom) {node mark};
2091 \pic at (C-outlet right) {node mark};
2092 \pic at (C-inlet right) {node mark};
2093 \pic at (C-top) {node mark};
2094 \pic at (C-inlet left) {node mark};
2095 \node[left] at (C-outlet left) {\chpn{ol}};
2096 \node[below] at (C-bottom) {\chpn{b}};
2097 \node[right] at (C-outlet right) {\chpn{or}};
2098 \node[above] at (C-inlet right) {\chpn{ir}};
2099 \node[above] at (C-top) {\chpn{t}};
2100 \node[above] at (C-inlet left) {\chpn{il}};
2101 \end{tikzpicture}
2102 \end{center}
2103 where the measure on the top indicates the distance from the middle of the
2104 unit to the point where the inlet stream should be connected.
2105
2106 Nodes require some clarifications. The entering stream should be attached to the
2107 upper part of the unit on one side, while the leaving stream should be connected
2108 to opposite side. Both streams should be pointed downwards. Besides the usual
2109 \chpn{bottom} and \chpn{top} nodes, four special nodes are defined:
2110 \begin{itemize}
2111 \item a node called \chpn{outlet left}, abbreviated in the picture above as
2112 \chpn{ol};
2113 \item a node called \chpn{outlet right}, abbreviated in the picture above as
2114 \chpn{or};
2115 \item a node called \chpn{inlet right}, abbreviated in the picture above as
2116 \chpn{ir};
2117 \item a node called \chpn{inlet left}, abbreviated in the picture above as
2118 \chpn{il}.
2119 \end{itemize}
2120
2121 \subsubsection{Screw Conveyor}
2122
2123 Another kind of solid handling unit, especially suitable to carry around granular
2124 materials, is the screw conveyor. It is defined as a simple pic called
2125 \chpp{screw conveyor}:
2126 \begin{chpcode}
2127 \pic at (0,0) {screw conveyor};
2128 \end{chpcode}
2129 and yields a rectangle, in which centre there is the anchor, with a sketch of
2130 the screw:
2131 \begin{center}
2132 \begin{tikzpicture}
2133 \pic at (-4,0) {screw conveyor};
2134 \pic at (0,0) {screw conveyor};
2135 \measure{(-1,-0.4)}{(1,-0.4)}{\SI{20}{\mm}}
2136 \measure{(-1.2,0.2)}{(-1.2,-0.2)}{\SI{4}{\mm}}
2137 \measure[above]{(0,0.4)}{(0.8,0.4)}{\SI{8}{\mm}}
2138 \pic at (0,0) {anchor mark};
2139 \pic (C) at (4,0) {screw conveyor};
2140 \pic at (C-anchor) {anchor mark};
2141 \pic at (C-left) {node mark};
2142 \pic at (C-outlet left) {node mark};
2143 \pic at (C-bottom) {node mark};
2144 \pic at (C-outlet right) {node mark};
2145 \pic at (C-right) {node mark};
2146 \pic at (C-inlet right) {node mark};
2147 \pic at (C-top) {node mark};
2148 \pic at (C-inlet left) {node mark};
2149 \node[left] at (C-left) {\chpn{l}};
2150 \node[below] at (C-outlet left) {\chpn{ol}};
2151 \node[below] at (C-bottom) {\chpn{b}};
2152 \node[below] at (C-outlet right) {\chpn{or}};
2153 \node[right] at (C-right) {\chpn{r}};
2154 \node[above] at (C-inlet right) {\chpn{ir}};
2155 \node[above] at (C-top) {\chpn{t}};
2156 \node[above] at (C-inlet left) {\chpn{il}};
2157 \end{tikzpicture}
2158 \end{center}
2159 where the measure on the top indicates the distance from the middle of the
2160 unit to the point where the inlet stream should be connected.
2161
2162 Nodes require some clarifications. The entering stream should be attached to the
2163 upper part of the unit on one side, while the leaving stream should be connected
2164 to the lower part and on the opposite side. Both streams should be pointed
2165 downwards. Besides the usual \chpn{left}, \chpn{bottom}, \chpn{right} and
2166 \chpn{top} nodes, four special nodes are defined:
2167 \begin{itemize}
2168 \item a node called \chpn{outlet left}, abbreviated in the picture above as
2169 \chpn{ol};
2170 \item a node called \chpn{outlet right}, abbreviated in the picture above as
2171 \chpn{or};
2172 \item a node called \chpn{inlet right}, abbreviated in the picture above as
2173 \chpn{ir};
2174 \item a node called \chpn{inlet left}, abbreviated in the picture above as
2175 \chpn{il}.
2176 \end{itemize}
2177
2178 \subsubsection{Roller Conveyor}
2179
2180 A roller conveyor can be use if slabs of bars of solid materials have to be
2181 moved. It is defined as a simple pic called \chpp{roller conveyor}:
2182 \begin{chpcode}
2183 \pic at (0,0) {roller conveyor};
2184 \end{chpcode}
2185 and yields a series of circles placed on a planar support anchored at its top:
2186 \begin{center}
2187 \begin{tikzpicture}
2188 \pic at (-4,0) {roller conveyor};
2189 \pic at (0,0) {roller conveyor};
2190 \measure{(-1,-0.4)}{(1,-0.4)}{\SI{20}{\mm}}
2191 \measure{(-1.2,0.2)}{(-1.2,-0.2)}{\SI{4}{\mm}}
2192 \measure[above]{(0,0.4)}{(0.9,0.4)}{\SI{9}{\mm}}
2193 \pic at (0,0) {anchor mark};
2194 \pic (C) at (4,0) {roller conveyor};
2195 \pic at (C-anchor) {anchor mark};
2196 \pic at (C-left) {node mark};
2197 \pic at (C-right) {node mark};
2198 \pic at (C-top right) {node mark};
2199 \pic at (C-top) {node mark};
2200 \pic at (C-top left) {node mark};
2201 \node[left] at (C-left) {\chpn{l}};
2202 \node[right] at (C-right) {\chpn{r}};
2203 \node[above] at (C-top right) {\chpn{tr}};
2204 \node[above] at (C-top) {\chpn{t}};
2205 \node[above] at (C-top left) {\chpn{tl}};
2206 \end{tikzpicture}
2207 \end{center}
2208 where the measure on the top indicates the distance from the middle of the
2209 unit to the point where the streams should be connected.
2210
2211 Only common nodes are defined for \chpp{roller conveyor}, but it should be
2212 noticed that the only nodes to be used to connect streams are \chpn{top left} and
2213 \chpn{top left}.
2214
2215 \subsubsection{Bucket Elevator}
2216
2217 A special kind of solid handling machines can be used not to cover horizontal
2218 paths, but to elevate a granular material. The most common one is the bucket
2219 elevator. It is defined as a simple pic called \chpp{bucket elevator}:
2220 \begin{chpcode}
2221 \pic at (0,0) {bucket elevator};
2222 \end{chpcode}
2223 and yields the sketch of a bucket elevator anchored in its centre:
2224 \begin{center}
2225 \begin{tikzpicture}
2226 \pic at (-3,0) {bucket elevator};
2227 \pic at (0,0) {bucket elevator};
2228 \measure{(-0.5,-1.7)}{(0.5,-1.7)}{\SI{10}{\mm}}
2229 \measure{(-0.15,-1.2)}{(0.15,-1.2)}{\SI{3}{\mm}}
2230 \measure{(-0.7,1)}{(-0.7,-1)}{\SI{20}{\mm}}
2231 \measure[above]{(0,1.2)}{(0.4,1.2)}{\SI{4}{\mm}}
2232 \measure[above]{(0.7,0.7)}{(0.7,0)}{\SI{7}{\mm}}
2233 \pic at (0,0) {anchor mark};
2234 \pic (C) at (3,0) {bucket elevator};
2235 \pic at (C-anchor) {anchor mark};
2236 \pic at (C-left) {node mark};
2237 \pic at (C-outlet) {node mark};
2238 \pic at (C-bottom) {node mark};
2239 \pic at (C-right) {node mark};
2240 \pic at (C-inlet) {node mark};
2241 \pic at (C-top) {node mark};
2242 \node[left] at (C-left) {\chpn{l}};
2243 \node[above] at (C-inlet) {\chpn{i}};
2244 \node[below] at (C-bottom) {\chpn{b}};
2245 \node[right] at (C-right) {\chpn{r}};
2246 \node[below] at (C-outlet) {\chpn{o}};
2247 \node[above] at (C-top) {\chpn{t}};
2248 \end{tikzpicture}
2249 \end{center}
2250
2251 Measures require some clarifications. The unit has a total width of \SI{10}{\mm}
2252 and a total height of \SI{20}{\mm}. The central body has a width of \SI{3}{\mm}.
2253
2254 The inlet and outlet streams should be connected to specific points of the unit.
2255 Two special nodes are defined to this purpose: the \chpn{inlet} node, \chpn{i}
2256 in the above representation, and the \chpn{outlet} node, \chpn{o} in the above
2257 representation. Considering this last node, it is placed \SI{4}{\mm} to the left
2258 of the anchor and \SI{7}{\mm} above it. Similar considerations hold true for the
2259 \chpn{inlet} node.
2260
2261 \subsubsection{Cylinder Crusher}
2262
2263 Pure solid handling units are done, but \chemplants\ defines some more symbols
2264 useful to denote operations concerning solids. Some of them represent size
2265 reduction operations, the most common of which is carried out in a cylinder
2266 crusher. It is defined as a simple pic called \chpp{cylinder crusher}:
2267 \begin{chpcode}
2268 \pic at (0,0) {cylinder crusher};
2269 \end{chpcode}
2270 and yields two circles, in which middle point there is the anchor, with a sketch
2271 of the machine structure:
2272 \begin{center}
2273 \begin{tikzpicture}
2274 \pic at (-4,0) {cylinder crusher};
2275 \pic at (0,0) {cylinder crusher};
2276 \measure{(-1,-0.8)}{(1,-0.8)}{\SI{20}{\mm}}
2277 \measure{(-1.2,0.6)}{(-1.2,-0.6)}{\SI{12}{\mm}}
2278 \measure[above]{(1.2,0.5)}{(1.2,-0.5)}{\SI{10}{\mm}}
2279 \pic at (0,0) {anchor mark};
2280 \pic (C) at (4,0) {cylinder crusher};
2281 \pic at (C-anchor) {anchor mark};
2282 \pic at (C-left) {node mark};
2283 \pic at (C-outlet) {node mark};
2284 \pic at (C-right) {node mark};
2285 \pic at (C-inlet) {node mark};
2286 \node[left] at (C-left) {\chpn{l}};
2287 \node[below] at (C-outlet) {\chpn{o}};
2288 \node[right] at (C-right) {\chpn{r}};
2289 \node[above] at (C-inlet) {\chpn{i}};
2290 \end{tikzpicture}
2291 \end{center}
2292 where the measure on the right indicates the height of the unit without the
2293 little protruding lines which marks the inlet and outlet conveying channels.
2294
2295 Besides the usual \chpn{left} and \chpn{right} nodes, two special nodes are
2296 defined: the \chpn{inlet} node, \chpn{i} in the above representation, and the
2297 \chpn{outlet} node, \chpn{o} in the above representation.
2298
2299 \subsubsection{Hammer Crusher}
2300
2301 Another rather common size reduction unit is the hammer crusher. It is defined as
2302 a simple pic called \chpp{hammer crusher}:
2303 \begin{chpcode}
2304 \pic at (0,0) {hammer crusher};
2305 \end{chpcode}
2306 and yields the sketch of a hammer crusher anchored in its centre:
2307 \begin{center}
2308 \begin{tikzpicture}
2309 \pic at (-4,0) {hammer crusher};
2310 \pic at (0,0) {hammer crusher};
2311 \measure{(-0.5,-1.2)}{(0.6,-1.2)}{\SI{11}{\mm}}
2312 \measure{(-0.3,-0.7)}{(0,-0.7)}{\SI{3}{\mm}}
2313 \measure{(-1.2,0.6)}{(-1.2,-0.5)}{\SI{11}{\mm}}
2314 \measure{(-0.7,0)}{(-0.7,-0.5)}{\SI{5}{\mm}}
2315 \measure[above]{(0,0.8)}{(0.3,0.8)}{\SI{3}{\mm}}
2316 \measure[above]{(0.8,0.5)}{(0.8,0)}{\SI{5}{\mm}}
2317 \pic at (0,0) {anchor mark};
2318 \pic (C) at (4,0) {hammer crusher};
2319 \pic at (C-anchor) {anchor mark};
2320 \pic at (C-left) {node mark};
2321 \pic at (C-outlet) {node mark};
2322 \pic at (C-bottom) {node mark};
2323 \pic at (C-right) {node mark};
2324 \pic at (C-inlet) {node mark};
2325 \node[left] at (C-left) {\chpn{l}};
2326 \node[below] at (C-outlet) {\chpn{o}};
2327 \node[below] at (C-bottom) {\chpn{b}};
2328 \node[right] at (C-right) {\chpn{r}};
2329 \node[above] at (C-inlet) {\chpn{i}};
2330 \end{tikzpicture}
2331
2332 \end{center}
2333
2334 Besides the usual \chpn{left}, \chpn{bottom} and \chpn{right} nodes, two special
2335 nodes are defined: the \chpn{inlet} node, \chpn{i} in the above representation,
2336 and the \chpn{outlet} node, \chpn{o} in the above representation. These nodes are
2337 both \SI{3}{\mm} far from the anchor in the horizontal direction and \SI{5}{\mm}
2338 far from the anchor in the vertical direction.
2339
2340 \subsubsection{Mill}
2341
2342 While a crusher is a rough operation, a fine particle size reduction can be
2343 achieved in a mill. A single mill is defined by \chemplants, a symbol to be used
2344 to denote a general milling operation. It is defined as a simple pic called
2345 \chpp{mill}:
2346 \begin{chpcode}
2347 \pic at (0,0) {mill};
2348 \end{chpcode}
2349 and yields a rectangle, in which centre there is the anchor with some
2350 ``decoration lines'':
2351 \begin{center}
2352 \begin{tikzpicture}
2353 \pic at (-4,0) {mill};
2354 \pic at (0,0) {mill};
2355 \measure{(-1,-0.7)}{(1.1,-0.7)}{\SI{21}{\mm}}
2356 \measure{(-1.2,0.5)}{(-1.2,-0.5)}{\SI{10}{\mm}}
2357 \measure[above]{(-1,0.7)}{(1,0.7)}{\SI{20}{\mm}}
2358 \measure[above]{(1.3,0.4)}{(1.3,-0.4)}{\SI{8}{\mm}}
2359 \pic at (0,0) {anchor mark};
2360 \pic (C) at (4,0) {mill};
2361 \pic at (C-anchor) {anchor mark};
2362 \pic at (C-inlet) {node mark};
2363 \pic at (C-bottom) {node mark};
2364 \pic at (C-outlet) {node mark};
2365 \pic at (C-top) {node mark};
2366 \node[left] at (C-inlet) {\chpn{i}};;
2367 \node[below] at (C-bottom) {\chpn{b}};
2368 \node[right] at (C-outlet) {\chpn{o}};
2369 \node[above] at (C-top) {\chpn{t}};
2370 \end{tikzpicture}
2371 \end{center}
2372 where measure on the top and on the right both refers to the dimensions of the
2373 unit without the protruding ``decoration lines''.
2374
2375 Besides the usual \chpn{bottom} and \chpn{right} nodes, two special
2376 nodes are defined: the \chpn{inlet} node, \chpn{i} in the above representation,
2377 and the \chpn{outlet} node, \chpn{o} in the above representation.
2378
2379 \subsubsection{Extruder}
2380
2381 The last solid handling unit defined by \chemplants\ represents a special
2382 process: extrusion. The operation is denoted in general as a screw extruder.
2383 It is defined as a simple pic called \chpp{extruder}:
2384 \begin{chpcode}
2385 \pic at (0,0) {extruder};
2386 \end{chpcode}
2387 and yields the sketch of an extruder anchored in its centre:
2388 \begin{center}
2389 \begin{tikzpicture}
2390 \pic at (-4,0) {extruder};
2391 \pic at (0,0) {extruder};
2392 \measure{(-1,-1)}{(1,-1)}{\SI{20}{\mm}}
2393 \measure{(-1,-0.5)}{(0,-0.5)}{\SI{10}{\mm}}
2394 \measure{(0,-0.5)}{(1,-0.5)}{\SI{10}{\mm}}
2395 \measure{(-1.7,0.5)}{(-1.7,-0.3)}{\SI{8}{\mm}}
2396 \measure{(-1.2,0.5)}{(-1.2,0)}{\SI{5}{\mm}}
2397 \measure[above]{(-0.7,0.7)}{(0,0.7)}{\SI{7}{\mm}}
2398 \measure[above]{(1.2,0.2)}{(1.2,-0.2)}{\SI{4}{\mm}}
2399 \pic at (0,0) {anchor mark};
2400 \pic (C) at (4,0) {extruder};
2401 \pic at (C-anchor) {anchor mark};
2402 \pic at (C-left) {node mark};
2403 \pic at (C-bottom) {node mark};
2404 \pic at (C-outlet) {node mark};
2405 \pic at (C-top) {node mark};
2406 \pic at (C-inlet) {node mark};
2407 \node[left] at (C-left) {\chpn{l}};
2408 \node[below] at (C-bottom) {\chpn{b}};
2409 \node[right] at (C-outlet) {\chpn{o}};
2410 \node[above] at (C-top) {\chpn{t}};
2411 \node[above] at (C-inlet) {\chpn{i}};
2412 \end{tikzpicture}
2413 \end{center}
2414
2415 Measures require some clarifications. The unit has a total width of \SI{20}{\mm}
2416 and a total height of \SI{8}{\mm}. A hopper is sketched on the extruder, which
2417 main body has a height of \SI{4}{\mm}.
2418
2419 The inlet stream should be connected to the top of the hopper, while the outlet
2420 stream should leave the unit from the end on the right. Two special nodes are
2421 defined: the \chpn{inlet} node, \chpn{i} in the above representation, and the
2422 \chpn{outlet} node, \chpn{o} in the above representation. The former is placed
2423 \SI{7}{\mm} to the left of the anchor and \SI{5}{\mm} above it.
2424
2425 As a last remark, notice that the \chpn{left} node can be exploited to attach
2426 something to the shaft of the screw, like a motor or a control signal.
2427
2428 \subsection{Heat Exchangers}
2429 \label{subsec:heahex}
2430
2431 Many variants of heat exchangers are defined by \chemplants. Among ``simple
2432 symbols'', two heat exchangers are available to general purposes, while three
2433 more are meant to be used to represent specific operations. There are also some
2434 symbols reserved to represent specific machines.
2435
2436 \subsubsection{Heat Exchanger}
2437
2438 The simplest possibile heat exchanger is useful to indicate thermal energy
2439 transfer between fluids which do not undergo phase change. It is defined as a
2440 simple pic called \chpp{heat exchanger}:
2441 \begin{chpcode}
2442 \pic at (0,0) {heat exchanger};
2443 \end{chpcode}
2444 and yields a circle, in which centre there is the anchor, with a sketch of the
2445 path of internal pipes crossing the symbol in horizontal:
2446 \begin{center}
2447 \begin{tikzpicture}
2448 \pic at (-3,0) {heat exchanger};
2449 \pic at (0,0) {heat exchanger};
2450 \measure{(-0.5,-0.7)}{(0.5,-0.7)}{\SI{10}{\mm}}
2451 \measure{(-0.7,0.5)}{(-0.7,-0.5)}{\SI{10}{\mm}}
2452 \pic at (0,0) {anchor mark};
2453 \pic (E) at (3,0) {heat exchanger};
2454 \pic at (E-anchor) {anchor mark};
2455 \pic at (E-shell bottom) {node mark};
2456 \pic at (E-shell top) {node mark};
2457 \pic at (E-pipes left) {node mark};
2458 \pic at (E-pipes right) {node mark};
2459 \node[below] at (E-shell bottom) {\chpn{sb}};
2460 \node[above] at (E-shell top) {\chpn{st}};
2461 \node[left] at (E-pipes left) {\chpn{pl}};
2462 \node[right] at (E-pipes right) {\chpn{pr}};
2463 \end{tikzpicture}
2464 \end{center}
2465
2466 The \chpp{heat exchanger} has none of the common nodes, but it has some special
2467 ones. The stream crossing the exchanger through its internal pipes can be
2468 connected to the \chpn{pipes left} node, abbreviated in the picture above as
2469 \chpn{pl}, and to the \chpn{pipes right} node, abbreviated in the picture above
2470 as \chpn{pr}. In the same way, the stream crossing the exchanger through its
2471 shell can be connected to the \chpn{shell bottom} node, abbreviated in the
2472 picture above as \chpn{sb}, and to the \chpn{shell top} node, abbreviated in
2473 the picture above as \chpn{st}.
2474
2475 \subsubsection{Heat Exchanger BiPhase}
2476
2477 An alternative heat exchanger is useful to indicate thermal energy transfer
2478 between fluids where one of them, usually the main process stream, partially
2479 changes phase (but it can also be used in the place of a simple heat exchanger
2480 without any phase change). It is defined as a simple pic called
2481 \chpp{heat exchanger biphase}:
2482 \begin{chpcode}
2483 \pic at (0,0) {heat exchanger biphase};
2484 \end{chpcode}
2485 and yields a circle, in which centre there is the anchor, with a sketch of the
2486 path of internal pipes which enter and leave the unit on the right side:
2487 \begin{center}
2488 \begin{tikzpicture}
2489 \pic at (-3,0) {heat exchanger biphase};
2490 \pic at (0,0) {heat exchanger biphase};
2491 \measure{(-0.5,-0.7)}{(0.5,-0.7)}{\SI{10}{\mm}}
2492 \measure{(-0.7,0.5)}{(-0.7,-0.5)}{\SI{10}{\mm}}
2493 \measure[above]{(0,0.7)}{(0.433,0.7)}{\SI{4.33}{\mm}}
2494 \measure[above]{(0.7,0.25)}{(0.7,0)}{\SI{2.5}{\mm}}
2495 \pic at (0,0) {anchor mark};
2496 \pic (E) at (3,0) {heat exchanger biphase};
2497 \pic at (E-anchor) {anchor mark};
2498 \pic at (E-shell left) {node mark};
2499 \pic at (E-shell bottom) {node mark};
2500 \pic at (E-shell right) {node mark};
2501 \pic at (E-shell top) {node mark};
2502 \pic at (E-pipes bottom) {node mark};
2503 \pic at (E-pipes top) {node mark};
2504 \node[left] at (E-shell left) {\chpn{sl}};
2505 \node[below] at (E-shell bottom) {\chpn{sb}};
2506 \node[right] at (E-shell right) {\chpn{sr}};
2507 \node[above] at (E-shell top) {\chpn{st}};
2508 \node[below right] at (E-pipes bottom) {\chpn{pb}};
2509 \node[above right] at (E-pipes top) {\chpn{pt}};
2510 \end{tikzpicture}
2511 \end{center}
2512 where measures on the right and on the top indicate the distances from the
2513 middle of the heat exchanger to the point where the internal pipes patch
2514 touches the boundary of the circle. It is also useful to remember that the same
2515 point can be identified in polar coordinates and lies \ang{30} and \SI{5}{\mm}
2516 from to centre of the circle.
2517
2518 The \chpp{heat exchanger biphase} has none of the common nodes, but it has some
2519 special ones. The stream crossing the exchanger through its internal pipes can
2520 be connected to the \chpn{pipes bottom} node, abbreviated in the picture above
2521 as \chpn{pb}, and to the \chpn{pipes top} node, abbreviated in the picture above
2522 as \chpn{pt}. In the same way the stream crossing the exchanger through its
2523 shell can be connected to four nodes:
2524 \begin{itemize}
2525 \item the \chpn{shell left} node, abbreviated in the picture above as
2526 \chpn{sl};
2527 \item the \chpn{shell bottom} node, abbreviated in the picture above as
2528 \chpn{sb};
2529 \item the \chpn{shell right} node, abbreviated in the picture above as
2530 \chpn{sr};
2531 \item the \chpn{shell top} node, abbreviated in the picture above as
2532 \chpn{st}.
2533 \end{itemize}
2534
2535 \subsubsection{Boiler and Condenser}
2536
2537 The other two heat exchangers defined are the boiler and the condenser. Even
2538 though the name should be self explicative, the boiler is useful to vaporise a
2539 liquid, while the condenser is useful to condense a vapour (both totally or
2540 partially). The boiler is defined as a simple pic called \chpp{boiler}:
2541 \begin{chpcode}
2542 \pic at (0,0) {boiler};
2543 \end{chpcode}
2544 and yields a circle, in which centre there is the anchor, with a sketch of the
2545 path of internal pipes that crosses the circle falling down from the left to
2546 the right:
2547 \begin{center}
2548 \begin{tikzpicture}
2549 \pic at (-3.4,0) {boiler};
2550 \pic at (0,0) {boiler};
2551 \measure{(-0.7,-0.7)}{(0.7,-0.7)}{\SI{14}{\mm}}
2552 \measure{(-0.9,0.5)}{(-0.9,-0.5)}{\SI{10}{\mm}}
2553 \measure[above]{(-0.7,0.7)}{(-0.5,0.7)}{\SI{2}{\mm}}
2554 \pic at (0,0) {anchor mark};
2555 \pic (B) at (3.4,0) {boiler};
2556 \pic at (B-anchor) {anchor mark};
2557 \pic at (B-left) {node mark};
2558 \pic at (B-bottom) {node mark};
2559 \pic at (B-right) {node mark};
2560 \pic at (B-top) {node mark};
2561 \pic at (B-pipes inlet) {node mark};
2562 \pic at (B-pipes outlet) {node mark};
2563 \node[left] at (B-left) {\chpn{l}};
2564 \node[below] at (B-bottom) {\chpn{b}};
2565 \node[right] at (B-right) {\chpn{r}};
2566 \node[above] at (B-top) {\chpn{t}};
2567 \node[left] at (B-pipes inlet) {\chpn{pi}};
2568 \node[right] at (B-pipes outlet) {\chpn{po}};
2569 \end{tikzpicture}
2570 \end{center}
2571 while the condenser is defined as a simple pic called \chpp{condenser}:
2572 \begin{chpcode}
2573 \pic at (0,0) {condenser};
2574 \end{chpcode}
2575 and yields a circle, in which centre there is the anchor, with a sketch of the
2576 path of internal pipes that crosses the circle rising up from the left to the
2577 right:
2578 \begin{center}
2579 \begin{tikzpicture}
2580 \pic at (-3.4,0) {condenser};
2581 \pic at (0,0) {condenser};
2582 \measure{(-0.7,-0.7)}{(0.7,-0.7)}{\SI{14}{\mm}}
2583 \measure{(-0.9,0.5)}{(-0.9,-0.5)}{\SI{10}{\mm}}
2584 \measure[above]{(0.5,0.7)}{(0.7,0.7)}{\SI{2}{\mm}}
2585 \pic at (0,0) {anchor mark};
2586 \pic (C) at (3.4,0) {condenser};
2587 \pic at (C-anchor) {anchor mark};
2588 \pic at (C-left) {node mark};
2589 \pic at (C-bottom) {node mark};
2590 \pic at (C-right) {node mark};
2591 \pic at (C-top) {node mark};
2592 \pic at (C-pipes inlet) {node mark};
2593 \pic at (C-pipes outlet) {node mark};
2594 \node[left] at (C-left) {\chpn{l}};
2595 \node[below] at (C-bottom) {\chpn{b}};
2596 \node[right] at (C-right) {\chpn{r}};
2597 \node[above] at (C-top) {\chpn{t}};
2598 \node[left] at (C-pipes inlet) {\chpn{pi}};
2599 \node[right] at (C-pipes outlet) {\chpn{po}};
2600 \end{tikzpicture}
2601 \end{center}
2602
2603 Both the \chpp{boiler} and the \chpp{condenser} have some special nodes. Among
2604 the common ones, only \chpn{left}, \chpn{bottom}, \chpn{right} and \chpn{top} are
2605 defined (and here it is not explicitly specified that these nodes belong to the
2606 shell because of the more generality of the two pics). In addition there are two
2607 nodes more: a node called \chpn{pipes inlet}, abbreviated in the picture above as
2608 \chpn{pi}, and a node called \chpn{pipes outlet}, abbreviated in the picture
2609 above as \chpn{po}.
2610
2611 Boiler and condenser deserve a couple of words more. When looking at schemes
2612 coming from different sources, especially from different countries,
2613 understanding which one is the boiler and which one is the condenser is not
2614 obvious at all. In the \UNICHIM\ regulation the arrows crossing the exchangers
2615 represent somehow the energy level variations of the utility fluids: for
2616 example, in a condenser the energy of the auxiliary fluid rises due to the
2617 enthalpy of condensation released by the vapour. In some books (especially if
2618 they come from the \ac{USA}) it is not that rare to see the boiler symbol used in
2619 the place of the condenser one: in this case it should be interpreted as ``the
2620 vapour is knocked down as a liquid''. This can lead to confusion and
2621 misunderstandings, hence it is advisable to define preventively and clearly what
2622 are the meanings of the symbols used.
2623
2624 \subsubsection{Air Heat Exchanger}
2625
2626 Another kind of special heat exchanger defined by \chemplants\ is a simple fan
2627 that blows on pipes, technically known as air heat exchanger. It is defined as
2628 a simple pic called \chpp{air heat exchanger}:
2629 \begin{chpcode}
2630 \pic at (0,0) {air heat exchanger};
2631 \end{chpcode}
2632 and yields a square, in which centre there is the anchor, with a sketch of the
2633 fan:
2634 \begin{center}
2635 \begin{tikzpicture}
2636 \pic at (-3,0) {air heat exchanger};
2637 \pic at (0,0) {air heat exchanger};
2638 \measure{(-0.5,-0.7)}{(0.5,-0.7)}{\SI{10}{\mm}}
2639 \measure{(-0.7,0.5)}{(-0.7,-0.5)}{\SI{10}{\mm}}
2640 \pic at (0,0) {anchor mark};
2641 \pic (E) at (3,0) {air heat exchanger};
2642 \pic at (E-anchor) {anchor mark};
2643 \pic at (E-left) {node mark};
2644 \pic at (E-bottom) {node mark};
2645 \pic at (E-right) {node mark};
2646 \pic at (E-top) {node mark};
2647 \node[left] at (E-left) {\chpn{l}};
2648 \node[below] at (E-bottom) {\chpn{b}};
2649 \node[right] at (E-right) {\chpn{r}};
2650 \node[above] at (E-top) {\chpn{t}};
2651 \end{tikzpicture}
2652 \end{center}
2653
2654 The just introduced \chpp{air heat exchanger} is the last example of ``simple
2655 symbol'' defined as heat transfer equipments. This concept means that the
2656 units can be used to generic representation purposes, especially the
2657 \chpp{heat exchanger} and the \chpp{heat exchanger biphase}.
2658
2659 It is not seldom to find also more complex and realistic representation of
2660 equipments, in fact also \UNICHIM\ indicates some variants of the simple symbols
2661 to be used to give a better idea of the unit or to identify a specific equipment
2662 in a more general family. This should not be a surprise after the many symbols to
2663 represent fluids handling machines discussed above.
2664
2665 \subsubsection{Tube Bundle Heat Exchanger}
2666
2667 The most widely used heat transfer equipment in the chemical industry is for
2668 sure the tube bundle heat exchanger, made up of a bundle of pipes enclosed into
2669 a shell. It is defined as a simple pic called \chpp{tube bundle heat exchanger}:
2670 \begin{chpcode}
2671 \pic at (0,0) {tube bundle heat exchanger};
2672 \end{chpcode}
2673 and yields a horizontal rectangle, in which centre there is the anchor, with a
2674 rounded end and a sketch of the internal pipes:
2675 \begin{center}
2676 \begin{tikzpicture}
2677 \pic at (-3.6,0) {tube bundle heat exchanger};
2678 % \pic at (0,0) {tube bundle heat exchanger};
2679 % \measure{(-1.0,-0.5)}{(1.0,-0.5)}{\SI{20}{\mm}}
2680 % \measure{(-1.2,0.35)}{(-1.2,-0.35)}{\SI{7}{\mm}}
2681 % \measure[above]{(-0.8,0.5)}{(0,0.5)}{\SI{8}{\mm}}
2682 % \measure[above]{(0,0.5)}{(0.5,0.5)}{\SI{5}{\mm}}
2683 % \measure[above]{(1.2,0.3)}{(1.2,-0.3)}{\SI{6}{\mm}}
2684 % \pic at (0,0) {anchor mark};
2685 % \pic (E) at (3.6,0) {tube bundle heat exchanger};
2686 % \pic at (E-anchor) {anchor mark};
2687 % \pic at (E-right) {node mark};
2688 % \pic at (E-left) {node mark};
2689 % \pic at (E-head bottom) {node mark};
2690 % \pic at (E-head top) {node mark};
2691 % \pic at (E-shell bottom left) {node mark};
2692 % \pic at (E-shell bottom) {node mark};
2693 % \pic at (E-shell bottom right) {node mark};
2694 % \pic at (E-shell top right) {node mark};
2695 % \pic at (E-shell top) {node mark};
2696 % \pic at (E-shell top left) {node mark};
2697 % \node[right] at (E-right) {\chpn{r}};
2698 % \node[left] at (E-left) {\chpn{l}};
2699 % \node[below left] at (E-head bottom) {\chpn{hb}};
2700 % \node[above left] at (E-head top) {\chpn{ht}};
2701 % \node[below] at (E-shell bottom left) {\chpn{sbl}};
2702 % \node[below] at (E-shell bottom) {\chpn{sb}};
2703 % \node[below] at (E-shell bottom right) {\chpn{sbr}};
2704 % \node[above] at (E-shell top right) {\chpn{str}};
2705 % \node[above] at (E-shell top) {\chpn{st}};
2706 % \node[above] at (E-shell top left) {\chpn{stl}};
2707 \end{tikzpicture}
2708 \end{center}
2709
2710 Only the pure symbol has been shown because, just like for the already
2711 discussed \chpp{multistage compressor}, there are a lot of measures and
2712 custom nodes to show:
2713 \begin{center}
2714 \begin{tikzpicture}
2715 \pic[scale=2] (E) at (0,0) {tube bundle heat exchanger};
2716 \pic at (E-anchor) {anchor mark};
2717 \pic at (E-left) {node mark};
2718 \pic at (E-right) {node mark};
2719 \pic at (E-head bottom) {node mark};
2720 \pic at (E-head top) {node mark};
2721 \pic at (E-shell bottom left) {node mark};
2722 \pic at (E-shell bottom) {node mark};
2723 \pic at (E-shell bottom right) {node mark};
2724 \pic at (E-shell top right) {node mark};
2725 \pic at (E-shell top) {node mark};
2726 \pic at (E-shell top left) {node mark};
2727 \node[left] at (E-left) {\chpn{l}};
2728 \node[right] at (E-right) {\chpn{r}};
2729 \node[below] at (E-head bottom) {\chpn{hb}};
2730 \node[above] at (E-head top) {\chpn{ht}};
2731 \node[below] at (E-shell bottom left) {\chpn{sbl}};
2732 \node[below] at (E-shell bottom) {\chpn{sb}};
2733 \node[below] at (E-shell bottom right) {\chpn{sbr}};
2734 \node[above] at (E-shell top right) {\chpn{str}};
2735 \node[above] at (E-shell top) {\chpn{st}};
2736 \node[above] at (E-shell top left) {\chpn{stl}};
2737 \measure{(-2.0,-1.3)}{(2.0,-1.3)}{\SI{20}{\mm}}
2738 \measure{(-2.7,0.7)}{(-2.7,-0.7)}{\SI{7}{\mm}}
2739 \measure[above]{(-1.6,1.3)}{(0,1.3)}{\SI{8}{\mm}}
2740 \measure[above]{(0,1.3)}{(1.0,1.3)}{\SI{5}{\mm}}
2741 \measure[above]{(2.7,0.6)}{(2.7,-0.6)}{\SI{6}{\mm}}
2742 \end{tikzpicture}
2743 \end{center}
2744 Again, the symbol is bigger, but measures are referred to the one with the
2745 right dimensions. Measures should be clear. The only remark regards measures on
2746 the sides of the unit: the left one indicates the total height, while the right
2747 one ignores the little protrusions of the vertical lines.
2748
2749 Only the \chpn{left} and \chpn{right} nodes are defined among the common ones.
2750 The others are aimed to identify some remarkable points of the two main sections
2751 of the \chpp{tube bundle heat exchanger}: the head of the tube bundle and the
2752 shell that encloses it. Two nodes are defined for the head: the
2753 \chpn{head bottom} node, shown above as \chpn{hb}, and the \chpn{head top} node,
2754 shown above as \chpn{ht}. The fluid that passes through the internal pipes have
2755 to be connected using these nodes. Six more nodes are defined for the shell:
2756 \begin{itemize}
2757 \item the \chpn{shell bottom left} node is abbreviated in the drawing as
2758 \chpn{sbl};
2759 \item the \chpn{shell bottom} node is abbreviated in the drawing as
2760 \chpn{sb};
2761 \item the \chpn{shell bottom right} node is abbreviated in the drawing as
2762 \chpn{sbr};
2763 \item the \chpn{shell top right} node is abbreviated in the drawing as
2764 \chpn{str};
2765 \item the \chpn{shell top} node is abbreviated in the drawing as
2766 \chpn{st};
2767 \item the \chpn{shell top left} node is abbreviated in the drawing as
2768 \chpn{stl}.
2769 \end{itemize}
2770 So many nodes are defined for the shell to allow the representation to be as
2771 flexible as possibile, in fact flow configuration can have a great impact on
2772 the heat exchanger performances and it is often useful to represent it also
2773 graphically.
2774
2775 \subsubsection{Tube Bundle Heat Exchanger (Variant)}
2776
2777 The \chpp{tube bundle heat exchanger} has a single head, thus it can be used to
2778 represent units with an even number of tube-side passes. A variant of this heat
2779 exchanger is defined by \chemplants\ to better denote machines with an odd number
2780 of tube-side passes (note that \UNICHIM\ uses the same symbol in both cases, the
2781 \chpp{tube bundle heat exchanger}). It is defined as a simple pic called
2782 \chpp{tube bundle heat exchanger var}:
2783 \begin{chpcode}
2784 \pic at (0,0) {tube bundle heat exchanger var};
2785 \end{chpcode}
2786 and yields a horizontal rectangle, in which centre there is the anchor, with
2787 rounded ends and a sketch of the internal pipes:
2788 \begin{center}
2789 \begin{tikzpicture}
2790 \pic at (-3.6,0) {tube bundle heat exchanger var};
2791 \pic at (0,0) {tube bundle heat exchanger var};
2792 \measure{(-1.0,-0.5)}{(1.0,-0.5)}{\SI{20}{\mm}}
2793 \measure{(-1.2,0.35)}{(-1.2,-0.35)}{\SI{7}{\mm}}
2794 \measure[above]{(0,0.5)}{(0.5,0.5)}{\SI{5}{\mm}}
2795 \measure[above]{(1.2,0.3)}{(1.2,-0.3)}{\SI{6}{\mm}}
2796 \pic at (0,0) {anchor mark};
2797 \pic (E) at (3.6,0) {tube bundle heat exchanger var};
2798 \pic at (E-anchor) {anchor mark};
2799 \pic at (E-head left) {node mark};
2800 \pic at (E-head right) {node mark};
2801 \pic at (E-shell bottom left) {node mark};
2802 \pic at (E-shell bottom) {node mark};
2803 \pic at (E-shell bottom right) {node mark};
2804 \pic at (E-shell top right) {node mark};
2805 \pic at (E-shell top) {node mark};
2806 \pic at (E-shell top left) {node mark};
2807 \node[left] at (E-head left) {\chpn{hl}};
2808 \node[right] at (E-head right) {\chpn{hr}};
2809 \node[below left] at (E-shell bottom left) {\chpn{sbl}};
2810 \node[below] at (E-shell bottom) {\chpn{sb}};
2811 \node[below right] at (E-shell bottom right) {\chpn{sbr}};
2812 \node[above right] at (E-shell top right) {\chpn{str}};
2813 \node[above] at (E-shell top) {\chpn{st}};
2814 \node[above left] at (E-shell top left) {\chpn{stl}};
2815 \end{tikzpicture}
2816 \end{center}
2817
2818 Measures are totally analogous to the ones of the
2819 \chpp{tube bundle heat exchanger} just discussed. Also nodes concerning the shell
2820 are the same, but there are no more \chpn{left} and \chpn{right nodes}. These are
2821 replaced by the \chpn{head left} node, shown above as \chpn{hl}, and by the
2822 \chpn{head right} node, shown above as \chpn{hr}. The fluid that passes through
2823 the internal pipes have to be connected using these nodes
2824
2825 \subsubsection{Plate Heat Exchanger}
2826
2827 The tube bundle heat exchanger is the most widely used, but it is not the only
2828 one. Another equipment useful to transfer thermal energy is the plate heat
2829 exchanger. It is defined as a simple pic called \chpp{plate heat exchanger}:
2830 \begin{chpcode}
2831 \pic at (0,0) {plate heat exchanger};
2832 \end{chpcode}
2833 and yields a rectangle, in which centre there is the anchor, with a sketch of
2834 the plates pushed together:
2835 \begin{center}
2836 \begin{tikzpicture}
2837 \pic at (-3,0) {plate heat exchanger};
2838 \pic at (0,0) {plate heat exchanger};
2839 \measure{(-0.5,-0.95)}{(0.5,-0.95)}{\SI{10}{\mm}}
2840 \measure{(-1.2,0.75)}{(-1.2,-0.75)}{\SI{15}{\mm}}
2841 \measure{(-0.7,0.7)}{(-0.7,-0.7)}{\SI{14}{\mm}}
2842 \measure[above]{(0.7,0.6)}{(0.7,0)}{\SI{6}{\mm}}
2843 \pic at (0,0) {anchor mark};
2844 \pic (E) at (3,0) {plate heat exchanger};
2845 \pic at (E-anchor) {anchor mark};
2846 \pic at (E-left) {node mark};
2847 \pic at (E-bottom) {node mark};
2848 \pic at (E-right) {node mark};
2849 \pic at (E-inner left) {node mark};
2850 \pic at (E-inner right) {node mark};
2851 \pic at (E-outer left) {node mark};
2852 \pic at (E-outer right) {node mark};
2853 \pic at (E-top) {node mark};
2854 \node[left] at (E-left) {\chpn{l}};
2855 \node[below] at (E-bottom) {\chpn{b}};
2856 \node[right] at (E-right) {\chpn{r}};
2857 \node[above] at (E-top) {\chpn{t}};
2858 \node[left] at (E-inner left) {\chpn{il}};
2859 \node[right] at (E-inner right) {\chpn{ir}};
2860 \node[left] at (E-outer left) {\chpn{ol}};
2861 \node[right] at (E-outer right) {\chpn{or}};
2862 \end{tikzpicture}
2863 \end{center}
2864 where the measure on the inner left indicates the height of the rectangle without
2865 the small protruding vertical lines, while the measure on the right indicates the
2866 distance from the centre of the rectangle to the end of the oblique line.
2867
2868 Some special nodes are defined for the \chpp{plates heat exchanger}. The
2869 construction of the machine does not imply the existence of two well defined
2870 chambers, but the two fluids travel into alternate plates. Anyway, an oblique
2871 line is sketched on the unit to identify one of the paths, which ends fall on
2872 \chpn{inner left} and \chpn{inner right} nodes, abbreviated above as \chpn{il}
2873 and \chpn{ir} respectively. The other fluid can be connected to the
2874 \chpn{outer left} node, abbreviated above as \chpn{ol}, and to the
2875 \chpn{outer right} node, abbreviated above as \chpn{or}. The remaining nodes
2876 should not be used for streams connections.
2877
2878 \subsubsection{Spiral Heat Exchanger}
2879
2880 Another common heat exchanger, somehow the ``wrapped version'' of the plate
2881 heat exchanger, is the spiral heat exchanger. It is defined as a simple pic
2882 called \chpp{spiral heat exchanger}:
2883 \begin{chpcode}
2884 \pic at (0,0) {spiral heat exchanger};
2885 \end{chpcode}
2886 and yields a circle, in which centre there is the anchor, with a sketch of
2887 the spiral path:
2888 \begin{center}
2889 \begin{tikzpicture}
2890 \pic at (-3.4,0) {spiral heat exchanger};
2891 \pic at (0,0) {spiral heat exchanger};
2892 \measure{(-0.7,-0.9)}{(0.7,-0.9)}{\SI{14}{\mm}}
2893 \measure{(-0.9,0.7)}{(-0.9,-0.7)}{\SI{14}{\mm}}
2894 \pic at (0,0) {anchor mark};
2895 \pic (E) at (3.4,0) {spiral heat exchanger};
2896 \pic at (E-anchor) {anchor mark};
2897 \pic at (E-inner center) {node mark};
2898 \pic at (E-inner edge) {node mark};
2899 \pic at (E-outer center) {node mark};
2900 \pic at (E-outer edge) {node mark};
2901 \node[left] at (E-inner center) {\chpn{ic}};
2902 \node[right] at (E-inner edge) {\chpn{ie}};
2903 \node[above] at (E-outer center) {\chpn{oc}};
2904 \node[below] at (E-outer edge) {\chpn{oe}};
2905 \end{tikzpicture}
2906 \end{center}
2907
2908 The \chpp{spiral heat exchanger} has none of the common nodes, but it has some
2909 special ones. Also in this case it is not possibile to individuate an internal
2910 and an external chamber, but this time the paths of the fluids are continuous and
2911 one is effectively internal to the other. Usually, one of the end of the
2912 path is placed on the centre of the cross section of the unit, while the other
2913 one is on its boundary: this justifies the names of the nodes. The
2914 \chpn{inner center} node is abbreviated above as \chpn{ic}, while the
2915 \chpn{inner edge} node is abbreviated above as \chpn{ie}; these two nodes should
2916 be used to connect the inner fluid. In the same way, but for the outer fluid,
2917 the \chpn{outer center} node is abbreviated above as \chpn{oc}, while the
2918 \chpn{outer edge} node is abbreviated above as \chpn{oe}.
2919
2920 \subsubsection{Pipe Furnace}
2921
2922 The last heat transfer equipments defined by \chemplants\ (at least in this
2923 section of the manual) are not heat exchanger as properly intended, but furnaces.
2924 The first one is a pipe furnace useful to heat liquids and gases. It is defined
2925 as a simple pic called \chpp{pipe furnace}:
2926 \begin{chpcode}
2927 \pic at (0,0) {pipe furnace};
2928 \end{chpcode}
2929 and yields a rectangle, in which centre there is the anchor, with a sketch of
2930 the path of the internal pipes crossing the symbol in horizontal and a
2931 representation of the furnace chimneystack:
2932 \begin{center}
2933 \begin{tikzpicture}
2934 \pic at (-4.0,0) {pipe furnace};
2935 \pic at (0,0) {pipe furnace};
2936 \measure{(-1.0,-0.7)}{(1.0,-0.7)}{\SI{20}{\mm}}
2937 \measure{(-1.2,1.5)}{(-1.2,-0.5)}{\SI{20}{\mm}}
2938 \measure[above]{(-0.2,1.7)}{(0.2,1.7)}{\SI{4}{\mm}}
2939 \measure[above]{(1.2,1.5)}{(1.2,0)}{\SI{15}{\mm}}
2940 \pic at (0,0) {anchor mark};
2941 \pic (E) at (4.0,0) {pipe furnace};
2942 \pic at (E-anchor) {anchor mark};
2943 \pic at (E-bottom) {node mark};
2944 \pic at (E-top) {node mark};
2945 \pic at (E-pipes left) {node mark};
2946 \pic at (E-pipes right) {node mark};
2947 \node[below] at (E-bottom) {\chpn{b}};
2948 \node[above] at (E-top) {\chpn{t}};
2949 \node[left] at (E-pipes left) {\chpn{pl}};
2950 \node[right] at (E-pipes right) {\chpn{pr}};
2951 \end{tikzpicture}
2952 \end{center}
2953 where the measure on the right indicates the distance from the anchor point to
2954 the top of the chimneystack.
2955
2956 The \chpp{pipe furnace} has some special nodes. Among the common ones, only
2957 \chpn{bottom} and \chpn{top} are defined and they may be useful to represent
2958 fuel inlet and stack gases outlet. In addition, there are two nodes more: a node
2959 called \chpn{pipes left}, abbreviated in the picture above as \chpn{pl}, and a
2960 node called \chpn{pipes right}, abbreviated in the picture above as \chpn{pr}.
2961
2962 \subsubsection{Tunnel Furnace}
2963
2964 If one has to represent a solid drying operation, a tunnel furnace may come in
2965 hand. It is defined as a simple pic called \chpp{tunnel furnace}:
2966 \begin{chpcode}
2967 \pic at (0,0) {tunnel furnace};
2968 \end{chpcode}
2969 and yields a rectangle, in which lower centre there is the anchor, with a sketch
2970 of the tunnel entrance and exit:
2971 \begin{center}
2972 \begin{tikzpicture}
2973 \pic at (-4.4,0) {tunnel furnace};
2974 \pic at (0,0) {tunnel furnace};
2975 \measure{(-1.2,-0.7)}{(1.2,-0.7)}{\SI{24}{\mm}}
2976 \measure{(-1.4,1)}{(-1.4,-0.5)}{\SI{15}{\mm}}
2977 \measure[above]{(0,1.2)}{(0.9,1.2)}{\SI{9}{\mm}}
2978 \measure[above]{(1.4,1)}{(1.4,0)}{\SI{10}{\mm}}
2979 \pic at (0,0) {anchor mark};
2980 \pic (E) at (4.4,0) {tunnel furnace};
2981 \pic at (E-anchor) {anchor mark};
2982 \pic at (E-bottom) {node mark};
2983 \pic at (E-top right) {node mark};
2984 \pic at (E-top) {node mark};
2985 \pic at (E-top left) {node mark};
2986 \pic at (E-tunnel left) {node mark};
2987 \pic at (E-tunnel right) {node mark};
2988 \node[below] at (E-bottom) {\chpn{b}};
2989 \node[above] at (E-top right) {\chpn{tr}};
2990 \node[above] at (E-top) {\chpn{t}};
2991 \node[above] at (E-top left) {\chpn{tl}};
2992 \node[left] at (E-tunnel left) {\chpn{tul}};
2993 \node[right] at (E-tunnel right) {\chpn{tur}};
2994 \end{tikzpicture}
2995 \end{center}
2996 where the measure on the right indicates the distance from the anchor point to
2997 the top of the unit, while the measure on the top concern nodes.
2998
2999 The \chpp{tunnel furnace} has some special nodes. Among the common ones, only
3000 \chpn{bottom} and \chpn{top} are defined and they may be useful to represent
3001 fuel inlet and stack gases outlet. Also \chpn{top left} and \chpn{top right} may
3002 serve this cause. In addition, there are two nodes more: a node called
3003 \chpn{tunnel left}, abbreviated in the picture above as \chpn{tul}, and a
3004 node called \chpn{tunnel right}, abbreviated in the picture above as \chpn{tur}.
3005
3006 \subsubsection{Rotary Furnace}
3007
3008 Granular materials can be thermally treated into a unit called rotary furnace. It
3009 is defined as a simple pic called \chpp{rotary furnace}:
3010 \begin{chpcode}
3011 \pic at (0,0) {rotary furnace};
3012 \end{chpcode}
3013 and yields a slanted rectangle, in which centre there is the anchor, with a
3014 sketch of the revolution movement:
3015 \begin{center}
3016 \begin{tikzpicture}
3017 \pic at (0,0) {rotary furnace};
3018 \end{tikzpicture}
3019 \end{center}
3020
3021 No measures or nodes are shown in the above drawing, that is the pure symbol.
3022 Marking measures on a slanted unit like this one is not trivial, thus the
3023 \chpp{rotary furnace} is reproduced as rotated here:
3024 \begin{center}
3025 \begin{tikzpicture}
3026 \pic[rotate=10] (F) at (0,0) {rotary furnace};
3027 \measure{(-1,-0.8)}{(1,-0.8)}{\SI{20}{\mm}}
3028 \measure{(-1.7,0.4)}{(-1.7,-0.4)}{\SI{8}{\mm}}
3029 \measure[above]{(-0.9,0.8)}{(0,0.8)}{\SI{9}{\mm}}
3030 \measure[above]{(1.7,0.3)}{(1.7,-0.3)}{\SI{6}{\mm}}
3031 \pic at (F-anchor) {anchor mark};
3032 \pic at (F-gas outlet) {node mark};
3033 \pic at (F-solid outlet) {node mark};
3034 \pic at (F-gas inlet) {node mark};
3035 \pic at (F-solid inlet) {node mark};
3036 \node[left] at (F-gas outlet) {\chpn{go}};
3037 \node[below] at (F-solid outlet) {\chpn{so}};
3038 \node[right] at (F-gas inlet) {\chpn{gi}};
3039 \node[above] at (F-solid inlet) {\chpn{si}};
3040 \end{tikzpicture}
3041 \end{center}
3042 The measure on the right indicates the height of the rotation drum without the
3043 motion sketch, while the measure on the top concern nodes.
3044
3045 None of the common nodes are defined for the \chpn{rotary furnace}, but there are
3046 special nodes to be used to connect specific streams. In the above drawing,
3047 \chpn{gi} and \chpn{si} indicate respectively the \chpn{gas inlet} node and the
3048 \chpn{solid inlet} node, which should be used to connect the inlet streams. On
3049 the left of the unit there is the \chpn{gas outlet} node, abbreviated as
3050 \chpn{go} in the figure, while on its bottom right there is the
3051 \chpn{solid outlet} node, abbreviated as \chpn{so} in the figure. Names should be
3052 self-explicative.
3053
3054 \subsection{Physical Separators}
3055
3056 Separation unit operations are some of the most important operations in chemical
3057 engineering. Besides the separation of homogenous mixtures, that is usually done
3058 in ``simple'' equipments which will be introduced in the following, the
3059 separation of heterogeneous mixtures is practically much more simple and some
3060 specific equipments based on mechanical principles exist.
3061
3062 \subsubsection{Steam Trap}
3063
3064 When the condensation of steam or of some other vapours is involved, it is always
3065 necessary to withdraw a liquid from somewhere. To avoid the steam to escape from
3066 the liquid outlet, a stream trap can be profitably used. It is defined as a
3067 simple pic called \chpp{steam trap}:
3068 \begin{chpcode}
3069 \pic at (0,0) {steam trap};
3070 \end{chpcode}
3071 and yields a little half field circle anchored in its centre:
3072 \begin{center}
3073 \begin{tikzpicture}
3074 \pic at (-2.3,0) {steam trap};
3075 \pic at (0,0) {steam trap};
3076 \measure{(-0.15,-0.35)}{(0.15,-0.35)}{\SI{3}{\mm}}
3077 \measure{(-0.35,0.15)}{(-0.35,-0.15)}{\SI{3}{\mm}}
3078 \pic at (0,0) {anchor mark};
3079 \pic (S) at (2.3,0) {steam trap};
3080 \pic at (S-anchor) {anchor mark};
3081 \pic at (S-left) {node mark};
3082 \pic at (S-bottom) {node mark};
3083 \pic at (S-right) {node mark};
3084 \pic at (S-top) {node mark};
3085 \node[left] at (S-left) {\chpn{l}};
3086 \node[below] at (S-bottom) {\chpn{b}};
3087 \node[right] at (S-right) {\chpn{r}};
3088 \node[above] at (S-top) {\chpn{t}};
3089 \end{tikzpicture}
3090 \end{center}
3091
3092 In the default orientation, which is the one commonly used in process diagrams
3093 and should not be changed, the inlet of the steam trap have to touch the empty
3094 half of the circle, while the outlet have to come out from the filled half.
3095
3096 \subsubsection{Gas-Liquid Separator}
3097
3098 When more sophisticated separations of gases and liquids mixtures are needed
3099 another unit is useful: the gas-liquid separator. It is defined as a simple pic
3100 called \chpp{gas-liquid separator}:
3101 \begin{chpcode}
3102 \pic at (0,0) {gas-liquid separator};
3103 \end{chpcode}
3104 and yields a tank, in which centre there is the anchor, with a sketch of the
3105 anti-entrainment system on its top:
3106 \begin{center}
3107 \begin{tikzpicture}
3108 \pic at (-3.6,0) {gas-liquid separator};
3109 \pic at (0,0) {gas-liquid separator};
3110 \measure{(-0.8,-1.7)}{(0.8,-1.7)}{\SI{16}{\mm}}
3111 \measure{(-1.0,1.5)}{(-1.0,-1.5)}{\SI{30}{\mm}}
3112 \measure[above]{(1.0,1.032)}{(1.0,0)}{\SI{10.32}{\mm}}
3113 \pic at (0,0) {anchor mark};
3114 \pic (S) at (3.6,0) {gas-liquid separator};
3115 \pic at (S-anchor) {anchor mark};
3116 \pic at (S-bottom left) {node mark};
3117 \pic at (S-bottom right) {node mark};
3118 \pic at (S-top right) {node mark};
3119 \pic at (S-top left) {node mark};
3120 \pic at (S-inlet left) {node mark};
3121 \pic at (S-inlet right) {node mark};
3122 \pic at (S-gas outlet) {node mark};
3123 \pic at (S-liquid outlet) {node mark};
3124 \node[left] at (S-bottom left) {\chpn{bl}};
3125 \node[right] at (S-bottom right) {\chpn{br}};
3126 \node[right] at (S-top right) {\chpn{tr}};
3127 \node[left] at (S-top left) {\chpn{tl}};
3128 \node[left] at (S-inlet left) {\chpn{il}};
3129 \node[right] at (S-inlet right) {\chpn{ir}};
3130 \node[above] at (S-gas outlet) {\chpn{go}};
3131 \node[below] at (S-liquid outlet) {\chpn{lo}};
3132 \end{tikzpicture}
3133 \end{center}
3134 where the measure on the right indicates the distance from the middle of the tank
3135 to the point where the curvature begins.
3136
3137 Besides the common nodes, special nodes are defined for stream connections. In
3138 the above drawing, \chpn{il} and \chpn{ir} indicate respectively the
3139 \chpn{inlet left} node and the \chpn{inlet right} node, which should be used
3140 to connect the inlet stream. On the top of the unit there is the
3141 \chpn{gas outlet} node, abbreviated as \chpn{go} in the figure, while on its
3142 bottom there is the \chpn{liquid outlet} node, abbreviated as \chpn{lo} in the
3143 figure. Names should be self-explicative.
3144
3145 \subsubsection{Cyclone}
3146
3147 A cyclone is a unit useful to separate solid powders entrained by a gas stream.
3148 It is defined as a simple pic called \chpp{cyclone}:
3149 \begin{chpcode}
3150 \pic at (0,0) {cyclone};
3151 \end{chpcode}
3152 and yields a little rectangle, on which base there is the anchor, attached to a
3153 triangular funnel:
3154 \begin{center}
3155 \begin{tikzpicture}
3156 \pic at (-2.6,0) {cyclone};
3157 \pic at (0,0) {cyclone};
3158 \measure{(-0.3,-1.2)}{(0.3,-1.2)}{\SI{6}{\mm}}
3159 \measure{(-0.5,0.25)}{(-0.5,-1.0)}{\SI{12.5}{\mm}}
3160 \measure[above]{(0.5,0.25)}{(0.5,0)}{\SI{2.5}{\mm}}
3161 \pic at (0,0) {anchor mark};
3162 \pic (S) at (2.6,0) {cyclone};
3163 \pic at (S-anchor) {anchor mark};
3164 \pic at (S-inlet left) {node mark};
3165 \pic at (S-inlet right) {node mark};
3166 \pic at (S-gas outlet) {node mark};
3167 \pic at (S-solid outlet) {node mark};
3168 \node[left] at (S-inlet left) {\chpn{il}};
3169 \node[right] at (S-inlet right) {\chpn{ir}};
3170 \node[above] at (S-gas outlet) {\chpn{go}};
3171 \node[below] at (S-solid outlet) {\chpn{so}};
3172 \end{tikzpicture}
3173 \end{center}
3174
3175 None of the common nodes are defined for the \chpn{cyclone}, but there are
3176 special nodes to be used to connect specific streams. In the above drawing,
3177 \chpn{il} and \chpn{ir} indicate respectively the \chpn{inlet left} node and the
3178 \chpn{inlet right} node, which should be used to connect the inlet stream. On
3179 the top of the unit there is the \chpn{gas outlet} node, abbreviated as
3180 \chpn{go} in the figure, while on its bottom there is the \chpn{solid outlet}
3181 node, abbreviated as \chpn{so} in the figure. Names should be self-explicative.
3182
3183 \subsubsection{Stratifier}
3184
3185 A common operation to be carried out in chemical processes is the separation of
3186 two immiscible liquids. If they have different densities, time and gravity will
3187 do the job, so a stratifier can be used. It is defined as a simple pic called
3188 \chpp{stratifier}:
3189 \begin{chpcode}
3190 \pic at (0,0) {stratifier};
3191 \end{chpcode}
3192 and yields a horizontal tank, in which centre there is the anchor, with a sketch
3193 of the internal baffles:
3194 \begin{center}
3195 \begin{tikzpicture}
3196 \pic at (-5,0) {stratifier};
3197 \pic at (0,0) {stratifier};
3198 \measure{(-1.5,-1.0)}{(1.5,-1.0)}{\SI{30}{\mm}}
3199 \measure{(-1.7,0.8)}{(-1.7,-0.8)}{\SI{16}{\mm}}
3200 \measure[above]{(0,1.0)}{(1.032,1.0)}{\SI{10.32}{\mm}}
3201 \pic at (0,0) {anchor mark};
3202 \pic (S) at (5,0) {stratifier};
3203 \pic at (S-anchor) {anchor mark};
3204 \pic at (S-left) {node mark};
3205 \pic at (S-bottom) {node mark};
3206 \pic at (S-right) {node mark};
3207 \pic at (S-top right) {node mark};
3208 \pic at (S-top left) {node mark};
3209 \pic at (S-inlet) {node mark};
3210 \pic at (S-light outlet) {node mark};
3211 \pic at (S-heavy outlet) {node mark};
3212 \node[left] at (S-left) {\chpn{l}};
3213 \node[below] at (S-bottom) {\chpn{b}};
3214 \node[right] at (S-right) {\chpn{r}};
3215 \node[above] at (S-top right) {\chpn{tr}};
3216 \node[above] at (S-top left) {\chpn{tl}};
3217 \node[above] at (S-inlet) {\chpn{i}};
3218 \node[below] at (S-light outlet) {\chpn{lo}};
3219 \node[below] at (S-heavy outlet) {\chpn{ho}};
3220 \end{tikzpicture}
3221 \end{center}
3222 where the measure on the top indicates the distance from the middle of the tank
3223 to the point where the curvature begins.
3224
3225 Besides the common nodes, special nodes are defined for stream connections. The
3226 inlet stream should enter from the \chpn{inlet} node, marked as \chpn{i} in the
3227 figure, and, after the stratification, the light liquid comes out from the
3228 \chpn{light outlet} node, marked as \chpn{lo} in the figure, while the heavy
3229 liquid comes out from the \chpn{heavy outlet} node, marked as \chpn{ho} in the
3230 figure.
3231
3232 \subsubsection{Settler}
3233
3234 Previously, the cyclone have been introduced. A unit with the same purposes, but
3235 useful when a solid suspended into a liquid has to be separated, is the settler.
3236 It is defined as a simple pic called \chpp{settler}:
3237 \begin{chpcode}
3238 \pic at (0,0) {settler};
3239 \end{chpcode}
3240 and yields a horizontal rectangle, in which centre there is the anchor, with a
3241 triangular funnel end:
3242 \begin{center}
3243 \begin{tikzpicture}
3244 \pic at (-5,0) {settler};
3245 \pic at (0,0) {settler};
3246 \measure{(-1.5,-1.0)}{(1.5,-1.0)}{\SI{30}{\mm}}
3247 \measure{(-1.7,0.8)}{(-1.7,-0.8)}{\SI{16}{\mm}}
3248 \measure[above]{(2.2,0.8)}{(2.2,0)}{\SI{8}{\mm}}
3249 \measure[above]{(1.7,0)}{(1.7,-0.2)}{\SI{2}{\mm}}
3250 \pic at (0,0) {anchor mark};
3251 \pic (S) at (5,0) {settler};
3252 \pic at (S-anchor) {anchor mark};
3253 \pic at (S-inlet left) {node mark};
3254 \pic at (S-inlet right) {node mark};
3255 \pic at (S-inlet top) {node mark};
3256 \pic at (S-liquid outlet left) {node mark};
3257 \pic at (S-liquid outlet right) {node mark};
3258 \pic at (S-solid outlet) {node mark};
3259 \node[left] at (S-inlet left) {\chpn{il}};
3260 \node[right] at (S-inlet right) {\chpn{ir}};
3261 \node[above] at (S-inlet top) {\chpn{it}};
3262 \node[left] at (S-liquid outlet left) {\chpn{lol}};
3263 \node[right] at (S-liquid outlet right) {\chpn{lor}};
3264 \node[below] at (S-solid outlet) {\chpn{so}};
3265 \end{tikzpicture}
3266 \end{center}
3267 where the measure on the inner right indicates the distance from the middle of
3268 the unit to the point where the funnel begins, while the measure on the outer
3269 right indicates the distance from the middle of the unit to its top.
3270
3271 None of the common nodes are defined for the \chpp{settler}, but there are
3272 special nodes to be used to connect specific streams. In the above drawing,
3273 \chpn{il}, \chpn{ir} and \chpn{it} indicate respectively the
3274 \chpn{inlet left} node, the \chpn{inlet right} node and the \chpn{inlet top}
3275 node, which should be used to connect the inlet stream. On the top left of
3276 the unit there is the \chpn{liquid outlet left} node, abbreviated as \chpn{lol}
3277 in the figure, while on the top right of the unit there is the
3278 \chpn{liquid outlet right} node, abbreviated as \chpn{lor} in the figure.
3279 Finally, on the bottom of the unit there is the \chpn{solid outlet} node,
3280 abbreviated as \chpn{so} in the figure. Three inlets are defined to give
3281 flexibility to the representation, in fact the same symbol can be used to
3282 indicate circular settling basins as well as rectangular settling basins.
3283
3284 \subsubsection{Bag Filter}
3285
3286 A bag filter can be used to separate particulate solids entrained by a fluid,
3287 either a gas or a liquid. It is defined as a simple pic called \chpp{bag filter}:
3288 \begin{chpcode}
3289 \pic at (0,0) {bag filter};
3290 \end{chpcode}
3291 and yields a little rectangle, on which base there is the anchor, attached to a
3292 sketch of the filtering bags which ends in a triangular funnel:
3293 \begin{center}
3294 \begin{tikzpicture}
3295 \pic at (-2.9,0) {bag filter};
3296 \pic at (0,0) {bag filter};
3297 \measure{(-0.45,-1.6)}{(0.45,-1.6)}{\SI{9}{\mm}}
3298 \measure{(-0.65,0.2)}{(-0.65,-1.4)}{\SI{16}{\mm}}
3299 \measure[above]{(0.65,0.2)}{(0.65,0)}{\SI{2}{\mm}}
3300 \measure[above]{(1.3,0)}{(1.3,-1)}{\SI{10}{\mm}}
3301 \pic at (0,0) {anchor mark};
3302 \pic (F) at (2.9,0) {bag filter};
3303 \pic at (F-anchor) {anchor mark};
3304 \pic at (F-top) {node mark};
3305 \pic at (F-inlet left) {node mark};
3306 \pic at (F-inlet right) {node mark};
3307 \pic at (F-fluid outlet left) {node mark};
3308 \pic at (F-fluid outlet right) {node mark};
3309 \pic at (F-solid outlet) {node mark};
3310 \node[above] at (F-top) {\chpn{t}};
3311 \node[left] at (F-inlet left) {\chpn{il}};
3312 \node[right] at (F-inlet right) {\chpn{ir}};
3313 \node[left] at (F-fluid outlet left) {\chpn{fol}};
3314 \node[right] at (F-fluid outlet right) {\chpn{for}};
3315 \node[below] at (F-solid outlet) {\chpn{so}};
3316 \end{tikzpicture}
3317 \end{center}
3318
3319 Besides the common nodes, special nodes are defined for stream connections. In
3320 the above drawing, \chpn{il} and \chpn{ir} indicate respectively the
3321 \chpn{inlet left} node and the \chpn{inlet right} node, which should be used to
3322 connect the inlet stream. On the bottom left and on the bottom right of the unit
3323 there are respectively the \chpn{fluid outlet left} node and the
3324 \chpn{fluid outlet right} node, abbreviated as \chpn{fol} and \chpn{for} in the
3325 figure, while on its bottom there is the \chpn{solid outlet} node, abbreviated as
3326 \chpn{so} in the figure. Names should be self-explicative.
3327
3328 \subsubsection{Filter Press}
3329
3330 Quite common in the food industry, a filter press can be used to separate
3331 particulate solids suspended in a liquid. It is defined as a simple pic called
3332 \chpp{filter press}:
3333 \begin{chpcode}
3334 \pic at (0,0) {filter press};
3335 \end{chpcode}
3336 and yields a little rectangle, in which centre there is the anchor, with a sketch
3337 of the filtering layers and the plate used to collect solids beneath it:
3338 \begin{center}
3339 \begin{tikzpicture}
3340 \pic at (-4,0) {filter press};
3341 \pic at (0,0) {filter press};
3342 \measure{(-1,-0.7)}{(1,-0.7)}{\SI{20}{\mm}}
3343 \measure{(-1.2,0.4)}{(-1.2,-0.5)}{\SI{9}{\mm}}
3344 \measure[above]{(-0.9,0.6)}{(0.9,0.6)}{\SI{18}{\mm}}
3345 \measure[above]{(1.2,0.4)}{(1.2,-0.4)}{\SI{8}{\mm}}
3346 \pic at (0,0) {anchor mark};
3347 \pic (F) at (4,0) {filter press};
3348 \pic at (F-anchor) {anchor mark};
3349 \pic at (F-left) {node mark};
3350 \pic at (F-right) {node mark};
3351 \pic at (F-top) {node mark};
3352 \pic at (F-solid outlet) {node mark};
3353 \node[left] at (F-left) {\chpn{l}};
3354 \node[right] at (F-right) {\chpn{r}};
3355 \node[above] at (F-top) {\chpn{t}};
3356 \node[below] at (F-solid outlet) {\chpn{so}};
3357 \end{tikzpicture}
3358 \end{center}
3359 where measures on the right and on the top refers to the dimension of the unit
3360 without the underlying tray.
3361
3362 Besides the common nodes, special nodes are defined for stream connections, but
3363 this time also common nodes should be used wisely. The \chpn{top} node is
3364 defined to labelling purposes, while the \chpn{left} and \chpn{right} nodes have
3365 a scope: one must be used to connect the entering mixture, while the other
3366 represents the liquid outlet. On the bottom of the unit there is the \chpn{solid
3367 outlet} node, abbreviated as \chpn{so} in the figure, which is used to represent
3368 the outlet of filtered solids.
3369
3370 \subsubsection{Rotary Filter}
3371
3372 A quite ingenious machine is the rotary filter. It is defined as a simple pic
3373 called \chpp{rotary filter}:
3374 \begin{chpcode}
3375 \pic at (0,0) {rotary filter};
3376 \end{chpcode}
3377 and yields a circle, in which centre there is the anchor, with a sketch of the
3378 liquid feeding system:
3379 \begin{center}
3380 \begin{tikzpicture}
3381 \pic at (-3.3,0) {rotary filter};
3382 \pic at (0,0) {rotary filter};
3383 \measure{(-0.7,-0.8)}{(0.6,-0.8)}{\SI{13}{\mm}}
3384 \measure{(-0.9,0.5)}{(-0.9,-0.6)}{\SI{11}{\mm}}
3385 \measure[above]{(-0.6,0.7)}{(0.6,0.7)}{\SI{12}{\mm}}
3386 \measure[above]{(0.8,0.5)}{(0.8,-0.5)}{\SI{10}{\mm}}
3387 \pic at (0,0) {anchor mark};
3388 \pic (F) at (3.3,0) {rotary filter};
3389 \pic at (F-anchor) {anchor mark};
3390 \pic at (F-bottom) {node mark};
3391 \pic at (F-top) {node mark};
3392 \pic at (F-inlet) {node mark};
3393 \pic at (F-solid outlet) {node mark};
3394 \node[below] at (F-bottom) {\chpn{b}};
3395 \node[above] at (F-top) {\chpn{t}};
3396 \node[left] at (F-inlet) {\chpn{i}};
3397 \node[right] at (F-solid outlet) {\chpn{so}};
3398 \end{tikzpicture}
3399 \end{center}
3400 where measures on the right and on the top refers to the dimension of the unit
3401 without the underlying liquid feeding system.
3402
3403 Besides the common nodes, special nodes are defined for stream connections.
3404 The inlet stream should enter from the \chpn{inlet} node, marked as \chpn{i} in
3405 the figure. Recalling that the separation achieved in such unit is driven by the
3406 vacuum generated in the internal channel, sketched in the symbol as a filled
3407 black circle, the liquid outlet stream should be connected to the \chpn{anchor}
3408 node. Solids form a cake on the outside of the revolving cylinder and are
3409 scraped away by a blade. The special node \chpn{solid outlet}, abbreviated as
3410 \chpn{so} in the figure, is defined to this purpose.
3411
3412 \subsubsection{Deck Screen}
3413
3414 The last two physical separation units defined by \chemplants\ are used to
3415 fractionate granular materials by dimension. One of these units is the deck
3416 screen. It is defined as a simple pic called \chpp{deck screen}:
3417 \begin{chpcode}
3418 \pic at (0,0) {deck screen};
3419 \end{chpcode}
3420 and yields a little rectangle, on which base there is the anchor, with a sketch
3421 of the screening mesh and attached to a triangular funnel:
3422 \begin{center}
3423 \begin{tikzpicture}
3424 \pic at (-4,0) {deck screen};
3425 \pic at (0,0) {deck screen};
3426 \measure{(-1,-1.2)}{(1,-1.2)}{\SI{20}{\mm}}
3427 \measure{(-1.2,0.5)}{(-1.2,-1)}{\SI{15}{\mm}}
3428 \measure[above]{(1.2,0.5)}{(1.2,0)}{\SI{5}{\mm}}
3429 \pic at (0,0) {anchor mark};
3430 \pic (S) at (4,0) {deck screen};
3431 \pic at (S-anchor) {anchor mark};
3432 \pic at (S-undersize outlet) {node mark};
3433 \pic at (S-oversize outlet) {node mark};
3434 \pic at (S-top) {node mark};
3435 \pic at (S-inlet) {node mark};
3436 \node[below] at (S-undersize outlet) {\chpn{uo}};
3437 \node[right] at (S-oversize outlet) {\chpn{oo}};
3438 \node[above] at (S-top) {\chpn{t}};
3439 \node[above] at (S-inlet) {\chpn{i}};
3440 \end{tikzpicture}
3441 \end{center}
3442
3443 Besides the common nodes, special nodes are defined for stream connections. In
3444 the above drawing, \chpn{i} indicate the \chpn{inlet} node, which should be used
3445 to connect the inlet stream. On the bottom right of the unit there is the
3446 \chpn{oversize outlet} node, abbreviated as \chpn{oo} in the figure, while on its
3447 bottom there is the \chpn{undersize outlet} node, abbreviated as \chpn{uo} in the
3448 figure. The former have to be used to connect the leaving oversize stream, while
3449 the latter is for the undersize stream.
3450
3451 \subsubsection{Rotary Screen}
3452
3453 Another common screen is a close friend of the rotary furnace introduced in
3454 subsection~\ref{subsec:heahex}: the rotary screen. It is defined as a simple
3455 pic called \chpp{rotary screen}:
3456 \begin{chpcode}
3457 \pic at (0,0) {rotary screen};
3458 \end{chpcode}
3459 and yields a slanted rectangle, in which centre there is the anchor, with
3460 sketches of the screening mesh and of the revolution movement:
3461 \begin{center}
3462 \begin{tikzpicture}
3463 \pic at (0,0) {rotary screen};
3464 \end{tikzpicture}
3465 \end{center}
3466
3467 No measures or nodes are shown in the above drawing, that is the pure symbol.
3468 Marking measures on a slanted unit like this one is not trivial, thus the
3469 \chpp{rotary screen} is reproduced as rotated here:
3470 \begin{center}
3471 \begin{tikzpicture}
3472 \pic[rotate=10] (S) at (0,0) {rotary screen};
3473 \measure{(-1,-0.8)}{(1,-0.8)}{\SI{20}{\mm}}
3474 \measure{(-1.5,0.4)}{(-1.5,-0.4)}{\SI{8}{\mm}}
3475 \measure[above]{(-0.9,0.6)}{(0,0.6)}{\SI{9}{\mm}}
3476 \measure[above]{(1.7,0.3)}{(1.7,-0.3)}{\SI{6}{\mm}}
3477 \pic at (S-anchor) {anchor mark};
3478 \pic at (S-inlet) {node mark};
3479 \pic at (S-undersize outlet left) {node mark};
3480 \pic at (S-undersize outlet right) {node mark};
3481 \pic at (S-oversize outlet) {node mark};
3482 \node[left] at (S-inlet) {\chpn{i}};
3483 \node[below] at (S-undersize outlet left) {\chpn{uol}};
3484 \node[below] at (S-undersize outlet right) {\chpn{uor}};
3485 \node[right] at (S-oversize outlet) {\chpn{oo}};
3486 \end{tikzpicture}
3487 \end{center}
3488 The measure on the right indicates the height of the rotation drum without the
3489 motion sketch, while the measure on the top concerns nodes.
3490
3491 None of the common nodes are defined for the \chpn{rotary furnace}, but there are
3492 special nodes to be used to connect specific streams. In the above drawing,
3493 \chpn{i} indicates the \chpn{inlet} node, which should be used to connect the
3494 inlet streams. On the right of the unit there is the \chpn{oversize outlet} node,
3495 abbreviated as \chpn{oo} in the figure, while on its bottom there are the
3496 \chpn{undersize outlet left} node and the \chpn{undersize outlet right} node,
3497 abbreviated as \chpn{uol} and \chpn{uor} in the figure. Outlets have to be used
3498 as already outlined discussing the \chpn{deck screen}.
3499
3500 \subsection{Thermal Separators}
3501
3502 After physical separation unit operations, some more complex separation units are
3503 to be introduced, mainly the ones based on thermal energy supply or removal and
3504 aimed at separating special kinds of homogenous mixtures. (Notice that the terms
3505 gas and vapour will be used indiscriminately, although not properly correct.)
3506
3507 \subsubsection{Scrubber}
3508
3509 Another case in which the separation of a ``gas-liquid'' mixture is needed is
3510 the one where a condensable vapour must be knocked out from a gas stream by
3511 condensation, or when liquid droplets are entrained by a gas stream. There are a
3512 lot of possibilities to achieve this operation, but in some particular cases a
3513 simple wash of the gas using water (or some appropriate solvent) will be
3514 enough, thus a scrubber can be used. It is defined as a simple pic called
3515 \chpp{scrubber}:
3516 \begin{chpcode}
3517 \pic at (0,0) {scrubber};
3518 \end{chpcode}
3519 and yields a little tank, in which centre there is the anchor, with a triangular
3520 funnel end:
3521 \begin{center}
3522 \begin{tikzpicture}
3523 \pic at (-2.6,0) {scrubber};
3524 \pic at (0,0) {scrubber};
3525 \measure{(-0.3,-0.95)}{(0.3,-0.95)}{\SI{6}{\mm}}
3526 \measure{(-0.5,0.75)}{(-0.5,-0.75)}{\SI{15}{\mm}}
3527 \measure[above]{(0.5,0.55)}{(0.5,0)}{\SI{5.5}{\mm}}
3528 \measure[above]{(1.0,0)}{(1.0,-0.25)}{\SI{2.5}{\mm}}
3529 \pic at (0,0) {anchor mark};
3530 \pic (S) at (2.6,0) {scrubber};
3531 \pic at (S-anchor) {anchor mark};
3532 \pic at (S-gas inlet left) {node mark};
3533 \pic at (S-gas inlet right) {node mark};
3534 \pic at (S-liquid inlet left) {node mark};
3535 \pic at (S-liquid inlet right) {node mark};
3536 \pic at (S-gas outlet) {node mark};
3537 \pic at (S-liquid outlet) {node mark};
3538 \node[left] at (S-gas inlet left) {\chpn{gil}};
3539 \node[right] at (S-gas inlet right) {\chpn{gir}};
3540 \node[left] at (S-liquid inlet left) {\chpn{lil}};
3541 \node[right] at (S-liquid inlet right) {\chpn{lir}};
3542 \node[above] at (S-gas outlet) {\chpn{go}};
3543 \node[below] at (S-liquid outlet) {\chpn{lo}};
3544 \end{tikzpicture}
3545 \end{center}
3546 where the measure on the top right indicates the distance from the middle of the
3547 tank to the point where the curvature begins, while the measure on the bottom
3548 right indicates the distance from the middle of the tank to the point where the
3549 funnel begins.
3550
3551 None of the common nodes are defined for the \chpp{scrubber}, but there are
3552 special nodes to be used to connect specific streams. In the above drawing,
3553 \chpn{gil} and \chpn{gir} indicate respectively the \chpn{gas inlet left} node
3554 and the \chpn{gas inlet right} node, which should be used to connect the inlet
3555 gas stream. In the same way \chpn{lil} and \chpn{lir} indicate respectively the
3556 \chpn{liquid inlet left} node and the \chpn{liquid inlet right} node, which
3557 should be used to connect the inlet liquid stream. On the top of the unit there
3558 is the \chpn{gas outlet} node, abbreviated as \chpn{go} in the figure, while on
3559 its bottom there is the \chpn{liquid outlet} node, abbreviated as \chpn{lo} in
3560 the figure. Names should be self-explicative.
3561
3562 As a final remark, it should be noticed that the \chpp{scrubber} can be used
3563 also to represent a barometric condenser: it is sufficient to place it high
3564 enough above the ground reference and to draw a long vertical stream coming
3565 out from the \chpn{liquid outlet} to indicate the drain pipe.
3566
3567 \subsubsection{Kettle Boiler}
3568
3569 The scrubber is the first example of separation unit based on thermal energy
3570 exchange. In that case, the transfer is achieved by direct contact of the inlet
3571 gas stream using a liquid, but it is more common to use non-contact systems in
3572 which a pure energy transfer is achieved. One of the simplest, this time
3573 useful to concentrate a solution of a non-volatile solute (or to simply
3574 partially boil a liquid), is the kettle boiler. It is defined as a simple pic
3575 called \chpp{kettle boiler}:
3576 \begin{chpcode}
3577 \pic at (0,0) {kettle boiler};
3578 \end{chpcode}
3579 and yields a strage symbol which recalls a tube bundle heath exchanger with an
3580 enlarged room for the vapour:
3581 \begin{center}
3582 \begin{tikzpicture}
3583 \pic at (-3.6,0) {kettle boiler};
3584 % \pic at (0,0) {kettle boiler};
3585 % \measure{(-1.0,-0.5)}{(1.0,-0.5)}{\SI{20}{\mm}}
3586 % \measure{(-1.2,0.7)}{(-1.2,-0.3)}{\SI{10}{\mm}}
3587 % \pic at (0,0) {anchor mark};
3588 % \pic (E) at (3.6,0) {kettle boiler};
3589 % \pic at (E-anchor) {anchor mark};
3590 % \pic at (E-right) {node mark};
3591 % \pic at (E-inlet) {node mark};
3592 % \pic at (E-gas outlet) {node mark};
3593 % \pic at (E-liquid outlet) {node mark};
3594 % \pic at (E-head left) {node mark};
3595 % \pic at (E-head bottom) {node mark};
3596 % \pic at (E-head top) {node mark};
3597 % \node[right] at (E-right) {\chpn{r}};
3598 % \node[below] at (E-inlet) {\chpn{i}};
3599 % \node[above] at (E-gas outlet) {\chpn{go}};
3600 % \node[below] at (E-liquid outlet) {\chpn{lo}};
3601 % \node[left] at (E-head left) {\chpn{hl}};
3602 % \node[below] at (E-head bottom) {\chpn{hb}};
3603 % \node[above] at (E-head top) {\chpn{ht}};
3604 \end{tikzpicture}
3605 \end{center}
3606
3607 Only the pure symbol has been shown because, just like for the already
3608 discussed \chpp{tube bundle heat exchanger}, there are a lot of measures and
3609 custom nodes to show:
3610 \begin{center}
3611 \begin{tikzpicture}
3612 \pic[scale=2] (E) at (0,0) {kettle boiler};
3613 \pic at (E-anchor) {anchor mark};
3614 \pic at (E-left) {node mark};
3615 \pic at (E-right) {node mark};
3616 \pic at (E-inlet) {node mark};
3617 \pic at (E-gas outlet) {node mark};
3618 \pic at (E-liquid outlet) {node mark};
3619 \pic at (E-head bottom) {node mark};
3620 \pic at (E-head top) {node mark};
3621 \node[left] at (E-left) {\chpn{l}};
3622 \node[right] at (E-right) {\chpn{r}};
3623 \node[below] at (E-inlet) {\chpn{i}};
3624 \node[above] at (E-gas outlet) {\chpn{go}};
3625 \node[below] at (E-liquid outlet) {\chpn{lo}};
3626 \node[below] at (E-head bottom) {\chpn{hb}};
3627 \node[above] at (E-head top) {\chpn{ht}};
3628 \measure{(-2.0,-1.8)}{(2.0,-1.8)}{\SI{20}{\mm}}
3629 \measure{(-1.6,-1.3)}{(0,-1.3)}{\SI{8}{\mm}}
3630 \measure{(0,-1.3)}{(1.4,-1.3)}{\SI{7}{\mm}}
3631 \measure{(-3.2,1.4)}{(-3.2,-0.6)}{\SI{10}{\mm}}
3632 \measure{(-2.7,0.6)}{(-2.7,-0.6)}{\SI{6}{\mm}}
3633 \measure[above]{(-0,2.1)}{(0.4,2.1)}{\SI{2}{\mm}}
3634 \measure[above]{(2.7,0.4)}{(2.7,0)}{\SI{2}{\mm}}
3635 \measure[above]{(3.2,0)}{(3.2,-0.6)}{\SI{3}{\mm}}
3636 \measure[above]{(3.2,1.4)}{(3.2,0)}{\SI{7}{\mm}}
3637 \end{tikzpicture}
3638 \end{center}
3639 Again, the symbol is bigger, but measures are referred to the one with the
3640 right dimensions.
3641
3642 Only the \chpn{left} and \chpn{right} nodes are defined among the common ones.
3643 The others are aimed to identify some remarkable points of the two main sections
3644 of the \chpp{kettle boiler}: the head of the tube bundle and the shell of the
3645 boiling chamber. Two nodes are defined for the head: the \chpn{head bottom}
3646 node, shown above as \chpn{hb}, and the \chpn{head top} node, shown above as
3647 \chpn{ht}. Here the heating fluid has to be connected. Three more nodes are
3648 defined for the boiling chamber: the \chpn{inlet}, shown above as \chpn{i}, the
3649 \chpn{gas outlet}, shown above as \chpn{go}, and the \chpn{liquid outlet}, shown
3650 above as \chpn{lo}. Their usage should be clear.
3651
3652 The kettle boiler is the simplest machine belonging to the family of
3653 evaporators. These units, like the name says, are meant to vaporise a liquid, so
3654 they are a special kind of heat exchangers. Anyway, they are described together
3655 with the separators because they are mainly used to concentrate solutions of
3656 non-volatile or poorly-volatile solutes, hence ``separating'' a part of the
3657 solvent from the solution.
3658
3659 \subsubsection{Tube Bundle Evaporator}
3660
3661 A slightly more complex evaporator, which indeed works in the same way of a
3662 kettle boiler, is the tube bundle evaporator. It is defined as a simple pic
3663 called \chpp{tube bundle evaporator}:
3664 \begin{chpcode}
3665 \pic at (0,0) {tube bundle evaporator};
3666 \end{chpcode}
3667 and yields a tank, in which centre there is the anchor, with sketches of the tube
3668 bundle and of the anti-entrainment system on its top:
3669 \begin{center}
3670 \begin{tikzpicture}
3671 \pic at (-3.6,0) {tube bundle evaporator};
3672 \pic at (0,0) {tube bundle evaporator};
3673 \measure{(-0.85,-1.7)}{(0.85,-1.7)}{\SI{17}{\mm}}
3674 \measure{(-1.0,1.5)}{(-1.0,-1.5)}{\SI{30}{\mm}}
3675 \measure[above]{(-0.8,1.7)}{(0.8,1.7)}{\SI{16}{\mm}}
3676 \measure[above]{(1.5,1.032)}{(1.5,0)}{\SI{10.32}{\mm}}
3677 \measure[above]{(1.0,0)}{(1.0,-0.5)}{\SI{5}{\mm}}
3678 \pic at (0,0) {anchor mark};
3679 \pic (E) at (3.6,0) {tube bundle evaporator};
3680 \pic at (E-anchor) {anchor mark};
3681 \pic at (E-bottom left) {node mark};
3682 \pic at (E-bottom right) {node mark};
3683 \pic at (E-top right) {node mark};
3684 \pic at (E-top left) {node mark};
3685 \pic at (E-inlet left) {node mark};
3686 \pic at (E-inlet right) {node mark};
3687 \pic at (E-gas outlet) {node mark};
3688 \pic at (E-liquid outlet) {node mark};
3689 \pic at (E-pipes left) {node mark};
3690 \pic at (E-pipes right) {node mark};
3691 \node[left] at (E-bottom left) {\chpn{bl}};
3692 \node[right] at (E-bottom right) {\chpn{br}};
3693 \node[right] at (E-top right) {\chpn{tr}};
3694 \node[left] at (E-top left) {\chpn{tl}};
3695 \node[left] at (E-inlet left) {\chpn{il}};
3696 \node[right] at (E-inlet right) {\chpn{ir}};
3697 \node[above] at (E-gas outlet) {\chpn{go}};
3698 \node[below] at (E-liquid outlet) {\chpn{lo}};
3699 \node[left] at (E-pipes left) {\chpn{pl}};
3700 \node[right] at (E-pipes right) {\chpn{pr}};
3701 \end{tikzpicture}
3702 \end{center}
3703 where the measure on bottom indicates the total width of the unit, the measure on
3704 top indicates the width of the tank, the measure on the right indicates the
3705 distance from the middle of the tank to the point where the curvature begins and
3706 the measure on bottom right refers to the distance from the anchor point to the
3707 middle of the pipe bundle.
3708
3709 Some of the special nodes defined should be clear at this point, at least
3710 \chpn{inlet left}, \chpn{inlet right}, \chpn{gas outlet} and
3711 \chpn{liquid outlet}. Two more special nodes are defined for this pic:
3712 \chpn{pipes left}, abbreviated above as \chpn{pl}, and \chpn{pipes right},
3713 abbreviated above as \chpn{pr}.
3714
3715 \subsubsection{Basket Evaporator and Climbing Film Evaporator}
3716
3717 A different evaporator is the one that uses the basket system. In this case the
3718 heating fluid passes through the shell of the tube bundle, while in the former
3719 one it passes through the pipes. It is defined as a simple pic called
3720 \chpp{basket evaporator}:
3721 \begin{chpcode}
3722 \pic at (0,0) {basket evaporator};
3723 \end{chpcode}
3724 and yields a tank, in which centre there is the anchor, with sketches of the
3725 tube bundle and of the anti-entrainment system on its top:
3726 \begin{center}
3727 \begin{tikzpicture}
3728 \pic at (-3.6,0) {basket evaporator};
3729 % \pic at (0,0) {basket evaporator};
3730 % \measure{(-0.85,-1.7)}{(0.85,-1.7)}{\SI{17}{\mm}}
3731 % \measure{(-1.0,1.5)}{(-1.0,-1.5)}{\SI{30}{\mm}}
3732 % \measure[above]{(-0.8,1.7)}{(0.8,1.7)}{\SI{16}{\mm}}
3733 % \measure[above]{(1.5,1.032)}{(1.5,0)}{\SI{10.32}{\mm}}
3734 % \measure[above]{(1.0,0)}{(1.0,-0.5)}{\SI{5}{\mm}}
3735 % \pic at (0,0) {anchor mark};
3736 % \pic (E) at (3.6,0) {basket evaporator};
3737 % \pic at (E-anchor) {anchor mark};
3738 % \pic at (E-bottom left) {node mark};
3739 % \pic at (E-bottom right) {node mark};
3740 % \pic at (E-top right) {node mark};
3741 % \pic at (E-top left) {node mark};
3742 % \pic at (E-inlet left) {node mark};
3743 % \pic at (E-inlet right) {node mark};
3744 % \pic at (E-gas outlet) {node mark};
3745 % \pic at (E-liquid outlet) {node mark};
3746 % \pic at (E-shell top left) {node mark};
3747 % \pic at (E-shell left) {node mark};
3748 % \pic at (E-shell bottom left) {node mark};
3749 % \pic at (E-shell right) {node mark};
3750 % \pic at (E-shell bottom right) {node mark};
3751 % \pic at (E-shell top right) {node mark};
3752 % \node[left] at (E-bottom left) {\chpn{bl}};
3753 % \node[right] at (E-bottom right) {\chpn{br}};
3754 % \node[right] at (E-top right) {\chpn{tr}};
3755 % \node[left] at (E-top left) {\chpn{tl}};
3756 % \node[above left] at (E-inlet left) {\chpn{il}};
3757 % \node[above right] at (E-inlet right) {\chpn{ir}};
3758 % \node[above] at (E-gas outlet) {\chpn{go}};
3759 % \node[below] at (E-liquid outlet) {\chpn{lo}};
3760 % \node[left] at (E-shell top left) {\chpn{stl}};
3761 % \node[left] at (E-shell left) {\chpn{sl}};
3762 % \node[left] at (E-shell bottom left) {\chpn{sbl}};
3763 % \node[right] at (E-shell bottom right) {\chpn{sbr}};
3764 % \node[right] at (E-shell right) {\chpn{sr}};
3765 % \node[right] at (E-shell top right) {\chpn{str}};
3766 \end{tikzpicture}
3767 \end{center}
3768
3769 The \chpp{basket evaporator} has a pretty complex nodes structure, so it will be
3770 described later on, together with a unit that is defined more or less with the
3771 same nodes: the climbing film evaporator. It is defined as a simple pic called
3772 \chpp{climbing film evaporator}:
3773 \begin{chpcode}
3774 \pic at (0,0) {climbing film evaporator};
3775 \end{chpcode}
3776 and yields a strange shape, , in which centre there is the anchor, with sketches
3777 of the tube bundle, of the anti-entrainment system on its top and of the internal
3778 liquid recirculation path:
3779 \begin{center}
3780 \begin{tikzpicture}
3781 \pic at (-3.6,0) {climbing film evaporator};
3782 % \pic at (0,0) {climbing film evaporator};
3783 % \measure{(-0.4,-1.7)}{(0.4,-1.7)}{\SI{8}{\mm}}
3784 % \measure{(-1.8,1.5)}{(-1.8,-1.5)}{\SI{30}{\mm}}
3785 % \measure{(-1.3,0.6)}{(-1.3,0)}{\SI{6}{\mm}}
3786 % \measure{(-0.8,0.2)}{(-0.8,0)}{\SI{2}{\mm}}
3787 % \measure[above]{(-0.8,1.7)}{(0.8,1.7)}{\SI{16}{\mm}}
3788 % \measure[above]{(1.1,0)}{(1.1,-1.1)}{\SI{11}{\mm}}
3789 % \measure[above]{(0.6,0)}{(0.6,-0.45)}{\SI{4.5}{\mm}}
3790 % \pic at (0,0) {anchor mark};
3791 % \pic (E) at (3.6,0) {climbing film evaporator};
3792 % \pic at (E-anchor) {anchor mark};
3793 % \pic at (E-top right) {node mark};
3794 % \pic at (E-top left) {node mark};
3795 % \pic at (E-inlet left) {node mark};
3796 % \pic at (E-inlet right) {node mark};
3797 % \pic at (E-gas outlet) {node mark};
3798 % \pic at (E-liquid outlet) {node mark};
3799 % \pic at (E-shell top left) {node mark};
3800 % \pic at (E-shell left) {node mark};
3801 % \pic at (E-shell bottom left) {node mark};
3802 % \pic at (E-shell right) {node mark};
3803 % \pic at (E-shell bottom right) {node mark};
3804 % \pic at (E-shell top right) {node mark};
3805 % \node[right] at (E-top right) {\chpn{tr}};
3806 % \node[left] at (E-top left) {\chpn{tl}};
3807 % \node[left] at (E-inlet left) {\chpn{il}};
3808 % \node[right] at (E-inlet right) {\chpn{ir}};
3809 % \node[above] at (E-gas outlet) {\chpn{go}};
3810 % \node[below] at (E-liquid outlet) {\chpn{lo}};
3811 % \node[left=1mm] at (E-shell top left) {\chpn{stl}};
3812 % \node[left=1mm] at (E-shell left) {\chpn{sl}};
3813 % \node[left=1mm] at (E-shell bottom left) {\chpn{sbl}};
3814 % \node[right] at (E-shell bottom right) {\chpn{sbr}};
3815 % \node[right] at (E-shell right) {\chpn{sr}};
3816 % \node[right] at (E-shell top right) {\chpn{str}};
3817 \end{tikzpicture}
3818 \end{center}
3819
3820 In order to better understand, larger versions of both the
3821 \chpp{basket evaporator} and the \chpp{climbing film evaporator} are shown
3822 below with full markings of measures (which values, as usual, refer to the
3823 dimension of real units) and nodes:
3824 \begin{center}
3825 \begin{tikzpicture}
3826 \pic[scale=2] (EB) at (0,0) {basket evaporator};
3827 \pic at (EB-anchor) {anchor mark};
3828 \pic at (EB-bottom left) {node mark};
3829 \pic at (EB-bottom right) {node mark};
3830 \pic at (EB-top right) {node mark};
3831 \pic at (EB-top left) {node mark};
3832 \pic at (EB-inlet left) {node mark};
3833 \pic at (EB-inlet right) {node mark};
3834 \pic at (EB-gas outlet) {node mark};
3835 \pic at (EB-liquid outlet) {node mark};
3836 \pic at (EB-shell top left) {node mark};
3837 \pic at (EB-shell left) {node mark};
3838 \pic at (EB-shell bottom left) {node mark};
3839 \pic at (EB-shell right) {node mark};
3840 \pic at (EB-shell bottom right) {node mark};
3841 \pic at (EB-shell top right) {node mark};
3842 \node[left] at (EB-bottom left) {\chpn{bl}};
3843 \node[right] at (EB-bottom right) {\chpn{br}};
3844 \node[right] at (EB-top right) {\chpn{tr}};
3845 \node[left] at (EB-top left) {\chpn{tl}};
3846 \node[left] at (EB-inlet left) {\chpn{il}};
3847 \node[right] at (EB-inlet right) {\chpn{ir}};
3848 \node[above] at (EB-gas outlet) {\chpn{go}};
3849 \node[below] at (EB-liquid outlet) {\chpn{lo}};
3850 \node[left] at (EB-shell top left) {\chpn{stl}};
3851 \node[left] at (EB-shell left) {\chpn{sl}};
3852 \node[left] at (EB-shell bottom left) {\chpn{sbl}};
3853 \node[right] at (EB-shell bottom right) {\chpn{sbr}};
3854 \node[right] at (EB-shell right) {\chpn{sr}};
3855 \node[right] at (EB-shell top right) {\chpn{str}};
3856 \measure{(-1.7,-3.7)}{(1.7,-3.7)}{\SI{17}{\mm}}
3857 \measure{(-2.9,3.0)}{(-2.9,-3.0)}{\SI{30}{\mm}}
3858 \measure{(-2.4,2.064)}{(-2.4,0)}{\SI{10.32}{\mm}}
3859 \measure[above]{(-1.6,3.7)}{(1.6,3.7)}{\SI{16}{\mm}}
3860 \measure[above]{(3.4,0)}{(3.4,-1.6)}{\SI{8}{\mm}}
3861 \measure[above]{(2.9,0)}{(2.9,-1.0)}{\SI{5}{\mm}}
3862 \measure[above]{(2.4,0)}{(2.4,-0.4)}{\SI{2}{\mm}}
3863 \draw[dashed] (4,5) -- (4,-5);
3864 \begin{scope}[xshift=7.5cm]
3865 \pic[scale=2] (E) at (0,0) {climbing film evaporator};
3866 \pic at (E-anchor) {anchor mark};
3867 \pic at (E-top right) {node mark};
3868 \pic at (E-top left) {node mark};
3869 \pic at (E-inlet left) {node mark};
3870 \pic at (E-inlet right) {node mark};
3871 \pic at (E-gas outlet) {node mark};
3872 \pic at (E-liquid outlet) {node mark};
3873 \pic at (E-shell top left) {node mark};
3874 \pic at (E-shell left) {node mark};
3875 \pic at (E-shell bottom left) {node mark};
3876 \pic at (E-shell right) {node mark};
3877 \pic at (E-shell bottom right) {node mark};
3878 \pic at (E-shell top right) {node mark};
3879 \node[right] at (E-top right) {\chpn{tr}};
3880 \node[left] at (E-top left) {\chpn{tl}};
3881 \node[left] at (E-inlet left) {\chpn{il}};
3882 \node[right] at (E-inlet right) {\chpn{ir}};
3883 \node[above] at (E-gas outlet) {\chpn{go}};
3884 \node[below] at (E-liquid outlet) {\chpn{lo}};
3885 \node[left=3mm] at (E-shell top left) {\chpn{stl}};
3886 \node[left=3mm] at (E-shell left) {\chpn{sl}};
3887 \node[left=3mm] at (E-shell bottom left) {\chpn{sbl}};
3888 \node[right] at (E-shell bottom right) {\chpn{sbr}};
3889 \node[right] at (E-shell right) {\chpn{sr}};
3890 \node[right] at (E-shell top right) {\chpn{str}};
3891 \measure{(-0.8,-3.7)}{(0.8,-3.7)}{\SI{8}{\mm}}
3892 \measure{(-2.8,3.0)}{(-2.8,-3.0)}{\SI{30}{\mm}}
3893 \measure{(-2.3,1.2)}{(-2.3,0)}{\SI{6}{\mm}}
3894 \measure[above]{(-1.6,3.7)}{(1.6,3.7)}{\SI{16}{\mm}}
3895 \measure[above]{(2.6,0)}{(2.6,-2.2)}{\SI{11}{\mm}}
3896 \measure[above]{(2.1,0)}{(2.1,-0.9)}{\SI{4.5}{\mm}}
3897 \measure[above]{(1.6,0.4)}{(1.6,0)}{\SI{2}{\mm}}
3898 \end{scope}
3899 \end{tikzpicture}
3900 \end{center}
3901
3902 Measures should be clear enough. The only remark is that the measure on the
3903 bottom of the \chpp{climbing film evaporator} refers to the width of the tube
3904 bundle part of the unit without taking into account the little protruding
3905 lines. Always for this unit, labels of the three nodes on the lower left part
3906 are far from their marks only to avoid overlaps with the internal recirculation
3907 path.
3908
3909 For both units there are two of the common nodes: \chpn{top left} and
3910 \chpn{top right}, while for the \chpp{basket evaporator} there are also
3911 \chpn{bottom left} and \chpn{bottom right}. Other nodes are common to both
3912 units. Two main inlet nodes: \chpn{inlet left} and \chpn{inlet right},
3913 abbreviated above as \chpn{il} and \chpn{ir} respectively. Two outlet nodes:
3914 \chpn{gas outlet} and \chpn{liquid outlet}, abbreviated above as \chpn{go} and
3915 \chpn{lo} respectively. The remaining nodes are to be used to connect the
3916 heating fluid to the shell of the pipe bundle:
3917 \begin{itemize}
3918 \item the \chpn{shell top left} node is abbreviated in the drawing as
3919 \chpn{stl};
3920 \item the \chpn{shell left} node is abbreviated in the drawing as
3921 \chpn{sl};
3922 \item the \chpn{shell bottom left} node is abbreviated in the drawing as
3923 \chpn{sbl};
3924 \item the \chpn{shell bottom right} node is abbreviated in the drawing as
3925 \chpn{sbr};
3926 \item the \chpn{shell right} node is abbreviated in the drawing as
3927 \chpn{sr};
3928 \item the \chpn{shell top right} node is abbreviated in the drawing as
3929 \chpn{str}.
3930 \end{itemize}
3931 Just like for the \chpp{tube bundle heat exchanger}, so many nodes are defined
3932 for the shell to allow the representation to be as flexible as possibile, in
3933 fact flow configuration can have a great impact on the evaporator performances
3934 and it is often useful to represent it also graphically.
3935
3936 As a last remark on these two units, often also the \chpp{basket evaporator} has
3937 an internal recirculation path, but this is not marked on the default symbol. If
3938 one wants to show it, this should be done drawing an arrow of \verb|thick|
3939 thickness and with a \verb|stealth| tip from the \chpn{bottom right} node to the
3940 \chpn{inlet right} node (or the same using nodes on the left).
3941
3942 \subsubsection{Stirred Crystallizer}
3943
3944 The last kind of separator defined by \chemplants\ is often used in conjunction
3945 with an evaporator and can push the operation of concentration far enough to
3946 achieve the saturation of the solution, causing consequently the precipitation
3947 of solids. A simple non-thermal crystallizer is a stirred tank with a
3948 cone-shaped bottom useful to collect solids in the direction of the outlet
3949 pipe. It is defined as a simple pic called \chpp{stirred crystallizer}:
3950 \begin{chpcode}
3951 \pic at (0,0) {stirred crystallizer};
3952 \end{chpcode}
3953 and yields a vertical tank, in which centre there is the anchor, with the sketch
3954 of a mechanical stirrer:
3955 \begin{center}
3956 \begin{tikzpicture}
3957 \pic at (-3.6,0) {stirred crystallizer};
3958 \pic at (0,0) {stirred crystallizer};
3959 \measure{(-0.8,-1.7)}{(0.8,-1.7)}{\SI{16}{\mm}}
3960 \measure{(-1.0,1.5)}{(-1.0,-1.5)}{\SI{30}{\mm}}
3961 \measure[above]{(0,1.7)}{(0.5,1.7)}{\SI{5}{\mm}}
3962 \measure[above]{(1.5,0)}{(1.5,-1.032)}{\SI{10.32}{\mm}}
3963 \measure[above]{(1.0,1.5)}{(1.0,0)}{\SI{15}{\mm}}
3964 \pic at (0,0) {anchor mark};
3965 \pic (C) at (3.6,0) {stirred crystallizer};
3966 \pic at (C-anchor) {anchor mark};
3967 \pic at (C-bottom left) {node mark};
3968 \pic at (C-bottom right) {node mark};
3969 \pic at (C-top right) {node mark};
3970 \pic at (C-top left) {node mark};
3971 \pic at (C-inlet left) {node mark};
3972 \pic at (C-inlet right) {node mark};
3973 \pic at (C-liquid outlet) {node mark};
3974 \pic at (C-solid outlet) {node mark};
3975 \pic at (C-shaft) {node mark};
3976 \node[left] at (C-bottom left) {\chpn{bl}};
3977 \node[right] at (C-bottom right) {\chpn{br}};
3978 \node[right] at (C-top right) {\chpn{tr}};
3979 \node[left] at (C-top left) {\chpn{tl}};
3980 \node[left] at (C-inlet left) {\chpn{il}};
3981 \node[right] at (C-inlet right) {\chpn{ir}};
3982 \node[above] at (C-liquid outlet) {\chpn{lo}};
3983 \node[below] at (C-solid outlet) {\chpn{so}};
3984 \node[above] at (C-shaft) {\chpn{s}};
3985 \end{tikzpicture}
3986 \end{center}
3987 where the measure on the bottom-right indicates the distance from the middle of
3988 the tank to the point where the cone begins, while measures on the top right
3989 indicate the distances from the stirrer end point to the anchor point in the
3990 middle of the tank.
3991
3992 The end of the stirrer outside the tank is also identified by a special
3993 coordinate node, indicated in the above drawing as \chpn{s} and called
3994 \chpn{shaft}. It should be evident that this is not a point defined to connect
3995 streams, but it may be useful for some kind of control systems. In addition
3996 to this node, also the \chpn{inlet left} node and \chpn{inlet right} node are
3997 defined, shown above as \chpn{il} and \chpn{ir} respectively, and finally the
3998 \chpn{liquid outlet} node and \chpn{solid outlet} node, shown above as \chpn{lo}
3999 and \chpn{so} respectively.
4000
4001 \subsubsection{Tube Bundle Crystallizer}
4002
4003 A stirred crystallizer can be used to sketch diagrams of crystallization
4004 operation held in multiple units, such as a cooling in a heat exchanger and the
4005 following crystallization in a proper equipment. However, there is also a simple
4006 all-in-one machine that realizes heath exchange and crystallization at the same
4007 time. It is defined as a simple pic called \chpp{tube bundle crystallizer}:
4008 \begin{chpcode}
4009 \pic at (0,0) {tube bundle crystallizer};
4010 \end{chpcode}
4011 and yields a tank, in which centre there is the anchor, with sketches of the tube
4012 bundle:
4013 \begin{center}
4014 \begin{tikzpicture}
4015 \pic at (-3.6,0) {tube bundle crystallizer};
4016 \pic at (0,0) {tube bundle crystallizer};
4017 \measure{(-0.85,-1.7)}{(0.85,-1.7)}{\SI{17}{\mm}}
4018 \measure{(-1.0,1.5)}{(-1.0,-1.5)}{\SI{30}{\mm}}
4019 \measure[above]{(-0.8,1.7)}{(0.8,1.7)}{\SI{16}{\mm}}
4020 \measure[above]{(1.5,1.032)}{(1.5,0)}{\SI{10.32}{\mm}}
4021 \measure[above]{(1.0,0)}{(1.0,-0.5)}{\SI{5}{\mm}}
4022 \pic at (0,0) {anchor mark};
4023 \pic (C) at (3.6,0) {tube bundle crystallizer};
4024 \pic at (C-anchor) {anchor mark};
4025 \pic at (C-bottom left) {node mark};
4026 \pic at (C-bottom right) {node mark};
4027 \pic at (C-top right) {node mark};
4028 \pic at (C-top left) {node mark};
4029 \pic at (C-inlet left) {node mark};
4030 \pic at (C-inlet right) {node mark};
4031 \pic at (C-liquid outlet) {node mark};
4032 \pic at (C-solid outlet) {node mark};
4033 \pic at (C-pipes left) {node mark};
4034 \pic at (C-pipes right) {node mark};
4035 \node[left] at (C-bottom left) {\chpn{bl}};
4036 \node[right] at (C-bottom right) {\chpn{br}};
4037 \node[right] at (C-top right) {\chpn{tr}};
4038 \node[left] at (C-top left) {\chpn{tl}};
4039 \node[left] at (C-inlet left) {\chpn{il}};
4040 \node[right] at (C-inlet right) {\chpn{ir}};
4041 \node[above] at (C-liquid outlet) {\chpn{lo}};
4042 \node[below] at (C-solid outlet) {\chpn{so}};
4043 \node[left] at (C-pipes left) {\chpn{pl}};
4044 \node[right] at (C-pipes right) {\chpn{pr}};
4045 \end{tikzpicture}
4046 \end{center}
4047 where the measure on bottom indicates the total width of the unit, the measure on
4048 top indicates the width of the tank, the measure on the right indicates the
4049 distance from the middle of the tank to the point where the curvature begins and
4050 the measure on bottom right refers to the distance from the anchor point to the
4051 middle of the pipe bundle.
4052
4053 Some of the special nodes defined should be clear at this point, at least
4054 \chpn{inlet left}, \chpn{inlet right}, \chpn{liquid outlet} and
4055 \chpn{solid outlet}. Two more special nodes are defined for this pic:
4056 \chpn{pipes left}, abbreviated above as \chpn{pl}, and \chpn{pipes right},
4057 abbreviated above as \chpn{pr}.
4058
4059 \subsection{Columns}
4060
4061 A column is the most characteristic piece of equipment of the chemical industry
4062 and is a vertical pipe with large diameter featured by various types of
4063 internals; it can be used in a wide set of applications. It is defined as a pic
4064 with arguments called \chpp{column}:
4065 \begin{chpcode}
4066 \pic at (0,0) {column=empty};
4067 \end{chpcode}
4068 and yields a vertical column anchored in its centre:
4069 \begin{center}
4070 \begin{tikzpicture}
4071 \pic at (-3,0) {column=empty};
4072 \pic at (0,0) {column=empty};
4073 \measure{(-0.5,-3.2)}{(0.5,-3.2)}{\SI{10}{\mm}}
4074 \measure{(-0.7,3)}{(-0.7,-3)}{\SI{60}{\mm}}
4075 \measure[above]{(0.7,2.6)}{(0.7,0)}{\SI{26}{\mm}}
4076 \pic at (0,0) {anchor mark};
4077 \pic (C) at (3,0) {column=empty};
4078 \pic at (C-anchor) {anchor mark};
4079 \pic at (C-left) {node mark};
4080 \pic at (C-bottom left) {node mark};
4081 \pic at (C-bottom) {node mark};
4082 \pic at (C-bottom right) {node mark};
4083 \pic at (C-right) {node mark};
4084 \pic at (C-top right) {node mark};
4085 \pic at (C-top) {node mark};
4086 \pic at (C-top left) {node mark};
4087 \node[left] at (C-left) {\chpn{l}};
4088 \node[left] at (C-bottom left) {\chpn{bl}};
4089 \node[below] at (C-bottom) {\chpn{b}};
4090 \node[right] at (C-bottom right) {\chpn{br}};
4091 \node[right] at (C-right) {\chpn{r}};
4092 \node[right] at (C-top right) {\chpn{tr}};
4093 \node[above] at (C-top) {\chpn{t}};
4094 \node[left] at (C-top left) {\chpn{tl}};
4095 \end{tikzpicture}
4096 \end{center}
4097 where the measure on the right indicates the distance from the middle of the
4098 column to the points where the nodes are placed. It should be noticed that this
4099 point is not where the curvature begins, like in tank-shaped units. The curvature
4100 begins \SI{27}{\mm} above the middle of the unit (in my opinion, a better
4101 graphical effect is obtained with a stream placed slightly below this point).
4102 Similar considerations apply the similar nodes on the bottom.
4103
4104 Four kinds of columns are defined: \chpa{empty}, \chpa{trayed}, \chpa{packed}
4105 and \chpa{packed double}, which represent respectively an empty column, a column
4106 with trays, a column with a single packed zone and a column with two packed
4107 zones (useful to represent distillation in packed columns). These keys should be
4108 used as arguments of the \chpp{column} pic. The code:
4109 \begin{chpcode}
4110 \pic at (0,0) {column=empty};
4111 \pic at (3,0) {column=trayed};
4112 \pic at (6,0) {column=packed};
4113 \pic at (9,0) {column=packed double};
4114 \end{chpcode}
4115 yields:
4116 \begin{center}
4117 \begin{tikzpicture}
4118 \pic at (0,0) {column=empty};
4119 \pic at (3,0) {column=trayed};
4120 \pic at (6,0) {column=packed};
4121 \pic at (9,0) {column=packed double};
4122 \end{tikzpicture}
4123 \end{center}
4124 All of the columns have the same dimensions and the anchor mark is always at the
4125 centre of the pic (they are all defined as variants of the \chpa{empty} column).
4126 Finally, it is useful to remember that trays (or packings) start \SI{24}{\mm}
4127 above the middle of the column and are spaced \SI{2}{\mm} each.
4128
4129 \subsection{Reactors}
4130
4131 Besides columns, reactors are the other most characteristic equipments of the
4132 industrial chemistry, for which is essential to realize a reaction, but on a
4133 very large scale. The variety of reactors available in the industry is
4134 wide-ranged in every aspect: shape, phases within the reactor, operating
4135 principles, stream configurations and so on. For this reason, it is impossibile
4136 to summarise all of the existing reactors using one symbol only, but it is anyway
4137 possible to represent the most common ones in terms of operating principled,
4138 which is what is done by \chemplants.
4139
4140 \subsubsection{Stirred Reactor}
4141
4142 One of the most common representation of a reactor used in chemical engineering
4143 is a simple vessel provided with a stirrer sketch, which is the core of the
4144 perfectly mixed reactor models. This kind of symbol is defined as a simple pic
4145 called \chpp{stirred reactor}:
4146 \begin{chpcode}
4147 \pic at (0,0) {stirred reactor};
4148 \end{chpcode}
4149 and yields a vertical, in which centre there is the anchor, with the sketch of a
4150 mechanical stirrer:
4151 \begin{center}
4152 \begin{tikzpicture}
4153 \pic at (-3.6,0) {stirred reactor};
4154 \pic at (0,0) {stirred reactor};
4155 \measure{(-0.8,-1.4)}{(0.8,-1.4)}{\SI{16}{\mm}}
4156 \measure{(-1.0,1.2)}{(-1.0,-1.2)}{\SI{24}{\mm}}
4157 \measure{(-1.5,1.5)}{(-1.5,-1.2)}{\SI{27}{\mm}}
4158 \measure[above]{(0,1.7)}{(0.5,1.7)}{\SI{5}{\mm}}
4159 \measure[above]{(1.0,1.5)}{(1.0,0)}{\SI{15}{\mm}}
4160 \measure[above]{(1.5,0)}{(1.5,-0.732)}{\SI{7.32}{\mm}}
4161 \pic at (0,0) {anchor mark};
4162 \pic (R) at (3.6,0) {stirred reactor};
4163 \pic at (R-anchor) {anchor mark};
4164 \pic at (R-left) {node mark};
4165 \pic at (R-bottom left) {node mark};
4166 \pic at (R-bottom) {node mark};
4167 \pic at (R-bottom right) {node mark};
4168 \pic at (R-right) {node mark};
4169 \pic at (R-top right) {node mark};
4170 \pic at (R-top) {node mark};
4171 \pic at (R-top left) {node mark};
4172 \pic at (R-shaft) {node mark};
4173 \node[left] at (R-left) {\chpn{l}};
4174 \node[left] at (R-bottom left) {\chpn{bl}};
4175 \node[below] at (R-bottom) {\chpn{b}};
4176 \node[right] at (R-bottom right) {\chpn{br}};
4177 \node[right] at (R-right) {\chpn{r}};
4178 \node[right] at (R-top right) {\chpn{tr}};
4179 \node[above] at (R-top) {\chpn{t}};
4180 \node[left] at (R-top left) {\chpn{tl}};
4181 \node[above] at (R-shaft) {\chpn{s}};
4182 \end{tikzpicture}
4183 \end{center}
4184
4185 Reading measures is not that easy, so it is better to give some clarification:
4186 the pic have an overall height of \SI{27}{\mm} and an overall width of
4187 \SI{16}{\mm}, while the tank (without the stirrer protruding part) is
4188 \SI{24}{\mm} high; the measure on the bottom right indicates the distance from
4189 the middle of the tank to the point where the curvature begins, while measures on
4190 the top right indicate the distances from the stirrer end point to the anchor
4191 point in the middle of the tank.
4192
4193 The end of the stirrer outside the tank is also identified by a special
4194 coordinate node, indicated in the above drawing as \chpn{s} and called
4195 \chpn{shaft}. It should be evident that this is not a point defined to connect
4196 streams, but it may be useful for some kind of control systems.
4197
4198 A stirred reactor can be used to represent two ideal reactor models among the
4199 most commonly used in the chemical engineering: the perfectly mixed batch reactor
4200 and the continuous stirred tank reactor (\ac{CSTR}). Anyway, a
4201 \chpp{stirred reactor} is a very generic representation, so it will be
4202 appropriate for all of the reactors in which there is a mixer, regardless from
4203 the mixer type or of the phases within the reactor.
4204
4205 \subsubsection{Packed Bed Crystallizer}
4206
4207 The third most common ideal reactor model, the plug flow reactor (\ac{PFR}), can
4208 be functionally represented by a packed bed reactor, that is clearly useful to
4209 represent also a real packed bed reactor. It is defined as a simple pic called
4210 \chpp{packed bed reactor}:
4211 \begin{chpcode}
4212 \pic at (0,0) {packed bed reactor};
4213 \end{chpcode}
4214 and yields a rectangular reactor, in which centre there is the anchor, with the
4215 representation of the inside packing:
4216 \begin{center}
4217 \begin{tikzpicture}
4218 \pic at (-4,0) {packed bed reactor};
4219 \pic at (0,0) {packed bed reactor};
4220 \measure{(-1,-0.65)}{(1,-0.65)}{\SI{20}{\mm}}
4221 \measure{(-1.2,0.45)}{(-1.2,-0.45)}{\SI{9}{\mm}}
4222 \measure[above]{(1.2,0.4)}{(1.2,-0.4)}{\SI{8}{\mm}}
4223 \measure[above]{(0.8,0.65)}{(1.0,0.65)}{\SI{2}{\mm}}
4224 \pic at (0,0) {anchor mark};
4225 \pic (R) at (4,0) {packed bed reactor};
4226 \pic at (R-anchor) {anchor mark};
4227 \pic at (R-left) {node mark};
4228 \pic at (R-bottom) {node mark};
4229 \pic at (R-right) {node mark};
4230 \pic at (R-top) {node mark};
4231 \pic at (R-utility bottom left) {node mark};
4232 \pic at (R-utility bottom right) {node mark};
4233 \pic at (R-utility top right) {node mark};
4234 \pic at (R-utility top left) {node mark};
4235 \node[left] at (R-left) {\chpn{l}};
4236 \node[below] at (R-bottom) {\chpn{b}};
4237 \node[right] at (R-right) {\chpn{r}};
4238 \node[above] at (R-top) {\chpn{t}};
4239 \node[below] at (R-utility bottom left) {\chpn{ubl}};
4240 \node[below] at (R-utility bottom right) {\chpn{ubr}};
4241 \node[above] at (R-utility top right) {\chpn{utr}};
4242 \node[above] at (R-utility top left) {\chpn{utl}};
4243 \end{tikzpicture}
4244 \end{center}
4245 where the measure on the right indicates the height of the rectangle without the
4246 small protruding vertical edges, while the measure on the top indicates the width
4247 of the section without the packing.
4248
4249 The \chpp{packed bed reactor} has some special nodes. Among the common ones,
4250 only \chpn{left}, \chpn{bottom}, \chpn{right} and \chpn{top} are defined. In
4251 addition, there are four nodes more:
4252 \begin{itemize}
4253 \item a node called \chpn{utility bottom left}, abbreviated in the picture
4254 above as \chpn{ubl};
4255 \item a node called \chpn{utility bottom right}, abbreviated in the picture
4256 above as \chpn{ubr};
4257 \item a node called \chpn{utility top right}, abbreviated in the picture
4258 above as \chpn{utr};
4259 \item a node called \chpn{utility top left}, abbreviated in the picture above
4260 as \chpn{utl}.
4261 \end{itemize}
4262 These nodes are useful to simulate the presence of a jacket associated to the
4263 reactor and can be used, for example, to connect utility streams carrying fluids
4264 of a temperature control system.
4265
4266 \subsubsection{Fluidized Bed Reactor}
4267
4268 Even though the two above mentioned reactors are the most common ones, there are
4269 many others and one example is the fluidized bed reactor. Its usage have the same
4270 aims of the packed bed reactor, but this time solids are free to move within
4271 the reactor entrained and mixed by the gas. It is defined as a simple pic called
4272 \chpp{fluidized reactor}:
4273 \begin{chpcode}
4274 \pic at (0,0) {fluidized bed reactor};
4275 \end{chpcode}
4276 and yields a half tank-shaped reactor anchored in its centre:
4277 \begin{center}
4278 \begin{tikzpicture}
4279 \pic at (-3.6,0) {fluidized bed reactor};
4280 \pic at (0,0) {fluidized bed reactor};
4281 \measure{(-0.8,-1.4)}{(0.8,-1.4)}{\SI{16}{\mm}}
4282 \measure{(-1.0,1.2)}{(-1.0,-1.2)}{\SI{24}{\mm}}
4283 \measure[above]{(-0.2,1.4)}{(0.2,1.4)}{\SI{4}{\mm}}
4284 \measure[above]{(1.0,0)}{(1.0,-0.4)}{\SI{4}{\mm}}
4285 \measure[above]{(1.5,0.732)}{(1.5,0)}{\SI{7.32}{\mm}}
4286 \pic at (0,0) {anchor mark};
4287 \pic (R) at (3.6,0) {fluidized bed reactor};
4288 \pic at (R-anchor) {anchor mark};
4289 \pic at (R-left) {node mark};
4290 \pic at (R-bottom left) {node mark};
4291 \pic at (R-bottom) {node mark};
4292 \pic at (R-bottom right) {node mark};
4293 \pic at (R-right) {node mark};
4294 \pic at (R-top right) {node mark};
4295 \pic at (R-top) {node mark};
4296 \pic at (R-top left) {node mark};
4297 \node[left] at (R-left) {\chpn{l}};
4298 \node[left] at (R-bottom left) {\chpn{bl}};
4299 \node[below] at (R-bottom) {\chpn{b}};
4300 \node[right] at (R-bottom right) {\chpn{br}};
4301 \node[right] at (R-right) {\chpn{r}};
4302 \node[right] at (R-top right) {\chpn{tr}};
4303 \node[above] at (R-top) {\chpn{t}};
4304 \node[left] at (R-top left) {\chpn{tl}};
4305 \end{tikzpicture}
4306 \end{center}
4307 where the measure on the right indicates the distance from the middle of the tank
4308 to the point where the curvature begins.
4309
4310 No special node is defined for the \chpp{fluidized reactor}. Anyway, it should
4311 be noticed that the restriction of the bottom represents a real section
4312 change in the tank, which allows the bed to be firstly entrained by a fast
4313 flow and then to fall down due to the slowing of the stream caused by the
4314 expansion of the cross section. For this reason, the main inlet should be placed
4315 on the \chpn{bottom} node, while the main outlet should be connected to the
4316 \chpn{top} node. Other nodes, in particular \chpn{bottom left},
4317 \chpn{bottom right}, \chpn{top right} and \chpn{top left}, can be used for
4318 connections if one needs to represent a solid stream going through the reactor.
4319
4320 \subsubsection{Tube Bundle Reactor}
4321
4322 Another possibility to represent a reacting system is a tube bundle reactor,
4323 which can be used as a film reactor, thus to contact a liquid stream falling
4324 inside the reactor in the form of a film distributed on the walls of the internal
4325 pipes and a gas stream flowing in the internal spaces of the pipes, or as a
4326 multi-pipe packed bed reactor. It is defined as a simple pic called
4327 \chpp{tube bundle reactor}:
4328 \begin{chpcode}
4329 \pic at (0,0) {tube bundle reactor};
4330 \end{chpcode}
4331 and yields a tank-shaped reactor, in which centre there is the anchor, with the
4332 sketch of the internal pipes:
4333 \begin{center}
4334 \begin{tikzpicture}
4335 \pic at (-3.6,0) {tube bundle reactor};
4336 \pic at (0,0) {tube bundle reactor};
4337 \measure{(-0.85,-1.4)}{(0.84,-1.4)}{\SI{17}{\mm}}
4338 \measure{(-1.0,1.2)}{(-1.0,-1.2)}{\SI{24}{\mm}}
4339 \measure[above]{(1.0,0.732)}{(1.0,0)}{\SI{7.32}{\mm}}
4340 \measure[above]{(-0.8,1.4)}{(0.8,1.4)}{\SI{16}{\mm}}
4341 \pic at (0,0) {anchor mark};
4342 \pic (R) at (3.6,0) {tube bundle reactor};
4343 \pic at (R-anchor) {anchor mark};
4344 \pic at (R-left) {node mark};
4345 \pic at (R-bottom left) {node mark};
4346 \pic at (R-bottom) {node mark};
4347 \pic at (R-bottom right) {node mark};
4348 \pic at (R-right) {node mark};
4349 \pic at (R-top right) {node mark};
4350 \pic at (R-top) {node mark};
4351 \pic at (R-top left) {node mark};
4352 \node[left] at (R-left) {\chpn{l}};
4353 \node[left] at (R-bottom left) {\chpn{bl}};
4354 \node[below] at (R-bottom) {\chpn{b}};
4355 \node[right] at (R-bottom right) {\chpn{br}};
4356 \node[right] at (R-right) {\chpn{r}};
4357 \node[right] at (R-top right) {\chpn{tr}};
4358 \node[above] at (R-top) {\chpn{t}};
4359 \node[left] at (R-top left) {\chpn{tl}};
4360 \end{tikzpicture}
4361 \end{center}
4362 where the measure on the right indicates the distance from the middle of the tank
4363 to the point where the curvature begins, while the measure on the top indicates
4364 the width of the reactor without the small protruding horizontal lines which
4365 represent the support plates of internal pipes.
4366
4367 No special node is defined for the \chpp{tube bundle reactor}, but it is a good
4368 idea to specify that \chpn{left} and \chpn{right} nodes identify two points which
4369 fall between the support plates of internal pipes, so they are the ``access'' to
4370 the outer side of the pipe bundle. For this reason these two points are perfect
4371 to connect utility streams carrying fluids of a temperature control system.
4372 Unlike evaporators, there are not so many nodes for the shell of the pipes: an
4373 evaporator is a purely thermal unit and the flow configuration can be an
4374 important information to show, while for a reactor it is not that important.
4375
4376 Finally, another useful information is that both support plates of the pipes are
4377 placed to a vertical distance of \SI{6.5}{\mm} from the anchor point, even though
4378 not explicitly marked in the above drawing.
4379
4380 \subsection{Associative Pics for Reactors}
4381
4382 The just introduced reactors are only a little part of the huge variety of
4383 symbols one can find looking at process schemes. It is almost impossible to
4384 accomplish all of the requests about the representation of reactors: one wants
4385 to draw a jacket, another one wants a stirrer and a jacket, another one wants a
4386 stirrer but no jacket, another one wants a sprayer, a stirrer and a jacket and
4387 so on.
4388
4389 Even though the number of possibile combinations is huge, a smart and efficient
4390 solution can always be found. A possibile way is what I like to call associative
4391 pics, a palette of pics which can be overlapped and bonded together thanks to
4392 anchors. In this way, only the building blocks need to be defined and then users
4393 can play with them to produce symbols they like the most, or the ones they need.
4394 It should be clear that some pics will exclude the usage of others (for example a
4395 stirrer should not be represented in a packed bed reactor).
4396
4397 \subsubsection{Tank Reactor}
4398
4399 It is necessary to specify that this technique is adopted in \chemplants\ only
4400 for reactors, more precisely for tank shaped reactors. The main building block
4401 is, in fact, a little tank which represents a generic empty reactor. It is
4402 defined as a simple pic called \chpp{tank reactor}:
4403 \begin{chpcode}
4404 \pic at (0,0) {tank reactor};
4405 \end{chpcode}
4406 and yields a vertical tank anchored in its centre:
4407 \begin{center}
4408 \begin{tikzpicture}
4409 \pic at (-3.6,0) {tank reactor};
4410 \pic at (0,0) {tank reactor};
4411 \measure{(-0.8,-1.4)}{(0.8,-1.4)}{\SI{16}{\mm}}
4412 \measure{(-1.0,1.2)}{(-1.0,-1.2)}{\SI{24}{\mm}}
4413 \measure[above]{(1.0,0.732)}{(1.0,0)}{\SI{7.32}{\mm}}
4414 \pic at (0,0) {anchor mark};
4415 \pic (R) at (3.6,0) {tank reactor};
4416 \pic at (R-anchor) {anchor mark};
4417 \pic at (R-left) {node mark};
4418 \pic at (R-bottom left) {node mark};
4419 \pic at (R-bottom) {node mark};
4420 \pic at (R-bottom right) {node mark};
4421 \pic at (R-right) {node mark};
4422 \pic at (R-top right) {node mark};
4423 \pic at (R-top) {node mark};
4424 \pic at (R-top left) {node mark};
4425 \node[left] at (R-left) {\chpn{l}};
4426 \node[left] at (R-bottom left) {\chpn{bl}};
4427 \node[below] at (R-bottom) {\chpn{b}};
4428 \node[right] at (R-bottom right) {\chpn{br}};
4429 \node[right] at (R-right) {\chpn{r}};
4430 \node[right] at (R-top right) {\chpn{tr}};
4431 \node[above] at (R-top) {\chpn{t}};
4432 \node[left] at (R-top left) {\chpn{tl}};
4433 \end{tikzpicture}
4434 \end{center}
4435 where the measure on the right indicates the distance from the middle of the tank
4436 to the point where the curvature begins.
4437
4438 This pic is formally analogous to the \chpp{tank}, the very first pic
4439 introduced, but smaller. It is useful to know that the scale factor to
4440 ``convert'' a \chpp{tank reactor} into a \chpp{tank} is \num{1.25}. The reason
4441 why it is useful to know it will be explained in the future, when pics
4442 transformations will be introduced.
4443
4444 As told before, the \chpp{tank reactor} is the starting point of all of the
4445 representation. In particular, almost all of the other pics defined later on
4446 (apart two of them) can be bonded to the \chpp{tank reactor} using the
4447 \chpn{anchor} node. Assuming that the reactor is declared as:
4448 \begin{chpcode}
4449 \pic (R) at (0,0) {tank reactor};
4450 \end{chpcode}
4451 thus identified as \chpn{R}, the point in which other pics have to be declared
4452 is the node \chpn{R-anchor}.
4453
4454 \subsubsection{Jacket}
4455
4456 The first gadget for the \chpp{tank reactor} is a jacket for temperature
4457 control. It is defined as a simple pic called \chpp{jacket}:
4458 \begin{chpcode}
4459 \pic at (0,0) {jacket};
4460 \end{chpcode}
4461 and yields the sketch of and external jacket anchored in its centre:
4462 \begin{center}
4463 \begin{tikzpicture}
4464 \pic at (-4.0,0) {jacket};
4465 \pic at (0,0) {jacket};
4466 \measure[above]{(-1.0,0.9)}{(1.0,0.9)}{\SI{20}{\mm}}
4467 \measure{(-1.2,0.7)}{(-1.2,-1.3)}{\SI{20}{\mm}}
4468 \measure{(-0.1,-1.5)}{(0.1,-1.5)}{\SI{2}{\mm}}
4469 \measure[above]{(1.7,0.5)}{(1.7,0)}{\SI{5}{\mm}}
4470 \measure[above]{(1.2,0)}{(1.2,-1.3)}{\SI{13}{\mm}}
4471 \pic at (0,0) {anchor mark};
4472 \pic (J) at (4.0,0) {jacket};
4473 \pic at (J-anchor) {anchor mark};
4474 \pic at (J-left) {node mark};
4475 \pic at (J-bottom left) {node mark};
4476 \pic at (J-bottom right) {node mark};
4477 \pic at (J-right) {node mark};
4478 \pic at (J-top right) {node mark};
4479 \pic at (J-top left) {node mark};
4480 \node[left] at (J-left) {\chpn{l}};
4481 \node[below left] at (J-bottom left) {\chpn{bl}};
4482 \node[below right] at (J-bottom right) {\chpn{br}};
4483 \node[right] at (J-right) {\chpn{r}};
4484 \node[right] at (J-top right) {\chpn{tr}};
4485 \node[left] at (J-top left) {\chpn{tl}};
4486 \end{tikzpicture}
4487 \end{center}
4488 where the measure on the bottom right indicates the distance from the anchor of
4489 the jacket to its bottom, while the measure on the bottom indicates the width of
4490 the ``bottom hole''.
4491
4492 The \chpp{jacket} has to be bonded to the \chpp{tank reactor} using its
4493 \chpn{anchor} node:
4494 \begin{chpcode}
4495 \pic (R) at (0,0) {tank reactor};
4496 \pic at (R-anchor) {jacket};
4497 \end{chpcode}
4498 and the result is:
4499 \begin{center}
4500 \begin{tikzpicture}
4501 \pic (R) at (0,0) {tank reactor};
4502 \pic at (R-anchor) {jacket};
4503 \end{tikzpicture}
4504 \end{center}
4505 It should be noticed that the \chpp{jacket} extends the dimensions of the
4506 \chpp{tank reactor} by \SI{2}{\mm} in horizontal on both sides and by
4507 \SI{1}{\mm} in vertical on the bottom.
4508
4509 This solution is functional, but it introduces also a drawback: being the
4510 \chpp{jacket} and the \chpp{tank reactor} two different pics, they have to be
4511 identified using two different prefixes. In the above example, the node
4512 \chpn{R-left} identifies the \chpn{left} node of the reactor, but not the
4513 \chpn{left} node of the jacket. The drawback is that it is necessary to remember
4514 to use the correct prefix to identify nodes of the right pic, but this is also
4515 a safer approach.
4516
4517 \subsubsection{Stirrer}
4518
4519 The \chpp{jacket} is the only external gadget defined, but there are a lot of
4520 internal accessories, among which there is the already known stirrer. It is
4521 defined a simple pic called \chpp{stirrer}:
4522 \begin{chpcode}
4523 \pic at (0,0) {stirrer};
4524 \end{chpcode}
4525 and yields the sketch of a mechanical stirrer:
4526 \begin{center}
4527 \begin{tikzpicture}
4528 \pic at (-3.0,0) {stirrer};
4529 \pic at (0,0) {stirrer};
4530 \measure{(-0.5,-0.575)}{(0.5,-0.575)}{\SI{10}{\mm}}
4531 \measure{(-0.7,1.5)}{(-0.7,-0.375)}{\SI{18.75}{\mm}}
4532 \measure[above]{(0,1.7)}{(0.5,1.7)}{\SI{5}{\mm}}
4533 \measure[above]{(0.7,1.5)}{(0.7,0)}{\SI{15}{\mm}}
4534 \pic at (0,0) {anchor mark};
4535 \pic (S) at (3.0,0) {stirrer};
4536 \pic at (S-anchor) {anchor mark};
4537 \pic at (S-shaft) {node mark};
4538 \node[above] at (S-shaft) {\chpn{s}};
4539 \end{tikzpicture}
4540 \end{center}
4541 where measures on the right and on the top indicate the distances from the
4542 anchor of the stirrer to the end of its shaft.
4543
4544 The \chpp{stirrer} has a special node: the \chpn{shaft} node is placed at the
4545 end of the shaft and it is abbreviated above as \chpn{s}.
4546
4547 The \chpp{stirrer} has to be bonded to the \chpp{tank reactor} using its
4548 \chpn{anchor} node:
4549 \begin{chpcode}
4550 \pic (R) at (0,0) {tank reactor};
4551 \pic at (R-anchor) {stirrer};
4552 \end{chpcode}
4553 and the result is:
4554 \begin{center}
4555 \begin{tikzpicture}
4556 \pic (R) at (0,0) {tank reactor};
4557 \pic at (R-anchor) {stirrer};
4558 \end{tikzpicture}
4559 \end{center}
4560 It should be noticed that the \chpp{stirrer} extends the dimensions of the
4561 \chpp{tank reactor} by \SI{3}{\mm} in vertical on the top. The pic obtained in
4562 this way is exactly the same of the \chpp{stirred reactor}, but this last one
4563 has still its own definition as a single pic due to its importance.
4564
4565 \subsubsection{Coil}
4566
4567 Instead of using a jacket to control the temperature of a reactor, there is
4568 another solution: a coil, either electrical or carrier of a temperature
4569 controlling fluid, placed within the reactor. It is defined as a simple pic
4570 called \chpp{coil}:
4571 \begin{chpcode}
4572 \pic at (0,0) {coil};
4573 \end{chpcode}
4574 and yields the sketch of a coil anchored in its center:
4575 \begin{center}
4576 \begin{tikzpicture}
4577 \pic at (-3.6,0) {coil};
4578 \pic at (0,0) {coil};
4579 \measure{(-0.7,-0.9)}{(1.0,-0.9)}{\SI{17}{\mm}}
4580 \measure{(-1.0,0.7)}{(-1.0,-0.7)}{\SI{14}{\mm}}
4581 \measure[above]{(0,0.9)}{(1.0,0.9)}{\SI{10}{\mm}}
4582 \pic at (0,0) {anchor mark};
4583 \pic (C) at (3.6,0) {coil};
4584 \pic at (C-anchor) {anchor mark};
4585 \pic at (C-bottom) {node mark};
4586 \pic at (C-top) {node mark};
4587 \node[right] at (C-bottom) {\chpn{b}};
4588 \node[right] at (C-top) {\chpn{t}};
4589 \end{tikzpicture}
4590 \end{center}
4591 where the measure on the top indicates the distance from the anchor of the coil
4592 to the end of its path.
4593
4594 The two nodes declared for the \chpp{coil} are the \chpn{bottom} node and the
4595 \chpn{top} node, abbreviated above as \chpn{b} and \chpn{t} respectively.
4596
4597 The \chpp{coil} has to be bonded to the \chpp{tank reactor} using its
4598 \chpn{anchor} node:
4599 \begin{chpcode}
4600 \pic (R) at (0,0) {tank reactor};
4601 \pic at (R-anchor) {coil};
4602 \end{chpcode}
4603 and the result is:
4604 \begin{center}
4605 \begin{tikzpicture}
4606 \pic (R) at (0,0) {tank reactor};
4607 \pic at (R-anchor) {coil};
4608 \end{tikzpicture}
4609 \end{center}
4610 It should be noticed that the \chpp{coil} extends the dimensions of the
4611 \chpp{tank reactor} by \SI{2}{\mm} in horizontal on the right.
4612 Even though some overlapping is obtained, the \chpp{coil} and the \chpp{stirrer}
4613 can be used together.
4614
4615 \subsubsection{Sprayer}
4616
4617 When it is important to represent the distribution of a liquid fed to a reactor,
4618 a special pic comes in hand. It is defined as a simple pic called \chpp{sprayer}:
4619 \begin{chpcode}
4620 \pic at (0,0) {sprayer};
4621 \end{chpcode}
4622 and yields the sketch of a sprayer anchored on its inlet end, the one on the
4623 right:
4624 \begin{center}
4625 \begin{tikzpicture}
4626 \pic at (-3.4,0) {sprayer};
4627 \pic at (0,0) {sprayer};
4628 \measure{(0,-0.3)}{(1.4,-0.3)}{\SI{14}{\mm}}
4629 \measure{(-0.2,0)}{(-0.2,-0.1)}{\SI{1}{\mm}}
4630 \pic at (0,0) {anchor mark};
4631 \end{tikzpicture}
4632 \end{center}
4633 and no special or common nodes are defined for this pic, apart from the usual
4634 \chpn{anchor} node.
4635
4636 The \chpp{sprayer} has to be bonded to the \chpp{tank reactor} using its
4637 \chpn{top left} node (or its \chpn{top right} node using a trick that will be
4638 introduced in the following):
4639 \begin{chpcode}
4640 \pic (R) at (0,0) {tank reactor};
4641 \pic at (R-top left) {sprayer};
4642 \end{chpcode}
4643 and the result is:
4644 \begin{center}
4645 \begin{tikzpicture}
4646 \pic (R) at (0,0) {tank reactor};
4647 \pic at (R-top left) {sprayer};
4648 \end{tikzpicture}
4649 \end{center}
4650
4651 \subsubsection{Bubbler}
4652
4653 In the same way, when it is important to represent the distribution of a gas fed
4654 to a reactor, a special pic comes in hand. It is defined a simple pic called
4655 \chpp{bubbler}:
4656 \begin{chpcode}
4657 \pic at (0,0) {bubbler};
4658 \end{chpcode}
4659 and yields the sketch of a bubbler anchored on its inlet end, the one on the
4660 right:
4661 \begin{center}
4662 \begin{tikzpicture}
4663 \pic at (-3.4,0) {bubbler};
4664 \pic at (0,0) {bubbler};
4665 \measure{(0,-0.3)}{(1.4,-0.3)}{\SI{14}{\mm}}
4666 \measure{(-0.2,0.1)}{(-0.2,0)}{\SI{1}{\mm}}
4667 \pic at (0,0) {anchor mark};
4668 \end{tikzpicture}
4669 \end{center}
4670 and no special or common nodes are defined for this pic, apart the usual
4671 \chpn{anchor} node.
4672
4673 The \chpp{bubbler} has to be bonded to the \chpp{tank reactor} using its
4674 \chpn{bottom left} node (or its \chpn{bottom right} node using a trick that will
4675 be introduced in the following):
4676 \begin{chpcode}
4677 \pic (R) at (0,0) {tank reactor};
4678 \pic at (R-bottom left) bubbler;
4679 \end{chpcode}
4680 and the result is:
4681 \begin{center}
4682 \begin{tikzpicture}
4683 \pic (R) at (0,0) {tank reactor};
4684 \pic at (R-bottom left) {bubbler};
4685 \end{tikzpicture}
4686 \end{center}
4687
4688 \subsubsection{Packing}
4689
4690 Finally, the last pic defined as a gadget for the \chpp{tank reactor} is useful
4691 to obtain an alternative representation of the \chpp{packed bed reactor}.
4692 It is defined as a simple pic called \chpp{packing}:
4693 \begin{chpcode}
4694 \pic at (0,0) {packing};
4695 \end{chpcode}
4696 and yields the representation of a packing:
4697 \begin{center}
4698 \begin{tikzpicture}
4699 \pic at (-3.6,0) {packing};
4700 \pic at (0,0) {packing};
4701 \measure{(-0.8,-0.9)}{(0.8,-0.9)}{\SI{16}{\mm}}
4702 \measure{(-1.0,0.7)}{(-1.0,-0.7)}{\SI{14}{\mm}}
4703 \pic at (0,0) {anchor mark};
4704 \end{tikzpicture}
4705 \end{center}
4706 and no special or common nodes are defined for this pic, apart from the usual
4707 \chpn{anchor} node.
4708
4709 The \chpp{packing} has to be bonded to the \chpp{tank reactor} using its
4710 \chpn{anchor} node:
4711 \begin{chpcode}
4712 \pic (R) at (0,0) {tank reactor};
4713 \pic at (R-anchor) {packing};
4714 \end{chpcode}
4715 and the result is:
4716 \begin{center}
4717 \begin{tikzpicture}
4718 \pic (R) at (0,0) {tank reactor};
4719 \pic at (R-anchor) {packing};
4720 \end{tikzpicture}
4721 \end{center}
4722 It should be clear enough that this pic has not to be used with any of the
4723 preceding ones, but, at most, with the \chpp{jacket}.
4724
4725 \section{Process Utility Units}
4726
4727 Process utilities is the name given to a set of special units useful to
4728 better specify what is going on in a process; such units are valves, pipe joints,
4729 equipment nozzles and so on. Among process utilities, there are also control
4730 instrumentation and ``gadgets'' for units to be used, for example, to let
4731 the control system automatically act on the process.
4732
4733 \subsection{Valves}
4734
4735 A utility valve should not be misconceived with a lamination valve (as it often
4736 happens). Despite the extremely common fact that the same symbol is used for
4737 both the units, for the sake of clearance \UNICHIM\ indicates the lamination of
4738 a fluid through a valve using a different symbol with respect to the one used
4739 for regulation or interception valves. The \chpp{lamination valve} has already
4740 been introduced in subsection~\ref{subsec:gashan}, while this section is reserved
4741 to utility valves.
4742
4743 \subsubsection{Valve}
4744
4745 A generic valve, intended as a a regulation valve or as an interception valve,
4746 can be represented using a pic with arguments called \chpp{valve}:
4747 \begin{chpcode}
4748 \pic at (0,0) {valve=main};
4749 \end{chpcode}
4750 which yields a horizontal valve anchored in its centre:
4751 \begin{center}
4752 \begin{tikzpicture}
4753 \pic at (-2.4,0) {valve=main};
4754 \pic at (0,0) {valve=main};
4755 \measure{(-0.2,-0.3)}{(0.2,-0.3)}{\SI{4}{\mm}}
4756 \measure{(-0.4,0.1)}{(-0.4,-0.1)}{\SI{2}{\mm}}
4757 \pic at (0,0) {anchor mark};
4758 \pic (V) at (2.4,0) {valve=main};
4759 \pic at (V-anchor) {anchor mark};
4760 \pic at (V-left) {node mark};
4761 \pic at (V-right) {node mark};
4762 \node[left] at (V-left) {\chpn{l}};
4763 \node[right] at (V-right) {\chpn{r}};
4764 \end{tikzpicture}
4765 \end{center}
4766
4767 Note that the \chpn{anchor} node comes in hand with a \chpp{valve}. If one
4768 wants to specify that a valve has a sensor or an actuator (pics will be
4769 introduced in the following), its pic can be simply ``bonded'' to the valve
4770 placing it on the \chpn{anchor} node of the \chpp{valve}. For example, if a
4771 \chpp{valve} is identified as \chpn{V}, placing the actuator in the
4772 \chpn{V-anchor} node will do the job.
4773
4774 The \chpp{valve} pic is defined with an argument to make it sensible to the
4775 stream on which it is placed, in fact two kinds of valves are defined:
4776 \chpa{main}, \chpa{secondary} and \chpa{utility}, which are drawn respectively
4777 with \verb|semithick| lines, \verb|thin| lines and \verb|very thin| lines. These
4778 keys should be used as arguments of the \chpp{valve} pic. The code:
4779 \begin{chpcode}
4780 \draw[main stream] (0,2) -- (0.8,2);
4781 \pic at (1,2) {valve=main};
4782 \draw[main stream] (1.2,2) -- (2,2);
4783 \draw[secondary stream] (0,1) -- (0.8,1);
4784 \pic at (1,1) {valve=secondary};
4785 \draw[secondary stream] (1.2,1) -- (2,1);
4786 \draw[utility stream] (0,0) -- (0.8,0);
4787 \pic at (1,0) {valve=utility};
4788 \draw[utility stream] (1.2,0) -- (2,0);
4789 \end{chpcode}
4790 yields:
4791 \begin{center}
4792 \begin{tikzpicture}
4793 \draw[main stream] (0,2) -- (0.8,2);
4794 \pic at (1,2) {valve=main};
4795 \draw[main stream] (1.2,2) -- (2,2);
4796 \draw[secondary stream] (0,1) -- (0.8,1);
4797 \pic at (1,1) {valve=secondary};
4798 \draw[secondary stream] (1.2,1) -- (2,1);
4799 \draw[utility stream] (0,0) -- (0.8,0);
4800 \pic at (1,0) {valve=utility};
4801 \draw[utility stream] (1.2,0) -- (2,0);
4802 \end{tikzpicture}
4803 \end{center}
4804 Conversely, \chpp{lamination valve} is defined as a simple pic because it is
4805 more similar to a unit operation rather than to a regulation valve, hence it is
4806 drawn with a \verb|thick| line just like process units.
4807
4808 \subsubsection{Three-Way Valve}
4809
4810 Even though it is not properly a valve, the similarities of the symbols qualify a
4811 pipes joint also with the name of three-way valve. It is defined as a pic with
4812 arguments called \chpp{valve triple}:
4813 \begin{chpcode}
4814 \pic at (0,0) {valve triple=main};
4815 \end{chpcode}
4816 which yields a horizontal valve anchored in its centre with the third way going
4817 out from the top:
4818 \begin{center}
4819 \begin{tikzpicture}
4820 \pic at (-2.4,0) {valve triple=main};
4821 \pic at (0,0) {valve triple=main};
4822 \measure{(-0.2,-0.3)}{(0.2,-0.3)}{\SI{4}{\mm}}
4823 \measure{(-0.4,0.2)}{(-0.4,-0.1)}{\SI{3}{\mm}}
4824 \measure[above]{(0.4,0.2)}{(0.4,0)}{\SI{2}{\mm}}
4825 \pic at (0,0) {anchor mark};
4826 \pic (V) at (2.4,0) {valve triple=main};
4827 \pic at (V-anchor) {anchor mark};
4828 \pic at (V-left) {node mark};
4829 \pic at (V-right) {node mark};
4830 \pic at (V-top) {node mark};
4831 \node[left] at (V-left) {\chpn{l}};
4832 \node[right] at (V-right) {\chpn{r}};
4833 \node[above] at (V-top) {\chpn{t}};
4834 \end{tikzpicture}
4835 \end{center}
4836 where the measure on the right indicates the distance from the middle of the
4837 joint to its top.
4838
4839 Just like for the valve, three kinds of three-way valves are defined:
4840 \chpa{main}, \chpa{secondary} and \chpa{utility}, which are drawn respectively
4841 with \verb|semithick| lines, \verb|thin| lines and \verb|very thin| lines. These
4842 keys should be used as arguments of the \chpp{valve triple} pic.
4843
4844 \subsubsection{Four-Way Valve}
4845
4846 Just like three-way valve, also a joint of four pipes is not properly a valve,
4847 but the similarity of its symbols to the one used to denote valves gives it the
4848 informal name of four-way valve. It is defined as a pic with arguments called
4849 \chpp{valve quadruple}:
4850 \begin{chpcode}
4851 \pic at (0,0) {valve quadruple=main};
4852 \end{chpcode}
4853 which yields a ``cross valve'' anchored in its centre:
4854 \begin{center}
4855 \begin{tikzpicture}
4856 \pic at (-2.4,0) {valve quadruple=main};
4857 \pic at (0,0) {valve quadruple=main};
4858 \measure{(-0.2,-0.4)}{(0.2,-0.4)}{\SI{4}{\mm}}
4859 \measure{(-0.4,0.2)}{(-0.4,-0.2)}{\SI{4}{\mm}}
4860 \pic at (0,0) {anchor mark};
4861 \pic (V) at (2.4,0) {valve quadruple=main};
4862 \pic at (V-anchor) {anchor mark};
4863 \pic at (V-left) {node mark};
4864 \pic at (V-bottom) {node mark};
4865 \pic at (V-right) {node mark};
4866 \pic at (V-top) {node mark};
4867 \node[left] at (V-left) {\chpn{l}};
4868 \node[below] at (V-bottom) {\chpn{b}};
4869 \node[right] at (V-right) {\chpn{r}};
4870 \node[above] at (V-top) {\chpn{t}};
4871 \end{tikzpicture}
4872 \end{center}
4873
4874 Just like for the valve, three kinds of four-way valves are defined:
4875 \chpa{main}, \chpa{secondary} and \chpa{utility}, which are drawn respectively
4876 with \verb|semithick| lines, \verb|thin| lines and \verb|very thin| lines. These
4877 keys should be used as arguments of the \chpp{valve quadruple} pic.
4878
4879 \subsubsection{Check Valve}
4880
4881 Another kind of valve allows the flow in one direction only and it is known as
4882 check valve. It is defined as a pic with arguments called \chpp{check valve}:
4883 \begin{chpcode}
4884 \pic at (0,0) {check valve=main};
4885 \end{chpcode}
4886 which yields a horizontal lid valve anchored in its centre:
4887 \begin{center}
4888 \begin{tikzpicture}
4889 \pic at (-2.4,0) {check valve=main};
4890 \pic at (0,0) {check valve=main};
4891 \measure{(-0.2,-0.3)}{(0.2,-0.3)}{\SI{4}{\mm}}
4892 \measure{(-0.4,0.1)}{(-0.4,-0.1)}{\SI{2}{\mm}}
4893 \pic at (0,0) {anchor mark};
4894 \pic (V) at (2.4,0) {check valve=main};
4895 \pic at (V-anchor) {anchor mark};
4896 \pic at (V-inlet) {node mark};
4897 \pic at (V-outlet) {node mark};
4898 \node[left] at (V-inlet) {\chpn{i}};
4899 \node[right] at (V-outlet) {\chpn{o}};
4900 \end{tikzpicture}
4901 \end{center}
4902
4903 Nodes defined for the \chpp{check valve} follow the same logic of the ones
4904 defined for the \chpp{lamination valve}. Being a check valve a ``directional''
4905 unit, the nodes have a simple logic: one \chpn{inlet} and one \chpn{outlet}.
4906 These two are indicated in the drawing above as \chpn{i} and \chpn{o}
4907 respectively.
4908
4909 Just like for the valve, three kinds of safety valves are defined: \chpa{main},
4910 \chpa{secondary} and \chpa{utility}, which are drawn respectively with
4911 \verb|semithick| lines, \verb|thin| lines and \verb|very thin| lines. These keys
4912 should be used as arguments of the \chpp{check valve} pic.
4913
4914 \subsubsection{Safety Valve}
4915
4916 A special kind of valve is the one used to protect a vessel against pressure
4917 anomalies: the safety valve. The \chemplants\ package defines a single symbols to
4918 represent both safety valves and relief valves. It is defined as a pic with
4919 arguments called \chpp{safety valve}:
4920 \begin{chpcode}
4921 \pic at (0,0) {safety valve=main};
4922 \end{chpcode}
4923 which yields a bent valve, in which central node there is the anchor, with
4924 sketches of the spring and of the vent:
4925 \begin{center}
4926 \begin{tikzpicture}
4927 \pic at (-2.5,0) {safety valve=main};
4928 \pic at (0,0) {safety valve=main};
4929 \measure{(-0.1,-0.4)}{(0.4,-0.4)}{\SI{5}{\mm}}
4930 \measure{(-0.3,0.3)}{(-0.3,-0.2)}{\SI{5}{\mm}}
4931 \measure[above]{(0,0.5)}{(0.4,0.5)}{\SI{4}{\mm}}
4932 \measure[above]{(0.6,0.3)}{(0.6,0)}{\SI{3}{\mm}}
4933 \pic at (0,0) {anchor mark};
4934 \pic (V) at (2.5,0) {safety valve=main};
4935 \pic at (V-anchor) {anchor mark};
4936 \pic at (V-inlet) {node mark};
4937 \pic at (V-outlet) {node mark};
4938 \node[below] at (V-inlet) {\chpn{i}};
4939 \node[right] at (V-outlet) {\chpn{o}};
4940 \end{tikzpicture}
4941 \end{center}
4942 where the measure on the right indicates the distance from the anchor to the top
4943 of the spring, while the measure on the measure on the top indicates the distance
4944 from the anchor to the vent.
4945
4946 Nodes defined for the \chpp{safety valve} follow the same logic of the ones
4947 defined for the \chpp{check valve}: one \chpn{inlet} and one \chpn{outlet}.
4948 These two are indicated in the drawing above as \chpn{i} and \chpn{o}
4949 respectively. The \chpn{outlet} node may be used to represent the collection of
4950 the discharged stream into a particular treatment circuit.
4951
4952 Though a safety valve should never be included into the main process path,
4953 possibly even not into the secondary paths, three kinds of safety valves are
4954 defined: \chpa{main}, \chpa{secondary} and \chpa{utility}, which are drawn
4955 respectively with \verb|semithick| lines, \verb|thin| lines and \verb|very thin|
4956 lines. These keys should be used as arguments of the \chpp{safety valve} pic.
4957
4958 \subsection{Control Instruments}
4959
4960 \subsubsection{Instrument}
4961
4962 Often not present in a \ac{PFD}, schematics of control instrumentation is a
4963 valuable integration to the process scheme. It can be shown in order to better
4964 describe a (simple) plant. A generic instrument symbol is defined as a pic with
4965 arguments called \chpp{instrument}:
4966 \begin{chpcode}
4967 \pic at (0,0) {instrument=TIC};
4968 \end{chpcode}
4969 and yields a circle anchored in its centre, with \verb|thin| line thickness and
4970 containing the designation of the instrument:
4971 \begin{center}
4972 \begin{tikzpicture}
4973 \pic at (-3,0) {instrument=TIC};
4974 \pic at (0,0) {instrument=TIC};
4975 \measure{(-0.5,-0.7)}{(0.5,-0.7)}{\SI{10}{\mm}}
4976 \measure{(-0.7,0.5)}{(-0.7,-0.5)}{\SI{10}{\mm}}
4977 \pic at (0,0) {anchor mark};
4978 \pic (I) at (3,0) {instrument=TIC};
4979 \pic at (I-anchor) {anchor mark};
4980 \pic at (I-left) {node mark};
4981 \pic at (I-bottom) {node mark};
4982 \pic at (I-right) {node mark};
4983 \pic at (I-top) {node mark};
4984 \node[left] at (I-left) {\chpn{l}};
4985 \node[below] at (I-bottom) {\chpn{b}};
4986 \node[right] at (I-right) {\chpn{r}};
4987 \node[above] at (I-top) {\chpn{t}};
4988 \end{tikzpicture}
4989 \end{center}
4990
4991 The behaviour of the \chpp{instrument} pic differs with respect to other pics
4992 with arguments and it is more similar to the third argument of the
4993 \verb|\measure| command: the argument can be anything accepted by a \TikZ\ node
4994 and, in the case of chemical plants control instrumentation, it should be a text
4995 specifying the type of instrument, as shown above (\ac{TIC} stands for
4996 temperature indicator and controller).
4997
4998 \subsubsection{Controller}
4999
5000 Sometimes it is necessary to represent a different kind of instrumentation. A
5001 common case is a computer connected to a measurement and control system, which
5002 acts as a simple controller. For instance, it may be a programmable logic
5003 controller (\ac{PLC}) or a distribute control system (\ac{DCS}). In such cases, a
5004 special pic exists. It is defined as a pic with arguments called
5005 \chpp{controller}:
5006 \begin{chpcode}
5007 \pic at (0,0) {controller=PLC};
5008 \end{chpcode}
5009 and yields a square anchored in its centre, with \verb|thin| line thickness and
5010 containing the specification of the controller:
5011 \begin{center}
5012 \begin{tikzpicture}
5013 \pic at (-3,0) {controller=PLC};
5014 \pic at (0,0) {controller=PLC};
5015 \measure{(-0.5,-0.7)}{(0.5,-0.7)}{\SI{10}{\mm}}
5016 \measure{(-0.7,0.5)}{(-0.7,-0.5)}{\SI{10}{\mm}}
5017 \pic at (0,0) {anchor mark};
5018 \pic (C) at (3,0) {controller=PLC};
5019 \pic at (C-anchor) {anchor mark};
5020 \pic at (C-left) {node mark};
5021 \pic at (C-bottom) {node mark};
5022 \pic at (C-right) {node mark};
5023 \pic at (C-top) {node mark};
5024 \node[left] at (C-left) {\chpn{l}};
5025 \node[below] at (C-bottom) {\chpn{b}};
5026 \node[right] at (C-right) {\chpn{r}};
5027 \node[above] at (C-top) {\chpn{t}};
5028 \end{tikzpicture}
5029 \end{center}
5030
5031 Arguments to be used with a \chpp{controller} pic follow exactly the same
5032 logic of the ones used within an \chpp{instrument}: simple text specifying the
5033 controller functions.
5034
5035 \subsubsection{Actuator}
5036
5037 Signal paths have already been discussed and can be drawn with the \chps{signal}
5038 style, but there is another utility for control instrumentation. Connections
5039 between signals and units can be made through a sensor, to collect informations,
5040 or through an actuator, to act on the units. Usually sensors are indicated
5041 simply connecting a signal to the point of measurement, a unit or a stream, but
5042 for actuators an additional symbol is used. It is defined as a simple pic called
5043 \chpp{actuator}:
5044 \begin{chpcode}
5045 \pic at (0,0) {actuator};
5046 \end{chpcode}
5047 and yields a half circle supported by a vertical stem, at the end of which
5048 there is the anchor point:
5049 \begin{center}
5050 \begin{tikzpicture}
5051 \pic at (-2.1,0) {actuator};
5052 \pic at (0,0) {actuator};
5053 \measure{(-0.1,-0.2)}{(0.1,-0.2)}{\SI{2}{\mm}}
5054 \measure{(-0.25,0.3)}{(-0.25,-0)}{\SI{3}{\mm}}
5055 \pic at (0,0) {anchor mark};
5056 \pic (A) at (0,0) {actuator};
5057 \pic at (A-anchor) {anchor mark};
5058 \pic at (A-top) {node mark};
5059 \node[above] at (A-top) {\chpn{t}};
5060 \end{tikzpicture}
5061 \end{center}
5062
5063 The \chpp{actuator} is a strange thing to represent in a scheme and obtaining a
5064 good graphical result is not that easy. In order to get a better drawing, its
5065 line thickness is the same of instruments, but its dimensions are defined to be
5066 relative to the units. This aspect will be better clarified in the future.
5067
5068 This is a good time to give a practical example of how coordinate nodes can be
5069 used. Introducing the \chpp{valve}, it was said that its \chpn{anchor} node can
5070 come in hand when representing actuators. This simple code:
5071 \begin{chpcode}
5072 \pic (V) at (1,0) {valve=main};
5073 \pic (A) at (V-anchor) {actuator};
5074 \pic (FC) at (3,0.8) {instrument=FC};
5075 \draw[main stream] (0,0) -- (V-left);
5076 \draw[main stream] (V-right) -- (3.5,0);
5077 \draw[short signal] (3,0) -- (FC-bottom);
5078 \draw[signal] (FC-left) -| (A-top);
5079 \end{chpcode}
5080 produces the representation of a flow-rate control loop:
5081 \begin{center}
5082 \begin{tikzpicture}
5083 \pic (V) at (1,0) {valve=main};
5084 \pic (A) at (V-anchor) {actuator};
5085 \pic (FC) at (3,0.8) {instrument=FC};
5086 \draw[main stream] (0,0) -- (V-left);
5087 \draw[main stream] (V-right) -- (3.5,0);
5088 \draw[short signal] (3,0) -- (FC-bottom);
5089 \draw[signal] (FC-left) -| (A-top);
5090 \end{tikzpicture}
5091 \end{center}
5092
5093 It should be noticed that coordinate nodes are really useful, but appealing to
5094 them implies that the diagram my need to be planned in a non-linear way. In
5095 particular, it is convenient to fix positions of all of the units first and then
5096 connecting their nodes using streams and signals. This procedure requires a
5097 little of practice, but, doubtlessly, its advantages worth the effort. A simple
5098 example: if one decides to move the valve from the coordinates \verb|(1,0)| to
5099 the coordinates \verb|(1.5,0)|, the only thing to do is to change the coordinates
5100 of the point where the \chpp{valve} is placed in the first line of the example
5101 code and all of the other points will automatically move themselves accordingly:
5102 \begin{center}
5103 \begin{tikzpicture}
5104 \pic (V) at (1.5,0) {valve=main};
5105 \pic (A) at (V-anchor) {actuator};
5106 \pic (FC) at (3,0.8) {instrument=FC};
5107 \draw[main stream] (0,0) -- (V-left);
5108 \draw[main stream] (V-right) -- (3.5,0);
5109 \draw[short signal] (3,0) -- (FC-bottom);
5110 \draw[signal] (FC-left) -| (A-top);
5111 \end{tikzpicture}
5112 \end{center}
5113
5114 \subsection{Process Inlets and Outlets}
5115
5116 When representing the scheme of a process, it is always necessary to indicate
5117 where prime matters enter and where products leave. One can simply use a stream
5118 with a free end, but \UNICHIM\ defines two particular symbols to these special
5119 purposes. An inlet is defined as a simple pic called
5120 \chpp{inlet}:
5121 \begin{chpcode}
5122 \pic at (0,0) {inlet};
5123 \end{chpcode}
5124 and yields a circle, in which centre there is the anchor, with a filled arrow
5125 sketch:
5126 \begin{center}
5127 \begin{tikzpicture}
5128 \pic at (-2.5,0) {inlet};
5129 \pic at (0,0) {inlet};
5130 \measure{(-0.25,-0.45)}{(0.25,-0.45)}{\SI{5}{\mm}}
5131 \measure{(-0.45,0.25)}{(-0.45,-0.25)}{\SI{5}{\mm}}
5132 \pic at (0,0) {anchor mark};
5133 \pic (I) at (2.5,0) {inlet};
5134 \pic at (I-anchor) {anchor mark};
5135 \pic at (I-left) {node mark};
5136 \pic at (I-bottom) {node mark};
5137 \pic at (I-stream) {node mark};
5138 \pic at (I-top) {node mark};
5139 \node[left] at (I-left) {\chpn{l}};
5140 \node[below] at (I-bottom) {\chpn{b}};
5141 \node[right] at (I-stream) {\chpn{s}};
5142 \node[above] at (I-top) {\chpn{t}};
5143 \end{tikzpicture}
5144 \end{center}
5145 while an outlet is defined as a simple pic called \chpp{outlet}:
5146 \begin{chpcode}
5147 \pic at (0,0) {outlet};
5148 \end{chpcode}
5149 and yields a circle, in which centre there is the anchor, with an empty arrow
5150 sketch:
5151 \begin{center}
5152 \begin{tikzpicture}
5153 \pic at (-2.5,0) {outlet};
5154 \pic at (0,0) {outlet};
5155 \measure{(-0.25,-0.45)}{(0.25,-0.45)}{\SI{5}{\mm}}
5156 \measure{(-0.45,0.25)}{(-0.45,-0.25)}{\SI{5}{\mm}}
5157 \pic at (0,0) {anchor mark};
5158 \pic (O) at (2.5,0) {outlet};
5159 \pic at (O-anchor) {anchor mark};
5160 \pic at (O-stream) {node mark};
5161 \pic at (O-bottom) {node mark};
5162 \pic at (O-right) {node mark};
5163 \pic at (O-top) {node mark};
5164 \node[left] at (O-stream) {\chpn{s}};
5165 \node[below] at (O-bottom) {\chpn{b}};
5166 \node[right] at (O-right) {\chpn{r}};
5167 \node[above] at (O-top) {\chpn{t}};
5168 \end{tikzpicture}
5169 \end{center}
5170
5171 For both \chpp{inlet} and \chpp{outlet} pics, streams should be connected to
5172 specific points. More precisely, inlet streams enter the scheme coming from the
5173 tip of the arrow sketch, while outlet streams leave the scheme going into the
5174 base of the arrow sketch. These special anchor points are marked as
5175 \chpn{stream} nodes, which positions are indicated in the above drawings by means
5176 of the abbreviated name \chpn{s}. Other nodes are defined to make the labelling
5177 of inlets and outlets easier.
5178
5179 \subsection{Nozzles}
5180
5181 It is sometimes useful to highlight nozzles on units to indicate where a fluid
5182 can go in and where it will come out, if there is a one way path to be followed.
5183 Two simple pics are defined to accomplish this kind of need. An input nozzle is
5184 defined as a simple pic called \chpp{input}:
5185 \begin{chpcode}
5186 \pic at (0,0) {input};
5187 \end{chpcode}
5188 and yields an empty circle anchored in its centre:
5189 \begin{center}
5190 \begin{tikzpicture}
5191 \pic at (0,0) {input};
5192 \measure{(-0.05,-0.25)}{(0.05,-0.25)}{\SI{1}{\mm}}
5193 \measure{(-0.25,0.05)}{(-0.25,-0.05)}{\SI{1}{\mm}}
5194 \pic at (-2.1,0) {input};
5195 \pic at (0,0) {anchor mark};
5196 \end{tikzpicture}
5197 \end{center}
5198 while an output nozzle is defined as a simple pic called \chpp{output}:
5199 \begin{chpcode}
5200 \pic at (0,0) {output};
5201 \end{chpcode}
5202 and yields a filled circle anchored in its centtr:
5203 \begin{center}
5204 \begin{tikzpicture}
5205 \pic at (0,0) {output};
5206 \measure{(-0.05,-0.25)}{(0.05,-0.25)}{\SI{1}{\mm}}
5207 \measure{(-0.25,0.05)}{(-0.25,-0.05)}{\SI{1}{\mm}}
5208 \pic at (-2.1,0) {output};
5209 \pic at (0,0) {anchor mark};
5210 \end{tikzpicture}
5211 \end{center}
5212 Both \chpp{input} and \chpp{output} pics are drawn with a \verb|thick| line, the
5213 same thickness used for units.
5214
5215 Except for the \chpn{anchor} node, placed on the anchor points of the units,
5216 both \chpp{input} and \chpp{output} have no extra coordinate nodes.
5217
5218 \subsection{Blocks}
5219
5220 Units introduced so far are useful to represent the \ac{PFD} of a chemical
5221 process, but sometimes it is enough (or required) to represent a process using
5222 a much more simpler \ac{BFD}, a diagram in which entire sections of the process
5223 are gathered into a self-explicative block. In order to represent \ac{BFD}s,
5224 only the \chps{main stream} style should be used for lines. Blocks can be
5225 obtained by means of a special pic with arguments called \chpp{block}:
5226 \begin{chpcode}
5227 \pic at (0,0) {block=reactor};
5228 \end{chpcode}
5229 which yields a rectangle anchored in its centre, with \verb|thick| line
5230 thickness and containing the specification of the block:
5231 \begin{center}
5232 \begin{tikzpicture}
5233 \pic at (-5,0) {block=reactor};
5234 \pic at (0,0) {block=reactor};
5235 \measure{(-1.5,-0.95)}{(1.5,-0.95)}{\SI{30}{\mm}}
5236 \measure{(-1.7,0.75)}{(-1.7,-0.75)}{\SI{15}{\mm}}
5237 \pic at (0,0) {anchor mark};
5238 \pic (B) at (5,0) {block=reactor};
5239 \pic at (B-anchor) {anchor mark};
5240 \pic at (B-left) {node mark};
5241 \pic at (B-bottom) {node mark};
5242 \pic at (B-right) {node mark};
5243 \pic at (B-top) {node mark};
5244 \node[left] at (B-left) {\chpn{l}};
5245 \node[below] at (B-bottom) {\chpn{b}};
5246 \node[right] at (B-right) {\chpn{r}};
5247 \node[above] at (B-top) {\chpn{t}};
5248 \end{tikzpicture}
5249 \end{center}
5250
5251 The argument passed to the \chpp{block} pic is its specification, so it should
5252 be a text string containing the name of the block. Text is, by default, written
5253 in \verb|\footnotesize| and placed in the centre of the block.
5254
5255 It should be noticed that the definition of the \chpp{block} pic permits to
5256 split the text passed as argument over multiple lines; use the \verb|\\| command
5257 to brake lines. For example, the code:
5258 \begin{chpcode}
5259 \pic at (0,0) {block=product\\purification};
5260 \end{chpcode}
5261 yields:
5262 \begin{center}
5263 \begin{tikzpicture}
5264 \pic at (0,0) {block=product\\purification};
5265 \end{tikzpicture}
5266 \end{center}
5267 and the text is always aligned to the centre of the block.
5268
5269 Nodes defined for the block deserve an explanation. A \ac{BDF} is a very free
5270 and general representation of a process, thus there are no specific positions
5271 defined to connect streams. The nodes defined by \chemplants\ are the ones on the
5272 ``remarkable boundaries'' of the block, but a stream may be connected to any
5273 point of the block. If one wants to connect a stream in a different place with
5274 respect to the given nodes, coordinates have to be calculated by hand (and it not
5275 so difficult with a rectangle).
5276
5277 \section{Transforming Units}
5278
5279 As told before, all of the units described so far are shown in their default
5280 orientation. Anyway, the method of defining them as pics permits to apply all of
5281 the pic actions available in \TikZ. Among them, the most useful ones are for
5282 sure tranformations.
5283
5284 \subsubsection{Useful Transformations}
5285
5286 A transformation refers to the manipulation of the coordinates that describe the
5287 drawing to obtain some specific effects, of example a rotation or a scaling.
5288 These two are the main transformations which can be applied to units, they will
5289 be briefly summarised in the following using as a model a
5290 \chpp{heat exchanger biphase}.
5291
5292 \begin{itemize}
5293 \item To make the confrontation easier, the standard
5294 \chpp{heat exchanger biphase} is:
5295 \begin{center}
5296 \begin{tikzpicture}
5297 \pic at (0,0) {heat exchanger biphase};
5298 \end{tikzpicture}
5299 \end{center}
5300 \item A pic can be rotated using the \verb|rotate| transformation:
5301 \begin{chpcode}[gobble=12]
5302 \pic[rotate=90] at (0,0) {heat exchanger biphase};
5303 \end{chpcode}
5304 which yields:
5305 \begin{center}
5306 \begin{tikzpicture}
5307 \pic[rotate=90] at (0,0) {heat exchanger biphase};
5308 \end{tikzpicture}
5309 \end{center}
5310 \item A pic can be horizontally scaled using the \verb|xscale|
5311 transformation:
5312 \begin{chpcode}[gobble=12]
5313 \pic[xscale=1.5] at (0,0) {heat exchanger biphase};
5314 \end{chpcode}
5315 which yields:
5316 \begin{center}
5317 \begin{tikzpicture}
5318 \pic[xscale=1.5] at (0,0) {heat exchanger biphase};
5319 \end{tikzpicture}
5320 \end{center}
5321 \item A pic can be vertically scaled using the \verb|yscale|
5322 transformation:
5323 \begin{chpcode}[gobble=12]
5324 \pic[yscale=1.5] at (0,0) {heat exchanger biphase};
5325 \end{chpcode}
5326 which yields:
5327 \begin{center}
5328 \begin{tikzpicture}
5329 \pic[yscale=1.5] at (0,0) {heat exchanger biphase};
5330 \end{tikzpicture}
5331 \end{center}
5332 \item A pic can be scaled using the \verb|scale| transformation:
5333 \begin{chpcode}[gobble=12]
5334 \pic[scale=1.5] at (0,0) {heat exchanger biphase};
5335 \end{chpcode}
5336 which yields:
5337 \begin{center}
5338 \begin{tikzpicture}
5339 \pic[scale=1.5] at (0,0) {heat exchanger biphase};
5340 \end{tikzpicture}
5341 \end{center}
5342 \end{itemize}
5343
5344 \subsubsection{Some Tricks}
5345
5346 Now some tricks based on transformations. Even though scaling a unit in a single
5347 direction can appear useless, this transformation can be used in a clever way.
5348 One example is ``transforming'' a tank in a wide horizontal basin with a code
5349 like:
5350 \begin{chpcode}
5351 \pic at (0,0) {tank};
5352 \pic[xscale=2.5, yscale=1.25, rotate=90] at (6.75,0) {tank};
5353 \end{chpcode}
5354 which yields:
5355 \begin{center}
5356 \begin{tikzpicture}
5357 \pic at (0,0) {tank};
5358 \pic[xscale=2.5, yscale=1.25, rotate=90] at (6.75,0) {tank};
5359 \end{tikzpicture}
5360 \end{center}
5361 (Note that, for some obscure reasons, the pic is firstly rotated and then
5362 scaled).
5363
5364 Another useful trick based on the single direction scaling can be used to flip a
5365 unit. If a condenser with the utility stream going from left to right is needed,
5366 the \chpp{condenser} can be flipped horizontally scaling its coordinates by
5367 a $- 1$ factor, thus inverting them. The code:
5368 \begin{chpcode}
5369 \pic at (0,0) {condenser};
5370 \pic[xscale=-1] at (3.4,0) {condenser};
5371 \end{chpcode}
5372 yields:
5373 \begin{center}
5374 \begin{tikzpicture}
5375 \pic at (0,0) {condenser};
5376 \pic[xscale=-1] at (3.4,0) {condenser};
5377 \end{tikzpicture}
5378 \end{center}
5379 This trick works with \verb|yscale| and \verb|scale| as well
5380
5381 Last, but not least, it should be noticed that sequential scaling factors are
5382 cumulative. The code:
5383 \begin{chpcode}
5384 \pic at (0,0) {centrifugal pump};
5385 \pic[scale=2] at (3.5,0) {centrifugal pump};
5386 \pic[scale=2, scale=2] at (8.5,0) {centrifugal pump};
5387 \end{chpcode}
5388 yields:
5389 \begin{center}
5390 \begin{tikzpicture}
5391 \pic at (0,0) {centrifugal pump};
5392 \pic[scale=2] at (3.5,0) {centrifugal pump};
5393 \pic[scale=2, scale=2] at (8.5,0) {centrifugal pump};
5394 \end{tikzpicture}
5395 \end{center}
5396 in fact the pump in the middle has twice the dimensions of the one on the left,
5397 while the pump on the right has twice the dimensions of the one in the middle,
5398 which means four times the dimensions of the one on the left. This
5399 characteristic of the scaling factors is useful for a feature of \chemplants\
5400 which will be introduced soon. Note also that the thickness of the lines is not
5401 scaled, which is the main advantage to scale the geometric description of a
5402 figure rather than its vectorial representation.
5403
5404 It is important to remark that all of the above mentioned transformations affect
5405 not just the pics drawings, but also the positions of the nodes defined into
5406 them. Anyway, names never change, so careful evaluations have to be done when it
5407 is required to transform a unit and to use its nodes at the same time.
5408
5409 Here are some examples of the most ``invasive'' transformations. Rotating a unit
5410 rotates also its nodes:
5411 \begin{center}
5412 \begin{tikzpicture}
5413 \pic (T1) at (0,0) {tank};
5414 \pic at (T1-anchor) {anchor mark};
5415 \pic at (T1-left) {node mark};
5416 \pic at (T1-bottom left) {node mark};
5417 \pic at (T1-bottom) {node mark};
5418 \pic at (T1-bottom right) {node mark};
5419 \pic at (T1-right) {node mark};
5420 \pic at (T1-top right) {node mark};
5421 \pic at (T1-top) {node mark};
5422 \pic at (T1-top left) {node mark};
5423 \node[left] at (T1-left) {\chpn{l}};
5424 \node[left] at (T1-bottom left) {\chpn{bl}};
5425 \node[below] at (T1-bottom) {\chpn{b}};
5426 \node[right] at (T1-bottom right) {\chpn{br}};
5427 \node[right] at (T1-right) {\chpn{r}};
5428 \node[right] at (T1-top right) {\chpn{tr}};
5429 \node[above] at (T1-top) {\chpn{t}};
5430 \node[left] at (T1-top left) {\chpn{tl}};
5431 \pic[rotate=90] (T2) at (5.5,0) {tank};
5432 \pic at (T2-anchor) {anchor mark};
5433 \pic at (T2-left) {node mark};
5434 \pic at (T2-bottom left) {node mark};
5435 \pic at (T2-bottom) {node mark};
5436 \pic at (T2-bottom right) {node mark};
5437 \pic at (T2-right) {node mark};
5438 \pic at (T2-top right) {node mark};
5439 \pic at (T2-top) {node mark};
5440 \pic at (T2-top left) {node mark};
5441 \node[below] at (T2-left) {\chpn{l}};
5442 \node[below] at (T2-bottom left) {\chpn{bl}};
5443 \node[right] at (T2-bottom) {\chpn{b}};
5444 \node[above] at (T2-bottom right) {\chpn{br}};
5445 \node[above] at (T2-right) {\chpn{r}};
5446 \node[above] at (T2-top right) {\chpn{tr}};
5447 \node[left] at (T2-top) {\chpn{t}};
5448 \node[below] at (T2-top left) {\chpn{tl}};
5449 \end{tikzpicture}
5450 \end{center}
5451 while flipping a unit, for example horizontally with \verb|xscale=-1|, flips
5452 also its nodes:
5453 \begin{center}
5454 \begin{tikzpicture}
5455 \pic (B1) at (0,0) {boiler};
5456 \pic at (B1-anchor) {anchor mark};
5457 \pic at (B1-left) {node mark};
5458 \pic at (B1-bottom) {node mark};
5459 \pic at (B1-right) {node mark};
5460 \pic at (B1-top) {node mark};
5461 \pic at (B1-pipes inlet) {node mark};
5462 \pic at (B1-pipes outlet) {node mark};
5463 \node[left] at (B1-left) {\chpn{l}};
5464 \node[below] at (B1-bottom) {\chpn{b}};
5465 \node[right] at (B1-right) {\chpn{r}};
5466 \node[above] at (B1-top) {\chpn{t}};
5467 \node[left] at (B1-pipes inlet) {\chpn{pi}};
5468 \node[right] at (B1-pipes outlet) {\chpn{po}};
5469 \pic[xscale=-1] (B2) at (3.4,0) {boiler};
5470 \pic at (B2-anchor) {anchor mark};
5471 \pic at (B2-left) {node mark};
5472 \pic at (B2-bottom) {node mark};
5473 \pic at (B2-right) {node mark};
5474 \pic at (B2-top) {node mark};
5475 \pic at (B2-pipes inlet) {node mark};
5476 \pic at (B2-pipes outlet) {node mark};
5477 \node[right] at (B2-left) {\chpn{l}};
5478 \node[below] at (B2-bottom) {\chpn{b}};
5479 \node[left] at (B2-right) {\chpn{r}};
5480 \node[above] at (B2-top) {\chpn{t}};
5481 \node[right] at (B2-pipes inlet) {\chpn{pi}};
5482 \node[left] at (B2-pipes outlet) {\chpn{po}};
5483 \end{tikzpicture}
5484 \end{center}
5485
5486 Finally, some special considerations concerning associative pics used to give
5487 flexible representation of reactors. It has been specified that the
5488 \chpp{tank reactor} is analogous to the \chpp{tank} and that the scale factor to
5489 ``convert'' the first into the second is \num{1.25}. This is useful, for
5490 example, if one has to represent a stirrer within a tank. The code:
5491 \begin{chpcode}
5492 \pic (T) at (0,0) {tank};
5493 \pic[scale=1.25] at (T-anchor) {stirrer};
5494 \end{chpcode}
5495 yields:
5496 \begin{center}
5497 \begin{tikzpicture}
5498 \pic (T) at (0,0) {tank};
5499 \pic[scale=1.25] at (T-anchor) {stirrer};
5500 \end{tikzpicture}
5501 \end{center}
5502 This is just an example, but this trick can be used to associate any two pics
5503 one wants to bond.
5504
5505 The \chpp{stirrer} can be subject to another transformation not mentioned yet. By
5506 default, the pic is slanted to avoid that the interception point between the
5507 shaft of the stirrer and the dome of the tank reactor falls on the \chpn{top}
5508 node of the tank. If one does not like the slanted shape of the \chpp{stirrer}
5509 and prefers to have a straight stirrer, the \verb|xslant| transformation can be
5510 used. The code:
5511 \begin{chpcode}
5512 \pic (R) at (0,0) {tank reactor};
5513 \pic[xslant=-0.285, xshift=-2.04] at (R-anchor) {stirrer};
5514 \end{chpcode}
5515 yields:
5516 \begin{center}
5517 \begin{tikzpicture}
5518 \pic (R) at (0,0) {tank reactor};
5519 \pic[xslant=-0.285, xshift=-2.04] at (R-anchor) {stirrer};
5520 \end{tikzpicture}
5521 \end{center}
5522 As it can be seen, the transformation is not that straightforward, in fact also a
5523 little of shift in the $x$ direction is needed.
5524
5525 Finally, the mirroring trick based on the \verb|xscale=-1| transformation can be
5526 used to mirror both the \chpp{sprayer} and the \chpp{bubbler} to connect
5527 them to the right side of the \chpp{tank reactor} rather than to its left.
5528 Taking as an example a jacketed sparger reactor, if one wants the gas to enter
5529 from the right side, the code:
5530 \begin{chpcode}
5531 \pic (R) at (0,0) {tank reactor};
5532 \pic at (R-anchor) {jacket};
5533 \pic at (R-anchor) {stirrer};
5534 \pic[xscale=-1] at (R-bottom right) {bubbler};
5535 \end{chpcode}
5536 will do the job:
5537 \begin{center}
5538 \begin{tikzpicture}
5539 \pic (R) at (0,0) {tank reactor};
5540 \pic at (R-anchor) {jacket};
5541 \pic at (R-anchor) {stirrer};
5542 \pic[xscale=-1] at (R-bottom right) {bubbler};
5543 \end{tikzpicture}
5544 \end{center}
5545
5546 \section{Customisation}
5547
5548 Some of the graphical aspects used by the \chemplants\ package can be
5549 customised at will of the user. Of course, symbols of the units should not be
5550 changed, but there could be some precise necessities that makes the standard
5551 \chemplants\ parameters unsuitable to accomplish requirements. A case could be
5552 the need to draw the scheme of a big process: standard dimensione of units may
5553 make the whole diagram too large to fit it into a single sheet. Another case is
5554 when one is not satisfied by the default unit or streams line thicknesses and
5555 would like to change them.
5556
5557 To solve issues like these, \chemplants\ provides a rudimental mechanism to set
5558 a number of graphical features of streams and units. In the following, the
5559 customisable parameters are described.
5560
5561 Styles for streams can be tuned setting arrow tips and line thickness; the
5562 former is common to all of the streams and the latter is specific to each stream
5563 style.
5564 \begin{itemize}
5565 \item Arrow tip used by \chps{main stream}, \chps{secondary stream} and
5566 \chps{utility stream} styles can be set using the command:
5567 \begin{chpcode}[gobble=12]
5568 \setchpstreamtip{ÂŁ!\meta{arrow tip}!ÂŁ}
5569 \end{chpcode}
5570 which requires as argument the name of a \TikZ\ arrow tip; default
5571 value is \verb|stealth|.
5572 \item Line thickness used by the \chps{main stream} style can be set using
5573 the command:
5574 \begin{chpcode}[gobble=12]
5575 \setchpmainstreamthickness{ÂŁ!\meta{line thickness}!ÂŁ}
5576 \end{chpcode}
5577 which requires as argument the name of a \TikZ\ line thickness; default
5578 value is \verb|semithick|.
5579 \item Line thickness used by the \chps{secondary stream} style can be set
5580 using the command:
5581 \begin{chpcode}[gobble=12]
5582 \setchpsecondarystreamthickness{ÂŁ!\meta{line thickness}!ÂŁ}
5583 \end{chpcode}
5584 which requires as argument the name of a \TikZ\ line thickness; default
5585 value is \verb|thin|.
5586 \item Line thickness used by the \chps{utility stream} style can be set using
5587 the command:
5588 \begin{chpcode}[gobble=12]
5589 \setchputilitystreamthickness{ÂŁ!\meta{line thickness}!ÂŁ}
5590 \end{chpcode}
5591 which requires as argument the name of a \TikZ\ line thickness; default
5592 value is \verb|very thin|.
5593 \end{itemize}
5594
5595 Styles for units can be tuned setting line thickness and unit base dimension.
5596 The latter is extremely important because permits to scale all of the units by a
5597 given scale factor, thus enabling the overall scaling by means of a single
5598 command. Units can furthermore be scaled individually witusing the \verb|scale|
5599 transformation thanks to the cumulative behaviour of scaling factors.
5600 \begin{itemize}
5601 \item Line thickness used by all of the units defined as pics can be set
5602 using the command:
5603 \begin{chpcode}[gobble=12]
5604 \setchpunitthickness{ÂŁ!\meta{line thickness}!ÂŁ}
5605 \end{chpcode}
5606 which requires as argument the name of a \TikZ\ line thickness; default
5607 value is \verb|thick|.
5608 \item Scale factor to be applied to all of the units defined as pics can be
5609 set using the command:
5610 \begin{chpcode}[gobble=12]
5611 \setchpunitscale{ÂŁ!\meta{scale factor}!ÂŁ}
5612 \end{chpcode}
5613 which requires as argument a numerical value to be used as scale factor
5614 and that will multiply every dimension of all of the units; default
5615 value is \verb|1|.
5616 \end{itemize}
5617
5618 Styles for control instrumentation can be tuned setting signal style line
5619 thickness, instruments pics line thickness, font dimension and base dimension.
5620 This last feature works exactly like the one of units, but it is a different
5621 parameter in order to allow independent scaling of units and instruments.
5622 \begin{itemize}
5623 \item Line thickness used by the \chps{signal} style can be set using
5624 the command:
5625 \begin{chpcode}[gobble=12]
5626 \setchpsignalthickness{ÂŁ!\meta{line thickness}!ÂŁ}
5627 \end{chpcode}
5628 which requires as argument the name of a \TikZ\ line thickness; default
5629 value is \verb|very thin|.
5630 \item Line thickness used by all of the instrumentation defined as pics can
5631 be set using the command:
5632 \begin{chpcode}[gobble=12]
5633 \setchpinstrumentthickness{ÂŁ!\meta{line thickness}!ÂŁ}
5634 \end{chpcode}
5635 which requires as argument the name of a \TikZ\ line thickness; default
5636 value is \verb|thin|.
5637 \item Scale factor to be applied to all of the instrumentation defined as
5638 pics can be set using the command:
5639 \begin{chpcode}[gobble=12]
5640 \setchpinstrumentscale{ÂŁ!\meta{scale factor}!ÂŁ}
5641 \end{chpcode}
5642 which requires as argument a numerical value to be used as scale factor
5643 and that will multiply every dimension of all of the instrumentation;
5644 default value is \verb|1|.
5645 \item Font size to be used within all of the instrumentation defined as
5646 pics can be set using the command:
5647 \begin{chpcode}[gobble=12]
5648 \setchpinstrumentfontsize{ÂŁ!\meta{font size}!ÂŁ}
5649 \end{chpcode}
5650 which requires as argument a font size attribute understood by \LaTeX;
5651 default value is \verb|\footnotesize|.
5652 \end{itemize}
5653
5654 Since parameters of both units and instrumentation have been introduced, it is
5655 possible to better specify how these features influence the \chpp{actuator}
5656 pic, a sort of hybrid between a unit and an instrument. As told before,
5657 \chpp{actuator} is sensible to instruments line thickness, but not to their
5658 dimensions, in fact it is defined in relative terms to the unit dimensions.
5659 This means that \verb|\setchpunitscale| will change the scale of the
5660 \chpp{actuator}, while \verb|\setchpinstrumentthickness| will change its line
5661 thickness.
5662
5663 Styles for hidden streams and components can be tuned setting line patterns for
5664 both styles.
5665 \begin{itemize}
5666 \item Line pattern used by the \chps{hidden stream} style can be set using
5667 the command:
5668 \begin{chpcode}[gobble=12]
5669 \setchphiddenstreamstyle{ÂŁ!\meta{line pattern}!ÂŁ}
5670 \end{chpcode}
5671 which requires as argument the name of a \TikZ\ line pattern; default
5672 value is \verb|dashed|.
5673 \item Line pattern used by the \chps{hidden component} style can be set using
5674 the command:
5675 \begin{chpcode}[gobble=12]
5676 \setchphiddencomponentstyle{ÂŁ!\meta{line pattern}!ÂŁ}
5677 \end{chpcode}
5678 which requires as argument the name of a \TikZ\ line pattern; default
5679 value is \verb|densely dotted|.
5680 \end{itemize}
5681
5682
5683 Styles for the \verb|\measure| command can be tuned setting line color, tips and
5684 thickness, plus font size of the measure value.
5685 \begin{itemize}
5686 \item Line color used by the \verb|\measure| command can be set using
5687 the command:
5688 \begin{chpcode}[gobble=12]
5689 \setchpmeasurecolor{ÂŁ!\meta{line color}!ÂŁ}
5690 \end{chpcode}
5691 which requires as argument whichever expression can be used to indicate
5692 a color in \LaTeX; default value is \verb|gray|.
5693 \item Line thickness used by the \verb|\measure| command can be set using
5694 the command:
5695 \begin{chpcode}[gobble=12]
5696 \setchpmeasurethickness{ÂŁ!\meta{line thickness}!ÂŁ}
5697 \end{chpcode}
5698 which requires as argument the name of a \TikZ\ line thickness; default
5699 value is \verb|thin|.
5700 \item Line tip used by the \verb|\measure| command can be set using the
5701 command:
5702 \begin{chpcode}[gobble=12]
5703 \setchpmeasuretip{ÂŁ!\meta{line tip}!ÂŁ}
5704 \end{chpcode}
5705 which requires as argument the name of a \TikZ\ arrow tip; default
5706 value is \verb!|!.
5707 \item Font size to be used within the \verb|\measure| command can be set
5708 using the command:
5709 \begin{chpcode}[gobble=12]
5710 \setchpmeasurefontsize{ÂŁ!\meta{font size}!ÂŁ}
5711 \end{chpcode}
5712 which requires as argument a font size attribute understood by \LaTeX;
5713 default value is \verb|\footnotesize|.
5714 \end{itemize}
5715
5716 For what concerns the \verb|\measure| line tip, it should be noticed that there
5717 is no possibility to set different tips for the two extremes of the line.
5718 Using the name of an arrow tip will yield the same tip pointing out on both
5719 sides. For example, after:
5720 \begin{chpcode}
5721 \setchpmeasuretip{stealth}
5722 \end{chpcode}
5723 \setchpmeasuretip{stealth}
5724 the \verb|\measure| will appear again as:
5725 \begin{center}
5726 \begin{tikzpicture}
5727 \measure{(0,0)}{(2,0)}{\SI{2}{\cm}}
5728 \end{tikzpicture}
5729 \end{center}
5730
5731 Although rudimental, the customisation mechanism of \chemplants\ offers a very
5732 useful opportunity. After giving a new:
5733 \begin{chpcode}
5734 \setchpmeasuretip{|}
5735 \end{chpcode}
5736 \setchpmeasuretip{|}
5737 the \verb|\measure| will appear again as:
5738 \begin{center}
5739 \begin{tikzpicture}
5740 \measure{(0,0)}{(2,0)}{\SI{2}{\cm}}
5741 \end{tikzpicture}
5742 \end{center}
5743 and this means that all of the setting commands listed above act like
5744 declarations and have local validity, so they can be changed everywhere into the
5745 document (even multiple times inside the same \verb|tikzpicture| environment).
5746 This is particularly useful to solve the problem introduced above as example,
5747 the possibly too large base dimension of units in the case of large diagrams. One
5748 can simply scale down all of the units before the scheme and restore the default
5749 unit scale after that. An example. After giving:
5750 \begin{chpcode}
5751 \setchpunitscale{0.5}
5752 \end{chpcode}
5753 \setchpunitscale{0.5}
5754 all of the units will be half their default sizes:
5755 \begin{center}
5756 \begin{tikzpicture}
5757 \pic at (0,0) {centrifugal pump};
5758 \pic at (3,0) {heat exchanger};
5759 \pic at (6,0) {column=packed};
5760 \end{tikzpicture}
5761 \end{center}
5762 and after a new:
5763 \begin{chpcode}
5764 \setchpunitscale{1}
5765 \end{chpcode}
5766 \setchpunitscale{1}
5767 all of the units will be restored to their default dimensions:
5768 \begin{center}
5769 \begin{tikzpicture}
5770 \pic at (0,0) {centrifugal pump};
5771 \pic at (3,0) {heat exchanger};
5772 \pic at (6,0) {column=packed};
5773 \end{tikzpicture}
5774 \end{center}
5775
5776 Styles for blocks can be tuned setting line thickness, font dimension and base
5777 dimension. Also this last feature, like the scale factor for instruments,
5778 regards blocks only and it is independent of the units scale factor.
5779 \begin{itemize}
5780 \item Line thickness used by the \chpp{block} pic can be set using the
5781 command:
5782 \begin{chpcode}[gobble=12]
5783 \setchpblockthickness{ÂŁ!\meta{line thickness}!ÂŁ}
5784 \end{chpcode}
5785 which requires as argument the name of a \TikZ\ line thickness; default
5786 value is \verb|thick|.
5787 \item Scale factor to be applied to the \chpp{block} pic can be set using
5788 the command:
5789 \begin{chpcode}[gobble=12]
5790 \setchpblockscale{ÂŁ!\meta{scale factor}!ÂŁ}
5791 \end{chpcode}
5792 which requires as argument a numerical value to be used as scale factor
5793 and that will multiply every dimension of the block; default value is
5794 \verb|1|.
5795 \item Font size to be used within the \chpp{block} pic can be set using the
5796 command:
5797 \begin{chpcode}[gobble=12]
5798 \setchpinstrumentfontsize{ÂŁ!\meta{font size}!ÂŁ}
5799 \end{chpcode}
5800 which requires as argument a font size attribute understood by \LaTeX;
5801 default value is \verb|\footnotesize|.
5802 \end{itemize}
5803
5804 A last remark: the listed commands permit to easily tune a number of graphical
5805 parameters in order to satisfy different necessities. Demanding users who have
5806 a good knowledge of the \TikZ\ package can anyway customise even more the styles
5807 used by \chemplants\ looking for the code of the package and modifying the
5808 ``internal styles'' (the ones not meant to be used directly by the ``common''
5809 user and prefixed by \verb|chp|) as they like, but at their own risk.
5810
5811 \section{Examples}
5812
5813 \tikzset{every node/.style={}}
5814
5815 Some ``complete'' examples will be presented in order to give a better view
5816 of how the \chemplants\ package works. Both codes and resulting diagrams will be
5817 shown.
5818
5819 \subsubsection{Some Remarks on the Drawing Procedure}
5820
5821 If some users want to try and replicate (copy and paste) the examples, they are
5822 free to do that. In this case they will find useful to add some additional macros
5823 to their preambles, some commands I defined during time and that I use
5824 extensively:
5825 \begin{chpcode}
5826 \renewcommand{\vec}[1]{\boldsymbol{#1}} % vector notation
5827 \newcommand{\flow}[1]{\dot{#1}} % flow-rate notation
5828 \end{chpcode}
5829 and which I defined only for easiness of change. Moreover, one of the examples
5830 will use the basic system to parse chemistry notation of the \chemformula\
5831 package (that, by the way, is an excellent suite for documents dealing with
5832 chemistry). Finally, two macros defined by the Italian option passed to the
5833 \babel\ package:
5834 \begin{chpcode}
5835 \providecommand*{\ap}[1]{% % upright superscripts
5836 \textormath{%
5837 \textsuperscript{#1}%
5838 }%
5839 {%
5840 ^{\mathrm{#1}}%
5841 }%
5842 }
5843 \providecommand*{\ped}[1]{% % upright subscripts
5844 \textormath{%
5845 $_{\mbox{\fontsize\sf@size\z@\selectfont#1}}$%
5846 }%
5847 {%
5848 _\mathrm{#1}%
5849 }%
5850 }
5851 \end{chpcode}
5852
5853 Before moving on to the real examples it is useful to recall the two main
5854 approaches one can follow to draw the scheme of a chemical process. As a general
5855 rule, it is almost always better to plan the scheme before starting its real
5856 drawing, where ``to plan'' means to decide where to put units, how to connect
5857 them through streams, where signal lines should pass on the scheme, how much
5858 space is required between units and so on. This permits to avoid to reach the end
5859 of the scheme and to realize only too late that it is too large to fit on the
5860 page, when spacing units a little less would have solved the problem.
5861
5862 Once the plan has been done, it is possible to move to the real construction of
5863 the drawing, but here it is necessary to choose the approach:
5864 \begin{itemize}
5865 \item building the scheme thinking linearly (following the streams) and
5866 calculating by hand the coordinates of the points in which units will
5867 be placed and in which streams will be connected;
5868 \item building the scheme thinking in a more global way, placing units first
5869 and then using their coordinates nodes to connect them through streams
5870 and signals.
5871 \end{itemize}
5872 As told before, the second way requires a little more practice, but the
5873 resulting scheme is much more easy to obtain and flexible to modify (even though
5874 the code can be slightly more complex to read). Anyway, users are free to choose
5875 the approach they like the most, being ready to accept all of its implications.
5876
5877 In the following examples, both approaches will be shown, but not for the
5878 same code: some of the examples will be structured calculating coordinates by
5879 hand, while the remaining will use nodes. (Readers should use care in deciding to
5880 follow strictly the drawing methods which will be shown in the following codes,
5881 in fact examples are mainly the schemes I had to represent. It is likely that
5882 better ways to draw a scheme can be found.)
5883
5884 \subsubsection{Hand Calculation of Coordinates}
5885
5886 \begin{chpcode}[caption=Scheme of a flash process.,
5887 label=lst:flash]
5888 \begin{tikzpicture}
5889 \draw[main stream] (-0.5,0) -- (1.5,0);
5890 \node[above right] at (-0.5,0) {$\flow{n}\ap{F}, \vec{z}$};
5891 \pic at (1.5,0) {centrifugal pump};
5892 \draw[main stream] (1.5,0.4) -- (3,0.4);
5893 \pic at (3.5,0.4) {heat exchanger};
5894 \draw[utility stream] (3.5,1.4) -- (3.5,0.9);
5895 \node[above left] at (3.5,0.9) {$\flow{Q}$};
5896 \draw[utility stream] (3.5,-0.1) -- (3.5,-0.6);
5897 \draw[main stream] (4,0.4) -- (4.8,0.4);
5898 \pic at (5,0.4) {lamination valve};
5899 \draw[main stream] (5.2,0.4) -- (6,0.4);
5900 \node[above left] at (6,0.4) {$P$};
5901 \pic at (6.8,0.4) {gas-liquid separator};
5902 \draw[main stream] (6.8,1.9) |- (9,2.5);
5903 \node[above left] at (9,2.5) {$\flow{n}\ap{V}, \vec{y}$};
5904 \draw[main stream] (6.8,-1.1) |- (9,-1.7);
5905 \node[below left] at (9,-1.7) {$\flow{n}\ap{L}, \vec{x}$};
5906 \end{tikzpicture}
5907 \end{chpcode}
5908
5909 \begin{figure}
5910 \centering
5911 \begin{tikzpicture}
5912 \draw[main stream] (-0.5,0) -- (1.5,0);
5913 \node[above right] at (-0.5,0) {$\flow{n}\ap{F}, \vec{z}$};
5914 \pic at (1.5,0) {centrifugal pump};
5915 \draw[main stream] (1.5,0.4) -- (3,0.4);
5916 \pic at (3.5,0.4) {heat exchanger};
5917 \draw[utility stream] (3.5,1.4) -- (3.5,0.9);
5918 \node[above left] at (3.5,0.9) {$\flow{Q}$};
5919 \draw[utility stream] (3.5,-0.1) -- (3.5,-0.6);
5920 \draw[main stream] (4,0.4) -- (4.8,0.4);
5921 \pic at (5,0.4) {lamination valve};
5922 \draw[main stream] (5.2,0.4) -- (6,0.4);
5923 \node[above left] at (6,0.4) {$P$};
5924 \pic at (6.8,0.4) {gas-liquid separator};
5925 \draw[main stream] (6.8,1.9) |- (9,2.5);
5926 \node[above left] at (9,2.5) {$\flow{n}\ap{V}, \vec{y}$};
5927 \draw[main stream] (6.8,-1.1) |- (9,-1.7);
5928 \node[below left] at (9,-1.7) {$\flow{n}\ap{L}, \vec{x}$};
5929 \end{tikzpicture}
5930 \caption{Scheme of a flash process produced by the \lref{lst:flash} code.}
5931 \label{fig:flash}
5932 \end{figure}
5933
5934 \begin{chpcode}[caption=Scheme of a countercurrent multiple flash process.,
5935 label=lst:mflash]
5936 \begin{tikzpicture}
5937 \draw[main stream] (0.5,0) -- (2,0);
5938 \node[above right] at (0.5,0)
5939 {$\flow{n}\ap{F}, \vec{z}\ap{F}$};
5940 \pic at (3,0) {tank};
5941 \draw[main stream] (3,1.5) |- (5,2);
5942 \node[above] at (3,2)
5943 {$\flow{n}\ap{V_\mathit{j + 1}},
5944 \vec{y}\ap{V_\mathit{j + 1}}$};
5945 \pic at (6,3) {tank};
5946 \draw[main stream] (6,4.5) |- (8.333,5) |- (9,2);
5947 \node[above] at (6,5)
5948 {$\flow{n}\ap{V_\mathit{j}},
5949 \vec{y}\ap{V_\mathit{j}}$};
5950 \pic at (10,3) {tank};
5951 \draw[main stream] (10,4.5) |- (12.3,5);
5952 \pic[rotate=180] at (12.5,5) {valve triple=main};
5953 \draw[main stream] (12.7,5) -- (14,5);
5954 \node[above left] at (14,5)
5955 {$\flow{n}\ap{D}, \vec{y}\ap{D}$};
5956 \draw[main stream] (12.5,4.8) -- (12.5,4);
5957 \pic[rotate=-90] at (12.5,3.5) {heat exchanger};
5958 \draw[utility stream] (11.5,3.5) -- (12,3.5);
5959 \draw[utility stream] (13,3.5) -- (13.5,3.5);
5960 \node[above] at (13.5,3.5) {$\flow{Q}\ped{C}$};
5961 \draw[main stream] (12.5,3) |- (11,2);
5962 \draw[main stream] (10,1.5) |- (7.688,1) |- (7,4);
5963 \node[below] at (10,1)
5964 {$\flow{n}\ap{L_1}, \vec{x}\ap{L_1}$};
5965 \draw[main stream] (6,1.5) |- (4,1);
5966 \node[below] at (6,1)
5967 {$\flow{n}\ap{L_\mathit{j}},
5968 \vec{x}\ap{L_\mathit{j}}$};
5969 \draw[main stream] (3,-1.5) |- (5,-2);
5970 \node[below] at (3,-2)
5971 {$\flow{n}\ap{L_\mathit{k - 1}},
5972 \vec{x}\ap{L_\mathit{k - 1}}$};
5973 \pic at (6,-3) {tank};
5974 \draw[main stream] (6,-4.5) |- (8.333,-5) |- (9,-2);
5975 \node[below] at (6,-5)
5976 {$\flow{n}\ap{L_\mathit{k}},
5977 \vec{x}\ap{L_\mathit{k}}$};
5978 \pic at (10,-3) {tank};
5979 \draw[main stream] (10,-4.5) |- (12.3,-5);
5980 \pic at (12.5,-5) {valve triple=main};
5981 \draw[main stream] (12.7,-5) -- (14,-5);
5982 \node[below left] at (14,-5)
5983 {$\flow{n}\ap{R}, \vec{x}\ap{R}$};
5984 \draw[main stream] (12.5,-4.8) -- (12.5,-4);
5985 \pic[rotate=-90] at (12.5,-3.5) {heat exchanger};
5986 \draw[utility stream] (13.5,-3.5) -- (13,-3.5);
5987 \draw[utility stream] (12,-3.5) -- (11.5,-3.5);
5988 \node[below] at (13.5,-3.5) {$\flow{Q}\ped{B}$};
5989 \draw[main stream] (12.5,-3) |- (11,-2);
5990 \node[above] at (6,-1)
5991 {$\flow{n}\ap{V_\mathit{k}},
5992 \vec{y}\ap{V_\mathit{k}}$};
5993 \draw[main stream] (10,-1.5) |- (7.688,-1) |- (7,-4);
5994 \node[above] at (10,-1)
5995 {$\flow{n}\ap{V_{\mathit{N\ped{T}}}},
5996 \vec{y}\ap{V_{\mathit{N\ped{T}}}}$};
5997 \draw[main stream] (6,-1.5) |- (4,-1);
5998 \end{tikzpicture}
5999 \end{chpcode}
6000
6001 \begin{figure}
6002 \centering
6003 \begin{tikzpicture}
6004 \draw[main stream] (0.5,0) -- (2,0);
6005 \node[above right] at (0.5,0)
6006 {$\flow{n}\ap{F}, \vec{z}\ap{F}$};
6007 \pic at (3,0) {tank};
6008 \draw[main stream] (3,1.5) |- (5,2);
6009 \node[above] at (3,2)
6010 {$\flow{n}\ap{V_\mathit{j + 1}},
6011 \vec{y}\ap{V_\mathit{j + 1}}$};
6012 \pic at (6,3) {tank};
6013 \draw[main stream] (6,4.5) |- (8.333,5) |- (9,2);
6014 \node[above] at (6,5)
6015 {$\flow{n}\ap{V_\mathit{j}},
6016 \vec{y}\ap{V_\mathit{j}}$};
6017 \pic at (10,3) {tank};
6018 \draw[main stream] (10,4.5) |- (12.3,5);
6019 \pic[rotate=180] at (12.5,5) {valve triple=main};
6020 \draw[main stream] (12.7,5) -- (14,5);
6021 \node[above left] at (14,5)
6022 {$\flow{n}\ap{D}, \vec{y}\ap{D}$};
6023 \draw[main stream] (12.5,4.8) -- (12.5,4);
6024 \pic[rotate=-90] at (12.5,3.5) {heat exchanger};
6025 \draw[utility stream] (11.5,3.5) -- (12,3.5);
6026 \draw[utility stream] (13,3.5) -- (13.5,3.5);
6027 \node[above] at (13.5,3.5) {$\flow{Q}\ped{C}$};
6028 \draw[main stream] (12.5,3) |- (11,2);
6029 \draw[main stream] (10,1.5) |- (7.688,1) |- (7,4);
6030 \node[below] at (10,1)
6031 {$\flow{n}\ap{L_1}, \vec{x}\ap{L_1}$};
6032 \draw[main stream] (6,1.5) |- (4,1);
6033 \node[below] at (6,1)
6034 {$\flow{n}\ap{L_\mathit{j}},
6035 \vec{x}\ap{L_\mathit{j}}$};
6036 \draw[main stream] (3,-1.5) |- (5,-2);
6037 \node[below] at (3,-2)
6038 {$\flow{n}\ap{L_\mathit{k - 1}},
6039 \vec{x}\ap{L_\mathit{k - 1}}$};
6040 \pic at (6,-3) {tank};
6041 \draw[main stream] (6,-4.5) |- (8.333,-5) |- (9,-2);
6042 \node[below] at (6,-5)
6043 {$\flow{n}\ap{L_\mathit{k}},
6044 \vec{x}\ap{L_\mathit{k}}$};
6045 \pic at (10,-3) {tank};
6046 \draw[main stream] (10,-4.5) |- (12.3,-5);
6047 \pic at (12.5,-5) {valve triple=main};
6048 \draw[main stream] (12.7,-5) -- (14,-5);
6049 \node[below left] at (14,-5)
6050 {$\flow{n}\ap{R}, \vec{x}\ap{R}$};
6051 \draw[main stream] (12.5,-4.8) -- (12.5,-4);
6052 \pic[rotate=-90] at (12.5,-3.5) {heat exchanger};
6053 \draw[utility stream] (13.5,-3.5) -- (13,-3.5);
6054 \draw[utility stream] (12,-3.5) -- (11.5,-3.5);
6055 \node[below] at (13.5,-3.5) {$\flow{Q}\ped{B}$};
6056 \draw[main stream] (12.5,-3) |- (11,-2);
6057 \node[above] at (6,-1)
6058 {$\flow{n}\ap{V_\mathit{k}},
6059 \vec{y}\ap{V_\mathit{k}}$};
6060 \draw[main stream] (10,-1.5) |- (7.688,-1) |- (7,-4);
6061 \node[above] at (10,-1)
6062 {$\flow{n}\ap{V_{\mathit{N\ped{T}}}},
6063 \vec{y}\ap{V_{\mathit{N\ped{T}}}}$};
6064 \draw[main stream] (6,-1.5) |- (4,-1);
6065 \end{tikzpicture}
6066 \caption{Scheme of a countercurrent multiple flash process produced by the
6067 \lref{lst:mflash} code.}
6068 \label{fig:mflash}
6069 \end{figure}
6070
6071 \begin{chpcode}[caption=Scheme of a continuous distillation process.,
6072 label=lst:distil]
6073 \begin{tikzpicture}
6074 \draw [main stream] (-2,0) -- (-0.5,0);
6075 \node[above right] at (-2,0)
6076 {$\flow{n}\ap{F}, \vec{z}\ap{F}$};
6077 \pic at (0,0) {column=trayed};
6078 \pic at (1.5,3.5) {condenser};
6079 \draw [main stream] (0,3) |- (1,3.5);
6080 \node [above right] at (0,3.5) {$\flow{n}\ap{V}$};
6081 \draw [main stream] (1.5,4) |- (3,4.5);
6082 \node[above left] at (3,4.5)
6083 {$\flow{n}\ap{D}, \vec{y}\ap{D}$};
6084 \draw [secondary stream] (1.5,3) |- (0.5,2.6);
6085 \node [below left] at (1.5,2.6) {$\flow{n}\ap{L}$};
6086 \pic at (1.5,-3.5) {boiler};
6087 \draw [main stream] (0,-3) |- (1,-3.5);
6088 \node [below right] at (0,-3.5) {$\flow{n}\ap{L'}$};
6089 \draw [main stream] (1.5,-4) |- (3,-4.5);
6090 \node[below left] at (3,-4.5)
6091 {$\flow{n}\ap{R}, \vec{x}\ap{R}$};
6092 \draw [secondary stream] (1.5,-3) |- (0.5,-2.6);
6093 \node [above left] at (1.5,-2.6) {$\flow{n}\ap{V'}$};
6094 \end{tikzpicture}
6095 \end{chpcode}
6096
6097 \begin{figure}
6098 \centering
6099 \begin{tikzpicture}
6100 \draw [main stream] (-2,0) -- (-0.5,0);
6101 \node[above right] at (-2,0)
6102 {$\flow{n}\ap{F}, \vec{z}\ap{F}$};
6103 \pic at (0,0) {column=trayed};
6104 \pic at (1.5,3.5) {condenser};
6105 \draw [main stream] (0,3) |- (1,3.5);
6106 \node [above right] at (0,3.5) {$\flow{n}\ap{V}$};
6107 \draw [main stream] (1.5,4) |- (3,4.5);
6108 \node[above left] at (3,4.5)
6109 {$\flow{n}\ap{D}, \vec{y}\ap{D}$};
6110 \draw [secondary stream] (1.5,3) |- (0.5,2.6);
6111 \node [below left] at (1.5,2.6) {$\flow{n}\ap{L}$};
6112 \pic at (1.5,-3.5) {boiler};
6113 \draw [main stream] (0,-3) |- (1,-3.5);
6114 \node [below right] at (0,-3.5) {$\flow{n}\ap{L'}$};
6115 \draw [main stream] (1.5,-4) |- (3,-4.5);
6116 \node[below left] at (3,-4.5)
6117 {$\flow{n}\ap{R}, \vec{x}\ap{R}$};
6118 \draw [secondary stream] (1.5,-3) |- (0.5,-2.6);
6119 \node [above left] at (1.5,-2.6) {$\flow{n}\ap{V'}$};
6120 \end{tikzpicture}
6121 \caption{Scheme of a continuous distillation process produced by the
6122 \lref{lst:distil} code.}
6123 \label{fig:distil}
6124 \end{figure}
6125
6126 The following is the very first usage I did of \chemplants\ (when it was just a
6127 foggy idea), and, probably, still the most complex one. In this scheme, I had
6128 the need to represent sensors on valves, so I used the \chpp{actuator} pic to
6129 this aim.
6130
6131 \begin{chpcode}[caption=Complete \ac{PFD} of a vanadium redox flow battery pilot
6132 plant., label=lst:vrfbis]
6133 \begin{tikzpicture}[font=\footnotesize]
6134 % Positive Electrolyte
6135 % tank outlet
6136 \pic at (3,3.5) {tank};
6137 \node[align=center] at (3,4) {Positive\\ Electrolyte};
6138 \node at (3,3) {\ch{VO2+}/\ch{VO^2+}};
6139 \draw[main stream] (3,2) -- (3,1.7);
6140 \pic[rotate=90] at (3,1.5) {valve triple=main};
6141 \draw[main stream] (3,1.3) |- (2,0.6);
6142 \pic at (2,0.6) {centrifugal pump};
6143 \draw[main stream] (2,1) -| (1,1.3);
6144 \pic[rotate=270] at (1,1.5) {valve triple=main};
6145 % pump recycle
6146 \draw[secondary stream] (1.2,1.5) -- (1.8,1.5);
6147 \pic at (2,1.5) {valve=secondary};
6148 \node[above] at (2,1.5) {$V\ped{P}^+$};
6149 \draw[secondary stream] (2.2,1.5) -- (2.8,1.5);
6150 % battery stream
6151 \draw[main stream] (1,1.7) -- (1,3);
6152 \pic at (1,3.5) {instrument=FM};
6153 \draw[main stream] (1,4) -- (1,5.3);
6154 \draw[signal] (0.5,3.5) -| (0.25,2.5);
6155 \pic at (0.25,2) {controller=PID};
6156 \draw[signal] (0.25,1.5) |- (1.6,0.6);
6157 \pic[rotate=90] at (1,5.5) {valve=main};
6158 \node[right] at (1,5.5) {$V_1^+$};
6159 \draw[main stream] (1, 5.7) |- (2.8,6.9);
6160 \pic[rotate=90] at (3,6.9) {valve triple=main};
6161 \draw[main stream] (3,7.1) |- (6.2,7.5);
6162 \pic at (4,8.5) {instrument=TM};
6163 \draw[short signal] (4,8) -- (4,7.5);
6164 % battery bypass
6165 \draw[secondary stream] (3,6.7) -- (3,6.4);
6166 \pic[rotate=270] at (3,6.2) {valve=secondary};
6167 \pic[rotate=270] at (3,6.2) {actuator};
6168 \node[left] at (3,6.2) {$V\ped{B}^+$};
6169 \draw[secondary stream] (3,6) -- (3,5.7);
6170 % battery outlet
6171 \draw[main stream] (8,7) |- (5.2,5.5);
6172 \pic at (6,4.5) {instrument=TM};
6173 \draw [short signal] (6,5) -- (6,5.5);
6174 \pic at (5,5.5) {valve=main};
6175 \pic at (5,5.5) {actuator};
6176 \node[below] at (5,5.5) {$V_2^+$};
6177 \draw[main stream] (4.8,5.5) -- (3.2,5.5);
6178 \pic at (5,6.5) {instrument=PM};
6179 \draw[short signal] (5,7) -- (5,7.5);
6180 \draw[signal] (5.5,6.5) -- (7,6.5);
6181 % tank inlet
6182 \pic[rotate=270] at (3,5.5) {valve triple=main};
6183 \draw[main stream] (3,5.3) -- (3,5);
6184 % Negative Electrolyte
6185 % tank outlet
6186 \pic at (12,3.5) {tank};
6187 \node[align=center] at (12,4) {Negative\\ Electrolyte};
6188 \node at (12,3) {\ch{V^3+}/\ch{V^2+}};
6189 \draw[main stream] (12,2) -- (12,1.7);
6190 \pic[rotate=270] at (12,1.5) {valve triple=main};
6191 \draw[main stream] (12,1.3) |- (13,0.6);
6192 \pic at (13,0.6) {centrifugal pump};
6193 \draw[main stream] (13,1) -| (14,1.3);
6194 \pic[rotate=90] at (14,1.5) {valve triple=main};
6195 % pump recycle
6196 \draw[secondary stream] (13.8,1.5) -- (13.2,1.5);
6197 \pic at (13,1.5) {valve=secondary};
6198 \node[above] at (13,1.5) {$V\ped{P}^-$};
6199 \draw[secondary stream] (12.8,1.5) -- (12.2,1.5);
6200 % battery stream
6201 \draw[main stream] (14,1.7) -- (14,3);
6202 \pic at (14,3.5) {instrument=FM};
6203 \draw[main stream] (14,4) -- (14,5.3);
6204 \draw[signal] (14.5,3.5) -| (14.75,2.5);
6205 \pic at (14.75,2) {controller=PID};
6206 \draw[signal] (14.75,1.5) |- (13.4,0.6);
6207 \pic[rotate=90] at (14,5.5) {valve=main};
6208 \node[left] at (14,5.5) {$V_1^-$};
6209 \draw[main stream] (14, 5.7) |- (12.2,6.9);
6210 \pic[rotate=270] at (12,6.9) {valve triple=main};
6211 \draw[main stream] (12,7.1) |- (8.8,7.5);
6212 \pic at (11,8.5) {instrument=TM};
6213 \draw[short signal] (11,8) -- (11,7.5);
6214 % battery bypass
6215 \draw[secondary stream] (12,6.7) -- (12,6.4);
6216 \pic[rotate=90] at (12,6.2) {valve=secondary};
6217 \pic[rotate=90] at (12,6.2) {actuator};
6218 \node[right] at (12,6.2) {$V\ped{B}^-$};
6219 \draw[secondary stream] (12,6) -- (12,5.7);
6220 % battery outlet
6221 \draw[main stream] (7,7) |- (8.5,5) |- (9.8,5.5);
6222 \pic at (9,4.5) {instrument=TM};
6223 \draw[short signal] (9,5) -- (9,5.5);
6224 \pic at (10,5.5) {valve=main};
6225 \pic at (10,5.5) {actuator};
6226 \node[below] at (10,5.5) {$V_2^-$};
6227 \draw[main stream] (10.2,5.5) -- (11.8,5.5);
6228 \pic at (10,6.5) {instrument=PM};
6229 \draw[short signal] (10,7) -- (10,7.5);
6230 \draw[signal] (9.5,6.5) -- (8,6.5);
6231 % tank inlet
6232 \pic[rotate=90] at (12,5.5) {valve triple=main};
6233 \draw[main stream] (12,5.3) -- (12,5);
6234 % Battery
6235 % block structure
6236 \draw[thick] (6,7) rectangle (9, 9.6);
6237 \node[above] at (7.5,9.6) {Battery};
6238 % positive main stream
6239 \pic at (6.2,7.5) {input};
6240 \draw[main stream, hidden stream]
6241 (6.2,7.55) |- (7.8,9.2) |- (7.95,8.5);
6242 \pic at (8,8.5) {output};
6243 \draw[main stream] (8,8.5) -- (8.3,8.5);
6244 \pic[rotate=90] at (8.5,8.5) {valve triple=main};
6245 \pic[rotate=270] at (8.5,8.5) {actuator};
6246 \draw[main stream] (8.5,8.3) |- (8,8);
6247 \pic at (8,8) {input};
6248 \draw[main stream, hidden stream] (8,7.95) -- (8,7.7);
6249 \pic[rotate=90, hidden component] at (8,7.5)
6250 {valve triple=main};
6251 \draw[main stream, hidden stream] (8,7.3) -- (8,7);
6252 % negative main stream
6253 \pic at (8.8,7.5) {input};
6254 \draw[main stream, hidden stream]
6255 (8.8,7.55) |- (7.2,9.4) |- (7.05,8.5);
6256 \pic at (7,8.5) {output};
6257 \draw[main stream] (7,8.5) -- (6.7,8.5);
6258 \pic[rotate=270] at (6.5,8.5) {valve triple=main};
6259 \pic[rotate=90] at (6.5,8.5) {actuator};
6260 \draw[main stream] (6.5,8.3) |- (7,8);
6261 \pic at (7,8) {input};
6262 \draw[main stream, hidden stream] (7,7.95) -- (7,7.7);
6263 \pic[rotate=270, hidden component] at (7,7.5)
6264 {valve triple=main};
6265 \draw[main stream, hidden stream] (7,7.3) -- (7,7);
6266 % positive to negative remixing
6267 \draw[secondary stream, color=red] (8.5,8.7) |- (8,9);
6268 \pic at (8,9) {input};
6269 \draw[secondary stream, hidden stream, color=red]
6270 (7.95,9) -| (7.4,7.5) -- (7.2,7.5);
6271 % negative to positive remixing
6272 \draw[secondary stream, color=red] (6.5,8.7) |- (7,9);
6273 \pic at (7,9) {input};
6274 \draw[secondary stream, hidden stream, color=red]
6275 (7,8.95) |- (7.6,8.75) |- (7.8,7.5);
6276 % Tanks Connection
6277 \draw (4,2.585) -- (7.3,2.585);
6278 \pic at (7.5,2.585) {valve=secondary};
6279 \node[below] at (7.5,2.585) {$V\ped{C}$};
6280 \draw (7.7,2.585) -- (11,2.585);
6281 \end{tikzpicture}
6282 \end{chpcode}
6283
6284 \begin{figure}
6285 \centering
6286 \begin{tikzpicture}[font=\footnotesize]
6287 % Positive Electrolyte
6288 % tank outlet
6289 \pic at (3,3.5) {tank};
6290 \node[align=center] at (3,4) {Positive\\ Electrolyte};
6291 \node at (3,3) {\ch{VO2+}/\ch{VO^2+}};
6292 \draw[main stream] (3,2) -- (3,1.7);
6293 \pic[rotate=90] at (3,1.5) {valve triple=main};
6294 \draw[main stream] (3,1.3) |- (2,0.6);
6295 \pic at (2,0.6) {centrifugal pump};
6296 \draw[main stream] (2,1) -| (1,1.3);
6297 \pic[rotate=270] at (1,1.5) {valve triple=main};
6298 % pump recycle
6299 \draw[secondary stream] (1.2,1.5) -- (1.8,1.5);
6300 \pic at (2,1.5) {valve=secondary};
6301 \node[above] at (2,1.5) {$V\ped{P}^+$};
6302 \draw[secondary stream] (2.2,1.5) -- (2.8,1.5);
6303 % battery stream
6304 \draw[main stream] (1,1.7) -- (1,3);
6305 \pic at (1,3.5) {instrument=FM};
6306 \draw[main stream] (1,4) -- (1,5.3);
6307 \draw[signal] (0.5,3.5) -| (0.25,2.5);
6308 \pic at (0.25,2) {controller=PID};
6309 \draw[signal] (0.25,1.5) |- (1.6,0.6);
6310 \pic[rotate=90] at (1,5.5) {valve=main};
6311 \node[right] at (1,5.5) {$V_1^+$};
6312 \draw[main stream] (1, 5.7) |- (2.8,6.9);
6313 \pic[rotate=90] at (3,6.9) {valve triple=main};
6314 \draw[main stream] (3,7.1) |- (6.2,7.5);
6315 \pic at (4,8.5) {instrument=TM};
6316 \draw[short signal] (4,8) -- (4,7.5);
6317 % battery bypass
6318 \draw[secondary stream] (3,6.7) -- (3,6.4);
6319 \pic[rotate=270] at (3,6.2) {valve=secondary};
6320 \pic[rotate=270] at (3,6.2) {actuator};
6321 \node[left] at (3,6.2) {$V\ped{B}^+$};
6322 \draw[secondary stream] (3,6) -- (3,5.7);
6323 % battery outlet
6324 \draw[main stream] (8,7) |- (5.2,5.5);
6325 \pic at (6,4.5) {instrument=TM};
6326 \draw [short signal] (6,5) -- (6,5.5);
6327 \pic at (5,5.5) {valve=main};
6328 \pic at (5,5.5) {actuator};
6329 \node[below] at (5,5.5) {$V_2^+$};
6330 \draw[main stream] (4.8,5.5) -- (3.2,5.5);
6331 \pic at (5,6.5) {instrument=PM};
6332 \draw[short signal] (5,7) -- (5,7.5);
6333 \draw[signal] (5.5,6.5) -- (7,6.5);
6334 % tank inlet
6335 \pic[rotate=270] at (3,5.5) {valve triple=main};
6336 \draw[main stream] (3,5.3) -- (3,5);
6337 % Negative Electrolyte
6338 % tank outlet
6339 \pic at (12,3.5) {tank};
6340 \node[align=center] at (12,4) {Negative\\ Electrolyte};
6341 \node at (12,3) {\ch{V^3+}/\ch{V^2+}};
6342 \draw[main stream] (12,2) -- (12,1.7);
6343 \pic[rotate=270] at (12,1.5) {valve triple=main};
6344 \draw[main stream] (12,1.3) |- (13,0.6);
6345 \pic at (13,0.6) {centrifugal pump};
6346 \draw[main stream] (13,1) -| (14,1.3);
6347 \pic[rotate=90] at (14,1.5) {valve triple=main};
6348 % pump recycle
6349 \draw[secondary stream] (13.8,1.5) -- (13.2,1.5);
6350 \pic at (13,1.5) {valve=secondary};
6351 \node[above] at (13,1.5) {$V\ped{P}^-$};
6352 \draw[secondary stream] (12.8,1.5) -- (12.2,1.5);
6353 % battery stream
6354 \draw[main stream] (14,1.7) -- (14,3);
6355 \pic at (14,3.5) {instrument=FM};
6356 \draw[main stream] (14,4) -- (14,5.3);
6357 \draw[signal] (14.5,3.5) -| (14.75,2.5);
6358 \pic at (14.75,2) {controller=PID};
6359 \draw[signal] (14.75,1.5) |- (13.4,0.6);
6360 \pic[rotate=90] at (14,5.5) {valve=main};
6361 \node[left] at (14,5.5) {$V_1^-$};
6362 \draw[main stream] (14, 5.7) |- (12.2,6.9);
6363 \pic[rotate=270] at (12,6.9) {valve triple=main};
6364 \draw[main stream] (12,7.1) |- (8.8,7.5);
6365 \pic at (11,8.5) {instrument=TM};
6366 \draw[short signal] (11,8) -- (11,7.5);
6367 % battery bypass
6368 \draw[secondary stream] (12,6.7) -- (12,6.4);
6369 \pic[rotate=90] at (12,6.2) {valve=secondary};
6370 \pic[rotate=90] at (12,6.2) {actuator};
6371 \node[right] at (12,6.2) {$V\ped{B}^-$};
6372 \draw[secondary stream] (12,6) -- (12,5.7);
6373 % battery outlet
6374 \draw[main stream] (7,7) |- (8.5,5) |- (9.8,5.5);
6375 \pic at (9,4.5) {instrument=TM};
6376 \draw[short signal] (9,5) -- (9,5.5);
6377 \pic at (10,5.5) {valve=main};
6378 \pic at (10,5.5) {actuator};
6379 \node[below] at (10,5.5) {$V_2^-$};
6380 \draw[main stream] (10.2,5.5) -- (11.8,5.5);
6381 \pic at (10,6.5) {instrument=PM};
6382 \draw[short signal] (10,7) -- (10,7.5);
6383 \draw[signal] (9.5,6.5) -- (8,6.5);
6384 % tank inlet
6385 \pic[rotate=90] at (12,5.5) {valve triple=main};
6386 \draw[main stream] (12,5.3) -- (12,5);
6387 % Battery
6388 % block structure
6389 \draw[thick] (6,7) rectangle (9, 9.6);
6390 \node[above] at (7.5,9.6) {Battery};
6391 % positive main stream
6392 \pic at (6.2,7.5) {input};
6393 \draw[main stream, hidden stream]
6394 (6.2,7.55) |- (7.8,9.2) |- (7.95,8.5);
6395 \pic at (8,8.5) {output};
6396 \draw[main stream] (8,8.5) -- (8.3,8.5);
6397 \pic[rotate=90] at (8.5,8.5) {valve triple=main};
6398 \pic[rotate=270] at (8.5,8.5) {actuator};
6399 \draw[main stream] (8.5,8.3) |- (8,8);
6400 \pic at (8,8) {input};
6401 \draw[main stream, hidden stream] (8,7.95) -- (8,7.7);
6402 \pic[rotate=90, hidden component] at (8,7.5)
6403 {valve triple=main};
6404 \draw[main stream, hidden stream] (8,7.3) -- (8,7);
6405 % negative main stream
6406 \pic at (8.8,7.5) {input};
6407 \draw[main stream, hidden stream]
6408 (8.8,7.55) |- (7.2,9.4) |- (7.05,8.5);
6409 \pic at (7,8.5) {output};
6410 \draw[main stream] (7,8.5) -- (6.7,8.5);
6411 \pic[rotate=270] at (6.5,8.5) {valve triple=main};
6412 \pic[rotate=90] at (6.5,8.5) {actuator};
6413 \draw[main stream] (6.5,8.3) |- (7,8);
6414 \pic at (7,8) {input};
6415 \draw[main stream, hidden stream] (7,7.95) -- (7,7.7);
6416 \pic[rotate=270, hidden component] at (7,7.5)
6417 {valve triple=main};
6418 \draw[main stream, hidden stream] (7,7.3) -- (7,7);
6419 % positive to negative remixing
6420 \draw[secondary stream, color=red] (8.5,8.7) |- (8,9);
6421 \pic at (8,9) {input};
6422 \draw[secondary stream, hidden stream, color=red]
6423 (7.95,9) -| (7.4,7.5) -- (7.2,7.5);
6424 % negative to positive remixing
6425 \draw[secondary stream, color=red] (6.5,8.7) |- (7,9);
6426 \pic at (7,9) {input};
6427 \draw[secondary stream, hidden stream, color=red]
6428 (7,8.95) |- (7.6,8.75) |- (7.8,7.5);
6429 % Tanks Connection
6430 \draw (4,2.585) -- (7.3,2.585);
6431 \pic at (7.5,2.585) {valve=secondary};
6432 \node[below] at (7.5,2.585) {$V\ped{C}$};
6433 \draw (7.7,2.585) -- (11,2.585);
6434 \end{tikzpicture}
6435 \caption{Complete \ac{PFD} of a vanadium redox flow battery pilot plant produced
6436 by the \lref{lst:vrfbis} code.}
6437 \label{fig:vrfbis}
6438 \end{figure}
6439
6440 \subsubsection{Usage of Nodes}
6441
6442 Starting from the next example, the second way outlined in the introduction to
6443 the examples will be used to draw schemes: units placement first and nodes usage
6444 to connect streams.
6445
6446 \begin{chpcode}[caption=Scheme of an absorption process with solvent
6447 regeneration through steam stripping.,
6448 label=lst:absstr]
6449 \begin{tikzpicture}[font=\footnotesize]
6450 % Units Placement and Labelling
6451 \pic (absorption tower) at (2,4) {column=packed};
6452 \pic (stripping tower) at (10,4) {column=packed};
6453 \pic (mid heat exchanger) at (6,4) {heat exchanger};
6454 \pic (cooler) at (4,6.6) {heat exchanger};
6455 \pic (heater) at (7,6.6) {heat exchanger};
6456 \pic (pump) at (8.5,0.6) {centrifugal pump};
6457 \pic (lamination valve) at (8.5,6.6) {lamination valve};
6458 \node[above, rotate=-90, align=center] at
6459 (absorption tower-right)
6460 {absorption tower};
6461 \node[above, rotate=-90, align=center] at
6462 (stripping tower-right)
6463 {stripping tower};
6464 \node[left=5] at (mid heat exchanger-bottom)
6465 {heat integration};
6466 \node[below] at (lamination valve-anchor)
6467 {expansion};
6468 \node[below right] at (pump-right)
6469 {compression};
6470 % Main Streams Connections and Labelling
6471 \draw[main stream] (0,1.4) --
6472 (absorption tower-bottom left);
6473 \node[below left] at (absorption tower-bottom left)
6474 {dirty gas};
6475 \draw[main stream] (0,6.6) --
6476 (absorption tower-top left);
6477 \node[below left] at (absorption tower-top left)
6478 {solvent make-up};
6479 \draw[main stream] (absorption tower-top) -- ++(0,1);
6480 \node[above left] at (absorption tower-top)
6481 {clean gas};
6482 \draw[main stream] (absorption tower-bottom) --
6483 ++(0,-0.5) -| (mid heat exchanger-bottom);
6484 \node[below right] at (absorption tower-bottom)
6485 {dirty solvent};
6486 \draw[main stream] (mid heat exchanger-top) |-
6487 (heater-internal tubes left);
6488 \draw[main stream] (heater-internal tubes right) --
6489 (lamination valve-inlet);
6490 \draw[main stream] (lamination valve-outlet) --
6491 (stripping tower-top left);
6492 \draw[main stream] (stripping tower-bottom) |-
6493 (pump-anchor);
6494 \node[below right] at (stripping tower-bottom)
6495 {clean solvent};
6496 \draw[main stream] (pump-left) |-
6497 (mid heat exchanger-internal tubes right);
6498 \draw[main stream]
6499 (mid heat exchanger-internal tubes left) --
6500 ++(-0.5,0) |- (cooler-internal tubes right);
6501 \draw[main stream] (cooler-internal tubes left) --
6502 (absorption tower-top right);
6503 \draw[main stream] (12,1.4) --
6504 (stripping tower-bottom right);
6505 \node[above right] at (stripping tower-bottom right)
6506 {clean steam};
6507 \draw[main stream] (stripping tower-top) |- ++(2,0.5);
6508 \node[above right] at (stripping tower-top)
6509 {dirty steam};
6510 % Utility Streams Connections and Labelling
6511 \draw[utility stream] (4,7.6) -- (cooler-top);
6512 \node[above right] at (cooler-top)
6513 {cooling water};
6514 \draw[utility stream] (cooler-bottom) -- (4,5.6);
6515 \draw[utility stream] (7,7.6) -- (heater-top);
6516 \node[above right] at (heater-top)
6517 {heating steam};
6518 \draw[utility stream] (heater-bottom) -- (7,5.6);
6519 \end{tikzpicture}
6520 \end{chpcode}
6521
6522 \begin{figure}
6523 \centering
6524 \begin{tikzpicture}[font=\footnotesize]
6525 % Units Placement and Labelling
6526 \pic (absorption tower) at (2,4) {column=packed};
6527 \pic (stripping tower) at (10,4) {column=packed};
6528 \pic (mid heat exchanger) at (6,4) {heat exchanger};
6529 \pic (cooler) at (4,6.6) {heat exchanger};
6530 \pic (heater) at (7,6.6) {heat exchanger};
6531 \pic (pump) at (8.5,0.6) {centrifugal pump};
6532 \pic (lamination valve) at (8.5,6.6) {lamination valve};
6533 \node[above, rotate=-90, align=center] at
6534 (absorption tower-right)
6535 {absorption tower};
6536 \node[above, rotate=-90, align=center] at
6537 (stripping tower-right)
6538 {stripping tower};
6539 \node[left=5] at (mid heat exchanger-shell bottom)
6540 {heat integration};
6541 \node[below] at (lamination valve-anchor)
6542 {expansion};
6543 \node[below] at (pump-bottom)
6544 {compression};
6545 % Main Streams Connections and Labelling
6546 \draw[main stream] (0,1.4) --
6547 (absorption tower-bottom left);
6548 \node[below left] at (absorption tower-bottom left)
6549 {dirty gas};
6550 \draw[main stream] (0,6.6) --
6551 (absorption tower-top left);
6552 \node[below left] at (absorption tower-top left)
6553 {solvent make-up};
6554 \draw[main stream] (absorption tower-top) -- ++(0,1);
6555 \node[above left] at (absorption tower-top)
6556 {clean gas};
6557 \draw[main stream] (absorption tower-bottom) --
6558 ++(0,-0.5) -| (mid heat exchanger-shell bottom);
6559 \node[below right] at (absorption tower-bottom)
6560 {dirty solvent};
6561 \draw[main stream] (mid heat exchanger-shell top) |-
6562 (heater-pipes left);
6563 \draw[main stream] (heater-pipes right) --
6564 (lamination valve-inlet);
6565 \draw[main stream] (lamination valve-outlet) --
6566 (stripping tower-top left);
6567 \draw[main stream] (stripping tower-bottom) |-
6568 (pump-anchor);
6569 \node[below right] at (stripping tower-bottom)
6570 {clean solvent};
6571 \draw[main stream] (pump-left) |-
6572 (mid heat exchanger-pipes right);
6573 \draw[main stream]
6574 (mid heat exchanger-pipes left) --
6575 ++(-0.5,0) |- (cooler-pipes right);
6576 \draw[main stream] (cooler-pipes left) --
6577 (absorption tower-top right);
6578 \draw[main stream] (12,1.4) --
6579 (stripping tower-bottom right);
6580 \node[above right] at (stripping tower-bottom right)
6581 {clean steam};
6582 \draw[main stream] (stripping tower-top) |- ++(2,0.5);
6583 \node[above right] at (stripping tower-top)
6584 {dirty steam};
6585 % Utility Streams Connections and Labelling
6586 \draw[utility stream] (4,7.6) -- (cooler-shell top);
6587 \node[above right] at (cooler-shell top)
6588 {cooling water};
6589 \draw[utility stream] (cooler-shell bottom) -- (4,5.6);
6590 \draw[utility stream] (7,7.6) -- (heater-shell top);
6591 \node[above right] at (heater-shell top)
6592 {heating steam};
6593 \draw[utility stream] (heater-shell bottom) -- (7,5.6);
6594 \end{tikzpicture}
6595 \caption{Scheme of an absorption process with solvent regeneration through steam
6596 stripping produced by the \lref{lst:absstr} code.}
6597 \label{fig:absstr}
6598 \end{figure}
6599
6600 \section{Acknowledgments}
6601
6602 There is a quite long list of people I wish to thank concerning \chemplants.
6603 Although this project is rather personal, the package and its documentation would
6604 not have been what they are now without the help of the people listed here.
6605
6606 Desi Costa offered her support on linguistics, allowing me to yield a document
6607 written in a decent english.
6608
6609 Massimiliano Cailotto, Marco Sandrin and Stefano Peschiutta were perhaps the
6610 first users of the package when it was not of public domain yet and
6611 helped me spotting errors in the documentation, suggesting improvements and
6612 providing some complete diagrams. The experience of Massimiliano also proved
6613 to be very useful in selecting the most common units for processing granular
6614 materials.
6615
6616 Alberto Saccardo, Nicolò Soave and Michele Cherubin were my recurring fellows
6617 during most of the homework we had to carry out during the Master's Degree and
6618 always tolerated my maniacal desiare to produce diagrams using \chemplants.
6619
6620 I also wish to thank all of the members of the \GuIT, the Italian \TeX\ and
6621 \LaTeX\ users group, in particular the ones who take charge of the organisation
6622 of the annual group meeting. Editions of the \GuITmeeting[style=inline] have
6623 inspired me from the very first time I attended them and keep increasing my
6624 knowledge of the \TeX\ and \LaTeX\ world and my appetite for a continuous
6625 improvement. The passion and the support of some members I had the pleasure to
6626 know during the meeting are largely responsible of the development of of the
6627 \chemplants\ package and of its presence on the public \TeX\ distributions.
6628
6629 \section{What Happens Next}
6630
6631 As conceived, \chemplants\ is just a toolbox to draw in an easier way chemical
6632 process schematics, but a lot of tools are still missing in the box.
6633
6634 At the time of the first writing of this documentation, only symbols and styles
6635 I had the need to use were defined. In the future, a lot of new units will
6636 be defined, but this is a work that will require time and study, so it will be
6637 done step by step. I have a list of the ``most commonly used'' units to
6638 define, but users are free (and invited) to send suggestion about new units
6639 which they would like to see in the \chemplants\ palette.
6640
6641 The documentation file will also be subject to a deep review. It started out as a
6642 simple list of units, basically for my own use. However, as the package grew and
6643 new features got added, it became clear that the current structure of the
6644 documentation was bounding the ease of use. Hopefully, this constraint will be
6645 removed in future releases.
6646
6647 Besides the mentioned modifications, I am always open to suggestions which can
6648 improve the functionality and usability of \chemplants. Users who have something
6649 to suggest, find errors and bugs or are simply happy to use this package can
6650 contact me writing to \mail{[email protected]} and possibly placing
6651 ``\chemplants'' into the object field. I will be very grateful to these users.
6652
6653 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6654
6655 %: Bibliography
6656
6657 \printbibliography[heading=bibintoc]
6658
6659 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6660
6661 \end{document} % Document End