Trajectory (fluid mechanics)
Suppose we have a time-varying flow field, . The motion of a fluid parcel, or trajectory, is given by the following system of ordinary differential equations:
While the equation looks simple, there are at least three concerns when attempting to solve it numerically. The first is the integration scheme. This is typically a Runge-Kutta, although others can be useful as well, such as a leapfrog. The second is the method of determining the velocity vector, at a given position, , and time, t. Normally, it is not known at all positions and times, therefore some method of interpolation is required. If the velocities are gridded in space and time, then bilinear, trilinear or higher-dimensional linear interpolation is appropriate. Bicubic, tricubic, etc., interpolation is used as well, but is probably not worth the extra computational overhead.
The final concern is metric corrections. These are necessary for geophysical fluid flows on a spherical Earth. The differential equations for tracing a two-dimensional, atmospheric trajectory in longitude-latitude coordinates are as follows:
One problem with this formulation is the polar singularity: notice how the denominator in the first equation goes to zero when the latitude is 90 degrees—plus or minus. One means of overcoming this is to use a locally Cartesian coordinate system close to the poles. Another is to perform the integration on a pair of Azimuthal equidistant projections—one for the N. Hemisphere and one for the S. Hemisphere.
- ctraj: A trajectory integrator written in C++.
- William H. Press; Brian P. Flannery; Saul A. Teukolsky; William T. Vetterling (1992). Numerical Recipes in C: the Art of Scientific Computing (2nd ed.). Cambridge University Press.
- Mills, Peter (2012). "Principal component proxy tracer analysis". arXiv:1202.1999 [physics.ao-ph].