Consider the two right-handed coordinate systems of Fig. A.3, defined by orthogonal unit vectors
and
.
Let xyz be global coordinates and
a local coordinate
system.
The vector
in Fig. A.3 can be written as the sum of two vectors along the
coordinate axes
with magnitude
,
and along the
coordinate axes
with magnitude
,
.
To find the components of the vector
of Eq. (A.15),
we multiply this equation by
and
. The scalar products are:
To find the inverse transformation, we multiply Eq. (A.15) by
and
.
The scalar products are:
The length l and the direction cosines of an element can be calculated using coordinates ,
of the node at the beginning and coordinates
,
of the node at the end of the element (Fig. A.4):
We now consider the transformation of the vector
components
,
of Eq. (A.15) from the global xy coordinate system to the components
,
in the
local
coordinate system.
The inverse transformation of the vector
components
,
of
Eq. (A.15) from the
local
coordinate system to the components
,
of the global xy coordinate system:
Comparing the transformation matrix (A.23) with that of (A.25),
we can see that they are transposed (rows and columns reversed). The multiplication of the matrix (A.23) by a transpose of itself of Eq. (A.25) gives the identity
matrix