In continuum mechanics, we view the body—the structure (solid or fluid) that is of our interest—as a continuous region that lives in the three-dimensional space R3.
The word continuous means, we assume the body to be made up of infinitely many, infinitely small points, with no space in-between (like the cloud of paint seen above), rather than discrete, finitely small atoms, with an atomistic space in-between.
The space R3 is special in many ways (mathematically, that is), and allows us to set up and solve problems in mechanics in a rigorous manner. To keep things interesting and concise, we will replace some definitions with layman, more intuitive explanations.
1. Vector Space
a. R3 is a vector space
The elements in a vector space are called vectors. Addition and scalar multiplication of vectors are closed (we always stay inside the space) and follow certain axioms (rules). In other words, we can safely compute addition and scalar multiplication of vectors because they are well-defined operations.
A vector space always contains the zero vector 0. We can arbitrarily assign a point in our physical world to be the origin. This allows us to identify points that make up the body as vectors in R3 (called position vectors in continuum mechanics).
b. R3 has a dimension of 3
We can find three vectors e1,e2,e3∈R3 that are linearly independent (quite literally, independent from one another) and span (cover) the entire space of R3. The set of such vectors is called a basis and these vectors are called basis vectors.
Using basis vectors, we can write any vector x∈R3 as their linear combination, i.e. there always exist scalars x1,x2,x3∈R such that
x=x1e1+x2e2+x3e3
The representation of x in terms of the basis {e1,e2,e3} is unique. There is no other set of scalars {x1′,x2′,x3′} such that x1′e1+x2′e2+x3′e3 will also give us back x.
What does this mean? As long as we have 3 vectors that form a basis, we can locate any point in the body and describe mathematically what is happening physically at a point and its nearby points. For example, we can talk about a point in terms of its x, y, and z coordinates (Cartesian coordinates). We can also talk about it in terms of radius, latitude, and longitude (spherical coordinates).
We can find a vector using the standard basis. (Source: Wikipedia)
We can also find the vector using the spherical basis. (Source: MathWorks)
The fact that the representation is unique allows us to write x as an array of numbers:
x=x1x2x3
It is crucial to understand that the scalar components x1,x2,x3 only mean something under the basis {e1,e2,e3}. In other words, it is important to first agree on which basis will represent the space R3. (Is it x, y, and z? Or radius, latitude, and longitude?)
If we choose a different basis {e1′,e2′,e3′}, the vector x will remain the same but the scalar components x1′,x2′,x3′ that represent x will be different. We write,
x=x1′x2′x3′
The numbers x1′,x2′,x3′, again, only mean something under the basis {e1′,e2′,e3′}.
Later, we will show how the two sets of components {x1,x2,x3} and {x1′,x2′,x3′} (two coordinate systems) are related to each other. We will see that the two are related linearly through the directional cosines.
c. R3 comes with a norm and an inner product
An inner product is a function that maps a vector to a scalar. This function meets a set of requirements and, as a result, we can use numbers to describe the "geometry" of the vector space. In particular, we can talk about the length (norm) of a vector and the angle between two vectors. (On some vector spaces, we can't define an inner product or a norm. We should be glad that both exist in R3.)
Let {ex,ey,ez} denote the standard basis for R3. The three vectors are defined to align with the Cartesian coordinate axes in the positive directions. The components of ex,ey,ez in terms of the standard basis (themselves) are as follows:
ex=100,ey=010,ez=001
Then, we can define an inner product between two vectors x=x1ex+x2ey+x3ez and y=y1ex+y2ey+y3ez as follows:
Equation 1.1. Inner product
⟨x,y⟩:=x1y1+x2y2+x3y3
This does meet the properties of an inner product, and is called the l2 inner product (or the Euclidean inner product) of x and y.
We can always use an inner product to define a norm, a vector-to-scalar function that measures the length of a vector. (Not all norms come from an inner product.)
Using the l2 inner product, we define the norm of the vector x=x1ex+x2ey+x3ez as follows:
Equation 1.2. Norm
∣∣x∣∣2:=⟨x,x⟩=(x1)2+(x2)2+(x3)2
This does meet the properties of a norm, and is called the l2 norm (or the Euclidean norm) of x. We see that,
i.e. the standard basis vectors have a length of 1 in the l2 norm.
Now that we have an inner product and a norm, we can define the angleθ between two vectors x and y. We let θ∈[0∘,180∘] be the number that satisfies the equation,
Equation 1.3. Angle
⟨x,y⟩=∣∣x∣∣2∣∣y∣∣2cosθ
We say that x and y are orthogonal, or perpendicular, if ⟨x,y⟩=0. From equation 1.3, we see that x and y are orthogonal when they form an angle of 90∘ (assuming neither is the zero vector).
We can define the angle between two vectors using inner product and norm. (Source: Wikipedia)
Any two of the standard basis vectors ex,ey,ez are orthogonal. Because they are pairwise orthogonal and have a unit length ("normalized"), we say that the standard basis is an orthonormal basis.
We defined the l2 inner product and the l2 norm after agreeing to use the standard basis. However, we can show that their outputs, i.e. the numbers that we get, will be the same under any orthonormal basis.
2. Coordinate Transformations
Recall that R3 is a vector space of dimension 3, so three linearly independent vectors will span the entire space. For example, we can use the standard basis {ex,ey,ez} that aligns with the Cartesian coordinate system. The standard basis is an orthonormal basis, i.e. the basis vectors are pairwise orthogonal (in the sense of l2 inner product) and have a unit length (in the sense of l2 norm).
Remark.
As long as three vectors are linearly independent, they will form a basis of R3. What is the benefit of considering basis vectors that are pairwise orthogonal?
a. Transforming vectors
Consider a vector u∈R3. We can use the standard basis to write that,
u=uxex+uyey+uzez=uxuyuz
But sometimes, it is easier to describe a structure's behavior (e.g. displacement, reaction force) in a different coordinate system, i.e. a different basis.
Let {eA,eT,eS} denote a second orthonormal basis for R3. Note, A stands for axial, T for transverse, and S for the axis that is orthogonal to A and T.
Then, in this basis,
u=uAeA+uTeT+uSeS=uAuTuS
We would like to know how to find the components uA,uT,uS under the new basis from the components ux,uy,uz, or vice versa. To do so, we first note that,
Equation 2.1. Identity
uAeA+uTeT+uSeS=uxex+uyey+uzez
since both sides of the equation represent the same vector u.
The idea is to take the inner product of both sides of equation 2.1 with the new basis vectors. For example, if we take the inner product with eA, we get,
The idea of using consistent nodal forces to approximate a distributed load relies on inner products. In some sense, nodal forces represent one coordinate system, and distributed loads represent another.
We can combine these three equations into a single matrix equation:
Hence, we can change the components of u from one coordinate system to a new one by applying a linear transformation Q:
Equation 2.3.
unew=Qu
Note that, by the angle formula (equation 1.3), we can interpret each inner product ⟨ei,ej⟩ as the cosine of the angle between two coordinate axes ei and ej:
We can also show that Q is an orthogonal matrix. This means Q is invertible and its inverse is easily given by the transpose matrix, i.e. Q−1=QT.
Hence, we can find ux,uy,uz from uA,uT,uS:
Equation 2.4.
u=QTunew
b. Transforming matrices
A matrix A∈R3×3 can be represented by nine components. Again, we would like to know how these components will change under a new basis (basis for matrices R3×3). This would be useful for computing an element stiffness matrix and for describing the strains and stresses within the structure. While it is possible to come up with a basis and an inner product for matrices and repeat what we just did for vectors, there is an easier way to arrive at the result.
We use the fact that a matrix A∈R3×3 linearly maps vectors in R3 to vectors in R3. In other words, A allows the equation,
Au=b
From equation 2.3, we know how the components of a vector change under a new basis for R3. Let unew=Qu and bnew=Qb denote the components of u and b in the new basis. Substitute these relations into the equation above (recall, Q is orthogonal) to find that,
QAQTunew=bnew
Because this equation holds for all vectors u and b (that satisfied the original equation), we can conclude that Anew, the components of the matrix in the new basis, is given by,
Equation 2.5.
Anew=QAQT
Notice the similarity and dissimilarity between the transformation rules for vectors (equation 2.3) and for matrices (equation 2.5).
3. Applications
a. Element stiffness matrix of 2D and 3D truss elements
Consider the element stiffness matrix for a 2D truss element. Locally (in axial and transversal directions), the element stiffness matrix is very easy to describe:
Klocale=LEA10−100000−10100000
To study how all 2D truss elements interact with each other (and possibly with other types of elements), we need to convert this local element stiffness matrix to a global one. For each 2D truss element, we get to apply a change of coordinates to two nodes (i.e. two vectors in R2). Therefore, the transformation matrix Q is a block diagonal matrix as shown below:
How will the element stiffness matrix for a 3D truss element look like in the global coordinate system?
b. Axial strain in 2D and 3D truss elements
We define the axial strain εA to be the relative change in the length of a truss. Locally, this is very easy to describe using axial displacements (1 and 2 are node indices):
εA=Lu2,A−u1,A
Recall the relation between axial displacement and the global displacements,
uA=uxcosθAx+uycosθAy+uzcosθAz
Hence, we can find the axial strain from the global displacements using directional cosines: