This is a review of the FEM solution to the torsion problem of a rectangular cross section beam. First a description of the problem is given, then a description of the FEM method is shown, followed by a simple numerical worked example.
The problem is to solve the Poisson 2D problem for rectangular cross section. This equation is the mathematical model for a beam under torsion as described in the following diagram.
Since we are using a triangle elements for the FEM mesh, the cross section mesh is the preferred mesh to use as shown in this diagram.
Before going into the details of the FEM solution it might be useful to look at the big picture.
The following diagram shows more description of the methods.
The following diagram shows the steps to obtain the symmetric weak for of the 2D Poisson PDE
Converting the integral equations from the global Cartesian coordinates system to what is called the natural coordinates system (the local coordinates system) is a standard step used in FEM.
"A local coordinates system that relies on the element geometry for its deﬁnition and whose coordinates range between zero and unity within the element is known a natural coordinates system. Such system have the property that one particular coordinate has unit value at one node of the element and zero value at the other nodes: its variation between nodes is linear"1
Integration of shape functions when they are written in the natural coordinates are simpliﬁed since the origin is now located on the element. These are the main reasons for changing from global coordinates to the natural coordinates. For simple geometries, one can avoid having to do this coordinates transformation, but in general and in practice it is the standard procedure to do.
I found that most of the technical and mathematical diﬃculties involved are in this step. So more details will be spend on this.
The global coordinates of the element is shown in this diagram
Given an equation or expression where the independent variables in the equation are (the global Cartesian coordinates system) and we wish to express this same equation using the independent variables , then we perform coordinates transformations.
Given that and , we ﬁrst ﬁnd the diﬀerentials of the old coordinates system (i.e. ) in terms of the diﬀerentials of the new coordinates system ()
The matrix that represents this mapping between the diﬀerentials in the old coordinates system and the new coordinates system us called the Jacobian (some books call the determinant of this matrix as the Jacobian). It is important to note that this mapping is between the diﬀerentials of the independent variables in the two coordinates system, and not between the variables themselves.
Hence we write
is also written as
The main use for the Jacobian is in change of variables from one coordinates system to another, and also in performing area and volume integrals.
Hence, converting an integral from the global coordinates to the natural coordinates can be done as follows
When the natural coordinates are area coordinates (which is the case here), we should modify the above to become
The area coordinates are illustrated in this diagram
It is important to realize that the shape functions used will be the same as the area coordinates.
Let us now start from the symmetric weak form equation, with the goal to convert it to the natural coordinates (see previous diagram for the derivation of this equation)
Since the ﬁrst integral above is carried along the boundaries of the whole domain itself (not along the boundaries of the individual elements themselves) and since we set the value of the test function to be zero at the boundaries of the domain, the ﬁrst part of the above integral is zero. Hence the above integral become
In the following derivations, everything is done on an element , hence all the and element nodes coordinates , etc.. should have a superscript on, as in . To make things easier to read, I will not put the superscript but will add it back at the end.
Consider ﬁrst the second integral from (1) Which can be rewritten as
Consider the ﬁrst integral from above
The above is written with reference to the global coordinates system. However, We want our trial and test functions to be deﬁned in the natural coordinates system (where things are simpler). So we need a way to transform the above integral (2A) to the natural coordinates system.
Assume we have the mapping and (we will see how to obtain this mapping below). This mapping tells us how the global coordinates themselves change as a function of the natural coordinates. Now we can use diﬀerentiation chain rule to see how the trial and test functions themselves change relative the global coordinates.
Similarly for the test function
To make things more clear, we rewrite the above using matrix notation. For the trial function
and similarly for the test function
From (3) and (4), we see the following inverse transformations
Now transpose the column vector in (6) to be a row vector because that is how it is laid out in the integral (2A), ( and remember to change the order when transposing a product)
Now we are ready to convert the integral in eq (2A) to the natural coordinates system (these are area coordinates, notice the integral limits and the order of integration)
Where we used the standard relationship that
Remember to put ﬁrst before since the inner limit is on
Now that we have everything in the natural area coordinates system, we can do the integration. One small point left, which is to determine the diﬀerentials involved in (7).
For this we now need to decide on the actual form of the trial and test functions and on the mapping between the global and the natural coordinates system. The following explains this part, we will come back to the above integral once we have obtained the diﬀerentials and determined the Jacobian.
The following diagram shows the linear transformation we will use. This is a standard transformation where the natural coordinates are called the area coordinates described more below.
We see from the above diagram that
From the above we obtain the following diﬀerentials
Now, we consider the trial and test functions. based on the above transformation shown in eq (8), We see that the linear trial and test functions can also be written in similar transformation
Again, immediately, we obtain the following diﬀerentials from the above expressions
Hence the Jacobian can now be evaluated (see eq(3) for reference)
And its inverse is
Now that we have all the diﬀerentials needed, we can now go back to the integral in eq (7) and compute it:
Now we can evaluate .
The integrand is
But the integrand is a constant, hence we take it out of the integral
Now we evaluate
But from (10) we see that
and the area of a triangle with corners at is given by
Hence we get
Therefore we can replace by everywhere. Rewrite the local stiﬀness matrix in terms of the local element area:
Now that we have we plug it back into eq (11)
And now that we completed this integral we go back to eq (2) :
We need to work on the second integral above and transform it to the natural coordinates.
But Hence the above becomes
Now we have the integral in eq (2) completed. We now have our local equations completed. Here it is. We next need to assemble them.
Looking at the trial function in eq (9), repeated here
Hence we see that
And since we are looking for a trial function to be of the form we see from the above that the 3 shape or basis functions are the following
And since we are using the Galerkin method, where the test function uses the same basis functions as the trial function, we can write the test function as
The global stiﬀness matrix is always square and symmetric and positive deﬁnite. (At least for structural analysis). Recall a positive deﬁnite matrix is one such that for any nonzero vector we always have where is the conjugate of Properties of positive deﬁnite matrix is that all its eigenvalues are positive, and it has positive determinant, and hence a positive deﬁnite matrix is always invertible.
In addition, the global stiﬀness matrix is banded. This means that all non-zero elements are found along bands close to the main diagonal of the matrix. Within the band itself, some values can be zero.
The width of the band is a function of the numbering of the nodes used. Diﬀerent node numbering can result in smaller band width. We want to have as small a band width as possible to take advantage of some numerical methods that can utilize banded matrices.
Band width can be reduced if we keep the node numbering in each element as close as possible to each others.
Now that we have found the local stiﬀness matrix for element we can assemble the global stiﬀness matrix as shown in this diagram. The direct stiﬀness construction method is used. This is explained in the following diagram
This follows in similar fashion as above. The 3 elements Load vector for element is added to the entries of the global load vector using the node numbering mapping.
Now we have the following equation
Where is the assembled global stiﬀness matrix and is the assembled global load vector. Before we solve for , which is the stress function at all the nodes, we must modify and to take care of the given boundary conditions. I attach below 2 pages from a book which gives a good explanation and small example on this point.
Now that we have the modiﬁed and you can solve for using your favorite linear equations solver.
The following are the main steps in solving the torsion problem described in this report.