-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorder_of_ops.tikz
147 lines (137 loc) · 3.67 KB
/
order_of_ops.tikz
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
%%% Preamble Requirements %%%
% \usepackage{geometry}
% \usepackage{amsfonts}
% \usepackage{amsmath}
% \usepackage{amssymb}
% \usepackage{tikz}
% Optional packages such as sfmath set through python interface
% \usepackage{sfmath}
% \usetikzlibrary{arrows,chains,positioning,scopes,shapes.geometric,shapes.misc,shadows}
%%% End Preamble Requirements %%%
\input{"/opt/anaconda3/envs/HOPP_GS/lib/python3.8/site-packages/pyxdsm/diagram_styles"}
\begin{tikzpicture}
\matrix[MatrixSetup]{
%Row 0
&
\node [DataIO] (output_size_gen) {$\begin{array}{c}Wind cap. \\ PV cap. \\ EL cap.\end{array}$};&
\node [DataIO] (output_sim_gen) {$\begin{array}{c}Wind\hspace{1mm}resource \\ Solar\hspace{1mm}resource\end{array}$};&
\node [DataIO] (output_size_end) {$\begin{array}{c}Turndown\hspace{1mm}f_T \\ Ramping\hspace{1mm}f_R\end{array}$};&
&
&
&
&
\\
%Row 1
&
\node [DOE] (size_gen) {$\begin{array}{c}1.\hspace{1mm}Size \\ generation\end{array}$};&
\node [DataInter] (size_gen-sim_gen) {$Capacity_{gen.}$};&
&
&
&
\node [DataInter] (size_gen-calc_cost) {$Capacity_{gen.}$};&
&
\\
%Row 2
&
&
\node [DOE] (sim_gen) {$\begin{array}{c}2.\hspace{1mm}Simulate \\ generation\end{array}$};&
\node [DataInter] (sim_gen-size_end) {$P, H_2$};&
\node [DataInter] (sim_gen-sched_opt) {$P, H_2$};&
\node [DataInter] (sim_gen-size_storage) {$P, H_2$};&
&
&
\\
%Row 3
&
&
&
\node [DOE] (size_end) {$\begin{array}{c}3. Size \\ ammonia\end{array}$};&
\node [DataInter] (size_end-sched_opt) {$Capacity_{ammonia}$};&
&
\node [DataInter] (size_end-calc_cost) {$Capacity_{ammonia}$};&
&
\\
%Row 4
&
&
&
&
\node [Optimization] (sched_opt) {$\begin{array}{c}4.\hspace{1mm}Scheduling \\ Optimization\end{array}$};&
\node [DataInter] (sched_opt-size_storage) {$H_2\hspace{1mm}demand$};&
&
\node [DataInter] (sched_opt-calc_LCOA) {$Ammonia$};&
\\
%Row 5
&
&
&
&
&
\node [DOE] (size_storage) {$\begin{array}{c}5.\hspace{1mm}Size \\ storage\end{array}$};&
\node [DataInter] (size_storage-calc_cost) {$Capacity_{storage}$};&
&
\\
%Row 6
&
&
&
&
&
&
\node [DOE] (calc_cost) {$\begin{array}{c}6.\hspace{1mm}Calculate \\ costs\end{array}$};&
\node [DataInter] (calc_cost-calc_LCOA) {$Cost_{system}$};&
\\
%Row 7
\node [DataIO] (left_output_calc_LCOA) {$LCOA$};&
&
&
&
&
&
&
\node [DOE] (calc_LCOA) {$\begin{array}{c}7.\hspace{1mm}Calculate \\ LCOA\end{array}$};&
\\
%Row 8
&
&
&
&
&
&
&
&
\\
};
% XDSM process chains
\begin{pgfonlayer}{data}
\path
% Horizontal edges
(size_gen) edge [DataLine] (size_gen-sim_gen)
(sim_gen) edge [DataLine] (sim_gen-size_end)
(sim_gen) edge [DataLine] (sim_gen-sched_opt)
(size_end) edge [DataLine] (size_end-sched_opt)
(sim_gen) edge [DataLine] (sim_gen-size_storage)
(sched_opt) edge [DataLine] (sched_opt-size_storage)
(size_gen) edge [DataLine] (size_gen-calc_cost)
(size_end) edge [DataLine] (size_end-calc_cost)
(size_storage) edge [DataLine] (size_storage-calc_cost)
(sched_opt) edge [DataLine] (sched_opt-calc_LCOA)
(calc_cost) edge [DataLine] (calc_cost-calc_LCOA)
(calc_LCOA) edge [DataLine] (left_output_calc_LCOA)
% Vertical edges
(size_gen-sim_gen) edge [DataLine] (sim_gen)
(sim_gen-size_end) edge [DataLine] (size_end)
(sim_gen-sched_opt) edge [DataLine] (sched_opt)
(size_end-sched_opt) edge [DataLine] (sched_opt)
(sim_gen-size_storage) edge [DataLine] (size_storage)
(sched_opt-size_storage) edge [DataLine] (size_storage)
(size_gen-calc_cost) edge [DataLine] (calc_cost)
(size_end-calc_cost) edge [DataLine] (calc_cost)
(size_storage-calc_cost) edge [DataLine] (calc_cost)
(sched_opt-calc_LCOA) edge [DataLine] (calc_LCOA)
(calc_cost-calc_LCOA) edge [DataLine] (calc_LCOA)
(size_gen) edge [DataLine] (output_size_gen)
(sim_gen) edge [DataLine] (output_sim_gen)
(size_end) edge [DataLine] (output_size_end);
\end{pgfonlayer}
\end{tikzpicture}