| 1 |
verbatimtex |
| 2 |
%& latex |
| 3 |
\documentclass[a4]{article} |
| 4 |
\begin{document} |
| 5 |
etex |
| 6 |
|
| 7 |
input bondgraph; |
| 8 |
def pjunction(expr z ) = |
| 9 |
junction( btex p etex, z ) |
| 10 |
enddef; |
| 11 |
def sjunction(expr z ) = |
| 12 |
junction( btex s etex, z ) |
| 13 |
enddef; |
| 14 |
def tfjunction(expr z, arrowdir, lbl ) = |
| 15 |
junctionlbl( btex TF etex, arrowdir, lbl, z, true ) |
| 16 |
enddef; |
| 17 |
def gyjunction(expr z, arrowdir, lbl ) = |
| 18 |
junctionlbl( btex GY etex, arrowdir, lbl, z, false ) |
| 19 |
enddef; |
| 20 |
|
| 21 |
beginfig( -1 ) |
| 22 |
numeric u; |
| 23 |
u := 2cm; |
| 24 |
ahlength := 0.15*u; |
| 25 |
|
| 26 |
picture j[]; |
| 27 |
j1 := sjunction( (1u,1u) ); |
| 28 |
j2 := gyjunction( (2u,1u), to_rt, btex $\mu$ etex ); |
| 29 |
j3 := sjunction( (3u,1u) ); |
| 30 |
j4 := tfjunction( (4u,1u), to_rt, btex $r$ etex ); |
| 31 |
j5 := pjunction( (5u,1u) ); |
| 32 |
j6 := sjunction( (5u,-0.5u) ); |
| 33 |
j7 := sjunction( (5u,2u) ); |
| 34 |
|
| 35 |
tbond( bgconnect( j1, j2 ) ); |
| 36 |
hbond( bgconnect( j2, j3 ) ); |
| 37 |
tbond( bgconnect( j3, j4 ) ); |
| 38 |
tbond( bgconnect( j4, j5 ) ); |
| 39 |
hbond( bgconnect( j5, j6 ) ); |
| 40 |
tbond( bgconnect( j5, j7 ) ); |
| 41 |
|
| 42 |
tbond( terminalfr( j1, btex R: $\phi_{1}(\bullet)$ etex, (1u,0u) ) ); |
| 43 |
hbond( terminalfr( j1, btex I: $m_{1}$ etex, (1u,2u) ) ); |
| 44 |
hbond( terminalfr( j3, btex I: $m_{2}$ etex, (3u,2u) ) ); |
| 45 |
tbond( terminalfr( j3, btex R: $R_{2}$ etex, (center j3)+1u*dir(-120) ) ); |
| 46 |
tbond( terminalfr( j3, btex R: $R_{3}$ etex, (center j3)+1u*dir(-60) ) ); |
| 47 |
|
| 48 |
hbond( terminalto( j6, btex $S_{\mathrm{e}}$ etex, (center j6)+(-1u,0u) ) ); |
| 49 |
hbond( terminalfr( j6, btex I: $m_{3}$ etex, (center j6)+(1u,0u) ) ); |
| 50 |
|
| 51 |
tbond( terminalfr( j7, btex C: $C_{1}$ etex, (4u,2u) ) ); |
| 52 |
tbond( terminalfr( j7, btex R: $R_{1}$ etex, (6u,2u) ) ); |
| 53 |
|
| 54 |
path con; |
| 55 |
picture lab; |
| 56 |
|
| 57 |
con := terminalto( j1, btex $S_{\mathrm{e}}$ etex, (0u,1u) ); |
| 58 |
hbond( con ); |
| 59 |
flowlabel( con, btex f etex ); |
| 60 |
effortlabel( con, btex e etex ); |
| 61 |
|
| 62 |
endfig; |
| 63 |
end; |