
Wärmetauscher, Pumpen und Ventilatoren und Kompressoren hab ich fertig. Die Rohre wehren sich noch:
%------------------------------------------------ % Pipe %------------------------------------------------ % \pipe{start}{end}[insulation][heated] % \newcommandx{\pipe}[4][3=0,4=0] { \draw [ultra thick] (#1) -- (#2); \ifthenelse{\equal{#4}{1}}{ % Heated \draw [thick, dashdotted] ($(#1)-0.15*(0,1)$) -- ($(#2)-0.15*(0,1)$); }{} \ifthenelse{\equal{#3}{1}}{ % Insulation \draw [pattern = north east lines] ($(#1)+0.1*(1,0)-0.2*(0,1)$) rectangle ($(#2)-0.1*(1,0)+0.2*(0,1)$); }{} }
Bei den Pumpen (und Ventilatoren ...) hätte ich es gerne noch das bei der Option "Motor" das M immer in die gleiche Richtung schaut, nämlich wie ohne Rotation (da ist es Horizontal).
\newcommandx{\pump}[5][4=0,5=0] { \ifthenelse{\equal{#1}{1}}{ % Pump general \begin{scope}[rotate around={#4:(#2)}] \draw [ultra thick] (#2) circle [radius=0.5]; \draw [thick] ($(#2)-0.5*(1,0)$) -- ($(#2)+0.5*(0,1)$) -- ($(#2)+0.5*(1,0)$); \draw [thick] ($(#2)+0.5*(0,1)$) -- ($(#2)+0.7*(0,1)$); \draw [thick] ($(#2)-0.5*(0,1)$) -- ($(#2)-0.7*(0,1)$); \coordinate (PumpIn#3) at ($(#2)-0.7*(0,1)$); \coordinate (PumpOut#3) at ($(#2)+0.7*(0,1)$); \ifthenelse{\equal{#5}{1}}{ % Motor \ifthenelse{#4<0}{ \draw [ultra thick] ($(#2)-1.25*(1,0)$) circle [radius=0.35]; \draw [thick] ($(#2)-0.9*(1,0)$) -- ($(#2)-0.5*(1,0)$); \node at ($(#2)-1.25*(1,0)$) {M}; } { \draw [ultra thick] ($(#2)+1.25*(1,0)$) circle [radius=0.35]; \draw [thick] ($(#2)+0.9*(1,0)$) -- ($(#2)+0.5*(1,0)$); \node [rotate=#4] at ($(#2)+1.25*(1,0)$) {M}; } }{} \end{scope} \node [below] at ($(#2)+0.5*(1,-1)$) {P-$#3$}; }{} }
Ich schau das ich morgen noch was mach. Ventile schaff ich wohl noch. Ob ich dann noch mehr schaffe, weiß ich nicht. Dazu gehören auch die Antriebe der Ventile. Auf der anderen Seite steht die Frage, wie detailliert das ganze sein muss.
Ich habe auch das Problem, das ich nicht weiß wie ich die Koordinate einer sich rotierenden Node (wie bei "Motor") so definiere, das wenn ich dort etwas anbastel es immer in die gleiche Richtung schaut. Deshalb ist "Motor" nicht extra sondern bei jedem einzelnen Teil dabei ...
Hat jemand Lust mit dran zu entwickeln? Dann würd ich das irgendwo online stellen und jeder kann basteln

Grüße