Expressions for the derivative operators, such as gradient, divergence, curl, Laplacian, etc., are obtained by applying the Divergence Theorem to a differential volume increment bounded by coordinate surfaces. The gradient operator then leads to the expression of contravariant base vectors in terms of the covariant base vectors, and to the contravariant metric tensor as the inverse of the covariant metric tensor.
By Divergence theorem,
for any tensor
, where
is the
outward-directed normal area element to the closed surface
enclosing the volume V. For a differential surface element lying
on a coordinate surface we have,
with the choice of sign being dependent on the location of the
volume relative to the surface. Then considering a differential
element of volume, V, bounded by six faces lying on
coordinate surfaces, as shown in the figure, we have from 3.8
and 3.9,
where the notation
and
indicates the element on
two sides of the which
is constant and which are located at
larger and smaller values, respectively, of
. Here, as usual,
the indices (i,j,k) are cyclic.
Proceeding to the limit as the element of volume shrinks to
zero we then have an expression for the divergence:
This expression can be expanded by parts and noting that
the expression for divergence can be also written as
Although the equations 3.13 and 3.15 are equivalent
expressions for the divergence, because of the identity 3.14,
the numerical representations of these two forms may not be
equivalent. The form given by Eq. 3.13 is called the
conservative form, and that of Eq. 3.15, where the product
derivative has been expanded and Eq. 3.14 has been used, is
called the non-conservative form. Recalling that the quantity
represents an increment of surface area (cf.Eq.
3.7), so that
is a flux through this area, it is
clear that the difference between the two forms is that the
area used in numerical representation of the flux in the
conservative form, Eq. 3.13, is the area of the individual sides
of the volume element, but in the nonconservative form, a
common area evaluated at the center of the volume element
is used. The conservative form thus gives the telescopic
collapse of the flux terms when the difference equations are
summed over the field, so that this summation then involves
only the boundary fluxes. This would seem to favor the
conservative form as the better numerical representation of
the net flux through the volume element.
It is important to note that since the conservative form of the divergence, and of the gradient and Laplacian to follow, is obtained directly from the closed surface integral in the Divergence Theorem, the use of the conservative difference forms for these derivative operators is equivalent to using difference forms for that closed surface integral. Therefore the finite volume difference formulation can be implemented by using these conservative forms directly in the differential equations of motion without the necessity of returning to the integral form of the equations of motion.
Eq. 3.10 is also valid with
replaced
by a scalar, and the dot
product replaced by simple operation on the left and
multiplication on the right. Therefore the conservative and
non-conservative expressions for the gradient also follow
directly from Eq. 3.13 and 3.15 as
and
The expressions for the Laplacian then follow from Eq.
3.13 or 3.15, with
replaced
by
from Eq. 3.16
or 3.17. Thus the conservative form is
and the non-conservative form is