1. Introduction
A fluid, as with any material continuum, is defined and governed by tensor field equations on spacetime, a four-dimensional differentiable manifold [
1,
2]. The fluid’s existence and kinematics are defined by the vanishing 4-divergence of a matter flux vector
,
expressing conservation of the basic “stuff” underlying the fluid (typically mass or, better, baryon number). The dynamics of the fluid are governed by Newton’s second law, and the first law of thermodynamics as applied to individual fluid elements. Given the 4-velocity field
defining the worldlines of fiducial observers, and in the absence of external forces and heating/cooling, these laws governing momentum and energy evolution can be combined in terms of the conservation law
for the relative energy–momentum flux, a
tensor
[
3,
4]. The label “relative energy–momentum flux” denotes the fact that the energy content of
includes only internal energy and bulk motion relative to fiducial observers
, allowing the same Equation (2) on spacetime to apply, regardless of whether causality is governed by absolute time (the “nonrelativistic” world of Galilei and Newton) or by light cones (the “relativistic” world of Einstein and Minkowski) [
3,
4]. Even though there is no spacetime metric in the Galilei/Newton case, the 4-divergence still exists thanks to the presence of a 4-volume form (Levi-Civita tensor)
, through which
defines the divergence of a vector field
; the right-hand side is the exterior derivative of the interior product of
with
.
To address an initial value problem, foliate spacetime into spacelike slices. For present purposes, let spacetime be flat, a four-dimensional affine space, either Galilei/Newton spacetime
equipped with absolute time [
5,
6,
7,
8,
9,
10,
11,
12,
13] or Minkowski spacetime
equipped with a Lorentz metric [
14]. In these cases, we can choose the fiducial observers to be inertial observers, with worldlines given by the straight coordinate curves of a global time coordinate
t, and 4-velocities
given by the natural basis vectors
tangent to this congruence of straight worldlines. On
, the coordinate
t is the absolute time, and the spacelike slices are already given as its level surfaces. On
, the coordinate
t is the proper time of the fiducial (and, here, inertial) observers; moreover, by virtue of the Lorentz metric, we choose to specify that the spacelike slices be orthogonal to
, and thus level surfaces of
t in this case as well. On both
and
, these spacelike slices
are three-dimensional affine hyperplanes equipped with a Euclidean 3-metric
. In both cases, the 4-volume form reads
in which
is the 3-volume form on the slices
, expressed in terms of rectangular coordinates
or curvilinear coordinates
, with
being the determinant of the matrix of curvilinear metric components. (Throughout this paper, Latin indices denote coordinates, and also components of tensors, on the
. Indices with an overbar are associated with rectangular coordinates, while unadorned indices denote curvilinear coordinates. Writing the
as functions of the
, the elements of the matrix of curvilinear metric components
are read off the line element
. Note our use throughout of the Einstein summation convention; for readability, repeated summation indices
are taken from near the beginning of the alphabet, while
denote free indices).
This foliation of spacetime—here, into affine hyperplanes of
and
—effects a
decomposition of Equations (1) and (2) in terms of matter, momentum, and energy densities
N,
, and
E, respectively, and corresponding spatial fluxes
,
, and
tangent to
, measured by the fiducial observers:
in which the 3-divergences
are on
, and
has been taken to be independent of
t. Expressing these in terms of component fields,
highlights that, while the matter and energy densities
N and
E are scalar fields, and their fluxes
and
are vector fields, the momentum density
is a linear form, and its flux
is a
tensor.
For computations, these relations must be reduced to partial differential equations by further spelling out the 3-divergences on , yielding different expressions for different coordinate choices. Consider three ways to obtain the resulting equations, taking note of what happens to the suggestive conservative form of the original geometric expressions in terms of divergences.
First, under present assumptions, because
is Euclidean (thanks to our focus here on flat
and
), we could begin with rectangular coordinates
, with respect to which the covariant derivative operator
is simply a partial derivative
:
This strict conservative form can be translated into numerical methods (such as finite-volume discretization) that naturally handle discontinuities and reproduce global conservation to numerical precision. However, under the coordinate transformation
additional terms arise from derivatives of the position-dependent Jacobian factors, and this apparently spoils the conservative form.
Rather than proceed further with brute force, consider a second approach and make use of the rules of tensor analysis. On a coordinate basis, the covariant derivative of a tensor adds to the partial derivative an additional (sum of) “connection” terms for each tensor index. The gradient of a vector field yields the
tensor field with components
in which the connection coefficients
(not tensor components in themselves!) are given by the Christoffel symbols
in terms of derivatives of the metric components. (The
metric tensor
being non-degenerate, the matrix
has matrix inverse
gathering the components of the
inverse metric tensor
.) The divergence of a vector field is the contraction of Equation (16). It turns out that
, so that the divergence of a vector field can be expressed in the conservative form
This is happily amenable to a structured grid in curvilinear coordinates, with a conservative finite-volume discretization of the divergence corresponding to the familiar definition encountered in elementary vector calculus:
in which
is a finite cell volume, and the cell face areas
and flux components
are evaluated on the outer (
) and inner (
) faces in each dimesnion
i. However, the momentum flux is a
tensor field, and its covariant gradient has an additional term:
Upon contraction to form the divergence
, the first connection term combines with the partial derivative as in the vector field case. Moreover, when
is symmetric—which is true for the momentum flux in fluid dynamics—there is some simplification in the second connection term, but it cannot be combined with the partial derivative. (This simplification is a consequence of choosing to solve for the covariant momentum components
rather than the contravariant ones
.) The fluid equations take the form
The matter and energy equations are in strict conservative form, and the momentum equations might also be said to be in conservative form in a looser sense: it is a balance equation, with a “divergence” on the left-hand side and without derivatives of the fluid variables in the source terms, so that finite volume discretization can still handle discontinuities. However, the terms on the right-hand side of Equation (22) constitute “fictitious forces”: strictly speaking, curvilinear coordinates are non-inertial and result in terms analogous to those that result from the use of rotating or otherwise accelerated reference frames. Thus, global conservation of curvilinear momentum components does not generally hold, and global conservation of rectangular momentum components will not be obtained to numerical precision. (Note in passing that in spherical and cylindrical coordinates, the azimuthal component of momentum is the component of angular momentum along the azimuthal axis, the equation for which is in strict conservative form. In cylindrical coordinates, the equation for the linear momentum along the azimuthal axis is also in strict conservative form.)
Use of a curvilinear coordinate mesh is sometimes indicated by the inherent geometry of a problem, even when three-dimensional phenomena preclude a reduction in dimension because of an absence of axial or spherical symmetry. In such a case, is there any way to avoid the fictitious forces on the right-hand side of Equation (22)?
The purpose of this paper is to point out that the answer to this question is “yes”, and to show it transparently, indeed almost instantly, with a third approach. If one is willing or needs to work in three dimensions anyway, solving for
rectangular momentum components on a
curvilinear coordinate patch allows for the exploitation of spherical or cylindrical geometry without the fictitious forces on the right-hand side of Equation (22). This intuitively plausible result (mentioned without explanation or derivation in Ref. [
15]) could of course be derived within the context of the first two approaches discussed in the preceding paragraphs. However, it becomes particularly obvious when we step back from brute force coordinate transformations, or rules for tensor analysis on components, and consider the differential geometry behind these approaches, treating tensors as geometric objects [
14,
16].
2. Mixed Basis for the Momentum Flux
The point is that a tensor field is not merely its component functions (even though these uniquely determine it). Components are merely expansion factors appearing when a tensor is expressed in terms of a basis—or, for fields, component functions appear when a tensor field is expressed in terms of a smoothly varying basis field. The covariant derivative makes it possible to compare tensors at neighboring points of a manifold by taking account not only of the variation in component functions, but also the variation in the tensor basis field elements in terms of which the tensor field is expanded.
In particular, a
tensor field is given by
in terms of a basis field
formed, via the tensor product, from some basis field
of vectors and some basis field
of linear forms. The tensor field itself—a geometric object—is the same, regardless of whether one chooses (for example) the natural vector basis
and its dual linear form basis
of rectangular coordinates, or the natural bases
and
of curvilinear coordinates:
We may be used to treating coordinate transformations as an all-or-nothing affair—for instance, a choice between the two expressions in Equation (25)—to give equations in which all indices correspond to a particular choice of coordinates.
In fact, however, nothing prevents us from using the mixed curvilinear/rectangular basis
on a coordinate patch with curvilinear coordinates
. The covariant derivative obeys the Leibniz rule for derivatives of products, so that
Rules for tensor analysis notwithstanding, the component functions
are actually scalar fields, for which the covariant derivative coincides with the partial derivative:
Moreover, the derivatives of the basis vector and linear form fields are precisely what give the connection coefficients in Equation (20):
However, rectangular coordinate basis fields on Euclidean space are constant; any variation vanishes, including, in particular,
appearing in the third term of Equation (27). Therefore,
The divergence—the contraction on the first and third slots—takes the form
since
Recall also that
, as noted previously.
Thus, Equation (32) shows that the fictitious forces on the right-hand side of Equation (22), which stem from the connection term on the covariant index of a
tensor
, vanish when
is expanded in terms of the mixed basis of Equation (26). Then, on flat spacetimes
and
and in the absence of external forces and heating/cooling, all the fluid equations
are in strict conservative form. Again, it is the rectangular momentum component fields
being solved for, from the expansion
, rather than the curvilinear component field from the alternative expansion
.