Guest User

Untitled

a guest
May 22nd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.06 KB | None | 0 0
  1. documentclass{article}
  2.  
  3. usepackage{rotating}
  4. usepackage{tikz}
  5.  
  6. begin{document}
  7.  
  8. % Define block styles
  9. usetikzlibrary{shapes.geometric, arrows}
  10.  
  11. tikzstyle{startstop} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, draw=black, fill=red!30]
  12. tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=blue!30, text width=7em]
  13. tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=orange!30]
  14. tikzstyle{decision} = [diamond, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=green!30]
  15. tikzstyle{arrow} = [thick,->,>=stealth]
  16.  
  17. begin{figure}[h!] %The block diagram code is probably more verbose than necessary
  18. centering
  19. begin{tikzpicture}[node distance=2cm]
  20.  
  21. node (start) [startstop] {Start};
  22. node (in1) [io, below of=start, yshift=-0.5cm] {Input (Read all $text$ Files of 90$^{circ}$ measurments set )};
  23. node (pro1) [process, below of=in1, yshift=-0.5cm] {Difference between Max and Min value};
  24. node (pro21) [process, below of=pro1] {Calculte $K$};
  25. draw [arrow] (start) -- (in1);
  26. draw [arrow] (in1) -- (pro1);
  27. draw [arrow] (pro1) -- (pro21);
  28. %-----------------------------------------------------------%
  29. node (in2) [io, below of=start, xshift = -5cm, yshift=-0.5cm] {Input (Read all $text$ Files of 90$^{circ}$ measurments set )};
  30. node (pro12) [process, below of=in2, yshift=-0.5cm] {Difference between Max and Min value};
  31. node (pro22) [process, below of=pro12] {Calculte $K$};
  32. draw [arrow] (start) -| (in2);
  33. draw [arrow] (in2) -- (pro12);
  34. draw [arrow] (pro12) -- (pro22);
  35. %-----------------------------------------------------------%
  36. node (in3) [io, below of=start, xshift = 5cm, yshift=-0.5cm] {Input (Read all $text$ Files of 90$^{circ}$ measurments set )};
  37. node (pro13) [process, below of=in3, yshift=-0.5cm] {Difference between Max and Min value};
  38. node (pro23) [process, below of=pro13] {Calculte $K$};
  39. draw [arrow] (start) -| (in3);
  40. draw [arrow] (in3) -- (pro13);
  41. draw [arrow] (pro13) -- (pro23);
  42. %-----------------------------------------------------------%
  43. node (proFinal) [process, below of=pro23, yshift=0.5cm] {Average the $K$s from three};
  44. draw [arrow] (pro21) |- (proFinal);
  45. draw [arrow] (pro22) |- (proFinal);
  46. draw [arrow] (pro23) -- (proFinal);
  47. %-----------------------------------------------------------%
  48. node (in4) [io, below of=pro22, yshift=-1cm] {Input (Read $text$ file of raw yaw angle at idle state)};
  49. node (proK0) [process, below of=pro21, yshift=-1cm] {Calculate $K_0$};
  50. node (proSD) [process, below of=proK0] {Calculate $SD$ and ${sigma}^{2}$};
  51. node (out1) [io, below of=proSD] {Output};
  52. node (stop) [startstop, below of=out1] {Stop};
  53.  
  54. draw [arrow] (start) -| (in4); %% here I need to change, sothat line will not cut other diagrams
  55. draw [arrow] (in4) -- (proK0);
  56. draw [arrow] (proK0) -- (proSD);
  57. draw [arrow] (proSD) -- (out1);
  58. draw [arrow] (proFinal) |- (out1);
  59. draw [arrow] (out1) -- (stop);
  60.  
  61. end{tikzpicture}
  62. caption{Flowchart}
  63. label{fig:32}
  64. end{figure}
  65.  
  66. end{document}
  67.  
  68. documentclass{article}
  69.  
  70. usepackage{rotating}
  71. usepackage{tikz}
  72. usetikzlibrary{arrows,
  73. positioning,
  74. shapes.geometric}
  75.  
  76. begin{document}
  77.  
  78. begin{figure}[h!] %The block diagram code is probably more verbose than necessary
  79. centering
  80. begin{tikzpicture}[
  81. node distance=4mm and 20mm,
  82. % Define block styles
  83. base/.style = {draw, text width=28mm, minimum height=12mm, align=center},
  84. startstop/.style = {base, rounded corners, fill=red!30},
  85. io/.style = {trapezium, trapezium left angle=70, trapezium right angle=110,
  86. base,
  87. text width=#1, fill=blue!30},
  88. io/.default = 7em,
  89. process/.style = {base, fill=orange!30},
  90. decision/.style = {diamond, aspect=1.5,
  91. base, fill=green!30},
  92. arrow/.style = {thick,-stealth}
  93. ]
  94. node (start) [startstop] {Start};
  95. node (in1) [io, below left=of start] {Input (Read all $text$ Files of 90$^{circ}$ measurments set )};
  96. node (pro1) [process, below=of in1] {Difference between Max and Min value};
  97. node (pro21) [process, below=of pro1] {Calculte $K$};
  98. draw [arrow] (start) -| (in1);
  99. draw [arrow] (in1) -- (pro1);
  100. draw [arrow] (pro1) -- (pro21);
  101. %-----------------------------------------------------------%
  102. node (in2) [io, below=of start] {Input (Read all $text$ Files of 90$^{circ}$ measurments set )};
  103. node (pro12) [process, below=of in2] {Difference between Max and Min value};
  104. node (pro22) [process, below=of pro12] {Calculte $K$};
  105. draw [arrow] (start) -- (in2);
  106. draw [arrow] (in2) -- (pro12);
  107. draw [arrow] (pro12) -- (pro22);
  108. %-----------------------------------------------------------%
  109. node (in3) [io, below right=of start] {Input (Read all $text$ Files of 90$^{circ}$ measurments set )};
  110. node (pro13) [process, below=of in3] {Difference between Max and Min value};
  111. node (pro23) [process, below=of pro13] {Calculte $K$};
  112. draw [arrow] (start) -| (in3);
  113. draw [arrow] (in3) -- (pro13);
  114. draw [arrow] (pro13) -- (pro23);
  115. %-----------------------------------------------------------%
  116. node (proFinal) [process,below=of pro23] {Average the $K$s from three};
  117. draw [arrow] (pro21) |- (proFinal);
  118. draw [arrow] (pro22) |- (proFinal);
  119. draw [arrow] (pro23) -- (proFinal);
  120. %-----------------------------------------------------------%
  121. node (in4) [io, below=of pro21 |- proFinal] {Input (Read $text$ file of raw yaw angle at idle state)};
  122. node (proK0) [process,at={(in4 -| pro22)}] {Calculate $K_0$};
  123. node (proSD) [process, below=of proK0] {Calculate $SD$ and ${sigma}^{2}$};
  124. node (out1) [io=3em, below=of proSD] {Output};
  125. node (stop) [startstop, below=of out1] {Stop};
  126.  
  127. coordinate[left=of in1] (aux); %% added
  128. draw [arrow] (start) -| (aux) |- (in4); %% changed
  129. draw [arrow] (in4) -- (proK0);
  130. draw [arrow] (proK0) -- (proSD);
  131. draw [arrow] (proSD) -- (out1);
  132. draw [arrow] (proFinal) |- (out1);
  133. draw [arrow] (out1) -- (stop);
  134. end{tikzpicture}
  135. caption{Flowchart}
  136. label{fig:32}
  137. end{figure}
  138. end{document}
Add Comment
Please, Sign In to add comment