Graphics, Figures & TablesTikz Heating Systems

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
mueller
Posts: 1
Joined: Tue Feb 25, 2020 6:21 pm

Tikz Heating Systems

Post by mueller »

Hi everybody,

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:
original.PNG
original.PNG (66.42 KiB) Viewed 1509 times
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}
See the result attached:
plane wall.pdf
(76.46 KiB) Downloaded 166 times
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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Tikz Heating Systems

Post by Bartman »

Have you tried the option rounded corners with a suitable value in the styles pencildraw and pencildraw2?

By the way:

The command \bf is deprecated, use \textbf instead.

Instead of applying the command \tiny multiple times, you can also set the font size using the option font.
Post Reply