The term tensor describes an entity that belongs to a particular space and obeys
certain mathematical rules. Briefly, tensors are represented by a set of
component values relating to a set of unit base vectors; in OpenFOAM the unit base
vectors , and are aligned with the right-handed rectangular
Cartesian axes , and respectively. The base vectors are therefore
orthogonal, i.e. at right-angles to one another. Every tensor has the following
attributes:
Dimension
of the particular space to which they belong, i.e. in
OpenFOAM;
Rank
An integer , such that the number of component values .
While OpenFOAM 2.x is set to 3 dimensions, it offers tensors of ranks 0 to 3 as
standard while being written in such a way to allow this basic set of ranks to be
extended indefinitely. Tensors of rank 0 and 1, better known as scalars and
vectors, should be familiar to readers; tensors of rank 2 and 3 may not be so
familiar. For completeness all ranks of tensor offered as standard in OpenFOAM 2.x
are reviewed below.
Rank 0 ‘scalar’
Any property which can be represented by a single real
number, denoted by characters in italics, e.g. mass , volume ,
pressure and viscosity .
Rank 1 ‘vector’
An entity which can be represented physically by
both magnitude and direction. In component form, the vector
relates to a set of Cartesian axes respectively.
The index notation presents the same vector as , ,
although the list of indices will be omitted in this book, as
it is intuitive since we are always dealing with 3 dimensions.
Rank 2 ‘tensor’
or second rank tensor, has 9 components which can be
expressed in array notation as:
(1.1)
The components are now represented using 2 indices since and
the list of indices is omitted as before. The components for
which are referred to as the diagonal components, and those for
which are referred to as the off-diagonal components. The transpose
of is produced by exchanging components across the diagonal such
that
(1.2)
Note: a rank 2 tensor is often colloquially termed ‘tensor’ since the
occurrence of higher order tensors is fairly rare.
Symmetric rank 2
The term ‘symmetric’ refers to components being
symmetric about the diagonal, i.e.. In this case, there are only 6
independent components since , and .
OpenFOAM distinguishes between symmetric and non-symmetric tensors to
save memory by storing 6 components rather than 9 if the tensor is
symmetric. Most tensors encountered in continuum mechanics are
symmetric.
Rank 3
has 27 components and is represented in index notation as which
is too long to represent in array notation as in Equation 1.1.
Symmetric rank 3
Symmetry of a rank 3 tensor is defined in OpenFOAM to mean
that and therefore has 10
independent components. More specifically, it is formed by the outer
product of 3 identical vectors, where the outer product operation is
described in Section 1.3.4.
This is a book on computational continuum mechanics that deals with problems
involving complex PDEs in 3 spatial dimensions and in time. It is vital from the
beginning to adopt a notation for the equations which is compact yet
unambiguous. To make the equations easy to follow, we must use a notation that
encapsulates the idea of a tensor as an entity in the own right, rather than a list
of scalar components. Additionally, any tensor operation should be perceived as
an operation on the entire tensor entity rather than a series of operations on its
components.
Consequently, in this book the tensor notation is preferred in which
any tensor of rank 1 and above, i.e. all tensors other than scalars, are
represented by letters in bold face, e.g.. This actively promotes the
concept of a tensor as a entity in its own right since it is denoted by a single
symbol, and it is also extremely compact. The potential drawback is that
the rank of a bold face symbol is not immediately apparent, although it
is clearly not zero. However, in practice this presents no real problem
since we are aware of the property each symbol represents and therefore
intuitively know its rank, e.g. we know velocity is a tensor of rank
.
A further, more fundamental idea regarding the choice of notation is that the
mathematical representation of a tensor should not change depending on our
coordinate system, i.e. the vector is the same vector irrespective of where we
view it from. The tensor notation supports this concept as it implies nothing
about the coordinate system. However, other notations, e.g., expose the
individual components of the tensor which naturally implies the choice of
coordinate system. The unsatisfactory consequence of this is that the tensor is
then represented by a set of values which are not unique -- they depend on the
coordinate system.
That said, the index notation, introduced in Section 1.2, is adopted from time
to time in this book mainly to expand tensor operations into the constituent
components. When using the index notation, we adopt the summation convention
which states that whenever the same letter subscript occurs twice in a term, the
that subscript is to be given all values, i.e., and the results added
together, e.g.
(1.3)
In the remainder of the book the symbol is omitted since the repeated
subscript indicates the summation.