Pathline (source code)

= Pathline
{title2=$\dot{\mathbf x}=\mathbf u(\mathbf x,t)$}

A <pathline> records the motion of one identified <fluid element>: keep its starting position $\mathbf a$ and starting time $t_0$ fixed, and let physical time $t$ advance. In a <velocity field> $\mathbf u(\mathbf x,t)$ its <Lagrangian trajectory> $\mathbf X(t;t_0,\mathbf a)$ solves the <initial value problem>
$$
\frac{d\mathbf X}{dt}=\mathbf u(\mathbf X(t),t),\qquad \mathbf X(t_0;t_0,\mathbf a)=\mathbf a.
$$
A <streamline> instead freezes the time argument of the <velocity field>; a <streakline> fixes the observation time and varies the release time of many <fluid elements>. A <pathline> is useful for answering where a particular parcel goes and how long it takes, rather than merely which way the <fluid> is moving now. https://web.mit.edu/13.021/demos/lectures/lecture2.pdf[MIT Marine Hydrodynamics, lecture 2, sections 1.1–1.2]{ref}

For a concrete analytical model, take spatial coordinates $x,y$ in metres, time $t\geq0$ in seconds, and the spatially uniform but time-dependent <velocity field>
$$
\mathbf u(x,y,t)=(U,at),\qquad U=1\ \mathrm{m\,s^{-1}},\qquad a=1\ \mathrm{m\,s^{-2}}.
$$
Its numerical components in these units are $(1,t)$. A <fluid element> starting at the origin at $t_0=0$ has the <pathline>
$$
x(t)=Ut,\qquad y(t)=\frac{at^2}{2},\qquad y=\frac{a}{2U^2}x^2.
$$
At $t=1\ \mathrm s$ it is at $(1,0.5)\ \mathrm m$; at $t=2\ \mathrm s$ it is at $(2,2)\ \mathrm m$. The <parabola> records earlier, shallower <velocity> directions as well as the final direction. Differentiating gives $(\dot x,\dot y)=(U,at)$ and <acceleration> $(0,a)$, so this curved <pathline> needs no spatial variation of the <velocity field>. More generally the <chain rule> along a <pathline> gives $d f(\mathbf X(t),t)/dt=\partial_t f+\mathbf u\cdot\nabla f$, the <material derivative> of a transported <scalar field>.

A motivating tracer demonstration appears in S. J. Kline's film notes: water passes through a contracting channel, and <hydrogen> bubbles mark a small element at a wire at time $t_0$. The illustrated element is shown again $4.7\ \mathrm s$ later, with its accumulated <pathline> superposed. Following that same marked element across successive film frames records a history; the entire bubble pattern in one frame has a different meaning. https://web.mit.edu/hml/ncfmf/05FV.pdf[S. J. Kline, Flow Visualization film notes, figures 7a–7c]{ref}

For a modern version of the readout, use sparse small markers in a transparent water channel, illuminate the viewed plane, and keep an <optical camera> fixed with a ruler in that plane. Record timestamps and track the same isolated marker between frames; successive positions estimate its <pathline> and $[\mathbf X(t+\Delta t)-\mathbf X(t)]/\Delta t$ estimates its <velocity>. A long exposure records a <pathline> segment but loses the timing within it, so its total length divided by exposure time gives only mean <speed>. These are proposed measurement steps based on Jean Hertzberg's teaching guidance, rather than additional measurements from Kline's film. Markers leaving the viewed plane, overlapping tracks and perspective can break particle identification; repeat with a thinner viewed slice and a lower marker <concentration>. https://www.flowvis.org/Flow%20Vis%20Guide/particles-4-dilute/[Jean Hertzberg and Flow Vis course students, Particles 4: Dilute Particle Techniques]{ref}