Piece-wise Continuous Trial Function Solution of the Weak Form We have seen that the general method of weighted residual technique consisted in assuming a trial function solution& minimising the residual in an overall sense. The Galerkin method gave us a way of choosing the appropriate weighting functions.
We have so far used different trial functions such as polynomial and trigonometric series. However, in each case the trial function chosen was a single composite function, valid over the entire solution domain. For example, c 1 sin ( πx / L ) used in Example 2.4 was valid over the entire solution domain 0< x < L , i.e., the entire beam in this case.
Similarly, the trial function c 11 sin ( π x/a ) sin ( πy / b ) used in Example 2.7 was valid over the entire solution domain 0<x< a , 0< y < b , i.e., the entire plate.
Curve fitting When we consider the essence of the WR method , i.e., assuming a trial function solution and matching it as closely as possible to the exact solution of the given differential equation and the boundary conditions, we realise that this is essentially a process of"curve fitting".
It is well known that curve fitting is best done"piece-wise"; the more the number of pieces, the better the fit. Figure 2.16(a) illustrates this basic idea on a function f ( x ) = sin ( πx / L ) being approximated using straight line segments.
One and two-line segment approximation of a function
1 line segment approximation Since a straight line can be drawn through any two points, we can generate one such approximation by drawing a line through the function values at x = 0 and x = L /2. Clearly , this is a poor approximation of the function for x > L /2.
2 line segment approximation If we were to use two straight line segments instead of only one, we could draw two line segments— one through the function values at x = 0 and x = L /2; &other through the function values at x = L /2 and x = L
2 line segment approximation Each of these is our approximation to the function within that piece of the solution domain—the former segment in the sub-domain 0 < x < L /2, and the latter in the sub-domain L /2< x < L. Clearly, this is a better approximation to the function
4 line segment approximation It can be further improved by taking four-line segment approximation as shown in Figure 2.16(b ).
Four-line segment approximation of a function
This is the essential idea of piece-wise continuous trial function approximation for the weak form
Inherent error in approximate soln. Of course, when we consider piece-wise trial functions, we need to ensure continuity of the field variable and its derivatives at the junctions. While the exact solution will ensure continuity of the field variable and ALL the derivatives, we expect to be able to satisfy this to derivatives of only desired degree with our approximate solution . This leads to an inherent error in our solution.
Aim H owever , we aim to obtain a reasonably accurate solution using several convenient trial functions (e.g. simple polynomials) defined in a piece-wise manner over the entire solution domain .
Function values at the ends of the sub-domain Let us define these trial functions , each valid in its own sub-domain, in terms of the function values at the ends of the sub-domain. For example, for Figure 2.16, we define the trial functions in each case as follows:
For the one-line segment (Figure 2.16(a)) approximation ,
Local Coordinate System For two-line and four-line segmentation, we can, in fact, more conveniently rewrite these trial functions if we define a local coordinate x with the origin fixed at the left end of each sub-domain as follows ( ref. Figure 2.16(c)):
Domain with Local coordinate frame
Two-line segment approximation
Four-Line segment approximation
characteristic functions These characteristic functions dictate the contribution of a given f k to the value of the function at any point P within the domain 0< X < L . Figure 2.17 shows these interpolation functions for the two-line segment case discussed earlier.
Figure 2.17(a) shows the interpolation functions separately for the two sub-domains while the Figure 2.17(b) shows them more compactly for the whole domain 0< X < L . Figure 2.18 shows these shape functions for the four-line segment case.
We observe that we have as many shape functions N k as there are function values f k used in the interpolation. Since we have chosen linear shape functions, each function N k ramps up and down within each sub-domain. Each N k takes on the value of unity at the point x = x k and goes to zero at all other end-points x = x i (i ≠ k ). This is to be expected since, at x = x k , the full contribution to the value of the function comes from f k alone and none else.
Equally importantly, the nature of the interpolation we have used is such that each f k contributes to the value of the function only within the sub-domains on its either side or, in other words, only in those sub-domains to which it is"connected ".
Once the function values f k at the ends of the sub-domains have been determined in this manner, the value of the function at any interior point can be obtained using the appropriate interpolation functions. This is the essence of the finite element method.
Each of the sub-domains is called a finite element —to be distinguished from the differential element used in continuum mechanics. The ends of the sub-domain are referred to as the nodes of the element. We will later on discuss elements with nodes not necessarily located at only the ends, e.g. an element can have mid-side nodes, internal nodes, etc.
The unknown function values f k at the ends of the sub-domains are known as the nodal degrees of freedom ( d.o.f . ) . A general finite element can admit the function values as well as its derivatives as nodal d.o.f .
The sub-domain level contributions to the weak form are typically referred to as element level equations. The process of building up the entire coefficient matrices [ A ] and { b } is known as the process of assembly , i.e ., assembling or appropriately placing the individual element equations to generate the system level equations.
We will now illustrate the finite element formulation based on the weak form through a simple example. Through this example we will be formulating the one-dimensional bar finite element which is a line element with two nodes and the axial displacement ' u ' at each node as the nodal d.o.f .
This is a very useful element to solve problems of complex network of trusses. When combined with a one-dimensional beam finite element, it can be used for solving any complicated problem involving frame structures, automobile chassis, etc.
One-dimensional Bar Finite Element Let us reconsider Example 2.9 where we solved the problem using the weak form, but this time we will use piece-wise defined interpolation functions. From Eq. (2.85), the weak form of the differential equation can be written as
One dimensional bar element
Generalizing Formulation Method Our method of formulation.
where we have used the fact that the term AE ( d û /dx ) stands for the axial force P in the bar at that section. Thus , P 0 and P l stand for the forces at either end of the element.
It is observed that these designate the algebraic sum of the externally applied forces F at these nodes and the internal reaction forces R (i.e., those forces that are exerted on this element by the adjoining elements), that get exposed when we consider this element alone as a free body.
Combining Eqs . (2.130)–(2.134), we can write the contributions of the k th element to the overall system equations given in Eq. (2.125) as
These two sets of terms constitute the " characteristic matrices "or " characteristic equations "for the bar element.
We observe that ( AE/l ) represents the axial stiffness of a rod; the first force vector represents the nodal forces equivalent to the distributed force q 0 , and the element equations are simply the nodal force equilibrium equations.
In view of the fact that these equations represent the force-deflection relations for the bar element, the LHS matrix is termed as the element stiffness matrix and the RHS vectors as the element nodal force vectors.
Now we need to sum up all the element level contributions to generate the system level equations. As already mentioned, this process would simply involve repetitive use of the generic element matrices given above.
To illustrate how the element matrices get simply"placed appropriately"in system level equations, we show the detailed computations for a two-element mesh. Based on this illustration, we provide a general method of"assembling element equations"for later use.
Example 2.11 Example 2.11. Illustration of assembly. Consider a rod of total length L = 2 l , discretised into two elements, as shown in Figure 2.21. The weak form of the differential equation is given by