Debian Codegraph @

examples/tank.dot

raw
1 /*
2
3 :Title: Two tank system
4 :Tags: PGF
5
6 This graph shows the structural model of a two tank system.
7
8 Generated with::
9
10 $ dot2tex -fpgf tank.dot > tank.tex
11
12 */
13 graph G {
14 node[shape=doublecircle, fixedsize=true, width=0.4];
15 graph [style="rounded corners"];
16 subgraph cluster0 {
17 style = "red, fill=blue!20,rounded corners";
18 label = "Tank 1";
19 node [texmode="math"]
20 c_1--q_L; c_1--h_1;
21 c_2--q_P; c_2--h_1;
22 c_3--q_L; c_3--q_P; c_3--dh_1;
23 d_4--dh_1;d_4--h_1;
24 dh_1 [label="\\dot{h}_1"];
25 }
26
27 subgraph cluster1{
28 label = "Pipe";
29 node [texmode="math"]
30 c_5--h_1; c_5--q_12;
31 q_12 [label="q_{12}"];
32 }
33
34 c_5--h_2;
35 c_3--q_12;
36 c_6--q_12;
37
38 subgraph cluster2{
39 label = "Tank 2";
40 node [texmode="math"]
41 c_6--dh_2;c_6--q_2;
42 d_7--dh_2; d_7--h_2;
43 c_8--h_2;c_8--q_2;
44 c_m--q_2;
45 dh_2 [label="\\dot{h}_2"];
46 }
47 }