{"id":1304,"date":"2020-04-24T23:30:29","date_gmt":"2020-04-25T03:30:29","guid":{"rendered":"http:\/\/underthehood.blogwyrm.com\/?p=1304"},"modified":"2022-07-28T06:27:51","modified_gmt":"2022-07-28T10:27:51","slug":"streams-streaks-paths-and-flows","status":"publish","type":"post","link":"https:\/\/underthehood.blogwyrm.com\/?p=1304","title":{"rendered":"Streams, Streaks, Paths, and Flows"},"content":{"rendered":"<p>One of the more difficult things for any student of fluid dynamics to understand is the distinction between streamlines and streaklines and pathlines.\u00a0 It ranks up there with mastering the difference between the Eulerian and Lagrangian viewpoints and, in fact, the same difficulty underpins both &#8211; the ability to tell the difference between an attribute of the field (Eulerian point-of-view) and an attribute of the particle or fluid element (Lagrangian point-of-view).\u00a0 And, I\u2019ll confess, that even though I understand the definitions, it isn\u2019t always obvious how to apply them in different contexts.<\/p>\n<p>Wikipedia has a somewhat useful article on the distinction between <a href=\"https:\/\/en.wikipedia.org\/wiki\/Streamlines,_streaklines,_and_pathlines\">streamlines, streaklines, and pathlines<\/a> but the math presented obscures the underlying physics and the foundation (either directly or by reference) is sorely lacking.<\/p>\n<p>The first thing to note is that if the flow is steady, then all three lines result in the same trace in the fluid.\u00a0 This is because each fluid element, flowing through a given point, follows exactly the same trajectory as the fluid element that precedes it or follows it.\u00a0 The distinction between these lines (and possibly a few more differently defined traces) comes when the flow is unsteady (varies in time).<\/p>\n<p>The formal definitions of these lines is as follows:<\/p>\n<ul>\n<li>Streamline &#8211; a trace formed so that it is everywhere tangent to the velocity field of some local region of the fluid at a given time<\/li>\n<li>Streakline &#8211; a trace of the front of all fluid elements, at a given time, that originated from the same physical place (for example a nozzle that flows smoke into a wind tunnel)<\/li>\n<li>Pathline &#8211; a trace of the motion through time of a particular fluid element<\/li>\n<\/ul>\n<p>These formal definitions don\u2019t do a lot to promote understanding the situation.\u00a0 So, we turn to an introductory diagram to explain the difference between streakline and pathline (streamlines will be discussed below) and then we will look at a simple example of unsteady flow to see the mathematical difference of all three.<\/p>\n<p>Consider fluid starting to come out of a garden hose as the faucet is turned on.\u00a0 The flow may start weakly and then climb until it levels off at the steady state value.\u00a0 Below is a diagram of such a situation (inspired by the <a href=\"https:\/\/www.bing.com\/videos\/search?q=stream+and+streak+lines&amp;docid=608015975478593550&amp;mid=2121B95637789D6752DD2121B95637789D6752DD&amp;view=detail&amp;FORM=VIRE\">lecture from the Cowan Academy<\/a>).\u00a0 The individual pathlines are quite different and the time the fluid elements came through the outlet of the hose are different.\u00a0 But their motion is stopped at a common time and the line joining them is the streakline.\u00a0 It is particularly useful in that it represents an experiment that can be performed and measured.<\/p>\n<p><a href=\"http:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2020\/04\/UTH_04_2020_streaklines.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2020\/04\/UTH_04_2020_streaklines.png\" alt=\"\" width=\"784\" height=\"200\" class=\"aligncenter size-full wp-image-1307\" srcset=\"https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2020\/04\/UTH_04_2020_streaklines.png 784w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2020\/04\/UTH_04_2020_streaklines-300x77.png 300w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2020\/04\/UTH_04_2020_streaklines-768x196.png 768w\" sizes=\"auto, (max-width: 784px) 100vw, 784px\" \/><\/a><\/p>\n<p>Streamlines are best shown using a quiver plot.\u00a0 To be concrete consider the velocity field in 2 dimensions to be given by<\/p>\n<p>\\[ V_x= \\alpha x \\; \\]<\/p>\n<p>and<\/p>\n<p>\\[ V_y = -\\alpha y \\; ,\\]<\/p>\n<p>where $$\\alpha$$ is some real number.\u00a0 A plot of the flow velocity at a grid of points is called a quiver plot and the results for the flow above are (with $$\\alpha = 1$$)<\/p>\n<p><a href=\"http:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2020\/04\/UTH_04_24_2020-fluid-flow.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2020\/04\/UTH_04_24_2020-fluid-flow.png\" alt=\"\" width=\"1000\" height=\"1000\" class=\"aligncenter size-full wp-image-1308\" srcset=\"https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2020\/04\/UTH_04_24_2020-fluid-flow.png 1000w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2020\/04\/UTH_04_24_2020-fluid-flow-150x150.png 150w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2020\/04\/UTH_04_24_2020-fluid-flow-300x300.png 300w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2020\/04\/UTH_04_24_2020-fluid-flow-768x768.png 768w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2020\/04\/UTH_04_24_2020-fluid-flow-810x810.png 810w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2020\/04\/UTH_04_24_2020-fluid-flow-54x54.png 54w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/p>\n<p>Note that the color of the vectors match their length with red corresponding the largest flow rate and blue the smallest, that they suggest that hyperbolic pattern with flow coming in along the y-axis and flowing along the x-axis, and the is a stagnation point at the origin where the fluid elements there are at rest.<\/p>\n<p>Acheson, in Chapter 1 of <i>Elementary Fluid Dynamics<\/i>, has a nice problem associated with this flow that accentuates the difference between Lagrangian and Eulerian viewpoints.\u00a0 In the Eulerian viewpoint, the concentration of a pollutant is given by<\/p>\n<p>\\[ c(x,y,t) = \\beta x^2 y e^{-\\alpha t} \\; ,\\]<\/p>\n<p>which clearly varies in space and time and fades in strength at a given point as time progresses.\u00a0 The question Acheson asks is does the concentration in a fluid element change.\u00a0 To answer, we employ the material derivative, since it follows the flow of a given material element.\u00a0 Taking the material derivative of the concentration gives<\/p>\n<p>\\[ \\frac{D}{Dt} c(x,y,z) = \\frac{\\partial c(x,y,t)}{\\partial t} + \\left( \\vec V \\cdot \\nabla \\right) c(x,y,t) \\; .\\]<\/p>\n<p>The right-hand side of the equation is a set of partial derivatives that, when expanded, is<\/p>\n<p>\\[ \\partial_t c + \\alpha x \\partial_x c &#8211; \\alpha y \\partial_y c = -\\alpha \\beta x^2 y e^{-\\alpha t} + 2 \\alpha \\beta x^2 y e^{-\\alpha t} &#8211; \\alpha \\beta x^2 y e^{-\\alpha t} = 0 \\; . \\]<\/p>\n<p>So, the concentration of a fluid element is constant.\u00a0 The reason the concentration decays in strength at a given point is simply that the flow shunts the more polluted elements away from any point and towards infinity.\u00a0 Alternatively, one can use Lagrangian coordinates to describe the flow.\u00a0 The position of a given fluid element is given by<\/p>\n<p>\\[ x = X e^{\\alpha t} \\; \\; y = Y e^{-\\alpha t} \\; , \\]<\/p>\n<p>where $$X$$ and $$Y$$ are the x- and y-position of the fluid element at $$t=0$$.\u00a0 In terms of these coordinates the concentration of a fluid element is<\/p>\n<p>\\[ c = \\beta X^2 e^{-2 \\alpha t} Y e^{\\alpha t} e^{\\alpha t} = \\beta X^2 Y \\; ,\\]<\/p>\n<p>which is manifestly time independent.<\/p>\n<p>With this warm up exercise under our belt, let\u2019s look at an unsteady flow where the difference between streamlines and pathlines becomes obvious.<\/p>\n<p>Consider the flow<\/p>\n<p>\\[ V_x = V_{x_0} \\; \\; V_y = k t \\; \\]<\/p>\n<p>The quiver plots for two different times are shown here (with $$V_{x_0} = 1$$ and $$k=1$$).<\/p>\n<p><a href=\"http:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2020\/04\/UTH_04_24_2020-fluid-flow-unsteady.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2020\/04\/UTH_04_24_2020-fluid-flow-unsteady.png\" alt=\"\" width=\"1000\" height=\"500\" class=\"aligncenter size-full wp-image-1306\" srcset=\"https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2020\/04\/UTH_04_24_2020-fluid-flow-unsteady.png 1000w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2020\/04\/UTH_04_24_2020-fluid-flow-unsteady-300x150.png 300w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2020\/04\/UTH_04_24_2020-fluid-flow-unsteady-768x384.png 768w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2020\/04\/UTH_04_24_2020-fluid-flow-unsteady-810x405.png 810w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/p>\n<p>In both cases, the streamlines are straight lines but with a time varying slope, as evidenced by the different slopes at different times.<\/p>\n<p>The pathlines come from integrating<\/p>\n<p>\\[ \\frac{\\partial x}{\\partial t} = V_{x_0} \\;\\; \\textrm{and} \\;\\; \\frac{\\partial y}{\\partial t} = k t \\; .\\]<\/p>\n<p>Performing the integration and and setting the integration constants ($$x(t=0) = X$$ and $$y(t=0) = Y $$) to zero gives<\/p>\n<p>\\[ x(t) = V_{x_0} t \\;\\; \\textrm{and} \\;\\; y(t) = \\frac{1}{2} k t^2 \\; .\\]<\/p>\n<p>Solving the first equation for $$t$$ and substituting into the second equation gives the geometric path of<\/p>\n<p>\\[ y = \\frac{1}{2} \\frac{k}{V_{x_0}^2} x^2 \\; , \\]<\/p>\n<p>which shows that the particles follow a parabolic pathline even though the streamlines are always linear.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the more difficult things for any student of fluid dynamics to understand is the distinction between streamlines and streaklines and pathlines.\u00a0 It ranks up there with mastering the&#8230; <a class=\"read-more-button\" href=\"https:\/\/underthehood.blogwyrm.com\/?p=1304\">Read more &gt;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1304","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts\/1304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1304"}],"version-history":[{"count":6,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts\/1304\/revisions"}],"predecessor-version":[{"id":1320,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts\/1304\/revisions\/1320"}],"wp:attachment":[{"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}