im trying to copy a graphic from the book "Introduction to Heat Transfer (Incropera and DeWitt, 4th Edition) Pg. 89"
Original picture from book below: This far, this is what i got:
Code: Select all
\documentclass[tikz]{standalone}
\usepackage{tikz}
\usetikzlibrary{patterns}
\usetikzlibrary{shapes} %unter anderm cloud
\usetikzlibrary{decorations.pathmorphing,positioning,decorations.pathreplacing,patterns}
\usetikzlibrary{arrows}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}
[
%definition of the handdraw line on top and bottom
pencildraw/.style={decoration={random steps,segment length=5pt, amplitude=1.8pt}},
pencildraw2/.style={
black!75,
decorate,
decoration={random steps,segment length=1.8pt,amplitude=0.5pt}
},
node distance=1cm
]
\filldraw[color=white, left color=red!50,right color=red!10]
decorate[pencildraw]{(0,0)--(4,0)}--(4,6)
decorate[pencildraw]{(4,6)--(0,6)}--(0,0);
%Black lines on left and right
\draw[thick] (0,0)--(0,6);
\draw[thick] (4,0)--(4,6);
% Q-dot and Arrow for Q-dot
\node [draw=none,fill=none] at (4.5,3) (Q) {\small $\dot{Q}$};
\draw [thick, color=red,->] (-0.5,3)--(Q);
% X on the left bottom
\node [draw=none,fill=none] at (0.4,-0.4) (x) {\small x};
\draw [thick, ->] (0,-0.1)--(0,-0.4)--(x);
% x=L on right bottom
\node [draw=none,fill=none] at (4,-0.4) (x=L) {\small x=L};
\draw [thick, -] (4,-0.1)--(x=L);
% T infinity 1 on the left
\node [draw=none,fill=none, anchor=east] at (-1,5) (tinf1) {\small $T_{\infty,1}$};
% Helping point for Curvature left
\node [draw=none,fill=none] at (-0.5,5) (help1) {};
% T s,1
\node [draw=none,fill=none, anchor=east] at (0,4) (ts1) {\small $T_{s,1}$};
% T s,2
\node [draw=none,fill=none, anchor=west] at (4,2) (ts2) {\small $T_{s,2}$};
% Help Point for curvature right
\node [draw=none,fill=none] at (4.5,1) (help2) {};
% T infinity, 2 on the right
\node [draw=none,fill=none, anchor=west] at (5,1) (tinf2) {\small $T_{\infty,2}$};
% Line from help1 via T s,1 via T s,2 to T infinity,2
\draw [color=red, thick, -] (tinf1)--(help1.center) parabola bend (help1) (ts1.east) --(ts2.west)parabola bend (help2) (help2.center)--(tinf2);
% Here comes the Cloud
\node[cloud, draw, align=left, cloud puffs=20,cloud puff arc=110, aspect=2, inner sep=0mm] at (-1,1) (hot){\tiny fluid};
\node [pencildraw2, draw, ellipse, align=center] at (-1,2.2) (hot2){\tiny \bf{Hot fluid}\\ \tiny $T_\infty$};
\end{tikzpicture}
\end{document}
Im stuggling to get a nice curvy line on top an bottom. Mine is more zick-zack.
I'm also trying to get a asymetric looking cloud.
This is my firt Post in this forum, so i'm very thankful for any critic etc.
Regards,
Jonas