-
Notifications
You must be signed in to change notification settings - Fork 1
/
example-06-exergy-balance.tex
59 lines (50 loc) · 2.14 KB
/
example-06-exergy-balance.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
\documentclass[border={0mm 0mm 0mm 0mm}]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[auto]{microtype}
\usepackage{arev}
\usepackage{amsmath, amssymb, amsfonts, icomma}
\usepackage[version=4]{mhchem}
\usepackage{tikz}
\usepackage{chemplants-tub}
\usepackage{xcolor}
%define stream tip, default is stealth
\setchpstreamtip{latex}
\setchpmainstreamthickness{thick}
\pgfdeclarelayer{bg} % declare background layer
\pgfsetlayers{bg,main} % set the order of the layers (main is the standard layer)
\begin{document}
\begin{tikzpicture}
%%% system %%%
\draw[solid] (-2,1.5) rectangle (5,-3);
%%% system boundary %%%
\draw[dashed, fill=lightgray] (2,1) rectangle (4,-2.75);
\node [above] at (3,1) {\footnotesize Functional Group, $G$};
\draw[dashed] (-2.1,1.6) rectangle (5.1,-3.1);
\node [below left] at (5.1,-3.1) {\footnotesize System Boundary};
%%% components %%%
\pic[xscale=0.5,yscale=1] (k) at (0,0) {block};
\node [below] at (k-bottom) {\footnotesize Component, $k$};
\pic[xscale=0.5,yscale=1] (g1) at (3,0) {block};
\pic[xscale=0.5,yscale=0.5] (g2) at (3,-2) {block};
%%% pipes and nodes %%%
\draw [main stream, densely dashed] (-2,0.5) -- (k-left top);
\draw [main stream, densely dashed] (-2,-0.5) -- (k-left bottom);
\draw [main stream, densely dashed] (k-right top) -- (g1-left top);
\draw [main stream, densely dashed] (g2-left) -| (1.5,-0.5) -- (k-right bottom);
\draw [main stream, densely dashed] (g1-right top) -- (5,0.5);
\draw [main stream, densely dashed] (g1-bottom) -- (g2-top);
\draw [main stream, densely dashed] (g2-right) -- (5,-2);
%%% energy streams and nodes %%%
\draw [main stream] (-0.75,-3) -- (-0.75,-2.25);
\draw [main stream] (-0.75,-3) -- (-0.75,-4.25);
\node [left] at (-0.75,-3.75) {$\sum\limits_{i}\dot E_{\text{w,}i}$};
\draw [main stream] (0.75,-3) -- (0.75,-2.25);
\draw [main stream] (0.75,-3) -- (0.75,-4.25);
\node [right] at (0.75,-3.75) {$\sum\limits_{j}\dot E_{\text{q,}j}$};
\draw [main stream] (-4,-1) -- (-2,-1);
\node [above] at (-3,-1) {$\sum\limits_{in}\dot E_{in}$};
\draw [main stream] (5,-1) -- (7,-1);
\node [above] at (6,-1) {$\sum\limits_{out}\dot E_{out}$};
\end{tikzpicture}
\end{document}