Debian Codegraph @

texmf-dist/doc/latex/chempid/docs/Examples/chempid-example-distillation.tex

raw
1 \begin{center}
2 \begin{tikzpicture}
3 \node[column, /column= bubble caps, yscale = 4, xscale = 2] (column) at (-2, -2) {};
4 \node[HE round, /HE round = m, xshift = 3cm, yshift = 0.5cm, rotate = 90] (condensor) at (column.north) {};
5 \node[dished tank, xshift = 2cm, rotate = 90, scale = 0.5] (reflux_drum) at (column.near northeast) {};
6
7 \node[HE round, /HE round = m, xshift = 3cm, yshift = -0.5cm, rotate = 270] (reboiler) at (column.south) {};
8
9 \node[valve, /valve = basic, xshift = -0.6cm] (v_reflux) at (reflux_drum.north) {};
10 \node[valve, /valve = basic, yshift = 0.5cm, rotate = 90] (v_condensor) at (condensor.far northeast) {};
11 \node[valve, /valve = basic, yshift = -0.5cm, rotate = 90] (v_reboiler) at (reboiler.far northeast) {};
12
13 \node[xshift=-3cm] (start) at (column.west) {};
14 \node[xshift = 4cm] (end_light) at (column.near northeast) {};
15 \node[xshift = 5cm, yshift = -0.5cm,] (end_heavy) at (column.south) {};
16
17 \node[yshift = 0.5cm] (start_condensor) at (v_condensor.east) {};
18 \node[yshift = 1.2cm] (end_condensor) at (condensor.far southeast) {};
19
20 \node[yshift = -0.5cm] (start_reboiler) at (v_reboiler.west) {};
21 \node[yshift = -1.2cm] (end_reboiler) at (reboiler.far southeast) {};
22
23
24 \draw[->] (start) -- (column.west);
25
26 \draw[->] (column.north) |- (condensor.north);
27 \draw[->] (condensor.west) -- (reflux_drum.east);
28 \draw[->] (reflux_drum.north) -- (v_reflux.east);
29 \draw[->] (v_reflux.west) -- (column.near northeast);
30 \draw[->] (reflux_drum.south) -- (end_light);
31
32 \draw[->] (start_condensor) -- (v_condensor.east);
33 \draw[-] (v_condensor.west) -- (condensor.far northeast);
34 \draw[->] (condensor.far southeast) -- (end_condensor);
35
36 \draw[->] (column.south) |- (reboiler.south);
37 \draw[->] (reboiler.west) |- (column.near southeast);
38 \draw[->] (reboiler.north) -- (end_heavy);
39
40 \draw[->] (start_reboiler) -- (v_reboiler.west);
41 \draw[-] (v_reboiler.east) -- (reboiler.far northeast);
42 \draw[->] (reboiler.far southeast) -- (end_reboiler);
43 \end{tikzpicture}
44 \end{center}
45
46 \begin{lstlisting}[language={[LaTeX]TeX}]
47 \begin{center}
48 \begin{tikzpicture}
49 \node[column, /column= bubble caps, yscale = 4, xscale = 2]
50 (column) at (-2, -2) {};
51 \node[HE round, /HE round = m, xshift = 3cm, yshift = 0.5cm,
52 rotate = 90] (condensor) at (column.north) {};
53 \node[dished tank, xshift = 2cm, rotate = 90, scale = 0.5]
54 (reflux_drum) at (column.near northeast) {};
55
56 \node[HE round, /HE round = m, xshift = 3cm, yshift = -0.5cm,
57 rotate = 270] (reboiler) at (column.south) {};
58
59 \node[valve, /valve = basic, xshift = -0.6cm] (v_reflux) at
60 (reflux_drum.north) {};
61 \node[valve, /valve = basic, yshift = 0.5cm, rotate = 90]
62 (v_condensor) at (condensor.far northeast) {};
63 \node[valve, /valve = basic, yshift = -0.5cm, rotate = 90]
64 (v_reboiler) at (reboiler.far northeast) {};
65
66 \node[xshift=-3cm] (start) at (column.west) {};
67 \node[xshift = 4cm] (end_light) at (column.near northeast) {};
68 \node[xshift = 5cm, yshift = -0.5cm,] (end_heavy) at
69 (column.south) {};
70
71 \node[yshift = 0.5cm] (start_condensor) at (v_condensor.east) {};
72 \node[yshift = 1.2cm] (end_condensor) at (condensor.far southeast) {};
73
74 \node[yshift = -0.5cm] (start_reboiler) at (v_reboiler.west) {};
75 \node[yshift = -1.2cm] (end_reboiler) at (reboiler.far southeast) {};
76
77
78 \draw[->] (start) -- (column.west);
79
80 \draw[->] (column.north) |- (condensor.north);
81 \draw[->] (condensor.west) -- (reflux_drum.east);
82 \draw[->] (reflux_drum.north) -- (v_reflux.east);
83 \draw[->] (v_reflux.west) -- (column.near northeast);
84 \draw[->] (reflux_drum.south) -- (end_light);
85
86 \draw[->] (start_condensor) -- (v_condensor.east);
87 \draw[-] (v_condensor.west) -- (condensor.far northeast);
88 \draw[->] (condensor.far southeast) -- (end_condensor);
89
90 \draw[->] (column.south) |- (reboiler.south);
91 \draw[->] (reboiler.west) |- (column.near southeast);
92 \draw[->] (reboiler.north) -- (end_heavy);
93
94 \draw[->] (start_reboiler) -- (v_reboiler.west);
95 \draw[-] (v_reboiler.east) -- (reboiler.far northeast);
96 \draw[->] (reboiler.far southeast) -- (end_reboiler);
97 \end{tikzpicture}
98 \end{center}
99 \end{lstlisting}