0

I would like to draw the diagram below using tikz

enter image description here

My attempt with these codes

\documentclass[openany]{book}
\usepackage{tikz}
\usetikzlibrary{patterns,intersections,calc,positioning}
\usepackage{mhchem,pgfplots}
\usetikzlibrary{shapes.geometric}
\begin{document}
\begin{tikzpicture}
%inner tube 
\draw(0,1.5)--(0,2)..controls(-.2,2.2) and (-.2,2.6)..(0,2.8)--(0,4); 
\draw(1,1.5)--(1,2)..controls(1.2,2.2) and (1.2,2.6)..(1,2.8)--(1,3.1); 
\draw[rounded corners](1,2.8)--(1,3.2)--(1.2,3.2); 
\draw[rounded corners] (0,3)--(0,4)--(-.1,4); 
\draw[rounded corners](1.1,4)--(1,4)--(1,3.3)--(1.2,3.3); 
%Thermometer
\draw[rounded corners](.3,1.5)--(.2,1.6)--(.2,5.5); 
\draw[rounded corners](.3,1.5)--(.4,1.6)--(.4,5.5); 
\draw[red](.2,5.5)to[out=90,in=90,looseness=2](.4,5.5);
\filldraw[black](.3,1.5)ellipse(.08 and .15); 
\draw[thick](.3,1.5)--(.3,5);
%%cork for inner tube 
\filldraw[pattern=north east lines](0.4,3.8)rectangle(.56,4); 
\filldraw[pattern=north east lines](0,3.8)rectangle(.2,4); 
\filldraw[pattern=north east lines](0.7,3.8)rectangle(1,4); 
%bend tube 
\draw[green,rounded corners](.6,1.5)--(.6,5)--(2,5); 
\draw[blue,rounded corners](.7,1.5)--(.7,4.9)--(2,4.9); 
\draw[dashed](0.65,1.5)circle(.1);
%outer tube 
\draw[rounded corners,red](-.8,3.5)--(-.7,3.5)--(-.7,.5); 
\draw[rounded corners,red](1.8,3.5)--(1.7,3.5)--(1.7,.5); 
\draw (0,1.5)..controls(.2,1) and (.8,1)..(1,1.5); 
\draw(1.7,.5)..controls(1.5,.1) and (1.2,-.1)..(.6,-.1)--(.6,-.4); 
\draw(-.7,.5)..controls(-.5,.1) and (-.4,-.1)..(.4,-.1)--(.4,-.4); 
\filldraw[pattern=north east lines](-.7,3.4)rectangle(0,3.5); 
\filldraw[pattern=north east lines](1,3.4)rectangle(1.7,3.5); 
\end{tikzpicture}
\end{document}

Gave me the image below

enter image description here

How can I fine tune my diagram to the one I desire? Thanks in advance for the time

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.