2

I can't draw an arrow that starts from bottom, goes to left, up, right, respectively. My question is how can I add that arrow in the flowchart. Here is the TeX code:

\documentclass[11pt,a4paper,oneside]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{siunitx}
\usepackage[a4paper,left=3cm,right=2cm,top=2.5cm,bottom=2.5cm]{geometry}
\usepackage{tikz}
\usetikzlibrary{patterns}
\usepackage{caption}
\usetikzlibrary{arrows}
\usepackage{color}
\usepackage[colorlinks]{hyperref}
\usepackage{pgfplots}
\usepackage{listings}
\usepackage[utf8]{inputenc}
\usetikzlibrary{shapes.geometric}

\begin{document}
\section*{Flowchart}
\tikzstyle{startstop} = [rectangle, rounded corners, minimum width=3cm,minimum height=1cm,text centered, draw=black, fill=red!30]
\tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=blue!30]
\tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=orange!30]
\tikzstyle{decision} = [diamond, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=green!30]
\tikzstyle{arrow} = [thick,->,>=stealth]

\begin{tikzpicture}[node distance=2cm]
\node (start) [startstop] {Başla};
\node (pro1) [process, below of=start, yshift=+0.2cm] {$\rho(T)$, $ c_{p}(T)$, $ k(T)$, $\mu(T)$ hesapla};
\node (io1) [io, below of=pro1] {$T_{g}=\SI{29}{\celsius}$, $T_{f}=\SI{31}{\celsius}$, $T_{w}=\SI{35}{\celsius}$ };
\node (pro2) [process, below of=io1, yshift=-0.2cm] {$h_{r,w-g}$, $Pr_{gf}$, $Pr_{wr}$, $Gr_{gf}$, $Gr_{wr}$, $Ra_{gf}$, $Ra_{wr}$ hesapla};
\node (dec1) [decision, below of=pro2, yshift=-1cm] {$Ra_{L}\leq10^{9}$};
\node (pro2a) [process, below of=dec1, yshift=-0.5cm] {$Nu_{gf}$, $Nu_{wr}$, $h_{g}$, $h_{w}$, $h_{r}$, $U_{t}$, $U_{b}$ hesapla};
\node (pro2b) [process, right of=dec1, xshift=2cm] {$Nu_{gf}$, $Nu_{wr}$, $h_{g}$, $h_{w}$, $h_{r}$, $U_{t}$, $U_{b}$ hesapla};
\node (pro3a) [process, below of=pro2a] {AX=B matrisini oluştur ve çöz};
\node (stop) [startstop, below of=pro3a] {Stop};
% Arrows
\draw [arrow] (start) -- (pro1);
\draw [arrow] (pro1) -- (io1);
\draw [arrow] (io1) -- (pro2);
\draw [arrow] (pro2) -- (dec1);
\draw [arrow] (dec1) -- node[anchor=east] {evet} (pro2a);
\draw [arrow] (dec1) -- node[anchor=south] {hayır} (pro2b);
\draw [arrow] (pro2b) |- (pro3a);
\draw [arrow] (pro2a) -- (pro3a);
\draw [arrow] (pro3a) -| (io1);
\draw [arrow] (pro3a) -- (stop);
\end{tikzpicture}
\end{document}

Here is the arrow that I want to add.

1

You can include another point in that path that lies right of pro3a:

\documentclass[11pt,a4paper,oneside]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{siunitx}
\usepackage[a4paper,left=3cm,right=2cm,top=2.5cm,bottom=2.5cm]{geometry}
\usepackage{tikz}
\usetikzlibrary{patterns}
\usepackage{caption}
\usetikzlibrary{arrows}
\usepackage{color}
\usepackage[colorlinks]{hyperref}
\usepackage{pgfplots}
\usepackage{listings}
\usepackage[utf8]{inputenc}
\usetikzlibrary{shapes.geometric}

\begin{document}
\section*{Flowchart}
\tikzstyle{startstop} = [rectangle, rounded corners, minimum width=3cm,minimum height=1cm,text centered, draw=black, fill=red!30]
\tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=blue!30]
\tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=orange!30]
\tikzstyle{decision} = [diamond, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=green!30]
\tikzstyle{arrow} = [thick,->,>=stealth]

\begin{tikzpicture}[node distance=2cm]
\node (start) [startstop] {Başla};
\node (pro1) [process, below of=start, yshift=+0.2cm] {$\rho(T)$, $ c_{p}(T)$, $ k(T)$, $\mu(T)$ hesapla};
\node (io1) [io, below of=pro1] {$T_{g}=\SI{29}{\celsius}$, $T_{f}=\SI{31}{\celsius}$, $T_{w}=\SI{35}{\celsius}$ };
\node (pro2) [process, below of=io1, yshift=-0.2cm] {$h_{r,w-g}$, $Pr_{gf}$, $Pr_{wr}$, $Gr_{gf}$, $Gr_{wr}$, $Ra_{gf}$, $Ra_{wr}$ hesapla};
\node (dec1) [decision, below of=pro2, yshift=-1cm] {$Ra_{L}\leq10^{9}$};
\node (pro2a) [process, below of=dec1, yshift=-0.5cm] {$Nu_{gf}$, $Nu_{wr}$, $h_{g}$, $h_{w}$, $h_{r}$, $U_{t}$, $U_{b}$ hesapla};
\node (pro2b) [process, right of=dec1, xshift=2cm] {$Nu_{gf}$, $Nu_{wr}$, $h_{g}$, $h_{w}$, $h_{r}$, $U_{t}$, $U_{b}$ hesapla};
\node (pro3a) [process, below of=pro2a] {AX=B matrisini oluştur ve çöz};
\node (stop) [startstop, below of=pro3a] {Stop};
% Arrows
\draw [arrow] (start) -- (pro1);
\draw [arrow] (pro1) -- (io1);
\draw [arrow] (io1) -- (pro2);
\draw [arrow] (pro2) -- (dec1);
\draw [arrow] (dec1) -- node[anchor=east] {evet} (pro2a);
\draw [arrow] (dec1) -- node[anchor=south] {hayır} (pro2b);
\draw [arrow] (pro2b) |- (pro3a);
\draw [arrow] (pro2a) -- (pro3a);
\draw [arrow] (pro3a) -- +(-4,0) |- (io1);
\draw [arrow] (pro3a) -- (stop);
\end{tikzpicture}
\end{document}

enter image description here

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.