Вы находитесь на странице: 1из 49
University of Newcastle upon Tyne, Department of Engineering Mathematics An Introduction to THE FINITE ELEMENT METHOD ‘The Finite Element method for plane stress, two-dimensional heat conduction and related problems, and framework problems, with exercises and examples for the PC package FINEL. (c) John C. Appleby, 1994,2000 Department of Engineering Mathematics. University of Newcastle upon Tyne, Neweust!e upon Tye NEI 7RU, U.K. Tel (+44) (0) 191-222 6286 Fax (+44) (0) 191-222 5498, E-mail: John.Appleby@net.acuk WWW: hitp://www.staff.ncl.ac.uk/john.appleby ] J co Contents 10. Appendix Introduction Some examples of 2D problems and their chosen solution form Solving the problems Elements and shape functions Mesh design and boundary conditions Derivation of the finite clement equations - the Galerkin method ‘Two-dimensional problems ‘Numerical integration and stress sampling Frameworks - rod and beam elements Bibliography Results from stress analysis ii 12 7 24 28 32 35 41 1. Introduction ‘The Finite Element Method is a computational method for the analysis of stress, vibration, heat conduction, fluid flow, electrostatics and acoustics; it is suitable for a wide range of 2D and 3D continuum problems, which may be steady or unsteady, linear or non-linear. The method has been. developed over about thirty years, starting with traditional matrix methods of structural analysis for frameworks consisting of rod and beam elements. In fact, problems with rods and beams are now also handled in finite element terms, since so many aspects are the same, but some features are necessarily distinct. ‘The distinguishing feature of the finite element method for continuum problems is that we choose to represent the solution of the problem in a particular way at the outset. We in effect replace the original problem domain and material, which behaves in a smooth, continuous but probably complex way, with a domain, geometry and ‘material’ which have simpler behaviour, although not as smooth, We then apply the normal equations for the problem (eg equations of plane stress, Laplace's equation e#c) to this simplified form of solution. Because our anticipated solution is not smooth, we need the equations in integral form, and these must be derived from the more familiar differential equations for many problems, ‘The equations may themselves involve approximation, such as plane stress or plate bending formulations, or be exact, as for heat conduction, An example If we wished to solve the problem of a freely-hanging cable (the catenary), with true solution smooth and continuous, we might choose to represent it as a chain of finite links. For the catenary problem, this is not in fact a practical method of solution, but it is a useful illustration of some of the characteristic features of the finite element method. True format eatiion CChoson approximation Since each link is defined completely by its end points, what was a continuum problem of infinitely many degrees of freedom has been represented by a system (mesh) of 8 elements joined at 9 nodes, each of which has an x-displacement and a y-displacement, giving 18 degrees of freedom, If we went on to formulate the whole problem in this way, we would obtain a system of 18 simultaneous linear equations in these 18 variables. Now, 4 variables are known, namely zero displacements at the end points, but there are 4 corresponding unknown reactions, so we do indeed have 18 unknowns and 2 well-defined problem. After solving the equations for the unknown displacements and forces, we may also solve for derived quantities, such as stresses. Moreover, we can calculate the displacements e1c at any point in the structure, since each link is defined entirely in terms of its end-points. For framework problems, such as pylons, bridges, conveyors efc made from girders, the structure is already in discrete form, and the only approximation is in the choice of equations such as beams with or without shear effects. This example, though artificial, illustrates the principal stages of a static, linear finite element analysis for a 2D continuum problem: + Discretise the structure (design a mesh of nodes and elements), and choose a form of solution in each element. wultaneous linear equations. Apply the equations to obtain a system of si * Apply boundary conditions and forces (gravity in this example). © Solve the equations for the primary variables at the nodes. «Solve for reactions and any derived quantities. © Calculate values within each element in terms of the nodal values if desired A 3D problem follows exactly the same steps. A framework problem is different only in the first step. A non-tinear problem requires iteration to solve the main system of equations. An unsteady problem solves the equations at each time step. Thus a vast range of problems are susceptible to essentially the same approach if suitable equations can be derived, and it is possible 10 construct general purpose finite element packages which use common modules for many different problem types. In these notes we concentrate on continuum problems, in contrast to treatments designed primarily for structural engineers; rod and beam elements are considered in section 7. Principal advantages of the finite element method ‘The finite element method was developed initially for structural engineering problems, Because the mesh is designed by the user (though sometimes with computer assistance), it is possible to conform to features of the structure stich as: © fitting the mesh to the geometry, which can involve the use of curved-sided elements, © having different materials and eg thicknesses within different elements (since the integral equations do not fail at discontinuities), * elements of varying sizes in different regions to reflect the complexity of the solution in each part. Disadvantages of finite element anelysis are that it is more difficult to understand and to program than eg the finite difference method, and can be more difficult to apply for some kinds of domain and boundary conditions, such as free-surface fluid flows. Comparison with other methods ‘The finite element method applies the exact equations (or the normal approximation) to a chosen approximated form of the solution. In contrast, the finite difference method approximates the differential equations for the problem, applied to the solution at points on a grid. For example, 8b ON =-OU =H) 1g BO _ Ox h)=20() + Oh) ax 2h we ef A third method, the boundary element method, also uses an integral formulation, but discretises the solution only on the boundary, which is more economical, particularly when it is the boundary that is actually of greatest interest. ‘The first two methods produce large matrices of coefficients that are usually banded, producing economics of storage and solution time; the third method produces a smaller matrix, but more densely populated. tahew UY tefor Silat ha © ample! flew 1 | 2. Some examples of 2D problems and their chosen solution form (i) A plane stress problem A simple triangular bracket, attached to a wall, is loaded at its tip. The bracket is made from thin sheet mild steel, and the load is in-plane, so the equations of plane stress apply. The simplest model (or representation) of this structure is a single element which deforms in a linear way, ie the displacements are linear functions of x and y, and the deformed plate remains a straight-sided wiangle. With this assumption about the way the structure behaves, we know at the outset that the deformed shape must be something like that shown: thickness 0.01m oan Note that we have not so far done any calculation, but simply imposed on the problem a chosen form of solution, Normally, we would choose a form that we expect to be capable of representing the crue solution to reasonable accuracy, In this case, the bracket should really bend much more near the tip than we have allowed, and it is not surprising if our model is much stiffer than it should be. Exercise To obtain an order of magnitude estimate of the solution, model the domain as a:rectangle of comparable dimensions and apply the force as a one-dimensional analogue. (E - Young's modulus for mild steel is 2.09 x10" Nm) We can improve things by using four elements, each of which behaves linearly, but which together permit more complex behaviour: RM In practice, we often use more than one mesh, of progressively increasing refinement, to help us assess the likely accuracy of the solution, If the increased resolution makes litte difference, it suggests that we may have reached convergence to the true solution, It is important to realise that convergence may be very slow, so that we are much further from the true values than it appears, and convergence to the wrong solution is also possible! We must have independent verification, if ‘only from experience or an approximate estimate, before we can rely on any results. Overall, these meshes produce 6 and 12 variables respectively (3 or 6 nodes x 2 displacements). 3 variables are known (fixed, zero displacements) and also 3 or 9 forces (one imposed, the remainder zero). Therefore we solve for 3 displacements and 3 reactions or 9 displacements and 3 reactions in the two cases. If the boundary conditions are changed, the matrix of coefficients remains unchanged, and it is economical to re-use this with new boundary conditions, especially as the matrix may be processed independently of the altered information, and it is this stage that takes most computer time. All finite element packages should offer such a re-solution facility. (ii) A heat conduction problem A square region (Im along each edge) has the temperature fixed along the edges, and we wish to find the temperature within the region, as well as the heat flow. The thickness and material affect the size of the fluxes, but not the temperature distribution, provided the material is homogeneous. If we model the solution as four elements, joined at five nodes, and we assume the temperature varies linearly within each triangular element, we are in effect assuming that the temperature contours are straight lines. Exercise ‘Sketch the expected form of the contours, and give a rough estimate of the central value of temperature, Since it is obvious that the central value will be below 50°, we can sketch the expected solution as shown: T=100x T=0 T=100y x Once again, the form of solution is clearly not satisfactory, and we can design a better mesh which will permit a smoother solution, but even such a simple mesh as this, or the first one for the bracket example, may be useful to: ‘+ check the operation of the program, data input, boundary conditions ec + check that we have a well-defined problem give an order of magnitude estimate of the solution ® identify areas where the mesh should be refined. ‘This problem has one degree of freedom at any point, namely the temperature, and so there are 5 variables (the nodal temperatures) overall. We obtain a system of 5 equations. With the boundary conditions indicated, we know 4 of these temperatures, and our 5 unknowns are the central nodal temperature, together with 4 values of heat flux, with the results given at the nodes. These must be interpreted as integrated fluxes into or out of the boundary surrounding each node. For this mesh, that is the region extending from mid-way between the nodes on each side. Here the total flux will be zero, with flow into the domain around one node, and out of it around three. If we change the boundary conditions, eg imposing fluxes rather than temperatures at the boundary, we can use the same set of equations, as described above. Also note that Laplace's equation, or Poisson's equation if source terms are included, applies to a range of other problems, including electrostatics, torsion and groundwater and other potential flows. (ii) Curved-sided elements ‘One of the principal advantages of the finite element method is the ability to match closely the trac geometry of the problem, Simple linear elements, like the 3 node triangle, always have straight sides, but elements whose behaviour is described by quadratic or higher functions can also have @ geometry described by curves. <— parabolic curve Dam modelled as a single 8-noded quadrilateral Here a single element is able to model a curved side, though in practice many more elements would be used. In general, one quadratic or higher order element of this type has superior performance to the eight linear iangles that could replace it with about the same number of degrees of freedom, (iv) Mesh grading As well as modelling the geometry of the problem, element sizes and shapes may be chosen to give uniform accuracy to the solution, by using more nodes and elements in areas of greatest ‘activity’; where changes are most rapid and complex, smaller elements should be used rR RR TENS Here, quadrilateral elements (which might be 4-node, 8-node or more) are graded in size to suit a problem of a point load on a block. Note that ‘quadrilateral’ does not imply ‘rectangular’, In practice, the natural symmeiry of this problem would be used to reduce the domain and corresponding calculation by half, 3. Solving the problems ‘The above examples have indicated how we can model the geometry and the anticipated solution behaviour. Next we shall look at two of them to see what the computer program does to reach a solution, but deferring until later the derivation of the finite element equations. @ The simple bracket ‘The bracket problem above, when modelled with a single triangular element, requires the following data (if the package FINEL is to be used) or very similar data, Some packages offer mouse-driven interactive mesh design, so that the geometry is ‘drawn’ on to the screen, but the data created will be of the same type. pede on eoraifle: ans l® thickness 0.01: - . 02 y se fom ot eon | gh L. sity Hoty flo. Pace 7 y *L, F=t000N 0am Mesh with node and element numbers title bracket in plane stress optional title coordinates 1 00 0.0 node number, x coordinate, y coordinate 2 02 00 3 00 02 elements 1 1 2 3 element number, nodes numbered anticlockwise dimensions 1 0.01 size code 1 will have thickness 0.01m | constraints 1 1 00 node 1, d.o.f. 1, constrained to value 0.0 3 1 00 node 3, both d.o.f, constrained to 0.0 302 00 forces 2 2 1.003 node 2, d.o.f, 2, force in -ve direction end a control line, the last line of data ‘To enter and run this example with FINEL, just type finel bracket where ‘bracket’ will be the name of the input and output files, then enter the data (without the explanatory comments) as given above. Note that these files will be created in the current directory; to place them elsewhere you must enter a ‘pathname’, eg finel a:\datalbracket. ‘The program has now been given all the information it needs to create the matrices of coefficients in the equations, and to apply boundary conditions and forces before solving the whole system. In this case, there is only one element, with six variables: 1 .¥s42»Vasis,Vyy where wy are the displacements in the x and y directions. The zqpology of the element is described by the list of node numbers for the element (going anticlockwise, and starting at any corner for PINEL), For this linear element, the assumed form of solution is w= a+bx+cy, v=d-+ex + fy, and this implies that the strain and stress, eg €, =du/x, 0, =(E/1—v")(e, + ve,), will be constant throughout each element (these are also known as constant strain elements). ‘The equilibrium equations for plane stress produce the equations: ltp v+p -p -p -vipu] f? Dorey

Element mapping ‘The idea of mapping an element in real space to a standard element has been mentioned above, and is particularly useful for complex elements that may have curved edges, such as the 8-node quadrilateral. To see how it works, well consider mapping a 3-node triangle, although this is not really necessary as it is so easy to derive shape functions for such an element. Weill assume that we wish to map any triangle to the standard triangle shown: (0.4) 7 x 0.0) which has shape functions: N, = We have already discussed the idea of representing the variables using these, viz T=N,I, +N,T, +N,F, . We now extend the idea to represent the geometry of an clement using the same shape functions (you will appreciate by now the importance of understanding the properties of these functions!). We write —x-y, Ny =x, N=, and where xy are local coordinates. XS NX, + NGK, HNGXg Y= MY + Noda + Nas + where x,y; efc are the coordinates of the nodes of the real triangle, and x’, y’ are the global coordinates of an arbitrary point within the triangle, Suppose we consider the triangular element with nodes 1,2,3 at (1,-1), (0,1), (-1,0) respectively. ‘Our expressions become: ¥'= LN, +0.N,-LN, =N,~Ny=1-x-2y YISHLN, +L, $0.Ny =-N, +N, = 2x+y-l Now we consider several points in the standard element, and see to which points in the actual element they correspond. x 1, so that node 1 corresponds as expected. x=1,y=0 givesx’ , $0 node 2 also corresponds. x=0.5,y =O gives x'=0.5,y'=0, so mid - points of edges correspond, =0 gives x Exercise (® Find which points in the real element correspond to the points (0,0.5) and (1/3,1/3) in the standard element. (Gi) Investigate the mapping for the element with nodes at (1,0), (0,-2), (14-2) respectively. ‘The same procedure applies to mapping for more complex elements. However, it does not follow that any shape of element is acceptable. Extreme elongation leads to decreased accuracy, and exiteme distortion can lead to a non-unique mapping. Shapes that would be unacceptable include: HS OK RE 15 ‘here the last is no good because the position of the ‘mid-side' nodes is too close to the comers and leads to a singular mapping. It is usually best to put such nodes near or at the middle of the side (but in crack propagation problems it is actually possible to exploit the singularity to model crack tip behaviour). Exercise For the 8-node element, if you have found all the shape functions, you can investigate the / mapping for an element with nodes at (0,0), (1,-0.5), 2,0), (1.5,1), 2,2), (1,2), (0.2), / (0,1), which has two curved sides. ‘Other examples Tn 2D, other clement types include a straight-sided 4-node quadrilateral, a (curved-sided) 6-node triangle (types 3,2 respectively in FIIVEL), and higher-order elements with cubic and higher shape functions, Although the formulation becomes progressively more difficult, more complex elements generally out-perform simpler ones, since far fewer are needed for the same level of accuracy. On the other hand, conforming to geometry, and applying boundary conditions, sometimes make lower order elements more convenient. Axisymmetric problems can be treated in a way very similar to 2D problems, and the element types are essentially the same. Boundary conditions, and the underlying numerical integration, need special consideration, 3D problems need a comparable range of element types. The equivalent to the 3-node triangle is a 4-node tetrahedron; the 8-node quadrilateral translates to @ 20-node ‘brick’ element. Combination type elements include a 6-node 'wedge' ete. The theory of these is just the same as for 2D, but naturally the algebra is mote complex, and the computaion is vas greater Ya wey trea fk a 16 5. Mesh design and boundary conditions ‘The design of an effective mesh for a given problem depends on an anticipation of features of the solution, so that effort can be directed where it is most needed. A systematic strategy can be followed, but experience is invaluable in the initial design and in appropriate refinement or modification. There are sophisticated programs which automate some aspects of the process; generating a mesh of a given resolution is standard for larger packages, and automatic refinement is becoming better established with time. Naturally the geometry and materials are relevant to the design; the accuracy required should also be considered in advance as part of the job specification, Here we will give only some general guidelines and an outline strategy. * Before applying finite element analysis, estimate orders of magnitude of the solution, and identify areas needing more attention, Ensure that all boundary conditions are known (except where these are some of the unknowns) so that the problem is well-defined. © Concentrate nodes and elements in areas where behaviour is likely to be most complex. * Avoid elongated and distorted elements Aspect ratios (ratio of length to width) are best near 1, and certainly less than 5, Corner angles should be between 30° and 150°. Mid-side nodes (for eg 8-node quadrilaterals) should be within the central third of the side. + Use a single element type throughout, or a mixture of elements of comparable accuracy, since otherwise convergence as resolution is increased will be uneven. Choose appropriate element types (eg plate-bending problems offer a choice of formulations). A sensible strategy, unless you are solving a problem very similar to one you have solved before, would be: Estimate the solution first (as above). Reduce the problem size by symmetry whenever possible, to reduce effory/cost and increase accuracy. © Design & very simple mesh to confirm your estimates and to check operation of the program ete © Design a mesh of varying resolution, but still simple, as a reference point for establishing convergence. © Increase resolution, perhaps doubling in all directions and increasing resolution locally in critical areas, and compare values. Smoothness of contours may also be a useful indication, (Many packages always smooth contours, so that this information is unavailable, but FINEL displays the actual contours for every clement for stress problems.) © Increase again, and compare. With three sets of results, you can now form some estimate of whether you are near a correct solution. * If important conclusions or commitments are to be based on your results, check independently unless prior experience is sufficient. Another aspect of a problem might be that the domain is actually unbounded, and some finite extent must be imposed. The technique of so-calied infinite elements (which effectively impose an exponential or algebraic form of decay beyond a chosen boundary) is often the best approach, but otherwise you can proceed as follows: w7 © Make an initial choice of domain size, based on problem features and experience, and using a simple mesh. If the form of decay at large distances is known for similar idealised problems, this will be very helpful. Extend the domain significantly, but by using additional elements, not stretching elements (ince that would introduce swvo changes in the solution, size and resolution, simultaneously) and compare. » Extend again and compare as necessary. Even though the actual values obtained may be very poor, this should indicate whether the additional regions are likely to influence significantly the results in the area of interest. A few examples are useful to show how meshes may be ‘graded’ in resolution. The example data files provided with FINVEL provide more illustrations (though not all of them are well-designed, since they may simply be demonstrating a feature of the program), ‘Example I In using trianglular elements, it is better, on the whole, to maintain a uniform resolution as far as possible; the first design is to be preferred to the second: 44, N44 Example 2 ‘To change from larger to smaller triangular elements, this pattern can be used: Example 3 For grading quadrilateral elements, there is a standard ‘trick’: ‘The same idea can be used to adapt from 1 larger to 3 or 4 smaller. 18 Example 4 ‘Symmetry requires appropriate boundary conditions. For example, for heat conduction: Cold ‘no heat lux across ‘boundary cold Zero heat flux is imposed by the condition 22 in «where 1 is the normal. ‘Stress problems require instead constraints of zero displacems movement only along it Bandwidth Many finite element programs, including FINEL, solve the global equations in the order of the numbered degrees of freedom, which essentially means node-by-node. If the node numbering is chosen sensibly, the matrix entries are grouped principally about the main diagonal in a band. If the typical width of this band is w, and the total number of degrees of freedom is N, then the overall storage requirement is proportional to Nv, and the computation is proportional to Nw®. no attention is paid to node numbering, the computation is then proportional to N, which can be beyond the capacity of the computer if N is of the order of 1000 or more. 3D problems require large NV and can not avoid fairly large w, so that high computing requirements ensue. across the line of symmetry, with More sophisticated packages may offer a node-renumbering routine, but this can itself be slow if the initial numbering is very poor, and is most worthwhile for meshes that will be used repeatedly, ‘The largest problems are usually tackled using a different algorithm, in which only part of the system of equations is held in core at one time. This frontal method requires sensible numbering of elements instead of nodes. Example If we assume a problem with one degree of freedom, such as potential flow, the first of the following will give a matrix with a haif-bandwidth of 7, while the second gives a half-bandwidth of 3. This means that the distance from the main-diagonal to the most extreme entry on any row is at most 7 and 3 respectively. This occurs because the range of node numbers surrounding any element is again 7 and 3, and the part-equations described by the local matrix for each element relate the variables at the nodes for that clement only. 7 8 9 10 AW 12 2 4 6 8 10 12 19

Вам также может понравиться