AN INTRODUCTION TO THE FINITE ELEMENT METHOD
McGraw-Hill Series in Mechanical Engineering Consulting Editors Jack P. Holman, Southern Methodist University John R. Lloyd, Michigan State University Anderson: Modern Compressible Flow: With Historical Perspective Arora: Introduction to Optimum Design Bray and Stanley: Nondestructive Evaluation: A Tool for Design, Manufacturing, and Service Culp: Principles of Energy Conversion Dally: Packaging of Electronic Systems: A Mechanical Engineering Approach Dieter: Engineering Design: A Materials and Processing Approach Eckert and Drake: Analysis of Heat and Mass Transfer Edwards and McKee: Fundamentals of Mechanical Component Design Gebhart: Heat Conduction and Mass Transfer Heywood: Internal Combustion Engine Fundamentals Hinze: Turbulence Howeil and Huckius: Fundamentals of Engineering Thermodynamics Hutton: Applied Mechanical Vibrations Juvinall: Engineering Considerations of Stress, Strain, and Strength Kane and Levinson: Dynamics: Theory and Applications Kays and Crawford: Convective Heat and Mass Transfer Kimbrell: Kinematics Analysis and Synthesis Marlin: Kinematics and Dynamics of Machines Modest: Radiative Heat Transfer Norton: Design of Machinery Phelan: Fundamentals of Mechanical Design Raven: Automatic Control Engineering Reddy: An Introduction to the Finite Element Method Rosenberg and Karnopp: Introduction to Physics Schlichting: Boundary-Layer Theory Shames: Mechanics of Fluids Shennan: Viscous Flow Shigley: Kinematic Analysis of Mechanisms Shigley and Mischke:. Mechanical Engineering Design Shigley and Uicker: Theory of Machines and Mechanisms Stifiler: Design with Microprocessors for Mechanical Engineers Stoecker and Jones: Refrigeration and Air Conditioning Ullman: The Mechanical Design Process Vanderplaats: Numerical Optimization: Techniques for Engineering Design, with Applications White: Viscous Fluid Flow Zeid: CAD/CAM Theory and Practice
Also Available from McGraw-Hill Schaum's Outline Series in Mechanical Engineering Most outlines include basic theory, definitions, and hundreds of solved problems and supplementary problems with answers. Titles on the Current List Include: ACOlLStics Basic Equations of Engineering Continuum Mechanics Engineering Economics Engineering Mechanics, 4th edition Fluid Dynamics, 2d edition Fluid Mechanics & Hydraulics, 2d edition Heat Transfer Introduction to Engineering Calculations Lagrangian Dynamics Machine Design Mathematical Handbfok of Formulas & Tables Mechanical Vibrations Operations Research Statistics & Mechanics of Materials Strength of Materials, 2d edition Theoretical Mechanics Thermodynamics, 2d edition
Schaum's Solved Problems Books Each title in this series is a complete and expert source of solved problems containing thousands of problems with worked out solutions. Related Titles on the Current List Include:
•
3000 Solved Problems in Calculus 2500 Solved Problems in Differential Equations 2500 Solved Problems in Fluid Mechanics and Hydraulics 1000 Solved Problems in Heat Transfer 3000 Solved Problems in Linear Algebra 2000 Solved Problems in Mechanical Engineering Thermodynamics 2000 Solved Problems in Numerical Analysis 700 Solved Problems in Vector Mechanics for Engineers: Dynamics 800 Solved Problems in Vector Mechanics for Engineers: Statistics
Available at your College Bookstore. A complete list of Schaum titles may be obtained by writing to: Schaum Division McGraw-Hill, Inc. Princeton Road, S-1 Hightstown, NJ 08520
AN INTRODUCTION TO THE FINITE ELEMENT METHOD Second Edition
J. N. Reddy Oscar S. Wyatt Chair in Mechanical Engineering Texas A &M University College Station, Texas 77843
McGraw-Hill, Inc. New York St. Louis San Francisco Auckland Bogota Caracas Lisbon London Madrid Mexico Milan Montreal New Delhi Paris San Juan Singapore Sydney Tokyo Toronto
-y-r:; This book was set in Times Roman. The editors were John J. Corrigan and John M. Morriss; the production supervisor was Louise Karam. The cover was designed by Joseph Gillians. Project supervision was done by The Universities Press. R. R. Donnelley & Sons Company was printer and binder.
K
I
.
.
·'-1"' .
LJ
TA347.F5 R4 1993 An lDtrodllcUoD to !he tIDItt ele.mtlltlDttho
1llllJlllfJ/lIlfmlflllflfIm/IIIII
'fl l ~mtlfI I IJl f
0020046676
269154
AN INIRODUCTION TO THE FINITE ELEMENT METHOD
Copyright © 1993, 1984by McGraw-Hill, Inc. All rights reserved. Printed in the United States of America. Except as permitted under the United States Copyright Act of 1976, no part of this publication may be reproduced or distributed in any form or by any means, or stored in a data base or retrieval system, without the prior written permission of the publisher.
234567890 DOCmOC 99876543 ISBN 0-07-051355-4 Library of Congress Cataloging-in-Publlcatlen Data Reddy, J. N. (John N.) An introduction to the finite element method/J. N. Reddy.-2nd ed. p. cm.--{McGraw.Hill series in mechanical engineering) Includes bibliographical references and index. ISBN 0-07.QS1355-4 1. Finite element method. I. Series. TA347.F5R4 1993 92-29532 620'.OOl'51535--dc20
ABOUT THE AUTHOR
J. N. Reddy is the inaugural holder of the Oscar S. Wyatt, Jr, Endowed Chair
in Mechanical Engineering at Texas A&M: University. Prior to the current appointment, he was the Clifton C. Garvin Chaired Professor of Engineering Science and Mechanics at Virginia Polytechnic Institute and State University. After receiving his Ph.D. in Applied Mechanics in 1974, he joined Lockheed Missiles and Space Company in Huntsville, Alabama, as a research scientist. In 1975, he joined the School of Aerospace, Mechanical and Nuclear Engineering at the University of Oklahoma. In 1980, he was appointed as a professor of Engineering Science and Mechanics at Virginia Polytechnic Institute and State University. Dr. Reddy has authored and coauthored over 150 journal papers and seven books on the theory and applications of the finite element method in solid and structural mechanics, fluid mechanics and heat transfer, and on the development of refined theories and finite element models of laminated composite plates and shells. Dr. Reddy has taught many short courses on the finite element method to industry and government, and has received Certificates of Teaching Excellence from Virginia Polytechnic Institute and State University. Dr. Reddy serves on the editorial boards of a dozen journals, including Journal of Applied Mechanics, Meccanica, International Journal for Numerical Methods in Engineering, International Journal of Numerical Methods in Fluids, Journal of Non-Linear Mechanics, and Journal of Composites Technology and Research. He has received the College of Engineering Research Award from the University of Oklahoma and the Alumni Research Award from the Virginia Polytechnic Institute and State University. Dr. Reddy was awarded the 1983 Walter L. Huber Research Prize of the American Society of Civil Engineers and 1992 Worcester Reed Warner Medal of the American Society of Mechanical Engineers. He is a Fellow of the American Academy of Meehanics, the American Society of Mechanical Engineers, the American Society of Civil Engineers, and the Aeronautical Society of India. vii
To MY FAMILY Aruna, Anita, and Anil
CONTENTS
Preface to the Second Edition Preface to the First Edition
xvii xix
Part 1 Preliminaries 1 Introduction 1.1 General Comments 1.2 Historical Background 1.3 The Basic Concept of the Finite Element Method 1.3.1 General Comments 1.3.2 Approximation of the Circumference of a Circle 1.3.3 Approximate Determination of the Center of Mass 1.3.4 Solution of Differential Equation 1.3.5 Some Remarks 1.4 The Present Study 1.5 Summary References for Additional Reading
2 Integral Formulations and Variational Methods 2.1 Need for Weighted-Integral Forms 2.2 Some Mathematical Concepts and Formulae 2.2.1 Boundary, Initial, and Eigenvalue Problems 2.2.2 Integral Relations 2.2.3 Functionals 2.2.4 The Variational Symbol 2.3 Weak Formulation of Boundary Value Problems 2.3.1 Introduction 2.3.2 Weighted-Integral and Weak Formulations 2.3.3 Linear and Bilinear Forms and Quadratic Functionals 2.3.4 Examples
3 3
5
5 5
6 8 10 13
15 15
16 18 18 20
20 22
26 27 28
28 28
33
35 ix
X
COlITENTS
2.4 Variational Methods of Approximation 2.4.1 Introduction 2.4.2 The Rayleigh-Ritz Method 2.4.3 The Method of Weighted Residuals 2.5 Summary Problems References for Additional Reading
40 40 40 51 57 59 63
Part 2 Finite Element Analysis of One-Dimensional Problems 3 Second-Order Boundary Value Problems 3.1 Introduction . 3.2 Basic Steps of Finite Element Analysis 3.2.1 Model Boundary Value Problem 3.2.2 Discretization of the Domain 3.2.3 Derivation of Element Equations 3.2.4 Connectivity of Elements 3.2.5 Imposition of Boundary Conditions 3.2.6 Solution of Equations 3.2.7 Postprocessing of the Solution 3.2.8 Radially Symmetric Problems 3.3 Applications 3.3.1 Heat Transfer 3.3.2 Fluid Mechanics 3.3.3 Solid Mechanics 3.4 Summary Problems References for Additional Reading
4 Bending of Beams 4.1 Introduction 4.2 The Euler-Bernoulli Beam Element 4.2.1 Governing Equation 4.2.2 Discretization of the Domain 4.2.3 Derivation of Element Equations 4.2.4 Assembly of Element Equations 4.2.5 Imposition of Boundary Conditions 4.2.6 Solution 4.2.7 Postprocessing of the Solution 4.2.8 Examples 4.3 Plane Truss and Euler-Bernoulli Frame Elements 4.4 The Timoshenko Beam and Frame Elements 4.4.1 Governing Equations 4.4.2 Weak Form 4.4.3 Finite Element Model 4.5 Inclusion of Constraint Equations 4.6 S u m m a r y -
67 67 70 70 72 72 89 95 95
96 103 105 105 117 123 127 128 141 143 143 143 143
144 144 151 154 156 158 160
167 177 177 177 178 187 191
CONTENTS
xi
Problems References for Additional Reading
192 198
5 Finite Element Error Analysis
199 199 200 201 202 207 207 208
5.1 Approximation Errors 5.2 Various Measures of Errors 5.3 Convergence of Solution 5.4 Accuracy of the Solution 5.5 Summary Problems References for Additional Reading
6 Eigenvalue and Time-Dependent Problems 6.1 Eigenvalue Problems 6.1.1 Introduction 6.1.2 Formulation of Eigenvalue Problems 6.1.3 Finite Element Models 6.1.4 Applications 6.2 Time-Dependent Problems 6.2.1 Introduction 6.2.2 Semidiscrete Finite Element Models 6.2.3 Time Approximations 6.2.4 Mass Lumping 6.2.5 Applications 6.3 Summary Problems References for Additional Reading
7 Numerical Integration and Computer Implementation 7.1 Isoparametric Formulations and Numerical Integration 7.1.1 Background 7.1.2 Natural Coordinates 7.1.3 Approximation of Geometry 7.1.4 Isoparametric Formulations 7.1.5 Numerical Integration 7.2 Computer Implementation 7.2.1 Introductory Comments 7.2.2 General Outline 7.2.3 Preprocessor 7.2.4 Calculation of Element Matrices (Processor) 7.2.5 Assembly of Element Equations (Processor) 7.2.6 Imposition of Boundary Conditions (Processor) 7.2.7 Solution of Equations and Postprocessing 7.3 Applications of the Computer Program FEMIDV2 7.3.1 General Comments 7.3.2 Illustrative Examples 7.4 Summary Problems References for Additional Reading
209 209 209 210 213 216 224 224 225 227 232 233 241 241 245
246 246 246 248 249 251 251 258 258
259
260 262
265 267 269
270 270 271
286 287 291
xii
CONTENTS
Part 3 Finite Element Analysis of Two-Dimensional Problems 8
Single-Variable Problems 8.1 Introduction 8.2 Boundary Value Problems 8.2.1 The Model Equation 8.2.2 Finite Element Discretization 8.2.3 Weak Form 8.2.4 Finite Element Model 8.2.5 Interpolation Functions 8.2.6 Evaluation of Element Matrices and Vectors 8.2.7 Assembly of Element Equations 8.2.8 Postprocessing 8.2.9 Axisymmetric Problems 8.2.10 An Example 8.3 Some Comments on Mesh Generation and Imposition of Boundary Conditions
8.3.1 Discretization of a Domain 8.3.2 Generation of Finite Element Data 8.3.3 Imposition of Boundary Conditions 8.4 Applications 8.4.1 Heat Transfer 8.4.2 Fluid Mechanics 8.4.3 Solid Mechanics 8.5 Eigenvalue and Time-Dependent Problems 8.5.1 Introduction 8.5.2 Parabolic Equations 8.5.3 Hyperbolic Equations 8.6 Summary Problems References for Additional Reading
9 Interpolation Functions, Numerical Integration, and Modeling Considerations 9.1 Library of Elements and Interpolation Functions 9.1.1 Introduction 9.1.2 Triangular Elements 9.1.3 Rectangular Elements 9.1.4 The Serendipity Elements 9.2 Numerical Integration 9.2.1 Preliminary Comments 9.2.2 Coordinate Transformations 9.2.3 Integration over a Master Rectangular Element 9.2.4 Integration over a Master Triangular Element 9.3 Modeling Considerations 9.3.1 Preliminary Comments 9.3.2 Element Geometries 9.3.3 Mesh Generation 9.3.4 Load Representation9.4 Summary
295 295 2Cfl 297 298 299 301 303 311 318 322 323 324 334 334 336 339 340 340 353 365 370 370 372 379 384 386 402 404 404 404
405 411 417 421 421 423 429 433 439 439 439 441 446 448
COl'ITENTS
Problems References for Additional Reading
10 Plane Elasticity 10.1 Introduction 10.2 Governing Equations 10.2.1 Assumptions of Plane Elasticity 10.2.2 Basic Equations 10.3 Weak Formulations 10.3.1 Preliminary Comments 10.3.2 Principle of Virtual Displacements in Matrix Form 10.3.3 Weak Form of the Governing Differential Equations lOA Finite Element Model 1004.1 Matrix Form of the Model 1004.2 Weak Form Model 1004.3 Eigenvalue and Transient Problems 10.5 Evaluation of Integrals 10.6 Assembly and Boundary and Initial Conditions 10.7 Examples 10.8 Summary Problems References for Additional Reading
11 Flows of Viscous Incompressible Fluids 11.1 11.2 11.3 11.4
Preliminary Comments Governing Equations Velocity-Pressure Finite Element Model Penalty-Finite Element Model 11.4.1 Penalty Function Method 11.4.2 Formulation of the Flow Problem as a Constrained Problem 11.4.3 Lagrange Multiplier Formulation 11.4.4 Penalty Function Formulation 11.4.5 Computational Aspects 11.5 Examples 11.6 Summary Problems References for Additional Reading
12 Bending ofElastic Plates 12.1 Introduction 12.2 Classical Plate Model 12.2.1 Displacement Field 12.2.2 Virtual Work Statement 12.2.3 Finite Element Model 12.3 Shear Deformable Plate Model 12.3.1 Displacement Field 12.3.2 Virtual Work Statement 12.3.3 Finite Element Model 12.3.4 Shear Locking and Reduced Integration 12.4 Eigenvalue and Time-Dependent Problems
xiii 448 453
455 455 456 456 457 459 459 459 461 461 461 464 465 465 468 469 476 476 480 482 482 483 484 488 488 489 491 491 492 494 502 503· 506 508 508 510 510 510 514 516 516 517 518 519 520
xiv
CONlENTS
12.5 Examples 12.6 Summary Problems References for Additional Reading
522 529 529 531
13 Computer Implementation
533 533 534 535
13.1 13.2 13.3 13.4
Introduction Preprocessor Element Computations: Processor Applications of the Computer Program FEM2DV2 13.4.1 Introduction 13.4.2 Description of Mesh Genrators 13.4.3 Applications (Illustrative Examples) 13.5 Summary Problems References for Additional Reading
540 540 548 551 563
570 575
Part 4 Advanced Topics 14 Weighted-Residual Finite Element Models, and Finite Element Models of Nonlinear and Three-Dimensional Problems 14.1 Introduction 14.2 Alternative Formulations 14.2.1 Introductory Comments 14.2.2 Weighted-Residual Finite Element Models 14.2.3 Mixed Formulations 14.3 Nonlinear Problems 14.3.1 General Comments 14.3.2 Large-Deflection Bending of (Euler-Bernoulli) Beams 14.3.3 Solution Methods for Nonlinear Algebraic Equations 14.3.4 The 2-0 Navier-Stokes Equations 14.4 Three-Dimensional Problems 14.5 Summary Problems References for Additional Reading
579
579 580 580 580 590 594
594 595 597
598 599
601 602
606
Appendixes 1 Fortran Listing of FEMIDV2
609
2 Fortran Listing of FEM2DV2
640
Index
679
PREFACE TO THE SECOND EDITION
This second edition has the same objectives as the first, namely, an introduction to the finite element method as applied to linear, one- and two-dimensional problems of engineering and applied sciences. The revisions are mainly in the form of additional details, expansion of the topics discussed, and the addition of a few topics to make the coverage more complete. The major organizational change from the first edition is the division of its five chapters into fourteen chapters here. These chapters are grouped into four parts. This reorganization should aid instructors in selecting suitable material for courses. Other organizational changes include putting problem sets at the ends of the chapters, providing a chapter summary for each, and reviewing pertinent equations and text in each chapter instead of referring to several chapters back. In addition, example problems in Chapters 3 and 8 are presented in separate sections on heat transfer, fluid flow, and solid mechanics. Additional details are provided on the construction of the weak forms, time approximations (e.g., accuracy and stability of schemes, and mass lumping), alternative finite element formulations, and nonlinear finite element models. The new topics include sections on trusses and frames, the Timoshenko beam element, eigenvalue problems, and classical plate bending elements. All these changes are also reflected in the revised computer programs FEMIDV2 and FEM2DV2 (revised versions of the FEMID, FEM2D and PLATE programs in the first edition). Therefore the sections on computer implementation and applications of FEMIDV2 and FEM2DV2 have also been modified extensively. These changes are accompanied by the addition of several figures, tables, and examples. These extensive changes have resulted in a second edition that is 60% larger. In the interest of keeping the cost of the book within reasonable limits xv
xvi
PREFACE TO THE SECOND EDITION
while retaining the basic approach and technical details, certain portions of the original manuscript have been omitted. More specifically, answers to selective problems have been included at the end of the problem statements themselves, rather than in a separate section. Interested readers and instructors can obtain a copy of the excutable programs on a diskette from the author. Fortran source programs can also be purchased from the author. ' There is no doubt that this edition is more complete and thorough than the first. It can be used as a textbook for an introductory and/or intermediate level course on the finite element method at senior undergraduate as well as graduate levels. Students of engineering and applied sciences should feel comfortable with the coverage in the book. The author gratefully acknowledges help in reading the manuscript and suggestions for constructive changes from several colleagues. These include: Hasan Akay, Purdue University at Indianapolis, Norman Knight, Jr, Clemson University; J. K. Lee, Ohio State University; William Rule, University of Alabama; Martin Sadd, University of Rhode Island; John Whitcomb, Texas A&M University, and the author's research students: Ronald Averill, Filis Kokkinos, Y. S. N. Reddy, and Donald Robbins. It is a great pleasure to acknowledge typing of the manuscript by Mrs Vanessa McCoy, without whose patience and cooperation this work would not have been completed. J. N. Reddy
PREFACE TO THE FIRST EDITION
The motivation which led to the writing of the present book has come from my many years of teaching finite-element courses to students from various fields of engineering, meteorology, geology and geophysics, physics, and mathematics. The experience gained as a supervisor and consultant to students and colleagues in universities and industry, who have asked for explanations of the various mathematical concepts related to the finite-element method, helped me introduce the method as a variationally based technique of solving differential equations that arise in various fields of science and engineering. The many discussions I have had with students who had no background in solids and structural mechanics gave rise to my writing a book that should fill the rather unfortunate gap in the literature. The book is designed for senior undergraduate and first-year graduate students who have had a course in linear algebra as well as in differential equations. However, additional courses (or exposure to the topics covered) in mechanics of materials, fluid flow, and heat transfer should make the student feel more comfortable with the physical examples discussed in the book. In the present book, the finite-element method is introduced as a variationally based technique of solving differential equations. A continuous problem described by a differential equation is put into an equivalent variational form, and the approximate solution is assumed to be a linear combination, ~ Cj4Jj, of approximation functions 4Jj. The parameters Cj are determined using the associated variational form. The finite-element method provides a systematic technique for deriving the approximation functions for simple subregions by which a geometrically complex region can be represented. In the finite-element method, the approximation functions are piecewise polynomials (i.e., polynomials that are defined only on a subregion, called an element). I
xvii
xviii
PREFACE TO DIE FIRST EDITION
The approach taken in the present book falls somewhere in the middle of the approaches taken in books that are completely mathematical and those approaches that are more structural-mechanics-oriented. From my own experience as an engineer and self-taught applied mathematician, I know how unfortunate outcomes may be arrived at if one follows a "formula" without deeper insight into the problem and its approximation. Even the best theories lead ultimately to some sort of guidelines (e.g., which variational formulation is suitable, what kind of element is desirable, what is the quality of the approximation, etc.). However, without a certain theoretical knowledge of variational methods one cannot fully understand various formulations, finiteelement models, and their limitations. In the present study of variational and finite-element methods, advanced mathematics are intentionally avoided in the interest of simplicity. However, a minimum of mathematical machinery that seemed necessary is included in Chapters 1 and 2. In Chapter 2, considerable attention is devoted to the construction of variational forms since this exercise is repeatedly encountered in the finite-element formulation of differential equations. The chapter is concerned with two aspects: first, the selection of the approximation functions that meet the specified boundary condtions; second, the technique of obtaining algebraic equations in terms of the undetermined parameters. Thus, Chapter 2 not only equips readers with certain concepts and tools that are needed in Chapters 3 and 4, but it also motivates them to consider systematic methods of constructing the approximation functions, which is the main feature of the finite-element method. In introducing the finite element method in Chapters 3 and 4, the traditional solid mechanics approach is avoided in favor of the "differential equation" approach, which has broader interpretations than a single special case. However, when specific examples are considered, the physical background of the problem is stated. Since a large number of physical problems are described by second- and fourth-order ordinary differential equations (Chapter 3), and by the Laplace operator in two dimensions (Chapter 4), considerable attention is devoted to the finite-element formulation, the derivation of the interpolation functions, and the solution of problems described by these equations. Representative examples are drawn from various fields of engineering, especially from heat transfer, fluid mechanics, and solid mechanics. Since this book is intended to serve as a textbook for a first course on the finite-element method, advanced topics such as nonlinear problems, shells, and three-dimensional analyses are omitted. Since the practice of the finite-element method ultimately depends on one's ability to implement the technique on a digital computer, examples and exercises are designed to let the reader actually compute the solutions of various problems using computers. Ample discussion of the computer implementation of the finite-element method is given in Chapters 3 and 4. Three model programs (FEM1D, FEM2D, and PLATE) are described, and their application is illustrated via several examples. The computer programs are very easy to understand because they are designed along the same lines as the
PREFACE TO THE fIRST EDITION
xix
theory presentedin the book. The programs are available for mainframe and IBM PC compatibles from the author for a small charge. Numerous examples, most of which are applications of the concepts to specific problems in various fields of engineering and applied science, are provided throughout the book. The conclusion of the examples are indicated by the symbol II. At approprate intervals in the book an extensive number of exercise problems is included to test and extend the understanding of the concepts discussed. For those who wish to gain additional knowledge of the topics covered in the book, many reference books and research papers are listed at the end of each chapter. There are several sections that can be skipped in a first reading of the book (such sections are marked with an asterisk); these can be filled in wherever needed later. The material is intended for a quarter or a semester course, although it is better suited for a semester course. The following schedule of topics is suggested for a first course using the present textbook: Undergraduate
Graduate
Chapter 1
Self-study
Chapter 1
Self-study
Chapter 2
Section 2.1 (self) Section 2.2 Sections 2.3.1-2.3.3
Chapter 2
Section 2.1 (self) Section 2.2 Section 2.3
Chapter 3
Sections 3.1-3.4 Sections 3.6-3.7
Chapter 3
Sections 3.1-3.7
Chapter 4
Sections 4.1-4.4 Section 4.7 Sections 4.8.1-4.8.4
Chapter 4
Sections 4.1-4.8
Chapter 5 Term Paper
Due to the intimate relationship between Sections 3.5 and 4.6, 3.6 and 4.7, and 3.7 and 4.8, they can be covered simultaneously. Also, it is suggested that Sections 3.6 and 3.7 (hence, 4.7 and 4.8) be covered after Section 3.2. The author wishes to thank all those students and colleagues who have contributed by their advice and criticism to the improvement of this work. The author is also thankful to Vanessa McCoy for skillful typing of the manuscript, to Mr. N. S. Putcha and Mr. K. Chandrashekhara for proofreading the pages, and to the editors Michael Slaughter and Susan Hazlett for their help and cooperation in publishing the mauscript. J. N. Reddy Tejashwina uadheetamasthu (May what we study be well studied)
PART
1 PRELIMINARIES
1
CHAPTER
1 INTRODUCTION
1.1 GENERAL COMMENTS Virtually every phenomenon in nature, whether biological, geological, or mechanical, can be described with the aid of the laws of physics, in terms of algebraic, differential, or integral equations relating various quantities of interest. Determining the stress distribution in a pressure vessel with oddly shaped holes and numerous stiffeners and subjected to mechanical, thermal, and/or aerodynamic loads, finding the concentration of pollutants in seawater or in the atmosphere, and simulating weather in an attempt to understand and predict the mechanics of formation of tornadoes and thunderstorms are a few examples of many important practical problems. Most engineers and scientists studying physical phenomena are involved with two major tasks:
1. Mathematical formulation of the physical process 2. Numerical analysis of the mathematical model The mathematical formulation of a physical process requires background in related subjects (e.g., laws of physics) and, most often, certain mathematical tools. The formulation results in mathematical statements, often differential
3
4
PRELIMINARIES
equations, relating quantities of interest in the understanding and/or design of the physical process. Development of the mathematical model of a process is achieved through assumptions concerning how the process works. In a numerical simulation, we use a numerical method and a computer to evaluate the mathematical model and estimate the characteristics of the process. While the derivation of the governing equations for most problems is not unduly difficult, their solution by exact methods of analysis is a formidable task. In such cases, approximate methods of analysis provide alternative means of finding solutions. Among these, the finite difference method and the variational methods such as the Rayleigh-Ritz and Galerkin methods are most frequently used in the literature. In the finite difference approximation of a differential equation, the derivatives in the latter are replaced by difference quotients (or the function is expanded in a Taylor series) that involve the values of the solution at discrete mesh points of the domain. The resulting algebraic equations are solved, after imposing the boundary conditions, for the values of the solution at the mesh points. In the solution of a differential equation by a variational method, the equation is put into an equivalent weighted-integral form and then the approximate solution over the domain is assumed to be a linear combination (L.jc/Pj) of appropriately chosen approximation functions if'j and undetermined coefficients, c/. The coefficients Cj are determined such that the integral statement equivalent to the original differential equation is satisfied. Various variational methods, e.g., the Rayleigh-Ritz, Galerkin, and least-squares methods, differ from each other in the choice of the integral form, weight functions, and/or approximation functions. A more complete discussion of variational methods will be given in Chapter 2. They suffer from the disadvantage that the approximation functions for problems with arbitrary domains are difficult to construct. The finite element method overcomes the disadvantage of the traditional variational methods by providing a systematic procedure for the derivation of the approximation functions over subregions of the domain. The method is endowed with three basic features that account for its superiority over other competing methods. First, a geometrically complex domain of the problem is represented as a collection of geometrically simple subdomains, called finite elements. Second, over each finite element, the approximation functions are derived using the basic idea that any continuous function can be represented by a linear combination of algebraic polynomials. Third, algebraic relations among the undetermined coefficients (Le., nodal values) are obtained by satisfying the governing equations, often in a weighted-integral sense, over each element. Thus, the finite element method can be viewed, in particular, as an element-wise application of the Rayleigh-Ritz or weighted-residual methods. In it, the approximation functions are often taken to be algebraic polynomials, and the undetermined parameters represent the values of the solution at a finite number of preselected points, called nodes, on the boundary and in the interior of the element. The approximation functions are
INTRODUCTION
5
derived using concepts from interpolation theory, and are therefore called interpolation functions. One finds that the degree of the interpolation functions depends on the number of nodes in the element and the order of the differential equation being solved.
1.2 HISTORICAL BACKGROUND The idea of representing a given domain as a collection of discrete parts is not unique to the finite element method. It was recorded that ancient mathematicians estimated the value of lr by noting that the perimeter of a polygon inscribed in a circle approximates the circumference of the latter. They predicted the value of lr to accuracies of almost 40 significant digits by representing the circle as a polygon of a finitely large number of sides. In modern times, the idea found a home in aircraft structural analysis, where, for example, wings and fuselages are treated as assemblages of stringers, skins, and shear panels. In 1941, Hrenikoff introduced the so-called framework method, in which a plane elastic medium was represented as a collection of bars and beams. The use of piecewise-continuous functions defined over a subdornain to approximate an unknown function can be found in the work of Courant (1943), who used an assemblage of triangular elements and the principle of minimum total potential energy to study the St Venant torsion problem. Although certain key features of the finite element method can be found in the works of Hrenikoff (1941) and Courant (1943), its formal presentation is attributed to Argyris and Kelsey (1960) and Turner, Clough, Martin, and Topp (1956). The term "finite element" was first used by Clough in 1960. Since its inception, the literature on finite element applications has grown exponentially, and today there are numerous journals that are primarily devoted to the theory and application of the method. A review of the historical developments and the basic theory of the finite element method can be found in more than three dozen textbooks that are exclusively devoted to its introduction and application. The selective finite element books listed in References for Additional Reading at the end of this chapter are only for additional information on certain topics (e.g., three-dimensional problems, shells, structural dynamics, plasticity, and mathematics of finite elements). For the beginner, it is not necessary to consult these; the present book provides complete details of the method as applied to linear field problems, with examples from fluid mechanics, heat transfer, and solid mechanics.
1.3 THE BASIC CONCEPT OF THE FINITE ELEMENT METHOD 1.3.1 General Comments The most distinctive feature of the finite element method that separates it from others is the division of a given domain into a set of simple subdomains, called finite elements. Any geometric shape that allows computation of the solution or its approximation, or provides necessary relations among the values of the
6
PRELIMINARIES
solution at selected points, called nodes, of the subdomain, qualifies as a finite element. Other features of the method include seeking continuous, often polynomial, approximations of the solution over each element in terms of nodal values, and assembly of element equations by imposing the interelemerit continuity of the solution and balance of interelement forces. Here the basic ideas underlying the finite element method are introduced via two simple examples: 1. Determination of the circumference of a circle using a finite number of line
segments 2. Determination of the center of mass (or gravity) of an irregular body The first example is an expansion of an article written by the author in 1978 for a student magazine at the University of Oklahoma. Ideas- expressed in the second can be found in books on statics of rigid bodies.
1.3.2 Approximation of the Circumference of a Circle Consider the problem of determining the perimeter of a circle of radius R (see Fig. 1.1a). Ancient mathematicians estimated the value of the circumference
(a)
(b)
,,/ I'
I
Se
f...- Oe~
~
Element length h,
:~.,
I
L--.
L
\ \
I
R
\
" ... -
/ --.,."
(e)
" J
,/
FIGURE 1.1 Approximation of the circumference of a circle by line elements: (4) Circle of radius R; (b) uniform and nonuniform meshes used to represent the circumference of the circle; (c) a typical element.
INTRODUCTION
7
by approximating it by line segments, whose lengths they were able to measure. The approximate value of the circumference is obtained by summing the lengths of the line segments used to represent it. Although this is a trivial example, it illustrates several (but not all) ideas and steps involved in the finite element analysis of a problem. We outline the steps involved in computing an approximate value of the circumference of the circle. In doing so, we introduce certain terms that are used in the finite element analysis of any problem.
1. Finite element discretization. First, the domain (i.e., the circumference of the circle) is represented as a collection of a finite number n of subdomains, namely, line segments. This is called discretization of the domain. Each subdomain (i.e., line segment) is called an element. The collection of elements is called the finite element mesh. The elements are connected to each other at points called nodes. In the present case, we discretize the circumference into a mesh of five (n = 5) line segments. The line segments can be of different lengths. When all elements (i.e., line segments) are of the same length, the mesh is said to be uniform; otherwise, it is called a nonuniform mesh (see Fig. 1.Ib). 2. Element equations. A typical element (i.e., line segment, Qe) is isolated and its required properties, i.e., length, are computed by some appropriate means. Let he be the length of element Qe in the mesh. For a typical element Qe, he is given by (see Fig. 1.Ie) h e=2Rsin!Be
(1.1)
where R is the radius of the circle and Be < st is the angle subtended by the line segment. The above equations are called element equations. Ancient mathematicians most likely made measurements, rather than using (1.1), to find he. 3. Assembly of element equations and solution. The approximate value of the circumference (or perimeter) of the circle is obtained by putting together the element properties in a meaningful way; this process is called the assembly of the element equations. It is based, in the present case, on the simple idea that the total perimeter of the polygon (assembled elements) is equal to the sum of the lengths of individual elements: (1.2) Then P" represents an approximation to the actual perimeter, p. If the mesh is uniform, or he is the same for each of the elements in the mesh, then Be = 2n/n, and we have.
P"
=
n(2R sin~)
(1.3)
4. Convergence and error estimate. For this simple problem, we know the exact solution: p = 2nR. We can estimate the error in the approximation and show that the approximate solution P" converges to the exact p in the
8
PRELIMINARIES
limit as n ---+ 00, Consider the typical element g". The error in the approximation is equal to the difference between the length of the sector and that of the line segment (see Fig. l.le): (1.4) where S" = RO" is the length of the sector. Thus, the error estimate for an element in the mesh is given by
n)
2n . E,,= R ( --2sm-
n
(1.5)
n
The total error (called global error) is given by multiplying E; by n:
E = 2R ( n - n sin ~) = 2nR - P"
(1.6)
We now show that E goes to zero as n ---+ 00, Letting x = lin, we have
nx
. n sin P" = 2Rn sin - = 2 R - -
n
x
and
nx) . (
nx)
. P = lim . ( 2R sin - = lim 2nR cos - = 2n:R hm n X-loO X .x~O 1
(1.7)
n"""""-:O
Hence, En goes to zero as n---+ 00. This completes the proof of convergence. In summary, it is shown that the circumference of a circle can be approximated as closely as we wish by a finite number of piecewise-linear functions. As the number of elements is increased, the approximation improves, i.e., the error in the approximation decreases.
1.3.3 Approximate Determination of the Center of Mass Another elementary example to illustrate the finite element concept is provided by the calculation of the center of mass of a continuous body. It should be recalled, from a first course on statics of rigid bodies, that the calculation of the center of an irregular mass or the centroid of an irregular volume makes use of the so-called method of composite bodies, in which a body is conveniently divided (mesh discretization) into several parts (elements) of simple shape for which the mass and the center of mass (element properties) can be computed readily, The center of mass of the whole body is then obtained using the moment principle of Varignon (a basis for the assembly of el~ment properties):
(m i + m2 + ... + mn)X = mix t + m2x2 + , , . + mnxn
(1.8)
where X is the x coordinate of the center of mass of the whole body, me is the mass of the eth part, and x" is the x coordinate of the center of mass of the eth
INTRODUCTION
9
part. Similar expressions hold for the y and z coordinates of the center of mass of the whole body. Analogous relations hold for composite lines, areas, and volumes, wherein the masses are replaced by lengths, areas, and volumes, , respectively. When a given body is not expressible in terms of simple geometric shapes (elements) for which the mass and the center of mass can be represented mathematically, it is necessary to use a method of approximation to represent the properties of an element. As an example, consider the problem of finding the centroid (X, Y) of the irregular area (region) shown in Fig. 1.2. The region can be divided into a finite number of rectangular strips (elements), a typical element having width he and height be. The area of the eth strip is given by A e = hebe. The area A e is an approximation of the true area of the element because be is an estimated average height of the element. The coordinates of the centroid of the region are obtained by applying the moment principle:
EA..xe -
e
x=-EA ' e
EAeYe -
e
y=--
EA e
e
e
where xe and Ye are the coordinates of the centroid of the eth element with respect to the coordinate system used for the whole body. When the center of mass is required, A e in the above equations is replaced by the mass me = PeAe, p, being the mass density of the eth element; for a homogeneous body, Pe is the same for all elements. It should be noted that the accuracy of the approximation will be improved by increasing the number of strips (decreasing their width) used. Rectangular elements are used in the present discussion for the sake of simplicity only; one may choose to use elements of any size and shape that approximate the given area to a satisfactory accuracy. For example, a trapezoidal element will require two heights to compute the area:
A e = !he(b e + be+ 1) -I f-/'
y
he
~
Gill ::;T
=-ri"-
:I!i
be
:.".:
1:
--
-:
i; j,
f-..-- . i , -
•
r y
~-
X x FIGURE 1.2 Approximate determination of the mass or geometric centroid of an irregular region by dividing it into a set of rectangular or trapezoidal subregions.
10
PRELIMINARIES
where be and b e+ 1 are the left and right heights, respectively, of the eth element. The two examples considered above illustrate how the idea of piecewise approximation is used to approximate irregular geometries and calculate required quantities. In the first example, the circumference of a circle is approximated by a collection of line segments, whose measure is available. In the second, the geometric centroid or mass centroid of an irregular domain is located by approximating its geometry as a collection of strips that allow computation of their areas. Rectangles and trapezoids provide examples of the element geometries. Thus, subdividing a geometrically complex domain into parts that allow the evaluation of desired quantities is a very natural and practical approach. The idea can be extended to approximate functions representing physical quantities. For example, the temperature variation in a two-dimensional domain can be viewed as a curved surface, and it can be approximated over any part of the domain, i.e., over a subdornain or element, by a function of desired degree. Figure 1.3 shows a curved surface over a triangular subregion approximated by a planar surface, i.e., a linear polynomial. Such ideas form the basis of finite element approximations. The next example illustrates this idea for a one-dimensional continuous system.
1.3.4 Solution of Differential Equation Consider the temperature variation in a composite cylinder consisting of two coaxial layers in perfect thermal contact (see Fig. 1.4). Heat dissipation from a wire "(With two insulations) carrying an electric current and heat flow across a thick-walled composite circular cylindrical tube are typical examples. The temperature T is a function of the radial coordinate r. The variation of T with r is, in general, nonuniform. We wish to determine an approximation 1;,(r) to T(r) over the thicknesses of the cylinder. The exact solution is determined by solving the differential equation
1rdr dj dr
d ( rk- =q(r) ---
(1. 9a)
Curved surface
FIGURE 1.3
Approximation of curved surface (or a nonuniform function) over a triangular region by a planar surface.
INTRODUCTION
R0IIFdJ~-~
.. r
Element
(b)
11
FIGURE 1.4 (a) Coaxial (composite) cylinder made of two different materials. (b) Finite element representation of a radial line of the cylinder.
subject to appropriate boundary conditions, for example, insulated at r = R, and subjected to a temperature To at r = R o: dT krdr=O
atr=R;;
T(r)=1'"
atr=R o
(1.9b)
where k is the thermal conductivity, which varies from layer to layer, R, and R: are the inner and outer radii of the cylinder, and q is the rate of energy generation in the medium. Note that the temperature is independent of the circumferential coordinate (because of the axisymmetric geometry, boundary conditions, and loading), and it has the same variation along any radial line. When it is difficult to obtain an exact solution of the problem (1.9), either because of complex geometry and material properties or because q(r) is a complicated function that does not allow exact evaluation of its integral, we seek an approximate one. In the finite element method, the domain (R i J R o ) is divided into N subintervals, and the approximate solution is sought in the form n
11(r) = 2: Tft/lJ(r) (R, ~ r ~ R, + hI; first interval) j=I
n
T2(r) = 2: TJt/lJ(r) . (R, + hI ~ r ~Ri + hI + h 2 ; second interval) (1.10) j~l
n
TN(r) =
2: Tft/lf(r) j=I
(R, + h, + ... + hN - 1 ~ r ~Ro; Nth interval)
12
PRELIMINARIES
where he denotes the length of the eth interval, TJ is the value of the temperature T,,(r) at the jth geometric point of the eth interval, and 1J1j are polynomials on the eth interval. The continuous function T(r) is approximated in each interval by a desired degree of polynomial, and the polynomial is expressed in terms of the values of the function at a selected number of points in the interval, The number of points is equal to the number of parameters in the polynomial. For example, a linear polynomial approximation of the temperature over the interval requires two values, and hence two points are identified in the interval. The endpoints of the interval are selected for this purpose because the two points also define the length of the interval (see Fig. 1.5a). For higher-order polynomial approximation, additional points are identified interior to the interval (see Fig. 1.5b). The intervals are called finite elements, the points used to express the polynomial approximation of the function are called nodes, T'j are called nodal values, and 1J1'j are called finite element approximation functions. The nodal values TJ are determined such that 1;,(r) satisfies the differential equation (1.9a) and boundary conditions (1.9b) in some sense. Usually, the differential equation is satisfied in a weighted-integral sense, and boundary conditions on the function itself are satisfied exactly. The piecewise (i.e., element-wise) approximation of the solution allows us to include any discontinuous data, such as the material properties, and to use meshes of many lower-order elements or a mesh of few higher-order elements to represent large gradients of the solution. Polynomial approximations of the form (1.10) can be derived systematically for any assumed degree of variation. The satisfaction of the differential equation in a weighted-integral sense leads, for steady-state problems, to algebraic relations among nodal temperatures Tj and heats Qj of the element. The algebraic equations of all elements are assembled (i.e., related to each other) such that the temperature is continuous and the heats are balanced at nodes common to elements. The Linear, T,
T(r)
I~
T 'I [-
i 19
h '
.I T<2 I 02
(a)
FIGURE 1,5 (a) Linear approximation of a function r(r). (b) Quadratic approximation of a function T(r).
INTRODUCTION
13
assembled equations are solved for the nodal values after imposing the boundary conditions of the problem.
1.3.5 Some Remarks In summary, in the finite element method, a given domain is divided into subdomains, called finite elements, and an approximate solution to the problem is developed over each of these. The subdivision of a whole into parts has two advantages: 1. It allows accurate representation of complex geometries and inclusion of dissimilar materials. 2. It enables accurate representation of the solution within each element, to bring out local effects (e.g., large gradients of the solution). The three fundamental steps of the finite element method that are illustrated via the examples are: 1. Divide the whole into parts (both to represent the geometry and solution of the problem). 2. Over each part, seek an approximation to the solution as a linear combination of nodal values and approximation functions. 3. Derive the algebraic relations among the nodal values of the solution over each part, and assemble the parts to obtain the solution to the whole. Although the above examples illustrate the basic idea of the finite element method, there are several other features that are either not present or not apparent from the discussion of the examples. Some remarks are in order. 1.
One can discretize a domain, depending on its shape, into a mesh of more than one type of element. For example;"'in the approximation of an irregular domain, one can use a combination of rectangles and triangles. 2. If more than one type of element is used in the representation of the domain, one of each kind should be isolated and its equations developed. 3. The governing equations are generally more complex than those considered in the first two examples. They are usually differential equations. In most cases, the equations cannot be solved over an element for two reasons. First, they do not permit the exact solution. It is here that the variational methods come into play. Second, the discrete equations obtained in the variational methods cannot be solved independent of the remaining elements, because the assemblage of the elements is subjected to certain continuity, boundary, and!or initial conditions. 4. There are two main differences in the form of the approximate solution used in the finite element method and that used in the classical variational
14
PRELIMINARIES
methods (i.e.ivariational methods applied to the whole domain). First, instead of representing the solution u as a linear combination (u = Ej Cj4Jj) in terms of arbitrary parameters Cj as in the variational methods, in the finite element method the solution is often represented as a linear combination (u = Ej U/1J.!j) in terms of the values Uj of U (and possibly its derivatives as well) at the nodal points. Second, the approximate functions in the finite element method are often polynomials that are derived using interpolation theory. However, the finite element method is not restricted to the use of approximations that are linear combinations of nodal values Uj and interpolation functions Wj that are algebraic polynomials. One can use, in addition to nodal values, nodeless variables (as in the RayleighRitz method) to represent the approxin:ation of a function. 5. The number and the location of the nodes in an element depend on (a) the geometry of the element, (b) the degree of the polynomial approximation, and (c) the integral form of the equations. By representing the required solution in terms of its values at the nodes, one .obtains directly the approximate solution at the nodes. 6. The assembly of elements, in a general case, is based on the idea that the solution (and possibly its derivatives for higher-order equations) is continuous at the interelement boundaries. 7. In general, the assemblage of finite elements is subjected to boundary and/or initial conditions. The discrete equations associated with the finite element mesh are solved only after the boundary and/or initial conditions have been imposed. 8. There are three sources of error in a finite element solution: (a) those due to the approximation of the domain (this was the only error present in the first two examples); (b) those due to the approximation of the solution; and (c) those due to numerical computation (e.g., numerical integration and round-off errors in a computer). The estimation of these errors, in general, is not a simple matter. However, under certain conditions, they can be estimated for a given element and problem (see Chapter 5). 9. The accuracy and convergence of the finite element solution depends on the differential equation, its integral form, and the element used. "Accuracy" refers to the difference between the exact solution and the finite element solution, while "convergence" refers to the accuracy as the number of elements in the mesh is increased. 10. For time-dependent problems, a two-stage formulation is usually followed. In the first stage, the differential equations are approximated by the finite element method to obtain a set of ordinary differential equations in time. In the second, the differential equations in time are solved exactly or further approximated by either variational methods or finite difference methods to obtain algebraic equations, which are then solved for the nodal values (see Chapter 6). 11. When the continuity conditions of assembly are replaced by contact conditions, the method is known as the discrete element method (DEM). In
INTRODUCTION
15
the discrete element method, individual elements can have finite motions (e.g., displacements and rotations). Such methods have applications in rock mechanics (mining and tunneling), ice mechanics, and other fields where a continuum is disintegrated during deformation or the original medium is a collection of intlividual particles (e.g., granular media and molecular biology).
1.4 THE PRESENT STUDY This is a book on the finite element method and its applications to linear problems in engineering and applied sciences. Most introductory finite element textbooks written for use in engineering schools are intended for students of solid and structural mechanics, and these introduce the method as an offspring of matrix methods of structural analysis. A few texts that treat the method as a variationally based technique leave the variational formulations and the associated methods of approximation either to an appendix or to self-study by the student. This book is written to introduce the finite element method as a numerical technique that employs the philosophy of constructing piecewise approximations of solutions to problems described by differential equations. This viewpoint makes the student aware of the generality of the finite element concept, irrespective of the student's background. It also enables the student to see the mathematical structure common to various physical theories, and thereby to gain additional insight into various engineering problems.
1.5 SUMMARY In a numerical simulation of a physical process, we employ a numerical method and computer to evaluate a mathematical model of the process. The finite element method is a powerful numerical technique devised to evaluate complex physical processes. The method is characterized by three features: 1. The domain of the problem is represented by a collection of simple subdomains, called finite elements. The collection of finite elements is called the finite element mesh. 2. Over each finite element, the physical process is approximated by functions of desired type (polynomials or otherwise), and algebraic equations relating physical quantities at selective points, called nodes, of the element are developed. 3. The element equations are assembled using continuity and/or "balance" of physical quantities. In the finite element method, in general, we seek an approximate solution u to a differential equation in the form n
U
=
L
j=l
m
Uj1J1j
+ 2: Cj4Jj j=l
16
PRELIMINARIES
u
where Uj are the values of at the element nodes, 1jJ; are the interpolation functions, Cj are the nodeless coefficients, and
REFERENCES FOR ADDITIONAL READING Papers
Argyris, 1. H., and S. Kelsey: Energy Theorems and Structural Analysis, Butterworth Scientific Publications, London, 1960. Clough, R. W.: "The Finite Element Method in Plane Stress Analysis," Journal of Structures Division, ASCE, Proceedings of 2d Conference on Electronic Computation, pp, 345-378, 1960. Courant, R.: "Variational Methods for the Solution of Problems of Equilibrium and Vibration," Bulletin of the American Mathematical Society, vol. 49, pp. 1-43, 1943. Hrenikoff, A.: "Solution of Problems in Elasticity by the Framework Method," Transactions of the ASME, Journal of Applied Mechanics, vol. 8, pp. 169-175, 1941. Reddy, 1. N.: "The Finite Element Method: A Child of the Computer Age," Sooner Shamrock (Engineering Student Magazine at the University of Oklahoma), pp. 23-26, Fall 1978. Turner, M., R. W. Clough, H. H. Martin, and L. Topp: "Stiffness and Deflection Analysis of Complex Structures," Journal of Aeronautical Science, vol. 23, pp. 805-823, 1956. Books Bathe, K. J,: Finite Element Procedures in Engineering Analysis, Prentice-Hall, Englewood Cliffs, Nl,1982. Becker, E. B., G. F. Carey, and 1. T. Odcn: Finite Elements, An Introduction, vol. I, . Prentice-Hall, Englewood Cliffs, NI, 1976. Cook, R. D., D. S. Malkus, and M. E. Plesha: Concepts and Applications of Finite Element Analysis, 3d ed., lohn Wiley, New York, 1989. Desai, C. S., and 1. F. Abel: Introduction to tile Finite Element Method, Van Nostrand Reinhold, New York, 1972.
INTRODUcnON
17
Gallagher, R. H.: Finite Element Analysis Fundamentals, Prentice-Hall, Englewood Cliffs, NJ. 1975. Hughes, T. J. T.: The Finite Element Method, Prentice-Hall, Englewood Cliffs, NJ, 1987. Irons, B. M., and S. Ahmad: Techniques of Finite Elements, Ellis Horwood, Chichester, U.K., 1979. ' Owen, D. R. J., and E. Hinton: Finite Elements in Plasticity: Theory and Practice, Pineridge Press, Swansea, U.K., 1980. Rao, S. S.: The Finite Element Method in Engineering, Pergamon Press, Oxford, 1982. Reddy, J. N.: Applied Functional Analysis and Variational Methods in Engineering, McGraw-Hill, New York, 1986; Krieger, Melbourne, FL, 1991. Strang, G., and G. Fix: An Analysis of the Finite Element Method, Prentice-Hall, Englewood Cliffs, NJ, 1973. Zienkiewicz, O. C., and R. L. Taylor: The Finite Element Method, vol. 1, Basic Formulation and Linear Problems, McGraw-Hili, London, 1989. - - and - - : The Finite Element Method, vol. 2, Solid and Fluid Mechanics, Dynamics and Non-Linearity, McGraw-Hill, London, 1991.
CHAPTER
2 INTEGRAL FORMULATIONS AND VARIATIONAL METHODS
2.1 NEED FOR
WEIGHTED~INTEGRAL
FORMS
In the finite element method, we use an integral statement to develop algebraic relations among the coefficients Uj of the approximation (2.1) where U represents the solution of a particular differeiNal;q~tion. The use of an integral statement equivalent to the governing differential equation is necessitated by the fact that substitution of (2.1) into the gove.~n\ng differential equation does not always result in the required number of linearly independent algebraic equations for the unknown coefficients uj • One way to insure that there are exactly the same number n of equations as there are unknowns is to require weighted integrals of the error in the equation to be zero. A more detailed discussion of this idea is given in the next few paragraphs. Suppose that we wish to determine an approximate solution of the
18
INTEGRAL fORMULATIONS AND VARIATIONAL METHODS
19
equation
- dx~ (x dU) + U= 0 dx
x
for 0 < < 1
(2.2a)
dU)! -0 (xdx x=l
u(O) = 1,
(2.2b)
We seek an approximate solution, over the entire domain Q form
= (0, 1),
in the
N
U
= UN == 2: ClfJj(X) + if'o(x)
(2.3)
j=l
where the cj are coefficients to be determined, and if'ix) and tPo(x) are functions preselected such that the specified boundary conditions of the problem are satisfied by the N'parameter approximate solution UN' For example, we could take N = 2 and write the approximate solution of (2.2) in the form (if'l = x 2- 2x, tP2 = x) - 3x, if'o = 1) U
= UN =
2
Cl(X -
2x) + C2(X J
-
3x)
+1
which satisfies the boundary conditions (2.2b) of the problem for any values of and C2' The constants Cl and C2 are to be determined such that the approximate solution UN in (2.3) satisfies (2.2a) in some sense. If we require UN to satisfy (2.2a) in the exact sense, we obtain Cl
2
dUN d UN 2 2 ---X2 + UN = -2c 1(x -1) - 3C2(X -1) -2c 1x - 6C2X dx dx
+ Cl(X2 - 2x) + C2(X J -
3x)
+ 1= 0
Since this expression must be zero for any value of x, the coefficients of the various powers of x must be zero: 1 + 2c 1 + 3C2 = 0 -(6Cl
+ 3C2) =
Cl - 9C2
0
=0
c2 = O The above relations are inconsistent; hence, there is no solution to the equations. On the other hand, we can require the approximate solution U to satisfy the differential equation (2.2a) in the weighted-integral sense,
r
wR dx = 0
where R is called the residual, 2
dUN d UN R==---x--+U dx dx" N
(2.4a)
20
PRELIMINARIES
and w is called a weight function. From (2.4a), we obtain as many linearly independent equations as there are independent functions for w. For example, if we take w = 1 and w = x, we obtain
0=
f
lR dx = (1 + 2c l
0=
f
xR dx = i(l + 2ei + 3cz) + M- 6Cl- 3cz) + lCcl - 9cz) + ~cz
+ 3cz) + ~(-6CI - 3cz) + HCI - 9cz) + ic z
or
icl + kz = 1 kl + ¥ocz = ~
(2.4b)
which provide two linearly independent equations for CI and Cz (giving CI = ¥f and Cz = -W). Thus, integral statements of the type in (2.4a) provide means for obtaining as many algebraic equations as there are unknown coefficients in the approximation. This chapter deals with the construction of different types of integral statements used in different variational methods. A variational method is one in which approximate solutions of the type u = Ej CjtjJj + CPo are sought, and the coefficients Cj are determined, as shown above, using an integral statement. The variational methods differ from each other in the choice of the weight function wand the integral statement used, which in turn dictates the choice of the approximation functions CPl" In the finite element method, a given domain is viewed as an assemblage of subdomains (i.e., elements), and an approximate solution is sought over each subdomain in the same way as in variational methods. Therefore, it is informative to study variational methods before we study the finite element method. Our goal in this chapter is to illustrate the basic steps in the integral formulations and the associated approximations of various boundary problems. Toward this goal, we first introduce necessary terminology and notation.
2.2 SOME MATHEMATICAL CONCEPTS AND FORMULAE 2.2.1 Boundary, Initial, and Eigenvalue Problems DOMAIN AND BOUNDARY. The objective of most analyses is to determine unknown functions, called dependent variables, that satisfy a given set of differential equations in a given domain or region and some boundary conditions on the boundary of the domain. A domain is a collection of points in space with the property that if P is a point in the domain then all points sufficiently close to P belong to the domain. This definition implies that a domain consists only of internal points. If any two points of the domain can be joined by a line lying entirely within it then the domain is said to be convex
INTEGRAL FORMULATIONS AND VARIATIONAL METHODS
21
and simply connected. The boundary of a domain is the set of points such that, in any neighborhood of each of these points, there are points that belong to the domain as well as points that do not. Note from the definition that the points on the boundary do not belong to the domain. We shall use the symbol Q to denote an arbitrary domain and r to denote its boundary. A function of several variables is said to be of class Cm(Q) in a domain Q if all its partial derivatives up to and including the mth order exist and are continuous in Q. Thus, if [is of class CO in two dimensions then [is continuous (i.e., af/ax and a[lay exist but may not be continuous). The letters x and y will always be used for rectangular coordinates of a point in two dimensions. When the dependent variables are functions of one independent variable (say, x), the domain is a line segment (i.e., one-dimensional) and the endpoints of the domain are called boundary points. When the dependent variables are functions of two independent variables (say, x and y), the (two-dimensional) domain is a surface (most often a plane) and the boundary is the closed curve enclosing it. It is not uncommon to find problems in which the dependent variable and possibly its derivatives are specified at points interior to the domain (e.g., bending of continuous beams). A differential equation is said to describe a boundary value problem if the dependent variable and possibly its derivatives are required to take specified values on the boundary. An initial value problem is one in which the dependent variable and possibly its derivatives are specified initially (i.e., at time t = 0). Initial value problems are generally time-dependent problems. Examples of boundary and initial value problems are given below. BOUNDARY VALUE PROBLEM
- dx~ (a dU) =f dx
for 0 <
x< 1
u(O) = do,
(2.5) (2.6)
INITIAL VALUE PROBLEM
. d2u dt
.
P- 2 + au = f u(O) = uo,
for 0 < t ~ to
(~:) It~O =
Vo
(2.7) (2.8)
BOUNDARY AND INITIAL VALUE PROBLEM
a (au) -aax
ax
u(O, t) = do(t),
au [(x, t) + p-= at
(a ::) 1;<=/
=
for {O<X
go(t),
u(x, 0) = uo(x)
(2.9) (2.10)
22
PRELIMINARIES
The conditions in (2.6) are called boundary conditions, while those in (2.8) are called initial conditions. When any of the specified values (i.e., do, go, uo, and vo) are nonzero, the conditions are said to be nonhomogeneous; otherwise, they are said to be homogeneous. For example, u(O) = do is a nonhomogenous boundary condition, and the associated homogeneous boundary condition is u(O):=: O. The set of specified quantities (e.g., a, go, do, P, uo, and vo) is called the data of the problem. Differential equations in which the right-hand side fis zero are called homogeneous differential equations. EIGENVALUE PROBLEM. The problem of determining the values of the
constant Asuch that
d( dU)
- dx a dx = AU for 0 < x < 1 (2.11) u(O) = 0,
(a
dU)1
dx
=0 x=l
is called the eigenvalue problem associated with the differential equation (2.5). The values of). for which (2.11) can be satisfied are called eigenvalues, and the associated functions u are called eigenfunctions. The classical (or exact) solution of a differential equation is the function that identically satisfies the differential equation and the specified boundary and/or initial conditions.
2.2.2 Integral Relations Integration by parts is frequently used in the integral formulation of differential equations. In two-dimensional cases, integration by parts is better known as the gradient and divergence theorems. In this section, we derive some useful identities for future use.
w be sufficiently differentiable functions of the coordinate x. Then the following integration-byparts formula holds:
INTEGRATION·BY·PARTS FORMULAE. Let u, u, and
b dv fb fb W dx dx = W dv = V dw + [wv ]~ J a
a
a
f
b
= -
a V
dw dx dx
+ w(b)v(b) -
w(a)v(a)
(2.12)
This identity can easily be established. First, note the following identity from the product rule of differentiation: d dx (wv)
dw
dv
= dx v + w dx
INTEGRAL FORMULATIONS AND VARIATIONAL METHODS
23
Therefore IV
dv dx
d
= dx (wv) -
dw dx v
Integrating both sides over the in'terval (a, b), we obtain
r w dv dx = r l!!-. (wv) _ dw v] dx b
Ja
Ja
dx
=
dx
dx
fb !!-. (wv) dx _ fb dw v dx
Ja
Ja
dx
dx
fbdw
= [wv]~ - J dx v dx a
which is the same as (2.12). Next, consider the expression
f W~~dx= f =
f
d~ (:) dx W~~dx, v=:
w
Using (2.12), we obtain b
1 a
W
d2U fb dw dx2dx=-Ja v dxdx+w(b)v(b)-w(a)v(a)
=-
ts:
du du --dx+w(b)-(b)-w(a)-(o) adxdx dx dx
(2. 13a)
or
-
1
6~~
a
--dx= dx dx
Similarly, b
1 a
Lb w-dx+w(a)-(o)-w(b)-(b) ~ ~ ~ a
dx
dx:
dx
(2.13b)
-1 .!f:..1
2W) (d dx" dx - a V dx" dx 2 dx 6 d2U d2w = vd-2 dx, whereu=-2 a X dx 6
V
d4W
Using (2.13a) with w = v, we can write the right-hand side as b
-
1 a
We use (2.13b) with w b d2V a U dx2 dx
1
du du du du - - d x + v(b)- (b) - v(a) -(0) dxdx dx dx
= u and u = v to write
dv
+ u(a) dx (0) -
dv u(b) dx (b)
(2. 14a)
(2.14a) as
du
+ v(b) dx (b)
du - v(a) dx (a)
(2. 14b)
24
PRELIMINARIES
and, finally, replacing u by its actual value u = d 2 w l dx 2 , we arrive at b 2 fb d 4 w d w d 2v d 2w dv d2 w dv J v dx 4 dx = a dx2 dx2 dx + dxz(a) dx (a) - dx2 (b) dx (b)
L
a
+ v(b)
d 3w d 3w dx 3 (b) - v(a) dx 3 (a)
(2.15)
Equations (2.13a) and (2.15) are useful in the weak formulation (see Section 2.3) of second- and fourth-order differential equations, respectively. Let V and VZ denote, respectively, the gradient operator and the Laplacian operator in the two-dimensional cartesian rectangular coordinate system (x, y):
v=l~+J~~ ax ay'
V2=V'V=~+ cr ,. ax 2 ay 2
(2.16)
where 1 and 1denote the unit basis vectors along the 'x and y coordinates, respectively. The caret "~,, over the vectors indicates that they are of unit length. If F(x, y) and G(x, y) are scalar functions of class CO(Q) in the two-dimensional domain Q, the following gradient and divergence theorems hold. GRADIENf THEOREM
L
grad F dx dy ==
L
VF dx dy =
£
fiF ds
or
(2.17a)
( (~aF ~ aF\ 1 I ax + j ay) dx dy = Tr (nxi + nyj)F ds
In
A
A
The second equation implies (because two vectors are equal if and only if their components are equal) that the following relations hold:
In ~: dxdy =£ nxFds, In :~ dxdy
=i
nyFds
(2.17b)
nnffiRGENCETHEOREM
L
div G dx dy ==
Lv,
G dx dy =
£
fi . G ds
or
(2.18)
t (aa~X + aa~l)
dx dy =
t
(nxGx + nyGy) ds
Here the dot denotes the scalar product of vectors, it denotes the unit vector normal to the surface r of the domain Q, nx and ny (Gx and Gy) are the rectangular components of it (G), and the circle on the boundary integral
INTEGRAL FORMULATIONS AND VARIATIONAL MFIH.ODS
25
Boundary r
(a)
FIGURE 2.1
(b)
indicates that the integration is taken over the entire boundary (see Fig. 2.1). The direction cosines n x and ny of the unit vector 0 can be written as n,
= cos (x,
ny = cos (y, 0)
0),
(2.19)
where cos (x, ft) is the cosine of the angle between the positive x direction and the unit vector fl. The following identities, which can be derived using the gradient and divergence theorems, will be useful in the sequel. Let wand G be scalar functions defined in a two-dimensional domain Q. Then
L
(VG)w dx dy = -
L
(Vw)G dx dy
+
L
fnvG ds
(2.20a)
aG w ds
(2.20b)
and
-f
Ja
where
(V2 G)w ~x dy = ( Vw. VG dx dy
Ja
_1
i, an
ofan denotes the normal derivative operator,
~=ii'V=n ~+nYay ~ on x ax
(2.21)
26
PRELIMINARIES
The following component form of (2.20a), with an appropriate change of variables, is useful in the sequel:
i eoax i w-aeo n
w-dxdy = -
Y
Q
i awax i aw
dxdy= -
f. nxwGds -Gdxdy + f. nywGds ay - G dxdy
Q
Q
+
r
(2. 22a) (2.22b)
r
Equations (2.22a, b) can easily be established by means of (2.17b).
2.2.3
Functionals
An integral expression of the form leu)
=
f
/
F(x, u, u') dx,
u
= u(x),
,
du dx
ut=~
where the integrand F(x, u, u') is a given function of the arguments x, u, and dul dx, is called a junctional. The value leu) of the integral depends on u; hence the notation leu) is appropriate. However, for a given u, leu) represents a scalar value. We shall use the term junctional to describe functions defined by integrals whose arguments themselves are functions. Loosely speaking, a functional is a "function of functions." Mathematically, a functional is an operator I mapping u into a scalar leu). A functional leu) is said to be linear in u if and only if it satisfies the relation
l(ern + f3v) = al(u) + f31(v)
(2.23)
for any scalars ll:' and f3 and dependent variables u and v. A functional B(u, v) is said to be bilinear if it is linear in each of its arguments u and v:
Biou, + f3uz, v) = aB(uv v) + f3B(uz, v) (linearity in the first argument) Btu,
ll:'Vt
+ f3vz) = aB(u, v.) + f3B(u,
(2.24)
vz)
(linearity in the second argument) where u,
Ut, UZ,
v,
Vb
and
are dependent variables. A bilinear form
V2
Btu, v) is said to be symmetric in its arguments u and v if
B(u, v)
=
B(v, u)
for.all u and v. An example of a linear functional is L
lev) =
i 0
vfdx
dv
+ dx (L)Mo
(2.25)
INTEGRAL FORMULATIONS AND VARIATIONAL METIIODS
27
where 1= I(x) and Mo are known quantities. An example of a bilinear functional is L du dw B(v, ly) = 0 a dx dx dx
L
where a = a(x) is a known function.
2.2.4 The Variational Symbol Consider the function F = F(x, u, u'). For an arbitrary fixed value of the independent variable x, F depends on u and u', The change au in u, where U' is a constant and v is a function, is called the variation of u and is denoted by
au: ou= av
(2.26)
The operator b is called the variational symbol. The variation bu of a function u represents an admissible change in the function u(x) at a fixed value of the independent variable x. If u is specified at a point (usually on the boundary), the variation of u is zero there because the specified value cannot be varied. thus the variation of a function u should satisfy the homogeneous form of the boundary conditions for u. The variation ou in u is a virtual change. Associated with this change in u (i.e., u going to u + U'v), there is a change in F. In analogy with the total differential of a function of two variables, the first variation of F at u is defined by
of
aF
au
vU
OF=-ou+~ou'
(2.27)
Note the analogy between the first variation, (2.27), and the total differential ofF,
aF
dF = -
ax
dx
aF
+-
au
du
of
+-
au' du'
(2.28)
Since x is not varied during the variation of u to u + au, dx = 0 and the analogy between aF and dF becomes apparent. That is, 0 acts as a differential operator with respect to dependent variables. It can easily be verified that the laws of variation of sums, products, ratios, powers, and so forth are completely analogous to the corresponding laws of differentiation. For example, if F1 = F1(u) and F; = F;(u) then
1. b(Pi ± f2) == oF ± bF; . 2. o(PiF2) == F2 se; + Pi oF2 j
3. b(Fi) == F2 oFt- Pi oF; F2
4. (i[(Pitl =
F~
n(Pir~l
oFt
(2.29)
28
PRELThHNARIES
Furthermore, the variational operator can commute with differential and integral operators (as long as the coordinates x and yare the fixed, Lagrangian coordinates):
-d (.5u) = -d (£w) = dx dx
.5
f
~= !Ydx
u(x) dx =
f
au'
.5u =.5 (~) dx 1
(2.30a)
.5u(x) dx
(2.30b)
=
2.3 WEAK FORMULATION OF BOUNDARY VALUE PROBLEMS 2.3.1
Introduction
Recall from Section 2.1 that the motivation for integral formulations of boundary value problems comes from the fact that variational methods of approximation, e.g., the Ritz, Galerkin, least-squares, collocation, or, in general, weighted-residual methods, are based on weighted-integral statements of the governing equations. Since the finite element method is a technique for constructing approximation functions required in an element-wise application of any variational method, it is necessary to study the weighted-integral formulation and the weak formulation of differential equations. In addition to the above reason, weak formulations also facilitate, in a natural way, the classification of boundary conditions into natural and essential boundary conditions, which playa crucial role in the derivation of the approximation functions and the selection of the nodal degrees of freedom of the finite element model. In this section, our primary objectives will be to construct the weak form of a given differential equation and to classify the boundary conditions associated with the equation. A weak form is a weighted-integral statement of a differential equation in which the differentiation is distributed among the dependent variable and the weight function and includes the natural boundary conditions of the problem. '
2.3.2 Weighted-Integral and Weak Formulations Consider the problem of solving the differential equation
d[
dU] = q(x)
- dx a(x) dx
for 0 <x < L
(2.31a)
for 'the solution u(x), subject to the boundary conditions u(O)
= Uo,
dU)[ x=L -_Q
a ( dx
0
(2.31b)
INTEGRAL FORMmATIONS AND VARIATIONAL METHODS
29
Here a and q are known functions of the coordinate x, Uo and Qo are known values, and L is the length of the one-dimensional domain. The functions a and q, and constants Uo and Qo} along with the length L of the domain, are the data of the problem. The solution u is the dependent variable of the problem. When the specified values are 'nonzero (uo =#: 0 or Qo =#: 0), the boundary conditions are said to be nonhomogeneous; when the specified values are zero the boundary conditions are said to be homogeneous. The homogeneous form of the boundary condition u(O) = Uo is u(O) = 0, and the homogeneous form of the boundary condition (a du/dx)lx=L = Qo is (a du/dx)lx~L = O. Equations of the type (2.31a) arise, for example, in the study of heat conduction in a heat exchanger fin or a long axisymmetric cylinder. Other examples are included in Table 3.2. In the former case, a = kA, with k being the thermal conductivity and A the cross-sectional area, and L being the length of the fin. For the axisymmetric case, a = 2nLkx} x being the radial coordinate rand L the length of the cylinder (see Fig. 1.4). In both cases, q denotes the heat generation term, Uo is the specified temperature, and Qo is the specified heat. Other physical problems are also described by the same equation, but with different meanings for the variables (see Table 3.2). It should be recalled that the sale purpose of developing a weightedintegral statement of a differential equation is to have the means to obtain N linearly independent algebraic relations among the coefficients Cj of the approximation N
U
= UN =
2: c/l)j(x) + tPo(x)
(2.32)
j=l
This is accomplished by choosing N linearly independent weight functions in the integral statement} as will be seen shortly. There are three steps in the development of the weak form} if it exists, of any differential equation. These steps are illustrated by means of the model differential equation and boundary conditions in (2.31). Step 1. Move all expressions of the differential equation to one side, multiply the entire equation with a function IV} called the weight function} and integrate over the domain Q = (0, L) of the problem: (2.33) We shall call the statement in (2.33) the weighted-integral or weighted-residual statement equivalent to the original equation (2.31a). The expression in the square brackets is not identically zero when u is replaced by its approximation. Mathematically, (2.33) is a statement that the error in the differential equation (due to the approximation of the solution) is zero in the weighted-integral sense. When u is the exact solution, (2.33) is trivial. The integral statement (2.33) allows us to choose N linearly independent functions for wand obtain N equations for C l, C2} ••• } CN of (2.32).
30
PRELIMINARIES
Note that the weighted-integral statement of any differential equation can be developed. The weight function win (2.33) can be any nonzero, integrable function. In general, the weight function w in the integral statement is subject to less stringent continuity requirements than the dependent variable u. The weighted-integral statement is equivalent only to the differential equation, and it does not include any boundary conditions. Step 2. While the weighted-integral statement (2.33) allows us to obtain the necessary number N of algebraic relations among Cj for N different choices of the weight function w, it requires that the approximation functions ¢j be such that UN [see (2.32)] is differentiable as many times as called for in the original differential equation and satisfies the specified boundary conditions. If this is not a concern, one can proceed with the integral statement (2.33) and obtain the necessary algehraic equations for Cj' Approximate methods based on weighted-integral statements of the form (2.33) are known as weighted-residual methods (see Section 2.4.3). If the differentiation is distributed between the approximate solution UN and the weight function w, the resulting integral form will require weaker continuity conditions on ¢j, and hence the weightedintegral statement is called the weak form. As will be seen shortly, the weak formulation has two desirable characteristics. First, it requires weaker (i.e., less) continuity of the dependent variable, and often it results in a symmetric set of algebraic equations in the coefficients. Second, the natural boundary conditions of the problem are included in the weak form, and therefore the approximate solution UN is required to satisfy only the essential boundary conditions of the problem. These two features of a weak form play an important role in the development of finite element models of a problem. The equal distribution of differentiation among the weight function and the dependent variable is possible only if the derivatives appearing in the differential equation are of even order, as is the case with most problems studied in this book. The trading of differentiability from the dependent variable to the weight function is dictated by the need to include physically meaningful boundary terms into the weak form, regardless of the effect on the continuity requirements. On the other hand, trading of differentiation from the dependent variable to the weight function should not be performed if it leads to boundary terms that are not physically meaningful. Returning to the integral statement (2.33), we integrate the first term of the expression by parts to obtain
LL {w[- ~ (a :) J- wq } dx = (L (dW a du _ w q) dx _ [wa dUlL
0=
Jo
dx
dx
.
dx
(2.34)
0
where the integration-by-parts formula [see (2.12) or (2.13a)]
LL Wdv=-f vdw+[wv]~
(2.35)
INTEGRAL FORMULATIONS AND VARIATIONAL METHODS
31
with v = -a duldx is used on the first term to arrive at the second line of (2.34). The reader is asked to verify (2.34) either directly or by the use of (2.35). Note that now the weight function w is required to be differentiable at least once. An important part of Step' 2 is to identify the two types of boundary conditions associated with any differential equation: natural and essential. The classification is important for both the variational methods of approximation considered in this chapter and the finite element formulations presented in Chapters 3-5. The following rule is used to identify the natural boundary conditions and their form. After trading differentiation between the weight function and the variable, i.e., after completing Step 2, examine all boundary terms of the integral statement. The boundary terms will involve both the weight function and the dependent variable. Coefficients of the weight function and its derivatives in the boundary expressions are termed the secondary variables (SV). Specification of secondary variables on the boundary constitutes the natural boundary conditions (NBC). For the case at hand, the boundary term is w(a duldxy; The coefficient of the weight function is a duldx. Hence the secondary variable is of the form [see (2.34)] a duldx. The secondary variables always have physical meaning, and are often quantities of interest. In the case of heat transfer problems, the secondary variable represents heat, Q. We shall denote the secondary variable by
( dU)
Q= a11 dx x
(2.36)
where n; denotes the direction cosine,
n, = cosine of the angle between the x axis and the normal to the boundary For one-dimensional problems, the normal at the boundary points is always along the length of the domain. Thus, 11", = -1 at the left end and 11", = 1 at the right end of the domain: 11",(0) = -1 and n",(L) = 1. The dependent variable of the problem, expressed in the same form as the weight function appearing in the boundary term, is called the primary variable (PV), and its specification on the boundary constitutes the essential boundary condition (EBC). For the case under consideration, the weight function appears in the boundary expression [see (2.34)] as w. Therefore, the dependent variable u is the primary variable, and the essential boundary condition involves specifying u at the boundary points. It should be noted that the number and form of the primary and secondary variables depend on the order of the differential equation. The number of primary and secondary variables is always the same, and with each primary variable there is an associated secondary variable (e.g., displacement and force, temperature and heat, and so on). Only' one of the pair, either the primary or the secondary variable, may be specified at a point of the boundary. Thus, a given problem can have its specified boundary conditions in one of three categories: (i) all specified boundary conditions are EBC; (ii) some of the
L
32
PRELIMINARIES
specified boundary conditions are EBC and the remaining are NBC; or (iii) all specified boundary conditions are NBC. For a single second-order equation, as in the present case, there is one primary variable u and one secondary variable Q. At a boundary point, only one of the pair (u, Q) can be specified. For a fourth-order equation, such as that for the classical (i.e., Euler-Bernoulli) theory of beams, there are two of each kind (i.e., two PVs and two SVs), as will be illustrated later (see Example 2.2). In general, a 2mth-order differential equation has m PVs and m SVs, i.e., m pairs of primary and secondary variables. In the notation of (2.36), (2.34) takes the form
0= L (dWdU a---wq ) dx- [dUJL wao dxdx dxo
L
=
LLo (a dw du dx dx
wq) dx - ( wa du nx ) dx
= LL (a ~:~: - w q ) dx -
I - (wa, dU'n I dx x~o
(wQ)o- (wQh
x)
xv L
(2.37)
Equation (2.37) is called the weak form of the differential equation (2.31). "Weak" refers to the reduced (i.e., weakened) continuity of u, which is required to be twice-differentiable in the weighted-integral form (2.33) but only once-differentiable in (2.37). Step 3. The third and last step of the weak formulation is to impose the actual boundary conditions of the problem under consideration. It is here that we
require the weight function w to vanish at boundary points where the essential boundary conditions are specified; Le., w is required to satisfy the homogeneous form of the specified essential boundary conditions of the problem. This requirement on w might seem arbitrary for a reader not familiar with variational calculus. In weak formulations, the weight function has the meaning of a virtual change (or variation) of the primary variable. If a primary variable is specified at a point, the virtual change there must be zero. For more detailed discussions of this, the reader may consult books on variational methods [see Reddy (1986)]. For the problem at hand, the boundary conditions are given in (2.31b). By the rules of classification of the boundary conditions, U = Uo is the essential boundary condition and (a du/dx)lx=L = Qo is the natural boundary condition. Thus, the weight function w is required to satisfy
w(O) = 0, Since w(O) = 0 and
because u(O) = Uo
INTEGRAL FORMULATIONS AND VARIATIONAL MElHODS
33
(2.37) reduces to the expression
-t: )
0= J(L a dx.dx - wq dx - w(L)Qo o
(2.38)
which is the weak form equivalent to the original differentiatl equation (2.31a) and the natural boundary condition (2.31b). This completes the steps involved in the development of the weak or variational form of a differential equation. The terms "variational form" and "weak form" will be used interchangeably. The weak form of a differential equation is a weighted-integral statement equivalent to the differential equation and the specified natural boundary conditions of the problem. Note that the weak form exists for all problems-linear or nonlinear-that are described by second- and higher-order differential equations. When the differential equation is linear and of even order, the resulting weak form will have a symmetric bilinear form in the dependent variable U and weight function w. In summary, there are three steps in the development of a weak form. In the first, we put all expressions of the differential equation on one side (so that the other side is equal to zero), then multiply the entire equation by a weight function and integrate over the domain of the problem. The resulting expression is called the weighted-integral form of the equation.fln the second step, we use integration by parts to distribute differentiation evenly between the dependent variable and the weight function, and use the boundary terms to identify the form of the primary and secondary variables. In the third step, we modify the boundary terms by restricting the weight function to satisfy the homogeneous form of the specified essential boundary conditions and replacing the secondary variables by their specified values. It should be recalled that a weighted-integral statement or the weak form of a differential equation is needed to obtain as many algebraic equations as there are unknown coefficients in the approximation of the dependent variables of the equation. For different choices of the weight function, different algebraic equations can be obtained. Because of the restrictions placed on the weight function in Step 3 of the variational formulation, it must belong to the same space of functions as the approximation functions (i.e., w - (Pt).
2.3.3 Linear and Bilinear Forms and Quadratic Functionals It is informative, although hot necessary for the use of variational methods or
the finite element method, to see the relation between the weak form and the minimum of a quadratic functional associated with the differential equation. The weak form (2.38) contains two types of expressions: those involving both the dependent variable U and the weight function lV, and those involving only the latter. We shall denote these two types of expressions by B(lV, u) and lew),
34
PRELIMINARIES
respectively: L
R(w, u)=
L 0
dwdu a dx dx dx,
lew) =
r
wq dx
+ w(L)Qo
(2.39)
Hence, the weak statement (2.38) can be expressed in the form (2.40)
0= R(w, u) -lew)
which is termed the variational (or weak) problem associated with the equations (2.31). Using the definitions of linear and bilinear forms from Section 2.2.3, it can be verified that Biw, u) is bilinear and symmetric in wand u and that lew) is linear [see (2.23) and (2.24)]. The variational problem associated with (2.31a, b) can be stated as one of finding the solution u such that R(w, u)
= lew)
(2.41)
holds for any w that satisfies the homogeneous form of the specified essential boundary conditions and continuity conditions implied by the weak form. The function w can be viewed as a variation (or increment) of the actual solution
u", u = u" + w
(2.42)
and u is the variational solution, i.e., the solution of (2.41). Since both u and u" must satisfy any specified essential boundary condition (in addition, u" also satisfies any specified natural boundary condition), it follows that w must satisfy the homogeneous form of the specified essential boundary condition. Thus, in the notation of (2.26), w is the variation (see Section 2.2.4) of the solution: w=ou
Then (2.40) can be written as O=R(ou,u)-I(15u) If R( " .) is symmetric, we can write
= 15[~R(u, u)]- 15[I(u)]
= M(u)
(2.43a)
where 11(u) = fB(u, u) -leu)
(2.43b)
In arriving at the second line of (2.43a), the following identities are used:
ecs«, u) = LL a dd:
U :
dx
= 15 LL ~ [(~:rJ
du Jr a du dx dx dx = 2 15 R
dx
L
1
= 2 15
1
o
[
(
u, u)]
(2.44a)
INTEGRAL FORMULATIONS AND VARIATIONAL METHODS
1(6u) = LL 6u q dx
3S
+ 6u(L) Qo
= 6[LL (lq dx + U(L)QO] = 6[I(u)]
(2.44b)
Note that the key step in the derivation of the functionall(u) from the weak form is the linearity and symmetry of the bilinear form B(w, u). The relation B(6u, u) =! 6B(u, u) holds only if B(w, u) is bilinear and symmetric in H:' and u. Thus, whenever B(w, u) is bilinear and symmetric, and lew) is linear, the .associated quadratic functional is given by (2.43b). When B(w, u) is not linear in wand u, but is symmetric, the functionall(u) can be derived, but not from (2,43b). The interested reader can consult the books by Oden and Reddy (1976) and Reddy (1986). Equation (2.43a) represents the necessary condition for the functional leu) to have an extremum value. For solid mechanics problems, leu) represents the total potential energy functional, and (2.43a) is the statement of the total potential energy principle: Of all admissible functions u, that which makes the total potential energy l(u) a minimum also satisfies the differential equation and natural boundary condition in (2.31).
In other words, the weak form of a differential equation is the same as the statement of the total potential energy principle. For problems outside solid mechanics, the functional leu) may not have the meaning of energy, but it is still useful for mathematical analysis (e.g., in considering the existence and . uniqueness of solutions), As noted earlier, every differential equation admits a weighted-integral statement, and a weak form exists provided the equation is of order two or higher. However, not all equations admit the functional formulation. In order for the functional to exist, the associated bilinear form should be symmetric in its arguments. On the other hand, variational methods and the finite element method do not require a functional; an integral statement or a weak form of the equation to be solved is sufficient. If one has a functional at hand, the weak form is obtained by taking its first variation.
2.3.4
Examples
Now we consider some representative examples of differential equations in one and two dimensions, and. formulate their variational equations. These examples are of primary interest in the study of the finite element method. Example 2.1. Consider the differential equation
d( dU) -cu+x
- dx a
dx
2
=0 for O<x
(2.45a)
36
PREUMINARIES
subject to the boundary conditions
~ 0,
u(O)
(a ~) I~~l ~ 1
(2.45b)
The data are [cf. (2.31)] q = _x2 , Qo ~ 1, and Uo = O. Following the three steps outlined above for the construction of variational statements, we obtain
(1) 0 =
f w[ - ~ (a;:;)
(2) 0=
f(a::-cwu+wx2)dx-(wa~)I:
-cu +x'] dx (2.46)
From the boundary term, it is clear that the specification of u is an essential boundary condition, and the specification of adu/dx is a natural boundar; condition» Since adu/dx ~ 1 at x = 1 and w = 0 at x = 0 (because u is specified there), we obtain the weak form
(3) 0 =
11o (a dwdlJ - cwu) dx + 11 wx dx - ~(1) dxdx 2
(2.47a)
0
0= R(w, u) -lew) where
B(w, u) =
f f
lew) = -
(2.47b)
(a: :- cwu) dx (2.47c) wx' dx
+ w(l)
Since B(· , .) is bilinear and symmetric, and l(·) is linear, we can compute the quadratic functional from (2.43):
l(u) = ~
f [aC~:r -
2
cu" + 2ux
]
dx - u(l)
(2.48)
Equations of the type of (2.45) arise in the study of the deflection of a cable or of heat transfer in a fin (c = 0). In the former case, u denotes the transverse deflection and a the tension in the cable. The first two terms in the quadratic functional represent the elastic strain energy, while the last term represents the work done by the distributed force in moving through the displacement u.
The next example illustrates the variational formulation of a fourth-order differential equation in one dimension. Example 2.2. Consider the problem of finding the solution w to the differential equation (2.49)
subject to the boundary conditions
w(O) =
(:)
Ix-o = 0,
(b ~::) I~~L = u;
(2.50)
INTEGRAL FORMULATIONS AND VARIATIONAL METIIODS
37
This equation arises; for example, in the study of the elastic bending of beams (under the Euler-Bernoulli hypothesis). In this case, IV denotes the transverse deflection of the beam, L is the total length of the beam, h(x);;. 0 is the flexural rigidity of the beam (Le., the product of modulus of elasticity E and moment of inertia 1: b = EI), f(x) is the transverse distributed load, and .Mo is the bending moment. The solution IV is the dependent variable of the problem, and all other quantities (L, b, f, Mo) that are known in advance are the data of the problem. Since the equation contains a fourth-order derivative, we should integrate it twice by parts to distribute the derivatives equally between the dependent varaible IV and the weight function v. In this case, u must be twice differentiable and satisfy the homogeneous form of EBe. Multiplying (2.49) by v, and integrating the first term by parts twice with respect to x, we obtain [see (2.15)]
0=
o=
r
V[~22 (b ~~:) -fJ dx
f [(-:) ~ 2ud2
~:~) ~ vf] dx + [ v ~ (b ~:~) ] 2
2
I:
~F) dx + [v~ (b d W) _ dv b d 1V]II.-
w_
= ((b d
Jo
(b
(2.51)
~
dx" dx'
dx
dx:
dx
dx?
0
(2.52)
From the last line, it follows that the specification of IV and dwldx constitutes the essential (geometric or static) boundary conditions, and the specification of 2
W)
d ( b ddx2 "" V (shear force) dx
(2.53a)
and
2
b ( ddx1V) "'" M (bending moment) 2
(2.53b)
constitutes the natural boundary conditions. In the present case, the specified essential boundary conditions are (because of the clamped condition)
w(O) =
(~~) Ix~o = 0
Hence, the weight function v is required to satisfy the conditions v(O) =
(dV) I dx ..
=0
(2.54)
-0
The natural boundary conditions are (2.55) Using (2.54) and (2.55) in (2.?2), we obtain 0=
i
(d Vdw -vf) dx>- (dV) b- I 2
l.-
o
2
2
-
dx dx
2
dx x~1.-
Mo
(2.56a)
or B(v, w) = lev)
(2. 56b)
38
PRELIMINARIES
where
(2.56c)
The quadratic form, commonly known as the total potential energy of the beam, is obtained using (2.56c) and (2.43b):
lew) =
r[~(~:~r -
wf]
dx -
(:)I~~LMo·
(2.57)
Note that for the fourth-order equation, the essential. boundary conditions involve not only the dependent variable but also its first derivative. As pointed out earlier, at any boundary point, only one of the two boundary conditions (essential or natural) can be specified. For example, if the transverse deflection is specified at a boundary point then one cannot specify the shear force Vat the same point, and vice versa. Similar comments apply to the slope dwldx and the bending moment M. Note that in the present case, wand dwldx are the primary variables, and V and M are the secondary variables.
The next example is concerned with a second-order differential equation governing conductive and convective heat transfer in two dimensions. It should be noted that the boundary condition for a convective boundary contains both primary and secondary variables. Example 2.3. Consider steady heat conduction in a two-dimensional domain Q, enclosed by lines AB, Be, CD, DE, EF, FG, GH, and HA (see Fig. 2.2). The governing equation is aZT
rr.
-k ( ax z + ai J = qo in
(2.58)
Q
where qo is the uniform heat generation, k is the conductivity of the isotropic material of the domain, and T is the temperature. We wish to construct the weak form of the
~~~~D aT
aT
an
ax
1
E"P'"'d to ambient b temperature (convection) k
:~ x
T = to (x)
FIGURE 2.2 Conduction and convection heat transfer in two-dimensional domains.
= -
P(T
~ T~)
INTEGRAL FORMULATIONS AND VARIATIONAL METIIODS
39
equation. Equation (2.58), known as the Poisson equation, arises in many fields of engineering (see Table 8.1). Proceeding as described earlier, we have
0=
1 Q
W[_k(a : + ~f\ ax aiJ 2
- qo] dx dy
where W denotes the weight function. Using (2.22) [with G = aT/ax in (2.22a) and G = aT/ay in (2.22b)], we obtain
0=
1[ (- - + - Q
k aWaT ax ax
awa;) -wqo] dxdyBy ay
f r
aT) ds wk (aT -n... +-n ax By Y
(2.59)
The reader should verify the last step [i.e. the application of (2.22)]. From the boundary expression, it follows that the secondary variable of the problem is of the form
k( aT n
+ aT n )
ax:< ay
=
k aT == q
Y
an
"
and the primary variable is T. The secondary variable q" denotes the total flux across (i.e., along the normal to) the boundary. In general, q" is composed of fluxes due to conduction, convection, and radiation. The boundary r of the domain consists of several line segments, and they are subject to different types of boundary conditions (see Fig. 2.2): on r j = AB (nx = -1, ny = 0): on r 2 = BC (nx = 0, n, = -1): on r 3 = CD (n" = 1, fly = 0):
specified heat flux, q(y) specified temperature, To(x) convective boundary with ambient temperature I: and film coefficient [3; kaT/an + [3(T - T=) = 0 insulated boundary, aT/an = 0
on I', = DEFGHA:
(2.60)
Using the boundary information, the boundary integral in (2.59) can be simplified as follows (note that w = 0 on r 2 ) :
J: W(k ar\ ds = f wq; ds + Yr a;;J Jr )
1 r2
O(k aT\ ds a;;J
-i
w[,8(T - T=)] ds +
f
w(O, y)q(y) dy -,8
r,
= -
1 f r,
wO ds w(a, y)[T(a, y) -
T~] dy
(2.61)
Substituting (2.61) into (2.59), we obtain the weak form
0=
L[k(~:~~+ ~;~B -Wqo]dxdy + +,8
f
w(a, ;)[T(a, y) -
f
w(O,y)q(y)dy
T~] dy
Collecting terms involving both wand T into B( . , . ), and those involving only I( . ), we can write (2.62) in the form
B(w, T) = lew)
(2.62) IV
into
(2. 63a)
40
PRELIMINARIES
where
B(w, T)
=
aw a~ Jgr k (aWaT ax ax + ay aY) dx dy + f3
l(w) = Lwqodxdy-
f
lb w(a, y)T(a, y) dy 0
(2.63b)
w(O,y)q(y)dy+f3 fW(a,y)T=dY
The quadratic functional is given by
I(T)
=~
IJ (:!y + (:0 f f
+
2
]
dx dy - L Tqo dx dy
T(O, y)q(y) dy + f3
![T 2(a, y) - 2T(a, y)T=] dy
(2. 63c)
Note that the boundary integrals in this example are defined along the y and x axes, respectively. This is because the boundaries are parallel to either the x or the y axis.
2.4 VARIATIONAL METHODS OF APPROXIMATION 2.4.1
Introduction
Our objective in this section is to study the variational methods of approxima. tion. These include the Rayleigh-Ritz, Galerkin, Petrov-Galerkin, leastsquares, and collocation methods. In all these, we seek an approximate solution in the form of a linear combination of suitable approximation functions o/j and undetermined parameters Cj: Ej cjcfJj' The parameters Cj are determined such that the approximate solution satisfies the weighted-integral form or weak form of the governing equation or minimizes the quadratic functional associated with the equation studied. Various methods differ from each other in the choice of weight function wand approximation functions cfJj' The primary objective of this section is to present a number of classical variational methods. The finite element method makes use of variational methods to formulate the discrete equations over an element. As we shall see in Chapters 3-14, the choice of the approximation functions in the finite element methods is different from that in the classical variational methods.
2.4.2 The Rayleigh-Ritz Method In the Rayleigh-Ritz method, the coefficients Cj of the approximation are determined using the weak form of the problem, and the choice of weight functions is restricted to the approximation functions, w = cfJi' Recall that the weak form contains both the governing differential equation and the natural boundary conditions of the problem, and it places less stringent continuity requirements on the approximate solution than the original differential equation or its weighted-integral form. The method is described below for a linear variational problem.
llITEGRAL FORMULATIONS AND VARIATIONAL MEmODS
41
Consider the 'variational problem of finding the solution u such that B(w, u)
= lew)
(2.64)
for all sufficiently differentiable functions IV that satisfy the homogeneous form of any specified essential boundary conditions on u. When the functional B is bilinear and symmetric and I is linear, the problem in (2.64) is equivalent to minimization of the quadratic functional leu)
= !B(u, u) -leu)
(2.65)
In the Rayleigh-Ritz method, we seek an approximate solution to (2.64) in the form of a finite series N
UN
= 2: CA'j + CPo
(2.66)
j=1
where the constants cj , called the Ritz coefficients, are chosen such that (2.64) holds for w = CPi (i = 1, 2, ... , N); i.e., (2.64) holds for N different choices of w, so that N independent algebraic equations in Cj are obtained. The requirements on CPj and
If B is bilinear, the summation and constants cj can be taken outside the operator. We have N
2: B(
B(CPi> CPo)
(2.67a)
F; = l(
0)
(2. 67b)
or N
2: Bijcj = 1';, j=1
Bij = B(
which represents the ith algebraic equation in a system of N linear algebraic equations in N constants Cj' The columns (and rows) of the matrix coefficients Bij = B( CPj, ¢;) must be linearly independent in order that the coefficient matrix in (2.67) can be inverted. For symmetric bilinear forms, the Rayleigh-Ritz method can also be viewed as one that seeks. a solution of the form in (2.66) in which the parameters are determined by minimizing the quadratic functional corresponding to the symmetric bilinear form, that is, the functional leu) in (2.65). After substituting UN from (2.66) for II, into (2.65) and integrating, the functional l(u) becomes an ordinary (quadratic) function of the parameters C 1, C z , ' . , , Then the necessary condition for the minimization of l(cl> cz, ' .. CN) is that its 1
!
42
PRELIMINARIES
partial derivatives with respect to each of the parameters be zero:
81
81
8C2 =
0,
••. ,
OCN =
0
(2.68)
Thus there are N linear algebraic equations in N unknowns, Cj (j = 1, 2, ... , N). These equations are exactly the same as those in (2.67) for all problems for which the variational problem (2.64) is equivalent to OJ = O. Of course, when B( . , . ) is not symmetric, we do not have a quadratic functional. In other words, (2.67) is more general than (2.68), and they are the same when B( . J • ) is bilinear and symmetric. In most problems of interest in the present study, we shall have a symmetric bilinear form. Returning to the Rayleigh-Ritz approximation UN in (2.66), we note that UN must satisfy the specified essential boundary conditions of the problem; any specified natural boundary conditions are already included in the variational problem (2.64). The particular form of UN in (2.66) facilitates satisfaction of specified boundary conditions. If we were to use the form N
UN
= 2: c/Mx) j=1
then it would not be easy to satisfy nonhomogeneous boundary conditions. For example, suppose that UN is required to satisfy the condition UN(XO) = Uo at a boundary point x = xo: N
2: c/p/xo) = Uo j=1 Since Cj are unknown parameters to be determined, it is not easy to choose cp;(x) such that this relation holds. If Uo = 0 then any ¢j such that ¢/xo) = 0 would meet the requirement. By writing the approximate solution UN in the form (2.66), a sum of homogeneous and nonhomogeneous parts, the nonhomogeneous essential boundary conditions can be satisfied by ¢o, ¢o(xo) = Uo, and ¢j are required to satisfy the homogeneous form of the same boundary condition, ¢/xo) = O. In this way, UN satisfies the specified boundary conditions: N
UN(XO) =
2: cjr/J/xo) + r/Jo(xo)
j~1
=O+U o If all specified essential boundary conditions are homogeneous (i.e., the specified value Uo is zero) then ¢o is taken to be zero and ¢j must still satisfy the same conditions, ¢/xo) = O. Since r/Jj satisfy the homogeneous essential boundary conditions, the choice w = ¢j is consistent with the requirements of a weight function. The approximation functions
INTEGRAL FORMULATIONS AND VARIATIONAL MElHODS
43
conditions: 1. (a)
[i.e., sufficiently differentiable as required by the bilinear form B(· , . )]. ' (b)
Next, we consider a few examples of the application of the Rayleigh-Ritz method. Example 2.4. Consider the differential equation [cf. Example 2.1, with a = c = 1]
dZu - -
dx z
- II
+XZ = 0
for 0 < x < 1
(2.71)
We consider two sets of boundary conditions: set 1:
u(O) = 0,
u(l) = 0
set 2:
U(O) =0,
(dU)1 dx
(2.72a)
-1
(2.72b)
x-I-
Set I. The bilinear functional and the linear functional are [see (2.47c)]
B(w, u) =
f (:::-
wu) dx,
l(w) = -
f
wxzdx
(2.73)
Since both boundary conditions [u(O) = u(l) = 0] are of the essential type, we must select c/J/ in the N-parameter Ritz approximation to satisfy the conditions c/JI(O) = IMl) = O. We choose the following functions: c/Jo = 0 and rf>1=x(l-x), . rf>z=x2(1-x),
... ,
rf>N=xN(l-x)
(2.74) 2
It should be pointed out that if one selects, for example, the functions rf>1 = x (1 - x), 1>2=x3 ( I - x ) , etc. [not including x(1-x)], requirement 3 in the conditions (2.69) is
violated, because the set cannot be used to generate the linear term x if the exact solution contains it. As a rule, one must start with the lowest-order admissible function and include all admissible, higher-order functions up to the desired degree.
44
/
PRELIMINARIES
The N-parameter Rayleigh-Ritz solution for the problem is of the form N
UN = Cd' l + C2¢2 + ... + CN¢IV = 2: Cj¢j
(2.75)
j~1
Substituting this into the variational problem B(w, u)
=
l(w), we obtain
or N
2: cjB(¢" ,pj) = l(,pi)
(2.76a)
j~1
/
where the coefficients B(¢i' ,pj) and I( ¢i) are defined by
[(,pi) =
-
't J X2¢i dx
(2.76b)
o
The same result can be obtained using (2.65) {instead of (2.64)]. We have l(u) =
Substituting for
U
= UN from
l f[t:;)
2 -
u
2+ 2x2U] dx
(2.75) into the above functional, we obtain
(2.77) The necessary conditions for the minimization of I, which is a quadratic function of the variables C lI C2' •.• , CN, are
a l I I [d,p,(N aC = 0 = 0 dX' ~ i
d¢) (N) ] c/f; -,pi ~ Cj,pj + ¢;X2 dx
N
=
2: Bifej -
F;
1=1
where
which are the same as those in (2.76). Equations (2.76a, b) hold for any choice of admissible approximation functions Pi' For the choice of approximation functions in (2.74), the matrix coefficients Bij == B( ¢" ,pj) and vector coefficients F; == I( ,pi) - B(,p" ,po) = l(CPi) can be computed using
INTEGRAL FORMULATIONS AND VARIATIONAL METHODS
We have
i
1
B li
=
o
{[u H
-
(i
+ l)x i][jx H
-
U + l)xi ] - (x' -
Xi+I)(Xi
-
45
xi +1)} dx
c
2ij
2
(i + j)[(i + jl- 1]
(i + j + 1)(i + j + 2)(i + j + 3)
1
F;=-
1 X~(XI_Xi+l)dx=-(3+i)(4+i)
1 0
(2. 78a)
(2.78b)
Equation (2.76) can be written in matrix form as
[B]{c} = {F}
(2.79)
For example, when N = 2, (2.79) becomes
1[12663 63}{C 52
420
1}
= -
Cz
1{3}
60 2
and the use of Cramer's rule to solve the equations gives CI
= -;'~ = -0.0813,
c2 =
-#3
= -0.1707.
The two-parameter Rayleigh-Ritz solution is given by
c1 11+ c212= (- t'~)(x Z = -lb(lOx + 1h - 2h 3)
Uz =
X
z )
+ (- fb)(x 2 - x 3)
The exact solution of (2.71) and (2.72a) is given by
u () x =
sinx+2sin(1-x) z +x -2 sin 1
(2.80)
The values of the Ritz coefficients for various values of N can be obtained by solving (2.79). A comparison of the Rayleigh-Ritz solution (2.75) with the exact solution (2.80) is presented in Table 2.1 and Fig. 2.3. Set 2. For the second set of boundary conditions (2.72b), the bilinear form is the same as that given in (2.73) and (2.76b). The linear form is given by (10 == 0)
lew) = -
f
wx Z dx + w(l)
(2.81a)
and we therefore have
(2.81b) In this case, the 1, should be selected to satisfy the condition 4>1(0) = 0, because the only EBC is at x == O. The following choice of 4>, meets the requirements:
tPl = Xi c~n
The coefficients Bij and 1'; respectively:
(2.82)
be computed using (2.82) in (2.76b) and (2.81b)
1
B/ = 1
1 1
..
(iJX i +i - 2 -
X l +i )
dx ==
0
1
F= -
'0
xi+ dx + 1 = 2
1/
l+j-l
1
---+ 1 i
+3
1 --i +j+ 1
(2.83)
46
/
PRELIMINARIES
TABLE 2.1
Comparison of the Rayleigh-Ritz and exact solutions of the equation d 2u
_~-U+X2=O
dx 2
for O<x
< 1;
u(O) = u(l)
Rayleigh-Ritz solution, -lOu
Ritz coefficientst
=0
x
N=l
N=2
N=3
Exact solution
c 1 = -0.1667
0.0 0.1
0.0 0.1500
0.0 0.0885
0.0 0.0954
0.0 0.0955
c 1 = -0.0813 c2= -0.1707
0.2 0.3 0.4
0.2667 0.3500 0.4000
0.1847 0.2783 0.3590
0.1890 0.2766 0.3520
0.1890 0.27&t 0.3518
0.5 0.6 0.7 0.8 0.9 1.0
0.4167 0.4000 0.3500 0.2667 0.1500 0.0
0.4167 0.4410 0.4217 0.3486 0.2115 0.0
0.4076 0.4340 0.4200 0.3529 0.2183 0.0
0.'4076 0.4342 0.4203 0.3530 0.2182 0.0
N=l:
N=2:
N=3: CI
= -0.0952
c2= -0.1005 c3 = -0.0702
t The four-parameter Rayleigh-Ritz solution coincides with the exact solution up to four decimal places.
0 . 0 - . - . . - - - - - - - - - - - - - - - - -........ _ Three-parameter solution and exact --- Two-parameter solution -0.1 -.- One-parameter solution -0.2 u(x) -0.3
-0.4
0.0
0.2
0.4
0.6
x
0.8
1.0
FIGURE 2.3 Comparison of the Rayleigh-Ritz solution with the exact solution of (2.71) and (2.72a). The threeparameter solution and the exact solution do not differ on the scale of the plot.
Il'ITEGRAL FORMULATIONS AND VARIATIONAL METHODS
47
TABLE 2.2
Comparison of the Rayleigh-Ritz and exact solutions of the equation
d2u --u +x 2=0 for O<x < 1; dx 2
(~;)IX=l = 1
= 0,
u(O)
Rayleigh-Ritz solution, u Ritz coeflicientst
Exact solution
x
N=l
N=2
N=3
= 1.1250
0.0 0.1
0.0 0.1125
0.0 0.1280
0.1271
0.0 0.1262
= 1.2950 C 2 = -0.15108
0.2 0.3 0.4
0.2250 0.3375 0.4500
0.2530 0.3749 0.4938
0.2519 0.3740 0.4934
0.2513 0.3742 0.4944
0.5 0.6 0.7 0.8 0.9 1.0
0.5625 0.6750 0.7875 0.9000 1.0125 1.1250
0.6097 0.7226 0.8325 0.9393 1.0431 1.1439
0.6099 0.7234 0.8337 0.9407 1.0443 1.1442
0.6112 0.7244 0.8340 0.9402 1.0433 1.1442
N=l: C1
N=2: C1
N=3: 1.2831 C2 = -0.11424 C3 = -0.02462 C1 =
0.0
t The four-parameter Rayleigh-Ritz solution coincides with the exact solution up to four decimal places.
The exact solution in the present case is given by It () X
=
2 cos (1 - x) - sin x 2 +x -2 cos 1
(2.84)
A comparison of the Rayleigh-Ritz solution with the exact solution is presented in Table 2.2. Example 2.5. Consider the problem of finding the transverse deflection of a cantilever beam under a uniform transverse load of intensity to per unit length and end moment Mo using Euler-Bernoulli beam theory (see Example 2.2). The governing equations of this theory are 2
W) to = 0
2
d ( d dx2 EI dx2 -
for
{OE1> <x< L 0
(2.85)
(Eld2~)] I = 0 [~ dx dx x~L
(2.86)
The variational form of (2.85) (which includes the specified NBC) was derived in Example 2.2, and is given by (2.56). We now construct an N-parameter Ritz solution using the variational form, (2.56), B(v, w) = l(v), where L
B(v, w) =
l 0
d2Vd2W
EI dx2 dx 2 dx,
lev) =
lL o
fov dx +
(M ddV)x I o
x-L
(2.87)
48
I
PRELIMINARIES
Note that the specified EEe, w(O) = 0 and (dwldx)lz~o are homogeneous. Therefore, Po = O. We select algebraic approximation functions (Pi that satisfy the continuity conditions and boundary conditions Pi(O) = !Pl(O) = O. The lowest-order algebraic function that meets these conditions is PI = x 2 • The next function in the sequence is P2 = x3 • Thus we have
The N-parameter Rayleigh-Ritz approximation is N
wN(x) =
Pj =x j+ 1
L c/!pj,
(2.88)
j=1
Substituting (2.88) for wand v Bij =
L
L o
Pi into (2.87), we obtain
=
El(i + l)ul-l(j + l)jxJ-l dx =
Er(' + 1)(' + l)Li+ j I} 1
~
• 1 +}
-If
;10 (L)'+2 F =1_ _ _ + M (.1 + 1)L 1
i+2
s
1
(2.89)
0
For N = 2 (i.e., the two-parameter solution), we have EI(4Lcl + 6L2cZ) = ~foC + 2MoL EI(6L2c 1 + 12Cc z) = VoL 4 + 3Mo
e
(2.90a)
or, in matrix form,
6L2J{CI} =12" foL3{ 4} {2} 3L + MoL 3L
4L EI [ 6L2 12L3
Solving for
CI
and
C2'
C
(2.90b)
z
we obtain
CI =
Sfoe+ 12Mo 24El '
and the solution (2.88) becomes
_ sfoe + 12Mo
W2 (X ) -
24El
2 _
x
foL
12El x
3"
(2.91)
For the three-parameter approximation (N = 3), we obtain the matrix equation El
8e]{CI}
4 6L 6L 12L 2 18U [ 8L2 18L2 I f L 4
C2
=
C3
{VOL2+2MO} VoC + 3MoL VoL4 + 4MoL 2
(2.92)
The solution of this when substituted into (2.88) for N = 3, gives
fr,e
W3(X) = 24E/6L2 - 4Lx
MoX 2
+ x 2 ) + 2El
(2.93)
which coincides with the exact solution of (2.85) and (2.86). If we try to compute the four-parameter solution without knowing that the three-parameter solution is exact, the parameters Cj (j > 3) will be zero. Figure 2.4 shows a comparison of the Rayleigh-Ritz solution with the exact solution.
lmEGRAL fORMULATIONS AND VARIATIONAL METIlODS
49
2.0.--------------------. Three-parameter solution ---- Two-parameter solution 1.0 --- One-parameter solution
0.0 IV
-!..---='
x llY
_ dw X 103
dx
dw
-- X
-1.0
dx
103
-2.0
-3.0
+-~-r-~---r--r--'-'-"'----"---r---.---l
0.2
0.0
0.6
0.4
0.8
1.0
1.2
xlL FIGURE 2.4 Comparison of the Rayleigh-Ritz solution with the exact solution of a cantilever beam under a uniform transverse load (Euler-Bernoulli beam theory).
The next example deals with two-dimensional heat conduction in a square region. Note that the dependent variable, namely the temperature, is denoted by T, consistent with the standard notation used in heat transfer books. Example 2.6. Consider the Poisson equation in a unit square region:
-kV2T=qo in Q={(x,y):O«x,y)
on sides x = 1 and y
aT = 0
on sides x
an
(2.94a)
=1 (2.94b)
= 0 and y = 0
where qo is the rate of uniform heat generation in the region. The variational problem is of the form (see Example 2.3)
B(w, T) = l(w)
(2.95a)
where the bilinear and linear functionals are
11 Lk(awax aTax + aw a1\ dx d 3YJ 1
B(w, T) =
o
t
3y
0
y
1
rL
(2.95b)
:v.J =)0 0 we« dx dy l(v)
We consider an N-parameter approximation of the form N
TN
=
2: e i./-1
jl
cos a';X cos CXjY,
a'j
= ~(2i - l)n
(2.96)
50
PRELIMINARIES
Note that (2.96) involves a double summation. Since the boundary conditions are homogeneous, we have rfio = O. Incidentally, rfii also satisfies the natural boundary conditions of the problem. While the choice $/ = sin inx sin iny meets the essential boundary conditions, it is not complete, because it cannot be used to generate the solution that does not vanish on the sides x = 0 and y = O. Hence, $, are not admissible. The coefficients B ,j and F; can be computed by substituting (2.96) into (2.95b). Since the double Fourier series has two summations [see (2.96)], we introduce the notation B{ij)(kI}
= k
ff
[(a'"1 sin a'"/X cos CX}Y)(a'"k sin a'"kX cos a'",y)
+ (a'"j cos a,x sin a'"} y)( a'", cos a'"kX sin a, y)] dx dy =
o {!k( a1 + a'i)
ii 1
F;j = qo
o
if i =I- k or j =I- I if i = k and j = I
1
cos a/x cos a'"}Y dx dy =
0
(2.97a) ,-
~sin a'", sin cx} a,aj (
(2.97b)
In evaluating the integrals, the following orthogonality conditions were used
f
f
sin a'",X sin a'"r dx =
{~
if i =I- j if i = j
cos a/x cos ajX dx =
{~
if i =I- j if i = j
Owing to the diagonal form of the coefficient matrix (2.97a), we can readily solve for the coefficients cij:
1';} 4qo sin a'", sin a'"j c··=--='} B (ij){ij) k (cx7 + a'i) a'",a}
(2.98)
The one- and two-parameter Rayleigh-Ritz solutions are
32qo 1 1 1; = kn 4 cos 'inx cos 'iny
Tz = ~o [0.3285cos ~nx cos ~ny -
(2.99)
O.0219(cos hx cos ~ny
+ cos ~nx cos ~ny) + 0.0041 cos ~nx cos ~ny]
(2.100)
If algebraic polynomials are to be used in the approximation of T, one can choose rfil=(1-x)(1-y) or rfil = (1-x 2)(1- y 2), both of which satisfy the (homogeneous) essential boundary conditions. However, the choice rfit = (1- x 2)(1 - y2) also meets the natural boundary conditions of the problem. The one-parameter Ritz solution for the choice 4>1 = (1- x 2)(1- y2) is
1;(x, y) =
~:; (1 -
x 2)(1 _ y2)
(2.101)
The exact solution of (2.94a, b) is
T(x, y) = go 2k
[(1- y2) + 4 i
,,~I
(-1)" cos a'""y cosh a"x] ~cosh a"
(2.102)
INTEGRAL FORMULATIONS AND VARIATIONAL METIlOOS
51
0.4 - , - - - - - - - - - - - - - - - - - - - - , Solutions: Analytical (2.102) -. - One-parameter (2: 101) 0.3
- - One-parameter } --- Two-parameter (2.96) •--- Three-parameter
""I~ x
S
~
/
0.2
0.1
0.0
+----r--,---,...-.--.-r--.,-~-~.J,.-~~
0.0
0.2
0.4
0.6 x
0.8
1.0
1.2
FIGURE 2.5 Comparison of the Rayleigh-Ritz solutions with the analytical solution of the Poisson equation (2.94) in two dimensions.
where £1'" = H2n -l)n. The Rayleigh-Ritz solutions (2.99), (2.100), and (2.101) are compared with the exact solution (2.102) in Fig. 2.5. The analytical solution is evaluated using 20 terms of the series (2.102).
2.4.3 The Method of Weighted Residuals As noted in Section 2.3.2, one can always write the weighted-integral form of a differential equation, whether the equation is linear or nonlinear (in the dependent variables). The weak form can be developed if the equations are second-order or higher, even if they are nonlinear. However, it is not always possible to construct a functional whose first variation is equal to the variational form. The Rayleigh-Ritz method can also be applied to all problems, including nonlinear problems, that have weak forms. In this method, the weight functions are necessarily. equated to those used in the approximation. The weighted-residual method is a generalization of the Rayleigh-Ritz method in that the weight functions can be chosen from an independent set of functions, and it requires only the weighted-integral form to determine the parameters. The method of weighted residuals can be used to approximate the weighted-integral form of any equation. Since the latter form does not include any of the specified boundary conditions of the problem, the approximation functions should be selected such that the approximate solution satisfies both the natural and essential boundary conditions. In addition, the weight functions can be selected independently of the approximation-functions, but are required to be linearly independent (so that the resulting algebraic
52
PRELIMINARIES
equations are linearly independent). This flexibility is advantageous in certain nonlinear problems. In this section, we discuss the general method of weighted residuals first, and then consider certain special cases that are known by specific names (e.g., the Galerkin and least-squares methods). Although a limited use of the weighted-residual method is made in this book (see Chapter 14), it is informative to have a knowledge of this method for use in the formulation of certain nonlinear problems readers might encounter in their work. The method of weighted residuals can be described in its generality by considering the operator equation A(u) = f
in
n,
(2.103)
where A is an operator -(linear or nonlinear), often a differential operator, acting on the dependent variable u, and f is a known function of the independent variables. Some examples of such operators are provided by
d( dU) + eu
1. A (u) = - dx a dx
2
2
d ( d U) 2. A(u) = dx 2 b dx 2
3. A(u) = -[~ax (k
x
au) au)] ax +~ ay (kYay
(2.104)
dU)
d ( u4. A(u) = --
dx
dx
au ax
au a2 u a (au au) ay ax ay -+ay ax
5. A(u,u)=u-+u-+-+2
For an operator A to be linear in its arguments, it must satisfy the relation A(au
+ (3v) = aA(u) + (3A(u)
(2.105)
for any scalars a and {3 and dependent variables u and v. It can be easily verified that all operators in (2.104), except for 4 and 5, are linear. When an operator does not satisfy the condition (2.105), it is said to be nonlinear. The function u is not only required to satisfy the operator equation (2.103), it is also required to satisfy the boundary conditions associated with the operator equation. From the examples considered so far, the boundary conditions associated with the operators defined in 1, 2, and 3 of (2.104) are obvious [see Examples 2.1-2.3]. In the weighted-residual method, the solution u is approximated, in much the same way as in the Rayleigh-Ritz method, by the expression N
UN =
2: ei~i + ~o i=l
(2.106)
INTEGRAL FORMULATIONS AND VARIATIONAL METHODS
53
except that the requirements on ¢o and ¢j for the weighted-residual method are more stringent than those for the Rayleigh-Ritz method. Substitution of the approximate solution UN into the left-hand side of (2.103) gives a function IN == A(UN) that, in general, is not equal to the specified function I. The difference A(UN) - I, called the residual of the approximation, is nonzero: (2.107) Note that the residual R is a function of position as well as of the parameters In the weighted-residual method, as the name suggests, the parameters Cj are determined by requiring the residual R to vanish in the weighted-integral sense: Cj'
fa 1jJj(x, y)R(x, y,
Cj)
dx dy
=
0 (i = 1, 2, ... , N)
(2.108)
where Q is a two-dimensional domain and 1jJj are weight functions, which, in general, are not the same as the approximation functions ¢j' The set {1jJ/} must be a linearly independent set; otherwise, the equations provided by (2.108) will not be linearly independent and hence will not be solvable. The requirements on ¢o and ifJj for the weighted-residual method are different from those for the Rayleigh-Ritz method, which is based on the weak (integral) form of the differential equation. The differentiability requirement on ifJj in the weighted-residual method is dictated by the integral statement (2.108), as opposed to the weak form in the Rayleigh-Ritz method. Thus, ¢j must have nonzero derivatives up to the order appearing in the operator equation (2.103). Since the weighted-integral form (2.108) does not include any of the specified (either essential or natural) boundary conditions, we must also require UN in (2.106) to satisfy all specified boundary conditions of the problem. Consequently, ifJo is required to satisfy all specified _boundary conditions, and_ PLare required t91l_atjsfLt!!~_ homogeneqgsjorm of all specified boundary conditiciisof the problem. Theserequirements on ifJo and ifJj will increase the order of the polynomial expressions used for the weighted-residual method. In general, the ifJj used in this method are higher-order functions than those used in the Rayleigh-Ritz method, and the functions used in the latter may not satisfy the continuity (i.e. differentiability) requirements of the weighted-residual method. Various special cases of the weighted-residual method are discussed in the following paragraphs. THE PETROV-GALERKIN· METHOD. The weighted-residual method is referred to as the Petrov-Galerkin method when 1JJ/ ifJt. When the operator A
is linear, (2.108) can be simplified to the form
*
- .~.
54
PREUI.UNARIES
or N
2: A;jcj = F;
(2.109)
f=l
Note that the coefficient matrix [A] is not symmetric: (2.110)
THE GALERKIN METHOD. For the choice of weight function 1jJ; equal to the approximation function ifl;, the weighted-residual method is better known as the Galerkin method. The algebraic equations of the Galerkin approximation are N
2: A;fcf = F;
(2. 111a)
j=l
where
(2. ll1b) Once again, we note that A;j is not symmetric. In general, the Galerkin method is not the same as the Rayleigh-Ritz method. This should be clear from the fact that the former uses the weighted-integral form whereas the latter uses the weak (or variational) form to determine the coefficients cf. Consequently, the approximation functions used in the Galerkin method are required to be of higher order than those in the Rayleigh-Ritz method. If the equation permits, and one wishes, the differentiation can be transferred from the solution u to the weight function w = ifl;; and one thereby obtains the weak form to relax the continuity requirements on the approximation functions and include the specified natural boundary conditions of the problem. The Rayleigh-Ritz and Galerkin methods yield the same solutions in two cases: (i) when the specified boundary conditions of the problem are all of the essential type, and therefore the requirements on ifl; in the two methods become the same and the weighted-integral form reduces to the weak form; and (ii) when the approximation functions of the Galerkin method are used in the Rayleigh-Ritz method. The reader is urged to keep the distinction between the Rayleigh-Ritz and Galerkin methods in mind. . THE LEAST·SQUARES METHOD. In this method, we determine the parameters Cj by minimizing the integral of the square of the residual (2.107): -::>0 oc,
i (,I
R 2 (x, y, cf ) dx dy = 0
INTEGRAL FORMULATIONS AND VARIATIONAL METHODS
55
or
i g
oR
-Rdxdy=O
(2.112a)
OCI
Comparison of (2.112a) with (2.108) shows that Wi = aR/ aCI' If A.is a linear operator, Wi =A(¢i), and (2.112a) becomes
j~
[L
A(¢i)A(¢j) dx dy ]Cj =
fa A(¢i)[f - A( ¢o)] dx dy
or N
(2. 112b)
LA,jcj=Fj j=l
where
Note that the coefficient matrix A,:; is symmetric, but it involves the same order of differentiation as in the governing differential equation. THE COLLOCATION METHOD. In the collocation method, we seek an approximate solution UN to (2.103) in the form of (2.106) by requiring the residual in the equation to be identically zero at N selected points Xl == (x', yl) (i = 1, 2, ... , N) in the domain Q: (2.113) The selection of the points Xl is crucial in obtaining a well-conditioned system of equations and ultimately in obtaining an accurate solution. The collocation method can be shown to be a special case of (2.108) with 1J!1 = o(x - Xi), where (l(x) is the Dirac delta function, which is defined by
fa f(x)o(x - ;) dx dy
=
f(;)
(2.114)
With this choice of weight functions, the weighted-residual statement becomes
fa o(x - x')R(x, Cj) dx dy = 0 or (2.115) We consider an example to illustrate the use of various cases of the weighted-residual method.
56
PRELIMINARIES
Example 2.7. Consider the differential equation [see Example 2.4 with Set 2 boundary conditions}: (2.116)
For a weighted-residual method, ¢o and ¢I should satisfy the following conditions: ¢o(O) = 0,
¢~(1) =
¢i(O)=O,
¢i(l) = 0
1
(satisfy actual boundary conditions) (satisfy homogeneous form of the specified boundary conditions)
For a choice of algebraic polynomials, we assume ¢o(x) = a + bx and use the two conditions on ¢o to determine the constants a and b. We obtain ¢o(x)=x
(
Since there are two homogeneous conditions, we must assume at least a threeparameter polynomial to obtain a nonzero function, ¢. = ,a + bx + cx 2 • Using the conditions on l/Ji> we obtain
l/JI = -cx(2-x) The constant C can be set equal to unity because it will be absorbed into the parameter CI' For l/J2' we can assume one of the forms
¢2 = a + bx + dx" or l/J2 = a + cx 2 + dx" with d *0; ¢2 does not contain all-order terms in either case, but the approximate solution is complete because {¢I> l/J2} contains all terms up to degree three. For the first choice of ¢2, we obtain
~lt
l/J2 =x 2 ( l - jx)
The residual in the approximation of the equation is R= -
(0 + ~ CI ZI) -(¢o + ~ Ct¢l) + x2
= c l (2 - a +x 2 )
+ c2(-2 +4x -x 2+ h~) -x +x 2
(2.117)
We next consider various methods. The Petrov-Galerkin method. Let the weight functions be
WI = X,
1JI2 =
x2
(2.118)
Then
or (2.119)
Solving for CI, we obtain
Ct
UPG
= ~ and
C2
= -
Jk; the solution
= 1.3020S3x - 0.173021x
2
-
becomes
O.014663x 3
(2.120)
INTEGRAL FORMULATIONS AND VARIATIONAL METHODS
The Galerkin method. Taking
f
57
1/', = 1>" we have
x(2.- x)R dx
f
= 0,
x
2(1
- h)R dx = 0
or (2.121)
Hence, the solution becomes (with Uo
Cl
= 1.2894x -
The least-squares method, Taking
f
= 4~'
4~)'
C2 =
0.1398x
2
O.0032Sx 3
-
(2.122)
1/', = oR / ac" we have
(2- 2x +x 2 )R dx =0,
-
f
(2-4x +x 2
-h
3
)R dx = 0
or
(2.123) The least-squares approximation of (2.116) is given by (with ULS
= 1.2601x - 0.08017x
2
-
C1 =
0.0332Sx
3
~~ and
C2
= I~O)
(2.124)
The collocation method. Choosing the points x = ~ and x = ~ as the collocation points, we evaluate the residuals at these points and set them equal to zero:
RG)=O:
117cl - 6lc 2 = 18
R(~) = 0:
90c1 + 34c2 = 18
The solution is given by (c, = ~:ill and lie =
C2 =
(2.125)
i:s)
1.3612x - 0.12927x 2 - 0.03422'(3
(2.126)
The four approximate solutions are compared in Table 2.3 with the exact solution (2.84). For this problem, the Petrov-Galerkin method gives the most accurate solution.
2.5 SUMMARY In this chapter, we have studied two major topics that are of immediate interest in the study of the finite element method in the forthcoming chapters: 1. Weighted-integral and weak formulations of differential equations 2. Solution of boundary value problems by the Rayleigh-Ritz and weightedresidual (e.g., the Galerkin, least-squares, and collocation) methods The weighted-integral statements are required in order to generate the necessary and sufficient number of algebraic equations to solve for the parameters Ci in the approximate solution, Thus the algebraic equations are equivalent to minimizing the error introduced in the approximation of the differential equation in a weighted-integral sense. In studying the two topics, a three-step procedure for developing the weak form of a differential equation is presented, and procedures for obtaining
58
PRELIMINARIES
TABLE 2.3
Comparison of the Rayleigh-Ritz, weighted-residual, and exact solutions of the boundary value problem in (2.116) Solution, u (x)t uRn
UF C
Uc
U LS
X
Uexact
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
0.ססOO
0.ססOO
0.ססOO
0.ססOO
0.ססOO
0.ססOO
0.1262 0.2513 0.3742 0.4943 0.6112 0.7244 0.8340 0.9402 1.0433 1.1442
0.1280 0.2529 0.3749 0.4938 0.6097 0.7226 0.8324 0.9393 1.0431 1.1439
0.1285 0.2536 0.3754 0.4941 0.6096 0.7221 0.8317 0.9384 1.0424 1.1437
0.1275 0.2523 0.3741 0.4932 0.6093 0.7226 0.8329 0.9404 1.0448 1.1463
0.1252 0.2485 0.3699 0.4891 0.6058 0.7200 0.8314 0.9397 1.0449 1.1467
0.1348 0.2668 0.3958 0.5216 0.6440 0.7628 0.8778 0.9887 1.0954 1.1977
lie
/
t Subscripts are as follows: RR, Rayleigh-Ritz; PO, Petrov-Galerkin; G, Galerkin; LS, least-squares; C, collocation.
algebraic equations in terms of the unknown parameters of the approximate solution are developed. These topics are immediately applicable in the finite element method, which is a piecewise (or element-wise) application of a variational method. Thus, the material covered in this chapter constitutes the heart of the finite element method. A few remarks are in order on the variational methods of approximation studied here. The traditional variational methods (e.g., the Rayleigh-Ritz, Galerkin, and least-squares) presented in Section 2.4 provide a simple means of finding spatially continuous approximate solutions to physical problems. The approximate solutions obtained via these methods are. continuous functions of position in the domain. The main disadvantage, from the practical point of view, of variational methods that prevents them from being competitive with traditional finite difference methods is the difficulty encountered in selecting the approximation functions. Apart from the properties the functions are required to satisfy, there exists no unique procedure for constructing them. The selection process becomes more difficult or even impossible when the domain is geometrically complex and/or the boundary conditions are complicated. From the preceding discussion, it is apparent that the variational methods can provide a powerful means of finding approximate solutions-provided one can find a way to systematically construct approximation functions, for almost any geometry, that depend only on the differential equation being solved and not on the boundary conditions of the problem. This property enables one to develop a computer program for a particular class of problem (each problem in the class differs from the others only in the data), that is, a general-purpose
INTEGRAL FORMULATIONS AND VARIATIONAL METHODS
S9
computer program: Since the functions must be constructed for a geometrically complex domain, it seems that (recall the discussion of the method of composites for the determination of the center of mass of an irregular shape from Chapter 1) the region must be represented (or approximated if required) as an assemblage of simple geometric shapes for which the construction of approximation functions becomes simpler. The finite element method to be discussed in the forthcoming chapters is based on these ideas. In this method, a given domain is represented (discretized) by a collection of geometrically simple shapes (elements), and on each element of the collection, the governing equation is formulated using anyone of the variational methods. The approximation functions are systematically generated for each (typical) element using the essential boundary conditions, The elements are connected together by imposing the continuity of the dependent variables across the interelement boundaries. The remaining chapters of this book are devoted to the introduction of the finite element method and its use in the analysis of several model differential equations representing mathematical models for many physical processes.
PROBLEMS Sections 2.1-2.3 In Problems 2.1-2.9, construct the weak forms and, whenever possible, quadratic functionals. 2.1. One-dimensional heat conduction/convection:
- ~ (a;:;) + cu = q du + f3(u [a dx
u(O) = Uo,
where a and q are functions of x, an9 2.2. Beam on elastic foundation: 2
2
/3,
d2 w
W
u~)] I
x~l
= b dX2 =
<x < 1 = Qo
at x = 1
c, u.s, and Qo are constants.
w)+ kw = f
d ( b ddx dx 2 2
for 0
for 0 < x < L
0 at x
= 0, L
where b = EI and f are functions of x, and k is a constant (foundation modulus). 2.3. Longitudinal deformation of a bar with an end spring:
.- ~ (a;:;) =q U(O) = 0, where a and q are functions
of~,
for
O<x
(a: + kU)!X-L =p and k and P are constants.
60
PRELIMINARIES
2.4. The Timoshenko (shear-defonnable) beam theory:
.
-~[GKA(:+W)]=f
}
for O<x
- ~ (EIZ) +GKA(: +w) =0 dW) I = (EI dW) I w(O) = weLl = 0, (El dx dx x~o
x-L
=0
where G, K, A, E, I, and f are functions of x. 2.5. A nonlinear equation: d ( U dx dU) - dx
+f
= 0 for 0 < x
<1
u(l) = Vi
(::;) Ix=o = 0,
2.6. The Euler-Bemouill-von Karman nonlinear theory of beams:
d {[dU - dx a dx +"21 (dW)2]} dx = q for 0 < x < L 2W)
s: (b d _!£ { dw [dU ! (dW)2]} = f dx? dx' dx a dx dx + 2 dx U
= w = 0 at x = 0, L;
( dW) dx
I
-0'
x=o -
,
where a, b, q, and f are functions of x, and M o is a constant. Here u denotes the axial displacement and w the transverse deflection of the beam. 2.7. A second-order equation:
U
=
Uo
on I',
OU) (OU au) au ( an ax + a12 ay n, + a21 ax + an ay fly
= to
on [2
where all = ajl (i, j = 1, 2) and f are given functions of position (x, y) in a two-dimensional domain Q, and Uo and to are known functions on portions I', and r 2 of the boundary I': r 1 +r 2 = r. 2.8. Napier-Stokes equations for two-dimensional flow of viscous, incompressible fluids (primitive variables): U
au au ox + v ay =
u au + v av = ax oy au ax
au
(eru errl) ox2+ oy2 2v) _! ap + v(erv2 + a pay ax oy2
-+-=0
ay
1 sr
-p ax + v
in
Q
(i)
INTEGRAL FORMULATIONS AND VARIATIONAL METIIODS
61 (ii)
v( axau n + ayau n ) _!p Pn = f} x
x
Y
x
a a 1 v(--.!!.n +~n )--pn ax x ay Y p Y =rY
on
r,
(iii)
2.9. Two-dimensional flow of viscous, incompressible fluids (stream function-vorticity formulation): 2
-V 1jJ -?: = OJ
-V 2 ?: + a1jJa~_ a1/Ja~=O
ax ay ay ax
in
Q
Assume that all essential boundary conditions are specified to be zero. Section 2.4 2.10. Compute the coefficient matrix and the right-hand side of the N-parameter Rayleigh-Ritz approximation of the equation
dU]
d [ (1 + x) dx = 0 for 0 < x < 1 - dx
!leO) == 0,
!l(1) = 1
Use algebraic polynomials for the approximation functions. Specialize your result for N = 2 and compute the Ritz coefficients. Answer: C1 = ii1 and C 2 = - if1' 2.11. Use trigonometric functions for the two-parameter approximation of the equation in Problem 2.10, and obtain the Ritz coefficients. 2.12. A steel rod of diameter D = 2 em, length L = 25 em, and thermal conductivity k = 50 W m" °C- I is exposed to ambient air at T~ = 20°C with a heat-transfer coefficient {J = 64W m~2oC~I. Given that the left end of the rod is maintained at a temperature of To = 120°C and the other end is exposed to the ambient temperature, determine the temperature distribution in the rod using a twoparameter Rayleigh-Ritz approximation with polynomial approximation functions. The equation governing the problem is given by (see Problem 2.1)
e
d2 - dx 2 + c8 =0 for O<x <25 em where 8 = T -
T~,
T is the temperature, and c is given by fiP
C
(JnD
4{J
= Ak = ~nD2k = kD = 256 m
-2
P being the perimeter and A the cross-sectional area of the rod. The boundary conditions are
8(0) = T(O) -IiJ = 100°C,
Answer: For L = 0.25 m, -1019.469, C2 = 2508.217.
(k:: + ee) IX~L
4>0 = 100, 4>i = Xi,
=
0
the Ritz coefficients are
C1 =
62
PRELIMINARIES
2.13. Set up the equations for the N-parameter Rayleigh-Ritz approximation of the following equations associated with a simply supported beam and subjected to a uniform transverse load I = 10: 2
2
W) Ja
d ( EI ddx = dx 2 2 W
2.14. 2.15. 2.16.
2.17.
d2w
= EI dx 2
=
for 0 < x < L
0 at x
= 0, L
(a) Use algebraic polynomials. (b) Use trigonometric functions. Compare the two-parameter Rayleigh-Ritz solutions with the exact solution. Answer: (a) Ct = -7«L, C2= -24' (<<= tWoL). Repeat Problem 2.13 for 1=10 sin (nxl L). Repeat Problem 2.13 for 1= Foo(x - !L), where o(x) is the Dirac delta function (i.e., a point load flo is applied at the center of the beam). Develop the N-parameter Rayleigh-Ritz solution for a simply supported beam under uniform transverse load using Timoshenko beam theory. The governing equations are given in Problem 2.4. Use trigonometric functions to approximate wand !.p. Solve the Poisson equation governing heat conduction in a square region (see Example 2.6):
-kV2T =qo T = 0 on sides x = 1 and y
aT.
an = 0 (msulated)
=1
.
on Sides x = 0 and y
=0
using a one-parameter Rayleigh-Ritz approximation of the form Tt(x, y) = ct(1- x 2)(1- y2) Answer:
5qo
CI
= 16k'
2.18. Solve Problem 2.12 using a two-parameter Galerkin approximation with algebraic approximation functions. 2.19. Consider the (Neumann) boundary value problem
d2 u
- dx 2 =1 for O<x
Find a two-parameter Galerkin approximation of the problem using trigonometric approximation functions, when (a) 1= Jacos (nx/L) and (b) 1=10' Answer: (a) 1'; = cos (inxIL), Ct = loel:Jr2 , c/ = 0 for h(,1. 2.20. Find a one-parameter approximate solution of the nonlinear equation
_2U
d 2U
dx 2
+ (dU)2 =4 dx
for O<x <1
INTEGRAL FORMULATIONS AND VARIATIONAL METIlODS
63
subject to the boundary conditions u(O) '" 1 and u(l) = 0, and compare it with the exact solution ua=1-x 2 • Use (a) the Galerkin method, (b) the least-squares method, and (c) the Petrov-Galerkin method with weight function w'" 1. Answer: (a) (Ci)l '" 1, (c1h '" -2. 2.21. Give a one-parameter Galerkin solution of the equation
- V2 u '" 1 in
Q ('"
u =0
on
unit square)
r
Use (a) algebraic and (b) trigonometric approximation functions. What would be the one-parameter Rayleigh-Ritz solution of this problem? 16 1 Answer: (b) C;j=---""('2+ '2) (i,j odd) n IJ I J ¢/j = sin inx sin jxy 2.22. Repeat Problem 2.21 for an equilateral triangular domain. Hint: Use the product of equations of the lines representing the sides of the triangle for the approximation function.
Answer:
Cl =
-!.
2.23. Consider the differential equation d 2 11 - dx 2 = cos ttx
for 0 < x < 1
subject to the following three sets of boundary conditions: (1) u(O) = 0, 11(1) = 0 (2)
u(O) = 0,
(3)
(dll) I = 0' (dll) I dx ~=o dx
(:;) 1.. =1 = 0 = 0
z=1
Determine a three-parameter solution, with trigonometric functions, using (a) the Rayleigh-Ritz method, (b) the least-squares method, and (c) collocation at x = t t and t and compare with the exact solutions: 2 (1) lio = n- (cos nx + 2x - 1) 2 110 = n- (cos nx - 1) (2) 2 (3) 110 = n- cos nx
Answer: (1) c, =
4 st
3'(,2 I I -
1) .
REFERENCES FOR ADDITIONAL READING Variational formulations and methods
Becker, M.: The Principles and Applications of Variational Methods, MIT Press, Cambridge, MA 1964. Blot, M. A.: Variational Principles in Heat Transfer, Clarendon, London, 1972. Finlayson, B. A.: The Method of Weighted Residuals and Variational Principles, Academic Press, New York, 1972. Forray, M. J.: Variational Calculus in Science and Engineering, McGraw-Hill, New York, 1968. Hildebrand, F. B.: Methods of Applied Mathematics, 2d ed., Prentice-Hall, New York, 1965.
64
PRELIMINARIES
Lanczos, c.: The Variational Principles of Mechanics, The University of Toronto Press, Toronto, 1964. Langhaar, H. L.: Energy Methods in Applied Mechanics, John Wiley, New York, 1962. Leipholz, H.: Direct Variational Methods and Eigenvalue Problems in Engineering, Noordhoff, Leyden, 1977. Lippmann, H.: Extremum and Variational Principles in Mechanics, Springer-Verlag, New York, 1972. Mikhlin, S. G.: Variational Methods in Mathematical Physics, Pergamon Press, New York, 1964. - - - : The Numerical Performance of Variational Methods, Wolters-Noordhoff, Groningen, 1971. Oden, J. T., and J. N. Reddy: Variational Methods in Theoretical Mechanics, Springer-Verlag, New York, 1976; 2d ed., 1983. Reddy, J. N.: Energy and Variational Methods in Applied Mechanics, John Wiley, New York, 1984. - - - : Applied Functional Analysis and Variational Methods in Engineering, McGraw-Hill, New York, 1986; Krieger, Melbourne, FL, 1991. - - - and M. L. Rasmussen: Advanced Engineering Analysis, John Wiley, New York, 1982; Krieger, Melbourne, FL, 1990. Rektorys, K.: Variational Metnods in Mathematics, Science and Etp:ineering, Reidel, Boston, 1977. Schechter, R. S.: The Variatioll1l Methods in Engineering, McGraw-Hili, New York, 1967. Washizu, K.: Variational Methods in Elasticity and Plasticity, 2d ed., Pergamon Press, New York, 1975; 3d ed., 1982. Weinstock, R.: Calculus of Variations with Applications to Physics and Engineering, McGraw-Hili, New York, 1952.
PART
2 FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
6S
I'
CHAPTER
3 SECOND-ORDER BOUNDARY VALUE PROBLEMS
3.1 INTRODUCTION The traditional variational methods (e.g., the Rayleigh-Ritz, Galerkin, and least-squares) described in Chapter 2 cease to be effective because of a serious shortcoming, namely, the difficulty in constructing the approximation functions. The approximation functions, apart from satisfying continuity, linear independence, completeness, and essential boundary conditions, are arbitrary; the selection becomes even more difficult when the given domain is geometrically complex. Since the quality of the approximation is directly affected by the choice of the approximation functions, it is discomforting to know that there exists no systematic procedure to construct them. Because of this shortcoming, despite the simplicity in obtaining approximate solutions; the traditional variational methods of approximation were never regarded as competitive computationally when compared with traditional finite difference schemes. Ideally speaking, an effective computational method should have the following features:
1. It should have a sound mathematical as well as physical basis (Le., yield convergent solutions and be applicable to practical problems). 2. It should not have limitations with regard to the geometry, the physical composition of the domain, or the nature of the "loading."
67
68
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
3. The formulative procedure should be independent of the shape of the domain and the specific form of the boundary conditions. 4. The method should be flexible enough to allow different degrees of approximation without reformulating the entire problem. 5. It should involve a systematic procedure that can be automated for use on digital computers. The finite element method is a technique in which a given domain is represented as a collection of simple domains, called finite elements, so that it is possible to systematically construct the approximation functions needed in a variational or weighted-residual approximation of the solution of a problem over each element. Thus, the finite element method differs from the traditional Rayleigh-Ritz, Galerkin, least-squares, collocation, and' other weightedresidual methods in the manner in which the approximation functions are constructed. But this difference is responsible for the .following three basic features of the finite element method:
1. Division of whole into parts, which allows representation of geometrically complex domains as collections of geometrically simple domains that enable a systematic derivation of the approximation functions. 2. Derivation of approximation functions over each element; the approximation functions are often algebraic polynomials that are derived using interpolation theory. 3. Assembly of elements, which is based on continuity of the solution and balance of internal fluxes; the assemblage of elements represents a discrete analog of the original domain, and the associated system of algebraic equations represents a numerical analog of the mathematical model of the problem being analyzed. These three features, which constitute three major steps of the fiinite element formulation, are closely related. The geometry of the elements used to represent the domain of a problem should be such that the approximation functions can be uniquely derived. The approximation functions depend not only on the geometry but also on the number and location of points, called nodes, in the element and the quantities to be interpolated (e.g., solution, or solution and its derivatives). Once the approximation functions have been derived, the procedure to obtain algebraic relations among the unknown coefficients (which give the values of the solution at the nodes of the finite elements) is exactly the same as that used in the Rayleigh-Ritz and weighted-residual methods. Hence, a careful reading of Chapter 2 makes the present reading easier. The finite element method not only overcomes the shortcomings of the traditional variational methods, but it is also endowed with the features of an
SECOND·ORDER BOUNDARY VALUE PROBLEMS
69
TABLE 3.1
Steps involved in the finite element analysis of a typical problem 1. Discretization (or representation) of the given domain into a collection of preselected finite elements. (This step can be postponed, until after the finite element formulation of the equation is completed.) a. Construct the finite element mesh of preselected elements. b. Number the nodes and elements. c. Generate the geometric properties (e.g., coordinates and cross-sectional areas) needed for the problem. 2. Derivation of element equations for all typical elements in the mesh. a. Construct the variational formulation of the given differential equation over the typical element. b. Assume .that a typical dependent variable u is of the form
and substitute it into Step 2a to obtain element equations in the form [K<]{u'} = {P}
c. Derive or select, if already available in the literature, element interpolation functions 1J'i and compute the element matrices. 3. Assembly of element equations to obtain the equations of the whole problem. a. Identify the interelernent continuity conditions among the primary variables (relationship between the local degrees of freedom and the global degrees of freedom-s-connectivity of elements) by relating element nodes to global nodes. b. Identify the "equilibrium" conditions among the secondary variables (relationship between the local source or force components and the globally specified source components). c. Assemble element equations using Steps 3a and 3b. 4. Imposition of the boundary conditions of the problem. a. Identify the specified global primary degrees of freedom. b. Identify the specified global secondary degrees of freedom (if not already done in Step 3b). 5. Solution of the assembled equations. 6. Postprocessing of the results. a. Compute the gradient of the solution or other desired quantities from the primary degrees of freedom computed in Step 5. b. Represent the results in tabular and/or graphical form.
effective computational technique. The basic steps involved in the finite element analysis of a problem are given in Table 3.1. In the sections that follow, our objective will be to introduce many fundamental ideas that form the basis of the finite element method. In doing so, we postpone some issues of practical and theoretical complexity to later sections of this chapter and to Chapters 4-14. The basic steps of a finite element analysis are introduced via a model second-order differential equation, which is representative of many one-dimensional systems.
70
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
3.2 BASIC STEPS OF THE FINITE ELEMENT ANALYSIS 3.2.1 Model Boundary Value Problem Consider the problem of finding the function u(x) that satisfies the differential equation
- dx~ (a dU) + cu - q = 0 dx
for 0 <
x< L
(3.1)
and the boundary conditions
U(O)
=
Uo,
dU)! =Qo (adx x=L
I
(3.2)
where a = a(x), c = c(x), q = q(x), uo, arid Qo are the data (i.e., known quantities) of the problem. Equation (3.1) arises in connection with the analytical description of many physical processes. For example, conduction and convection heat transfer in a plane wall or fin (I-D heat transfer), flow through channels and pipes, transverse deflection of cables, axial deformation of bars (see Fig. 3.1a), and many other physical processes are described by (3.1). Table 3.2 contains a list of several field problems described by (3.1)
q(x)
du dx
a-=Qo
u = uo=O (b)
(i)2@ .... e0 e+1.. @ N+ l Node number
r
"-Element number (c)
FIGURE 3.1 Finite element discretization of a one-dimensional domain: (a) physical problem; (b) mathematical idealization; (c) finite element discretization.
TABLE 3.2
Some examples of the second-order equations in one dimension
d( dU)
- dx a dx = q
for 0 < x < L
Essential boundary condition: ulx~o= uo. Natural boundary condition: (a du/dx)lx=L = Qo Field
Primary variable u
a
1. Transverse deflection of a cable
Transverse deflection
2. Axial deformation of a bar
Source term q
Secondary variable Qo
Tension in cable
Distributed transverse load
Axial force
Longitudinal displacement
EA (E:= modulus, A = cross-sectional area)
Axial force
3. Heat transfer
Temperature
Thermal conductivity
Heat
4. Row through pipes
Hydrostatic pressure
:rcD / 1281L (D = diameter, 1L = viscosity)
Friction or contact force on surface of bar Heat generation Row source (generally zero)
s. Laminar incompressible flow
Velocity
Viscosity
Pressure gradient
Axial stress
Fluid flux Charge density
Row (seepage)
4
Flow rate
through a channel under constant pressure gradient 6. Row through porous media 7. Electrostatics
~o ~
'"o t ll
Fluid head Electrostatic potential
Coefficient of permeability Dielectric constant
Electric flux
c z o
;l>
~
s>= ttl
~
~
ri"l ;;::
'" ~
72
FINITE ELEMENT ANALYSIS OF ONE·DlMENSIONAL PROBLEMS
when c(x) = O. The mathematical structure common to apparently different fields is brought out in this table. Thus, if we can develop a numerical procedure by which (3.1) can be solved for all possible boundary conditions, the procedure can be used to solve all field problems listed in Table 3.2, as well as many others. This fact provides us with the motivation to use (3.1) as the model second-order equation in one dimension. A step-by-step procedure (see Table 3.1) for the formulation and solution of (3.1) by the finite element method is presented next.
3.2.2 Discretization of the Domain The domain of the problem in the present case consists of all points between x = 0 and x = L: Q = (0, L); see Fig. 3.1(b). The domain Q is divided into a located between set of line elements, a typical element being of length he and / points A and B. The collection of such elements is called the finite element mesh of the domain (see Fig. 3.1c). The reason for dividing the domain into finite elements is twofold: first, to represent the geometry of the domain; and, second, to approximate the solution over each element of the mesh in order to better represent the solution over the entire domain. Approximation of the domain in the present case is not a concern, since it is a straight line. If the domain is a curve then approximation by a set of straight or curved line elements is necessary to represent it. Approximation of the solution over each element of the mesh is simpler than its approximation over the entire domain. Recall that in the traditional variational methods, the solution is required to satisfy the boundary conditions of the problem. This places severe restrictions on the choice of approximation functions, especially when discontinuities exist in the geometry, material properties, and/or loading of the problem (see Chapter 2 for details). To connect the elements and impose continuity of the solution at nodes common to elements, we identify the endpoints of each line element as the element nodes. Depending on the degree of polynomial approximation used to represent the solution, additional nodes may be identified inside the element. The nodes play the role of interpolation points, as will be seen shortly, in constructing the approximation functions over an element. The number of elements used in a problem depends mainly on the element type and accuracy desired. Whenever a problem is solved by the finite element method for the first time, one is required to investigate the convergence characteristics of the finite element approximation by gradually refining the mesh (i.e., increasing the number of elements) and comparing the solution with those obtained by higher-order elements. The order of an element refers to the degree of polynomial used to represent the solution over the element.
3.2.3 Derivation of Element Equations The derivation of finite element equations, i.e., algebraic equations that relate the primary variables to the secondary variables at the nodes of the elements,
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
73
involves three steps: 1. Construct the weighted-residual or weak form of the differential equation. 2. Assume the form of the approximate solution over a typical finite element. 3. Derive the finite element equations by substituting the approximate solution into the weighted-residual or weak form. A typical element Qe = (XA' XB), whose endpoints have the coordinates x = XA and x = XB, is isolated from the mesh (see Fig. 3.2a). We seek an approximate solution to the governing differential equation over the element, using the Rayleigh-Ritz method discussed in Chapter 2. In principle, any method that allows the derivation of necessary algebraic relations among the nodal values of the dependent variable can be used. In this book we develop the algebraic equations using the Rayleigh-Ritz method, which is based on the weak form of the differential equation. The equations resulting from the application of a variational method are relations between the primary variables (i.e., those involved in the specification of the essential boundary conditions) and the secondary variables (i.e., those involved in the specification of the natural boundary conditions). The three steps in the derivation of finite element equations of a typical element of the mesh are discussed next. STEP1: WEAK FORM. In the finite element method, we seek an approximate solution to (3.1) over each finite element. The polynomial approximation of
x= 0
x=
he
(a)
U(XA) =
uf
Qi=-(a ~)Iz=z~~---
74
FINITE. E.LEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
the solution within a typical finite element
Qe
is of the form
11
ir
L uj1jJj(x)
=:
(3.3)
j=l
where llj are the values of the solution at the nodes of the finite element and 1jJj are the approximation functions over the element. The coefficients uJ are determined such that (3.1) is satisfied in a weighted-integral sense. As discussed in Chapter 2 (which should be consulted for additional details), the necessary and sufficient number of algebraic relations among the uJ can be obtained by recasting the differential equation (3.1) in a weighted-integral form:
o =:
X8
1 XA
IV [ -
d(a -dU) + ell dx
~
dx
1
q dx
(3.4)
where w(x) denotes the weight function and Qe =: (XA, xs) is the domain of a typical element (see Fig. 3.2a). For u = U" and each independent choice of w, we obtain an independent algebraic equation relating all uJ of the element. A total of n independent equations are required to solve for n values uj. When w is selected to be 1jJ'i and (3.4) is used to obtain the ith equation of the required n equations, the resulting finite element model (Le., system of algebraic equations among the nodal values) is termed the Galerkin finite element model. Since (3.4) contains the second derivative of U", the approximation functions 1jJj must be twice differentiable. In addition, if the secondary variables are to be included in the model, 1jJ'I must be at least cubic. Similar arguments apply for cases of the weighted-residual methods discussed in Chapter 2. For additional details of the weighted residual finite element models, see Reddy (1986) and Chapter 14. To weaken the continuity required of the functions 1jJJ(x), we trade the differentiation in (3.4) from u to w such that both u~nd ware differentiated equally, once each in the present case. The resulting integral form is termed the weak form of (3.1). This form is not only equivalent to (3.1) but it also contains the natural boundary conditions of the problem. The three-step procedure of constructing the weak form of (3.1) was presented in Chapter 2, and is revisited in the next few paragraphs. The first step is to multiply the governing differential equation with a weight function wand integrate over a typical element. The second step is to trade differentiation from U to w, using integration by parts. This is achieved as follows. Consider the identity -w[!!-(a dU)] = -!!-(wa dU) dx dx dx dx
+ a dw du dx dx
(3.5a)
which is simply the product rule of differentiation applied to the product of two functions, a dul dx and w. Integrating this identity over the element domain,
SECOND-ORDER BOUNDARY VALUE PROBLEMS
75
we obtain
dU)J dx=- jXB -d (dU) dw du - XBw [d - ( awa- dx+ jXB a--dx jx.. dx dx XA dx dx XA dx dx XB dUJXB + dw du = - [ waa--dx dx XA XA dx dx
i
substituting (3.5b) into (3.4), we arrive at the result [cf. (2.34)] XB ( a -dw -du + cwu - wq) dx - wadUJXB 0= XA dx dx dx XA
l
i
(3.5b)
(3.6)
The third and last step is to identify the primary and secondary variables of the variational (or weak) form. This requires us to classify the boundary conditions of each differential equation into essential (or geometric) and natural (or force) boundary conditions. The classification is made uniquely by examining the boundary term appearing in the weak form (3.6),
dUJXB [ wadx XA As a rule, the coefficient of the weight function in the boundary expression is called the secondary variable, and its specification constitutes the natural boundary condition. The dependent unknown in the same form as the weight function in the boundary expression is termed the primary variable, and its specification constitutes the essential boundary condition. For the model equation at hand, the primary and secondary variables are u
and
a
du 53 Q dx
In writing the final form of the variational (or weak) statement, we assume that all boundary conditions at the element level are of the natural type, so that they can be included in the variational statement: (3.7)
The primary and secondary variables at the nodes are shown on the typical element in Fig. 3.2(b). Students of engineering recognize that this figure is the free-body diagram of the typical element, with its internal forces (i.e., reactions) Q1 and Q2' The quantities Q1 53 QA and Q~ 53 QB have the meaning of forces in the axial deformation of bars; Q'l is a compressive force while Q2 is a tensile force (algebraically, both are positive, as shown in Fig. 3.2b). For heat conduction problems Q'l and Q2 denote the heats conducting into the body. The arrow on the second node should be reversed for heat transfer problems, because the Fourier heat conduction law relating the gradient of temperature to the heat flux contains a negative sign (implying heat flows from
76
FINnE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
hot to cold). For additional details on heat transfer, see Section 3.3.1. With the notation in (3.7), the variational form becomes 0=
{B (a ~~ +
CWU
~ wq ) dx -
W(XA)QA - W(XB)QB
(3.8)
This completes the three-step procedure of constructing the weak form. The weak form in (3.8) contains two types of expressions: those containing both wand u; and those containing only w. We group the former type into a single expression, called the bilinear form: B(w, u)""
f
XB (
XA
dw du
)
a dx dx +cwu dx
(3.9a)
We denote all terms containing only w (but not u) by lew), called the linear form: lew)
=
f8
wq dx
+ W(XA)QA + W(XB)QB
(3.9b)
XA
The variational statement (3.8) can now be expressed as B(w, It) = lew)
(3.10)
which is called the variational problem associated with (3.1). As will be seen later, the bilinear form results directly in the element coefficient matrix, and the linear form leads to the right-hand-side column vector of the finite element equations. Those who have a background in applied mathematics or solid and structural mechanics will appreciate the fact that the variational problem (3.10) is nothing but the statement of the minimization of a quadratic functional or of total potential energy l(u):
M=O where (j is the variational symbol (see Section 2.3.3) and 1 is the quadratic functional defined by [see (2.43b) 1 l(u):= ~B(u, u) -leu)
(3.11)
Equation (3.11) holds only when leu) is linear in u, and B(w, u) is bilinear and symmetric in u and w, H(w, u)
= Biu,
w)
When (3.1) describes the axial deformation of a bar, ~B(u, u) represents the elastic strain energy stored in the bar, leu) represents the work done by applied forces, and leu) represents the total potential energy of the bar element. It is important to note that finite element formulations do not require the existence of the functional leu). What is needed is a way to obtain exactly algebraic equations among the of (3.3) such that the governing differential equation is satisfied over the element in some meaningful way. In the present
n
u;
SECOND·ORDER BOUNDARY VALUE PROBLEMS
77
study, we use the weak form of the differential equation, i.e., (3.8) or (3.10), and the Rayleigh-Ritz method to obtain the n algebraic equations among the nodal variables uf and Qf. STEP 2: APPROXIMATION OF THE SOLUTION. Recall that the weak form
over an element is equivalent to the differential equation and the natural boundary conditions of the element. The essential boundary conditions of the element, say U(XA) = UA and U(XB) = UB, are not included in the weak form. Hence, they must be included in the approximation of u(x). Thus, the approximation of u(x) must be an interpolant, i.e., must be equal to llA at XA and UB at XB' Since the weak form contains the first-order derivatives of u, any continuous function would be a candidate for the finite element solution. Let us denote the finite element solution over element Qe = (XA' x B ) by U". Then we seek the approximate solution U" in the form of algebraic polynomials. The reason for this choice is twofold: first, the interpolation theory of numerical analysis can be used to develop the approximation functions systematically over an element; second, numerical evaluation of integrals of algebraic polynomials is easy. As in variational methods, the approximation solution U" must fulfill certain requirements in order that it be convergent to the actual solution U as the number of elements is increased. These are: 1. The approximate solution should be continuous over the element, and differentiable, as required by the weak form. 2. It should be a complete polynomial, i.e., include all lower-order terms up to the highest order used. 3. It should be an interpolant of the primary variables at the nodes of the finite element.
(3.12)
The reason for the first requirement is obvious; it ensures a nonzero coefficient matrix. The second requirement is necessary in order to capture all possible states, i.e., constant, linear and so on, of the actual solution. For example, if a linear polynomial without the constant term is used to represent the temperature distribution in a one-dimensional system, the approximate solution can never be able to represent a uniform state of temperature in the element. The third requirement is necessary in order to satisfy the essential boundary conditions of the element and to enforce continuity of the primary variables at points common to several elements. For the variational statement at hand, the minimum polynomial order is linear. A complete linear po.lynomial is of the form U" =a -s- bx
(3.13)
where a and b are constants. This expression meets the first two requirements in (3.12). To satisfy the third
Ue(XA)
= uL
Ue(XB)
= u~
(3.14)
78
FINITE ELEMENT ANALYSIS OF ONE.DIMENSIONAL PROBLEMS
we express the constants a and b in (3.13) in terms of (3.14) provide two relations between (a, b) and (ut u2): u~ = a
u~
and ui. Equations
+ bXA
(3.l5a)
u2=a +bXB or, in matrix form,
(3. 15b)
Inverting (3.15b) by Cramer's rule, we obtain
-Iu'l
a-
e
Uz
XAI/il1
XA[ XB
XB
- 11 uUi'lI/111
bwhere he =
1
XB -XA
XAI XB
I( U e1XB =h-
e )_l( e e UZXA =h- al u l e e l '
~.e e) + uzUz
1(
"
(3.l5c)
e e fJezllze) e e) E Sl(n = - llz-lll - fJ1 Ul+ he he (
and
a1=(-lyxJ,
Pi=(-ly;
xl=xA,
Xi=XB
(3. 15d)
In (3.15d), i and j permute in a natural order: if i = 1 then
j = 2;
if i = 2 then
j = 1
The ai and Pi are introduced to show the typical form of the interpolation functions. Substitution of (3.l5c) into (3.13) yields
Ue(x) =
1
h [( a'lll'l + aZui) + (fJ'fu'l + fJiu2)x] e
=
1
1
h (a~ + fJ~x)u~ + h (a2 + P;X )ui "
e .
That is, 2
U"(x) = 1jJ1(x)u'l + 1jJi(x)ui =
2, 1jJj(x)uJ
(3.16a)
j=1
where
1 (" fJ") XB - X , 1JJ1e() X = -h at + IX = e XB -XA (3.16b)
which are called the linear finite element approximation functions. For the linear interpolation (3.16), we label the endpoints as nodes 1 and 2, and rename the secondary variables as (3.17)
SECOND-ORDER BOUNDARY VALUE PROBLEMS
79
The global node numbers for elements connected in series can be related to the element node numbers. For linear elements, the global node numbers of element ~y are e and e -1:- I, and the global coordinates of the element nodes are x, and X e+l (i.e., XA = x, and ~B = X e+l)' Note that the element interpolation functions 'lJ1f in (3.16b) are expressed in terms of the global coordinate x (i.e., the coordinate of the problem), but they are defined only on the element domain ge = (XAJ XB) = (xe J Xe+l)' If we choose to express them in terms of a coordinate i with origin fixed at node 1 of the element, 'lJ1f of (3.16b) take the forms 'lJ1~(i)
.e
=-,;e
(3.18)
The coordinate i is termed the local or element coordinate. The functions 'lJ1f are shown in Fig. 3.3(a). Note that 'lJ11 is equal to 1 at node 1 and zero at node 2, and 'lJ1~ is equal to 1 at node 2 and zero at node 1. These properties of 'lJ1f are known as the interpolation properties. The global interpolation functions I can be defined in terms of the element interpolation functions corresponding to the global node I (see Fig.
,
/ /
/
V /, , ,, /
f-----x.
e-l
;.
e+l
!--- x
,,'
e+2
h..--------l
.
I/!f = 1 - x/h.
I/!i
= x/h.
(a)
T~\ <1>[ // cI>[-1
1
~ 1
,
/
4."
•
/,
I-~-~~l
Global node numbers
e"N:l
Typical element
I/!i-l for Xl~l .;; x ~ XI { if11 for X[ ~ x ~ X1+1 (b)
FIGURE 3.3 (a) Local and (b) global interpolation functions for the two-node (linear) element (xA xB =x.+ 1) .
= Xo
80
FINITE ELEMENT ANALYSIS OF Orm·D1MENSIONAL PROBLEMS
3.3b). Since Ue(x) of (3.16a) is an interpolant of u(x) over the element QC, 1JJ1 are also called interpolation functions. Interpolation functions derived using the
dependent unknown-not its derivatives-at the nodes (i.e., interpolation functions with CO continuity) are called the Lagrange family of interpolation functions. When the dependent unknown and its derivatives at the nodes are used to derive the interpolation functions, the resulting interpolation functions are known as the Hermite family of interpolation functions (see the classical beam element in Chapter 4). Note that 1JJ1 are derived systematically; starting with an assumed degree of algebraic polynomial for the dependent unknown and determining the coefficients of the polynomial in terms of the primary degrees of freedom, we expressed the dependent variable as a linear combination of approximation functions and the primary nodal variables. The key in the procedure is to, select the number and the location of nodes in the element so that the geometry of the latter is uniquely defined. The number of nodes must be sufficient to allow the assumed degree of interpolation of the solution in terms of the primary variables. For a linear polynomial approximation, two nodes with one primary unknown per node are sufficient to define the geometry of the element, provided the two nodes are the endpoints of the element. Since a quadratic polynomial is uniquely defined by three parameters, a total of three nodal points must be identified in the element. To define the geometry of the element, two of the nodes must be the endpoints of the element. The third can be identified inside the element. Returning to the linear approximation (3.13), which is recast as (3.16a), we note that the true solution is approximated over each element by a linear polynomial UC(x) (see Fig. 3.4a). The error in the approximation, E = u(x) - UC(x), can be reduced by either decreasing the element size h; or increasing the degree of the approximation (see Fig. 3Ab). A quadratic approximation is of the form
UC(x) = a + bx +cx 2
(3.19)
which requires three nodes in order to rewrite U in terms of the values of u(x) at the nodes. Two of the nodes are identified as the endpoints of the element to define the geometry, and the third node is taken interior to the element. In theory, the third node can be placed at any interior point. However, the midpoint of the element, being equidistant from the end nodes, is the best choice. Other choices (e.g., quarter-point) are dictated by special considerations (e.g., to have a certain degree of singularity in the derivative of the solution). Thus, we identify three nodes in the element of length he (see Fig. 3.5a) and rewrite Ue(x) in terms of the three nodal values, (ut ui, u;). We have C
u~
= UC(xD = a + bx~ + C(xi)2
ui = UC(xi) = a + bxi + C(xi)2 u; = UC(xD
=
a + bx; + c(x;f
(3.20a)
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
/I
81
_ - Exact solution
(x)
---- Six-linear-element _solution Three-linear-element solution ...7 ~/
"'/"
/'
//
4
2
1
5
6
7
(a)
!I
(x) ------ Quadratic-element solution
1
2
(b)
FIGURE 3.4 Refinements of finite element solutions; (a) mesh refinement using linear elements; (b) quadratic element solution using three elements.
or, in matrix form,
(X1f]{a} b
(x;? (X3?
(3.20b)
c
where x~ is the global coordinate of the ith node of the element ge. Inverting the above relations, we obtain
1 ~
e e
a = ----;; L.J oqu],
D 1
i=l
3
b = De ~ fifuf, C
1 ~
= De L.J 1=1
e e YiUi>
fif = (X;? - (Xk? Y~
= -(xi - xD,
(3.21)
82
FINITE ELEMENT ANALYSIS OF ONE· DIMENSIONAL PROBLEMS
1
2
¢
~.f
3
6
0
h.
~
(a)
/
1-2
L.
.-J ethelement
1he
r---J;o., i .. ----~ +1 " he+l
~(e
11+2
+
.. l)thelement
(c)
FIGURE 3.5 One-dimensional Lagrange quadratic element and its interpolation functions: (a) geometry of the element; (b) interpolation functions; (c) global interpolation functions corresponding to the quadratic interpolation functions. Here I denotes the global node number, e the element number, and i the element node number.
and (3.19) takes the form 3
U' (r) = tJ.'i(x )Ul + tJ.'Hx )u~ + tJ.'3(X )U3 =
2: tJ.'j(x )uj
(3.22)
}=1
where 1jJJ are the quadratic Lagrange interpolation functions, (3.23)
SECOND-ORDER BOUNDARY VALUE PROBLEMS
83
Here De denotes the determinant of the matrix in (3.20b), and ai, Pi, and ri are defined by (3.21). The subscripts used in (3.21) permute in a natural order: if i = 1 then j = 2 and k = 3
For example, a~,
P;,
if i = 2 then j
=3
and k = 1
if i = 3 then j
=1
and k = 2
rt are given by xt(xy2, P; = (Xr)2 -
(3.24)
and
ai = x3(xiY -
(xi?,
r~ =
x; - xi
The quadratic interpolation functions can be expressed in terms of a local coordinate X, with origin fixed at node 1, the left end of the element. The global coordinate x is related to the local coordinate .i by the relation
x =xi +x
(3.25)
where xi = XA is the global coordinate of the first node of the element Q,e. For a quadratic element with the interior node, node 2, located at x = ah e , we have
e(-) 1 X( .i) 1/J2 X = a(l- a) h 1- h e _ 1/Jix)=-
(3.26)
a.i ( 1--1 X)
(1-a)h
ah
where 0 < a' < 1 and xi = xi + oh.: For a' = -!, i.e., when node 2 is placed at the midpoint of the element, (3.26) becomes
(3.27)
Plots of the quadratic interpolation functions are given in Fig. 3.5(b). The function 1/Ji is equal to 1 at node i and zero at the other two nodes, but varies quadratically between the nodes. All Lagrange family of interpolation functions satisfy the following
84
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
properties, known as the interpolation properties: (1)
o
s, == {1
1jJ'[(xJ) =
if i -=1= • 'f' J.
I =: J
1
n
(2)
2: lPj(X)
=:
1,
hence
1'=1
n
d 1V
1'=1
dx
(3.28)
L -' =0
where n- 1 is the degree of interpolation polynomials and xJ is the global coordinate of node j in the element Qe. It can be verified that the linear interpolation functions in (3.16) and quadratic interpolation functions in (3.26) and (3.27) satisfy the two properties in (3.28). The first is a direct result of the requirement Ve(x'j) = u'j, and the second comes from the inclusion of a constant term in the polynomial. For example, if the approximation tr is to represent a uniform state of solution, U" = V'O = constant, then all uj = V o, and we have n
in =
2: U'Q1JJJ(x)
1'=1
or 1=
L" lPj(x) j=l
The interpolation properties (3.28) can be used to construct the Lagrange interpolation functions of any degree. For example, the quadratic interpolation functions (3.27) can be derived using property (1) of (3.28). Since 1JJHi) must vanish at nodes 2 and 3, i.e., at i = ih e and x = he> it is of the form
The constant C is to be determined such that 1 = ceO
-1he)(O-
he)
1JJl is equal to 1 at i = 0:
or
C = 2/h;
This gives
which is the same as in (3.27). The other two interpolation functions can be derived in a similar manner. Although a detailed discussion is presented here on how to construct the Lagrange interpolation functions for one-dimensional elements, they are readily available in books on numerical analysis, and their derivation is independent of the physics of the problem to be solved. Their derivation depends only on the geometry of the element and the number and location of the nodes. The number of nodes must be equal to the number of terms in the polynomial. Thus, the interpolation functions derived above are useful not only in the finite element approximation of the problem at hand, but also in all
SECOND-ORDER BOUNDARY VALUE PROBLEMS
85
problems that admit Lagrange interpolation of the variables, i.e., all problems for which the primary variables are the dependent unknowns of the governing equations. STEP 3: FINITE ELEMENT MODEL. The weak form (3.8) or (3.10) is
equivalent to the differential equation (3.1) over the element Qe and also contains the natural boundary conditions (3.7). Further, the finite element approximations (3.16a) or (3.22) satisfy the essential boundary conditions (3.14) of the element. The substitution of (3.16a) or (3.22) into (3.8) will give the necessary algebraic equations among the nodal values u1 and Q1 of the element Qe. In order to formulate the finite element model based on the weak form (3.8), it is not necessary to decide a priori the degree of approximation of U". The model can be developed for an arbitrary degree of interpolation: 11
U= U" =
2: uj1J1j(x)
(3.29)
j=1
where 1J17 are the Lagrange interpolation functions of degree n - 1. When n > 2, the weak form in (3.8) must be modified to include nonzero secondary variables, if any, at interior nodes: 0=
f
XB (
XA
du adw - -d +CWU ) dx dx x
L wqdx- ~ w(x1)Q1 X
8
"
(3.30)
,=1
XA
where x1 is the global coordinate of the ith node of element ge. If nodes 1 and n denote the endpoints of the element then Qi and Q~ represent the unknown
point sources, and all other Q1 are always known (i.e., applied point sources). Following the Rayleigh-Ritz procedure developed in Section 2.4.2, we substitute (3.29) for u and wi, 1J12' ... , 1J1~ for w into the weak form (3.30) to obtain n algebraic equations: 0=
( d1J1e) (" ) t("'8 [ a d1J1e dx j~ U} d/ + c1J1i ~1 U7tPj(X) 1
11
f)
("
)
] 11 tPiq dx - j~ 1J1i(xj)Qj
]
1J . 0= L:<8 [ a d1J1e d 2 ( ~ uJ ddx l + C1J12 ~ ujwj(x) -1J1iq dx - ~ 1J1HxJ)Qj 11
,
XA
X
1-1
/-1
11
/-1
\ .'
.
'
0= ("'8 [ad1J11 (t uJ d1J!J)
J
XA
dx
1=1
dx
+ C1J!1(t uJtPJ(x)) - 1J!1q] dx - t tP1(xJ)QJ 1=1
.
1=1
(ith equation)
0=
(8 [a d~~ (~ uj dd~J) + C1J!~(~ uJ1J!j(x)) - 1J!~q Jdx - ~ tP~(xJ)QJ (3.31a)
86
FlNITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
Note that the numbering of the algebraic equations follows that of the primary variables in the element. The ith algebraic equation can be written as n
0:::::
2: Kij uJ - fi -
Qi (i ::::: 1, 2, ... , n).
(3.31b)
j=l
where
fi:::::
l
XB
q1jJi dx ::::: I( 1jJi)
XA
(3.31c)
Note that the interpolation property (1) of (3.28) is used to write I'
n
2: 1jJJ(x,[)QJ::::: Qi
(3.32)
j=l
Equations (3.31a) can be expressed in terms of the coefficients Kij, fi, and Qi as
K11Ui + Khu~ + K~lUi
+ Khu~ +
+ Kinu~ ::::: fi + Qi + K't,u~ ::::: f~ + Q~
(3.33a)
In matrix notation, the linear algebraic equations (3.33a) can be written as
I
[Ke]{u e}::::: {r}
+ {Qe}
I
(3. 33b)
The matrix [Ke } is called the coefficient matrix, or stiffness matrix in structural mechanics applications. The column vector {r} is the source vector, or force vector in structural mechanics problems. Note that (3.33) contains 2n unknowns: (ui, u~, ... , u~) and (Qi, Q~, ... , Q~), called primary and secondary element nodal degrees of freedom; hence, it cannot be solved without having an additional n conditions. Some of these are provided by the boundary conditions and the remainder by balance of the secondary variables Qi at nodes common to several elements. This balance can be implemented by putting the elements together (i.e., assembling the element equations). Upon assembly and imposition of boundary conditions, we shall obtain exactly the same number of algebraic equations as the number of unknown primary and secondary degrees of freedom. The ideas underlying the assembly procedure are discussed in the next section. The coefficient matrix [K e }, which is symmetric, and source vector {r} can be evaluated for a given element and data (a, c, and q). For element-wiseconstant values of a, c, and q (say, a., c., and qe) the coefficients Kij andfi can . easily be evaluated for a typical element.
SECOND·ORDER BOUNDARY VALUE PROBLEMS
87
Linear element. For a mesh of linear elements, the element Q' is located between the global nodes XA = x. and X B = X.+l (see Fig. 3.Z). Hence,
f
dlfJ~ dlfJ~1
X <+ 1 (
Kij =
x;
Q.
) dX' dx ,+ c.1f1f1.jJj dx,
or, in the local coordinate system h
Kij= where x
=
I
' (
0
Q.
x,
d/
d1.jJ'1 dlfJ': ) dX + c.lfJi1f1j dx,
x.1~1+ x- and dlfJi dx
dx=dX,
d1.jJf dX
~=-
The 1f1'l can be expressed in terms of x as [see (3.18)] 1f1~(x) =
lfJi(x) = 1- x/h., We can compute Kij and
st«,
Ii by evaluating the integrals. We have
Similarly,
Ii =
f'
q.(1 - : ) dx = !q.h.,
n=
f'
q. :. ss = !q.h.
Thus, for constant q., the total source qeh. is equally distributed to the two nodes. The coefficient matrix and column vector are [K e] = Q e f 1 he l-l
-1] + cehe fZ 1] 1 6 II 2
{Ie} = q;h e
G}
(3.34a) (3.34b)
If a = a.x and c = c., the coefficient matrix [K e ] can be evaluated as
[K e ] = ae(X e + x e+ 1 ) he 2
iI
L
f
1 -1]1 + ceh6 e [21 2IJ
L-1
(3.35)
88
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
A
=
leAe +- Ae+d A e+ 1=A(xe + I)
r----'\,r-7C---oi---o<5;;2-X ____ :..J
FIGURE 3.6 Approximation of an element with linearly varying cross-section by an equivalent element, with constant cross-section.
The reader should verify this. Note that when a is a linear function of x, this is equivalent to replacing a in the coefficient matrix with its average value [compare (3.34a) with (3.35)]: (3.36) For example, in the study of bars with linearly varying cross-section, F
a = EA(x)
= E(A e + A e + t - A e he
x)'
this amounts to replacing the varying cross-section with a constant crosssection within each element, the cross-sectional area of the constant section being the average area of cross section of the linearly varying element (see Fig. 3.6). Here A e denotes the cross-sectional area at X e and A.+ 1 is that at x
=Xe+l'
When a, C, and q are algebraic polynomials in x, the evaluation of Kij and fJ is straightforward. When they are complicated functions of x, numerical evaluation of the integrals in [K e ] and {/'} will be sought. A complete discussion of the numerical evaluation of integrals is presented in Chapter 7. When a and q are element-wise-constant and c = 0, the finite element equations corresponding to the linear element are (3. 37a)
(3. 37b)
Quadratic element. For a quadratic-element mesh, the element Qe is located
between global nodes
r X
Kij =
L
2<+ l (
X2<~l
XA
= X2e-l and X B = X2e+l' Hence,
dl/Jel dl/J~J ) Lhe ( d1Jl'f dl/J~J ) ae dx dx + ce1Jli l/JJ dx = a. di' di + cel/Jil/JJ d:i 0
Ii =
r2<+l
~2<-1
1fJiq. dx
(3.38)
= lh< 1fJiqe dx 0
where the Lagrange quadratic interpolation functions 1fJi(x) (i = 1, 2, 3) are
SECOND-ORDER BOUNDARY VALUE PROBLEMS
89
given in '(3.27). Evaluating the integrals in (3.38), we obtain
Kit =
f
h' { ( 0 ae
4X)
3 4.f\( 3 - he + h!) - he + h;
'(i )2J[ 1 - 3ihe + 2(ihe)2J} dx
+ c, [ 1 - 3x he + 2 he 7 a, 2 =--+-c h 3 he 15 e e
Kh = K 21 =
Si) i) J[4 hei (1 - hei)]} di + c, [ 1h- ?3i + 2 ( he
f
it , { 0
a; - he + h~
3
(
4 -) ( 4 he - h;
B
8a
2
2
e =---+-ch 3 he 30 e e
and so on. Similarly,
1- ~~ + 2(:)2J di = iqehe=I;
Ii =(, q,,[
12 =
f'
(by symmetry)
4:"(1-:) Jdi = ~q"h"
qe[
Note that, for quadratic elements, the total source q.h, is not distributed equally between the nodes. The distribution is not equivalent to that of two linear elements of lengths 1h e • Therefore, the computation of Ii should be based on the interpolation functions of that element. The sum of Ii for any element should always be equal to the integral of q(x) over the element:
xrn
fJ
1=1
xA
(3.39)
q(x)dx
In summary, for element-wise-constant values of a, c, and q, the element matrices of a quadratic element are
[K'l
~-"'- [ 3h e
-~ -8 1] [4 16 -8 1 -8 7
+ C;~e
(f,}~q:, 3.2.4
2 2 16 -1 2
m
-n
(3.40a)
(3.40b)
Connectivity of Elements
In deriving the element equations, we isolated a typical element (the eth) from the mesh and formulated the variational problem (or weak form) and
90
FINITE ELEMENT ANALYSIS OF ONE·DlMENSIONAL PROBLEMS
developed its finite element model. To solve the total problem, we must put the elements back into their original positions, In doing this before discretization, we impose the continuity of the primary variables and balance of the secondary variables at the connecting nodes between elements, Continuity of the primary variables refers here to the single-valued nature of the solution; balance of secondary variables refers to the equilibrium of point sources at the junction of several elements. Thus, the assembly of elements is carried out by imposing the following two conditions: 1. Continuity of primary variables at connecting nodes: (3.41a)
i.e., the last nodal value of the element ge is the same as / the first nodal value of the adjacent element ge+1, 2. Balance of secondary variables at connecting nodes:
o Q~ + Q'!+l =
{ Qo
if no external point source is applied if an external point source of magnitude Qo is applied
(3.41b)
In writing (3.41), it is assumed that elements are connected in a sequence. The continuity of primary variables ui = U'!+I and balance of secondary variables Qi + Qi+ I for a mesh of linear elements is illustrated in Fig. 3.7. The balance of secondary variables can be interpreted as the continuity of a du] dx (not a due Idx) at the point common to elements ge and ge+l (when no change in
T;::"-'~~ I
ue(x) ,,-/11\
/ I" / T
I
/
.'1
u~
l c{l"8 2'6 e
J 1
I IU
1I U lI U I " e i /" ~/ "I
/1
I \
e+l
I \ I I \u1+ 1\ / uz+11 1\ I
II
/
I / 1/
\
\
o.:
I
I \1
(>1 ~'6
e+ 1 e
+1 8
e+2
Global node number
(a)
(b)
FIGURE 3.7 Assembly of two linear Lagrange elements: (a) continuity of the primary variable; (b) balance of the secondary variables.
SECOND·ORDER BOUNDARY VALUE PROBLEMS
91
a du/ dx is imposed: externally):
or
(a ~;r + (-a ~;r+1 =0 (3.42)
Q2 + Qi'+1=O
The interelement continuity of the primary variables is imposed by renaming the two variables u~ and ui+ 1 at x = XN as one and the same, namely the value of u at the global node N: (3.43)
where N = (n -1)e + 1 is the global node number corresponding to node n of the element ge and node 1 of the element ge+1, For example, for a mesh of E linear finite elements (n = 2), we have u~ = U1
ui = ui = U2 u~= u~= U3 Uf-1 =
(3.44)
uf= UE
uf= UE + 1 To enforce balance of the secondary variables QL (3.41b), it is clear that we can set Q~ + Qi+ 1 equal to zero or a specified value only if we have such expressions in our equations. To obtain such expressions, we must add the nth equation of the element ge to the first equation of the element ge+l; that is, ~~
. n
"LJ si.« =fe + Qe nJ
j
n
n
j=1
and n
L KifV/1 = tv: + Qi+1
j~1
to give n
L (K~juJ + KijIuJ +1) = t; + n+
1
+ (Q~ + Qi+ 1)
j=1
(3.45)
This process reduces the number of equations from 2E to E + 1. The first equation of the first element and the last equation of the last element will
92
FINITE ELEMENT ANALYSIS OF ONE·DIMENSIONAL PROBLEMS
remain unchanged, except for renaming of the primary variables. The left-hand side of (3.45) can be written in terms of the global nodal values as
e e + K:n2Ue 2 + ' . . + K:nnUne) + (Ke+l e+l+ Ke+le+l (K "lUI 11 U1 12 U2
+ . . . + Ke+l e+l) 1" Un
= (K~lUN + K~2UN+1 + ... + K~nUN+n-l) + (K1t 1UN+n_l + KiilUN+n + ... + K1;;lUN+2n~2) = K;'lUN + K~2UN+l + ... + K~'(1l~1)UN+"-2 + (K;,,, + K1i l)UN+ t + Kii lUN+ + ... + Ki,;lUN+211~2 Il _
1l
(3.46)
where N= (n -l)e + 1. For a mesh of E linear elements (n = 2), we have
KttUt + Kt2U2 = It + Qi (unchanged) Kilul + (Ki2 + KIl)U2 + K'i2U3 = Ii + Ii + Qi +~Qi K~tU2 + (K~2 + Kil)U3 + Ki2 U4 = I~ + Ii + Q~ + Qi :
r
Krl-1VE~1 + (Kt- t +Kft)UE + KfzUE + 1 =/r- 1 + if + Qr~l + Qf KflVE + Kt UE+ 1 = PI + Qf (unchanged)
(3.47a)
These are called the assembled equations. They contain the sum of coefficients and source terms at nodes common to two elements. Note that the numbering of the global equations corresponds to the numbering of the global primary degrees of freedom, VI' This correspondence carries the symmetry of element matrices to the global matrix. Equations (3.47a) can be expressed in matrix form as
Kb
o
Ki2 + KII K~l
0
Kr2-1 + Kfl Krt
Kfz Kr2
It Ii + Ii ==
1~+/i
Ir- 1 + If If
+
UE UE + 1
Qi Qi+Qi Q~+ Qi
(3.47b)
Qr- l + Qf Qr
Recall that all the above discussion of assembly is based on the assumption that elements are connected in series. In general, several elements can be connected at a node, and the elements do not have to be consecutively numbered. In that case, the above idea still holds, with the change that coefficients coming from all elements connected at one node will add up. For
SECOND·ORDER BOUNDARY VALUE PROBLEMS
93
Rigid bar (constrained to move horizontally) ~h2---j '-:;;'l-<---
h3
--..-I
FIGURE 3.8 The geometry and finite element mesh of a bar structure.
example, consider the structure consisting of three bar elements shown in Fig. 3.8. Suppose that the connecting bar is rigid (i.e., not deformable) and is constrained to remain horizontal at all times. Then the continuity and force balance conditions for the structure are (3.48) To enforce these conditions, we must add the second equation of element 1, the first equation of element 3, and the second equation of element 2: (K~lU~ + Ki2UD
+ (KilUi + Ki2U~) + (K~lui + K~2Ui) ""n +Ii + I~ + Qi + Qi + Qi (3.49)
We note the following correspondence of local and global nodal values (see Fig. 3.8):
Hence, (3.49) becomes
Kilul + Ki l u2 + (Ki2 + Kil + Ki2)U3 + KI2 U4 = Ii + Ii + I~ + Qi + Qi + Qi "" Ii + Ii + Ii + 2P The other equations remain unchanged, except for renaming of the primary variables. The assembled equations are
l
K~lo
0 Ki2 K~2 O]{ VI} { 2
Kil
K~l K~l
o
0
V
0
K K!2 K~l 1
V3
K 22 3
U4 2
=
It } { Qi Q} } Ii + Ii + I! + I~ Qi + + Qi fz
Q!
(3.50)
Q2
where K = K 22 + K u + K 22 • The coefficients of the assembled matrix can be obtained directly. We note that the global coefficient K u is a physical property of the system, relating global node I to global node J. For axial deformation of bars, Ku denotes the force required at node I to induce a unit displacement at node J, while the displacements at all other nodes are zero. Therefore, K u is equal to the sum of A
94
FINITE ELEMENT ANALYSIS OF ONE-D1lo.IENSIONAL PROBLEMS
all KZ' for which i corresponds to 1 and j corresponds to J, and i and j are the local nodes of the element ~r. Thus, if we have a correspondence between element node numbers and global node numbers then the assembled global coefficients can readily be written in terms of the element coefficients. The correspondence can be expressed through a matrix [B], called the connectivity matrix, whose coefficient b ij has the following meaning: bij is the global node number corresponding to the jth node of element i
For example, for the structure shown in Fig. 3.8, the matrix [B] is of order 3 X 2 (3 elements and 2 nodes per element):
[Rl~G
n
/
This array can be used in a variety of ways-not only for assembly, but also in the computer implementation of finite element computations. The matrix [B] is used to assemble coefficient matrices as follow:
Kl l =
K ll ,
K~z = K l 3 ,
because local node 1 of element 1 corresponds to global node 1 because local nodes 1 and 2 of element 1 correspond to global nodes 1 and 3, respectively
and so on. When more than one element is connected at a global node, the element coefficients are to be added. For example, global node 3 appears in all three rows (i.e., elements) of the matrix [B], implying that all three elements are connected at global node 3. More specifically, it indicates that node 2 of element 1, node 2 of element 2, and node 1 of element 3 are the same as global node 3. Hence Kiz
+ Kh + KII =
K 33
Assembly on paper can be carried out by examining the finite element mesh of the problem. For the mesh shown in Fig. 3.8, we have K 23 =
Kiz,
K Z4 = 0,
because global node 2 is the same as node 1 and global node 3 is the same as node 2 of element 2 because global nodes 2 and 4 do not belong to the same element
K 33 = Kh + K~2 + Kil
and so on. In summary, assembly of finite elements is carried out by imposing interelement continuity of primary variables and balance of secondary variables [see (3.41)]. Renaming the elemental primary variables in terms of the global primary variables and using the correspondence between the local and global nodes allows the assembly. When certain primary nodal values are not required to be continuous (by the variational formulation) across elements, such variables may be condensed out at the element level before assembling elements.
SECOND·ORDER BOUNDARY VALUE PROBLEMS
95
3.2.5 Imposition' of Boundary Conditions Up to this point, the specific nature of the problem has not been used in the development of the finite element model or in the assembly of finite elements. In other words, the discussion, in Sections 3.2.1-3.2.4 is valid for any differential equation that is a special case of the model equation (3.1). One particular problem differs from others in the specification of the data and boundary conditions. Here we discuss how to impose the boundary conditions of a problem on the assembled set of algebraic equations. To this end, we use the problem in Fig. 3.8. Its boundary conditions are evident from the structure. The known primary degrees of freedom (i.e., displacements) are U~=Vl=O,
U~=V4=O
ui=v2=0,
(3.51a)
The known secondary degrees of freedom (i.e., forces) are Q~ + Q~ + Q~
= 2P
(3.51b)
The forces QL Qi, and Q~ are unknown (reaction forces), and they can be determined in the post-computation, i.e., after the primary degrees of freedom are determined. Imposing the boundary conditions (3.51) on the assembled system of equations (3.50) and for Jr, we obtain
[
0 Kl 2 o Kil Ki2 K~1 K~1 KJ2 + K~2 + Kil o 0 K~1 K~1
(3.52)
This contains four equations in four unknowns: V3 ,
QL Qi,
and Q~.
3.2.6 Solution of Equations As a standard procedure in finite element analysis, the unknown primary degrees of freedom are determined first by considering the algebraic equations corresponding to the unknown primary variables. Thus, in the present case, we consider the third equation in (3.52) to solve for V3 : K~l VI
+ K~1 V 2 + (K~2 + K~2 + K~I)V3 + KLu4 = 2P
or (K42 + K~2 + Kil) V 3 = 2P - (Kil VI
+ K~l V 2 + K~2U4)
(3.53)
Equation (3.53) is called the condensed equation for the unknown V 3 • The term in parentheses on the right-hand side is zero because all specified displacements are zero in the present problem. Hence, the solution is given by (3.54a)
The unknown secondary variables are determined by considering the remaining equations of (3.52), i.e., those that contain the unknown secondary
96
ANITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
variables:
KbU3}
= { KI2U3
}
because U1; U2 and U4 are zero
(3.54b)
K~IU3
It is possible, although not common with computer programs, to move all the unknowns to the left-hand side in (3.52) and solve for them all at once. But this process requires more computational time in practical problems. ~ In general, the assembled finite element equations can be partitioned conveniently into the following form:
(3.55) where {U i } is the column of known primary variables, {U 2 } is the column of unknown primary variables, {F 1} is the column of unknown secondary variables, and {F2 } is the column of known secondary variables. Writing (3.55) as two matrix equations, we obtain
+ [KI2]{U2} = {pi}
(3.56a)
[K 21]{U1} + [K22]{ U 2} = {F 2}
(3. 56b)
[K"]{U1}
From (3.56b), we have
I
{U2 }
= [K22rl({F2} -
[K21]{U1 })
(3. 56c)
Once {U2 } is known, {F 1 } can be computed from (3.56a).
3.2.7
Postprocessing of the Solution
The solution of the finite element equations gives the nodal values of the primary unknown (e.g., displacement, velocity, or temperature). Postprocessing of the results includes one or more of the following: 1. Computation of any secondary variables (e.g., the gradient of the solution). Interpretation of the results to check whether the solution makes sense (an understanding of the physical process and experience are the guides when other solutions are not available for comparison). 3. Tabular and/or graphical presentation of the results.
2:
SECOND-ORDER BOUNDARY VALUE PROBLEMS
97
To determine the solution u as a continuous function of position x, we return to the approximation (3.29) over each element: U~(x)
n
2: uJtp](x)
=
/=1 n
u(x) =
2: uJtpJ(x) /=1
U2(x) =
(3.57)
n
2: ufwf(x)
UN(x) =
/=1
where N is the number of elements in the mesh. Depending on the value of x, the corresponding element equation from (3.57) is used. The derivative of the solution is obtained by differentiating (3.57):
i i
uJ dW] dx
j=1
du
-= dx
uJ dwJ dx
1=1
i
j=1
U
(3.58)
NdWf j
dx
Note that the derivative dueI dx of the linear finite element solution U" is constant within each element, and it is discontinuous at the nodes because the continuity of the derivative of the finite element solution at the connecting nodes is not imposed:
The derivative calculated from different elements meeting at a node is always discontinuous in all CO approximations (i.e., approximations in which only the function values are interpolated), unless the approximate solution coincides with the actual solution. The secondary variables Qi can be computed in two different ways. In (3.54b), we determined the unknown secondary variables QL QI, and Q~ from the assembled equations of the problem in Fig. 3.8. Since the assembled equations often represent the equilibrium relations of a system, the Qf computed from them will· be denoted by (Qf)equil' The Qf can also be determined using the definitions in (3.7), replacing u with U. We shall denote Qf computed in this way by (Qf)def' Since (QDdef are calculated using the approximate U", they are not as accurate as (QDequil' However, in finite element computer codes, (Qf)def are calculated instead of (Qf)equil' This is primarily because of computational aspects. Recall that, in arriving at the
98
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
result (3.54b), we used part of the assembled coefficient matrix. In the numerical solution of simultaneous algebraic equations in a computer, the original assembled coefficient matrix is often modified, and therefore the coefficients needed for the determination of the secondary variables are not available, unless they are saved in an additional array. For the problem in Fig. 3.8, we have I (Q l)dcf =
-
V) I
(EA ddx
= -
x=O
I
3
1
(dV)l dx
2 (Ql)def=EA
X
J
I
x=o=K212 VJ
(Q~)dcf = (EA ddU) I =
VI = - ~h EA V = K 12 U
J EA V h-
x=ht+hJ
4
= EA U
J
U
; J
-, F
EAVJ J - - - = K2 I U3
(3.59)
h3
where h, and h J are the lengths of elements 1 and 3, respectively. The Qs computed using the definitions (3.7) are the same as those derived from the assembled equations for the problem in Fig. 3.8. This equality is not to be expected in general. In fact, when the source vector q is not zero, the secondary variables computed from the definitions (3.7) will be in error compared with those computed from the assembled equations. The error decreases as the number of elements or the degree of interpolation is increased. This completes the basic steps involved in the finite element analysis of the model equation (3.1). A few remarks are in order on the steps described above for the model equation. Remark 1. Although the Rayleigh-Ritz method was used to set up the element equations, any other method, such as a weighted-residual (e.g., the least-squares or Galerkin) method, could be used. . Remark 2. Steps 1-6 (see Table 3.1) are common for any problem. The derivation of interpolation functions depends only on the element geometry, and on the number and position of nodes in the element. The number of nodes in the element and the degree of approximation used are related. Remark 3. The finite element equations (3.31) are derived for the linear operator equation A(u) = q,
where A = -
~ (a ~) + c
Hence, they are valid for any physical problem that is described by the operator equation A(u) = q or its special cases. One need only interpret the quantities appropriately. Examples of problems described by this operator are
SECOND-ORDER BOUNDARY VALUE PROBLEMS
99
listed in Table 3.2,' Thus, a computer program written for the finite element analysis of (3.1) can be used to analyze any of the problems in this table. Also, note that the data a = a(x), c = c(x), and q = q(x) can be different in each of the elements. Remark 4. Integration of the element matrices in (3.31c) can be implemented on a computer using numerical integration (see Chapter 7). When these integrals are algebraically complicated, one has no other choice but numerical integration. Remark 5. As noted in (3.48) and (3.51b), the point sources at the nodes are included in the finite element model via the balance of sources at the nodes. Thus, in constructing finite element meshes, one should include nodes at the locations of point sources. If a point source does not occur at a node, it is possible to "distribute" it to the element nodes. Let Qo denote a paint source at point xo, XA ""'XO""'XB' The point source Qo can be represented as a "function" by
q(X) = QoD(X - xo) where the Dirac delta function D(') is defined by
f",
F(X)D(X - xo) dx = F(xo)
The contribution of the function q(x) to the nodes of the element (XA' XB) is computed from [see (3.31c)]
~y =
(3.60)
where lJl't are the interpolation functions of the element ~Y. Thus, the point source Qo is distributed to the element node i by the value QolJl't(xo). Equation (3.60) holds for any element, irrespective of the degree of the interpolation, the nature of the interpolation (i.e., Lagrange or Hermite polynomials), or the dimension (i.e., 1-D, 2-D, or 3-D) of the element. For linear Lagrange interpolation functions in 1-D, (3.60) yields
where a = (XB - xo)/h e is the ratio of the distance between node 2 and the source to the length of the element. Remark 6. There are three sources of error that may contribute to the inaccuracy of the finite element solution of a problem: 1. Domain approximation error, which is due to the approximation of the domain.
100
FINITE ELEMENT ANALYSIS OF ONE·DIMENSIONAL PROBLEMS
2. Computational errors, which are due to inexact evaluation of the coefficients Kij and II, or are introduced owing to the finite arithmetic in a computer. 3. Approximation error, which is due to approximation of the solution by piecewise polynomials. Since the geometry of the problem is exactly represented, and the linear approximation is able to represent the exact solution at the nodes (for a = EA = constant, C = 0, and 1= 0), the first and third type of errors are zero in the problem of Fig. 3.8. The only error that can be introduced into the final numerical results is possibly due to the computer evaluation of the coefficients Kij and Ii and the solution of algebraic equations. Additional discussion of the errors in the finite element approximation is presented in Chapter 5. '" /
Remark 7. The approach used in matrix methods of structural analysis to solve the problem in Fig. 3.8 is not much different than that .presented here. The difference lies only in the derivation of the element equations (3.37a). In matrix methods of structural analysis, the element equations are obtained directly from the definitions of stress and strain and their relationship. For example, consider the free-body diagram of a bar element (see Fig. 3.2b).. From a course on deformable bodies, we have force = stress X area of cross section stress = Young's modulus X strain strain = elongation/original length The strain defined above is the average (or engineering) strain. Mathematically, strain is defined as e = dul dx, u being the displacement, which includes rigid body motion as well as elongation of the bar. Hence, the force at the left end of the bar element is Pl=Ae~=Aegt:l=Aeg
ulhe
u~
ae =-(ui'-uD he
where a is the stress and E is Young's modulus. Similarly, the force at the right end is
In matrix form, these relations can be expressed as (3.61)
n
which is the same as (3.37a) with Pi = Qi + Note that in deriving the element equations, we have used knowledge of the mechanics of materials and the assumption that the strain is constant (or the displacement is linear) over the length of the element. Equations of the type (3.61) can also be derived for
SECOND-ORDER BOUNDARY VALUE PROBLEMS
101
a spring element, a pipe-flow element, an electrical resistor element, and so on (see the problems at the end of this chapter). If a higher-order representation of the strain (or displacement) is required, we cannot write the forcedisplacement relations (3.61) directly, We must use the principle of virtual displacements, which is equivalent to the weak form of the governing equation. For more details, see Reddy (1984). Remark 8. Another interpretation of (3.37) can be given in terms of the finite difference approximation. The axial force at any point x is given by P(x) = EA dul dx. Using the forward difference approximation, we approximate the derivative du/dx and write -Pi == P(x)]x, = PA e[U(Xe+l ) - u(xe)]lhe (3. 62a) eAe Pz== P(x) !x. + I = E [u(Xe+l ) - u(xe)]/h e (3.62b) which are the same as (3.61), with ul = u(x e) and Uz = u(xe+l)' Note that no approximation of u(x) itself is assumed in writing (3.62). To obtain the value of u at a point other than the nodes (or mesh points), linear interpolation is often used. Remark 9. For the model problem considered, the element matrices [K e ] in (3.31b) are symmetric: Kij = Kfi. This enables one to compute Kij (i = 1, 2, ... , n) for j'-% i only. In other words, one need compute only the diagonal terms and the upper or lower diagonal terms. Because of the symmetry of the element matrices, the assembled global matrix will also be symmetric. Thus, one need store only the upper triangle, including the diagonal, of the assembled matrix in a finite element program. Another property characteristic of the finite element method is the sparseness of the assembled matrix. Since KIJ = 0 if global nodes I and J do not belong to the same element, the global coefficient matrix is banded, i.e., all coefficients beyond a certain distance from the diagonal are zero. The maximum of the distances between the diagonal element, including the latter, of a row and the last nonzero coefficient in that row is called the half-bandwidth, and can be computed from the equation half-bandwidth = max (Ibn - bi"l + 1) X NDF l~i~E
where E is the number of elements in the mesh, NDF is the number of degrees of freedom per node, n is the number of nodes per element, and bij are the coefficients of the connectivity matrix. When a matrix is banded and symmetric, one need store only the entries in the upper or lower band of the matrix. Equation solvers written for the solution of banded symmetric equations are available for use in such cases. The symmetry of the coefficient matrix depends on the type of the differential equation, its variational form, and the numbering of the finite element equations. The sparseness of the matrix is a result of the finite element interpolation functions, which have nonzero values only over an element of the domain.
, '
102
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
Remark 10. The balance (or "equilibrium") of the secondary variables (or "forces") Qi at the interelement boundaries is expressed by (3.41b). This amounts to imposing the condition that the secondary variable a duldx at the node, where u is the actual solution, be continuous. However, this does not imply continuity of a due [dx, where U" is the finite element solution. Thus, in general, we have Q~ +
m+ = 0 or 1
Qo
(3. 63a)
but (3.63b)
cl~~r
Note. In most books on the finite element method, this point is riot made to the reader. These books consider the quadratic form (3.11) of the total problem and omit the sum of the interelement contributions (for linear elements), (i) in the quadratic form of the problem. However, this amounts to imposing equilibrium conditions of the form (3.63a). When the secondary variable is specified to be nonzero (say, Qo) at an interelement boundary (say, at global node 2), we have
Q1 + Q~ = Qu
(ii)
In other books, Qo is included in the functional as Q O U2 , where U2 is the value of u at global node 2. To fix ideas, consider (3.1). The variational form of this equation over the entire domain is given by (when c = 0) (iii)
When u is approximated by functions that are defined only on a local interval (which is the case in the finite element method), use of the above variational form implies the omission of the sum of the interelement contributions of (i). Since ljJ~ (e = 1,2,3) is zero in any element Qf for e =1= f (see Fig. 3.3b), the (global) finite element solution for the entire domain is given by (iv)
where ellI(x) (I == 1, 2, 3, 4) are the piecewise-continuous global interpolation functions, ih (
""{ x
)
=
{1J'~I-l)(X) (I}() ljJl X
for
f or
XI-l
""'x "",XI
(v)
XI ""'X "",XI+l
Substituting (iv) for u and v = 111 1 into (iii), we obtain (vi)
SECOND-ORDER BOUNDARY VALUE PROBLEMS
103
Since
0=
f
"'l +l XI-!
[d
and we have (for a three-element mesh) 1=1:
1=2: 1=3:
1=4:
f
->· _ L [
0=",,3
d
These equations, upon performing the integrations, yield (3.47), with the last column (containing Qs) in the latter replaced by
(ix)
Although this procedure gives the assembled equations directly, it is algebraically complicated (especially for two-dimensional problems) and not amenable to simple computer implementation.
3.2.8
Radially Symmetric Problems
The equations governing physical processes in cylindrical or spherical geometries are described analytically in terms of cylindrical or spherical coordinates. When the geometry, loading, and boundary conditions are dependent only on the radial direction and independent of the other two coordinates, the governing equations are one-dimensional. The equations governing radially symmetric problems in cylindrical geometries are of the form [an analogue of (3.1)]
d[
dU]
1 -;dr a(r) dr =q(r) for s,«,««,
(3.64)
where r is the radial coordinate, a and q are known functions of r, and u is the dependent variable. Such equations arise, for example, in connection with radial heat flow in a long circular cylinder of inner radius R; and outer radius Ro • The radially symmetric conditions require that both a and q be functions only of r. Since the cylinder is long, the temperature distribution at any section along its length (except perhaps at the ends) is the same, and it is sufficient to consider any cross-section away from the ends, i.e., the problem is reduced
r
104
FINITE ELEMENf ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
from a 3~D problem to a 2-D one. Since a and q are independent of the circumferential direction 8, the temperature distribution along any radial line is the same, reducing the 2-D problem to a I-D one, as described by (3.64). In developing the weak form of (3.64), we multiply (3.64) with a weight function w(r) and integrate over the volume of the cylinder of unit length.
(1)
0=
r w[_!!£(adU)-qjrdrdedz r dr dr
Jv
it i "' iTB 2
=
o
0
TA
= 2n frB TA
w[- ~~ (a dU) - qJr dr de dz r dr dr
w[- ~~ (a dU) - qJr dr rdr dr
where (rA, rB) is the domain of the element along the radial directio~. Next, we carry out the remaining two steps of the variational formulation: (2)
0=
B 2n fTB (a dw du _ rwq) dr _ [W2na dUJr TA
(3)
0=
dr dr
dr
2n {B (a~; ~~ - rwq) dr -
w(rA)Ql-
TA
w(rB)Q~
(3.65a)
where
Ql=-2n(a~;)IT..' Q2=2n(a~~)ITB
(3.65b)
The finite element model is obtained by substituting the approximation n
u(r) =
2: ujtPJ(r) j=t
into (3.65a): (3. 66a)
where
Kij = 2n
i
TB d'iV dtP"
TA
a _ I _ J dr,
dr dr
if = 2n LTS tPrqr dr
(3.66b)
TA
and tPi are the interpolation functions expressed in terms of the radial coordinate r. For example, the linear interpolation functions are of the forms (3. 66c)
The explicit forms of the coefficients Kij and Ii for a = a.r and q = q" are given below. Linear element
( I )[ 1 -1] [Ke]=2Jra,, h, rA + 2h" -1 Ll'
SECOND-ORDER BOUNDARY VALUE PROBLEMS
lOS
In the next section, we consider several examples to illustrate the steps involved in the finite element analysis of one-dimensional second-order equations arising in heat transfer, fluid mechanics, and solid mechanics. While the notation used for the dependent variables, independent coordinates, and data of problems from various fields is different, the reader should keep the common mathematical structure in mind and not get confused with the change of notation from field to field or problem to problem.
3.3 APPLICATIONS 3.3.1 Heat Transfer Heat flows from high-temperature regions to low-temperature regions. transfer of heat within the medium is called conduction heat transfer. Fourier heat conduction law for one-dimensional systems states that the flow Q is related to the temperature gradient aT/ax by the relation (with flow in the positive direction of x),
aT ax
Q=-kA-
This The heat heat
(3.67)
where k is the thermal conductivity of the material, A the cross-sectional area, and T the temperature. The negative sign in (3.67) indicates that heat flows downhill on the temperature scale. The balance of energy in an element of length dx requires that energy into the element + energy generated within the element
= change in internal energy + energy out of the element
aj ] &
sr er [kA-+st a (kA- dx -kA-+qAdx=pcA-dx&
~
& &
or
aj
sr -a '(kA- +Aq=pcAax
ax
at
(3.68)
where q is the heat energy generated per unit volume; p is the density, c is the specific heat of the material, and t is time. Equation (3.68) governs the transient heat conduction in a slab or fin (i.e., a one-dimensional system) when
L
106
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIDNAL PROBLEMS
the heat flow in the normal direction is zero. The following metric units will be used: T k q p c
-c (celsius) W m? °C- 1 (watts per meter per degree Celsius) W m- 3
(3.69)
kg m ? J kg " °C- 1 (joules per kilogram per degree Celsius or m2 S-2 °C- 1)
In the case of radially symmetric problems with cylindrical geometries, (3.68) takes a different form (see Section 3.2.8). Consider a long cylinder of inner radius R i , outer radius R o ' and length L. When L is very large compared with the diameter, it is assumed that heat flows in the radial direction r. Thus , the surface area for heat flow in the cylindrical system is (see Fig. 3.Q) /
A=2nrL
(3.70)
Hence, the transient radially symmetric heat flow in the cylinder is governed by
a (kAa~ +Aq=pcAst
~
ar
ar
at
(3.71a)
or 1
a (kra~'+q =pcst
~-
r ar
ar
at
(3.71b)
A cylindrical fuel element of a nuclear reactor, a current-carrying electrical wire, and a thick-walled circular tube provide examples of one-dimensional radial systems. For the radial flow in a sphere, the cross-sectional area is A = 4n 2r 2
and the governing equation takes the form
~ ~ (kr2 aT\ + q = pc aT
r2 ar
a-;)
at
Perimeter P )-_~""",-r-_C_r....".oss-seclional
FIGURE 3.9 Convective heat transfer in a fin.
area A
(3.72)
SECOND-ORDER BOUNDARY VALUE PROBLEMS
107
The boundary conditions for heat conduction involve specifying either temperature T or the heat flow Q at a point:
. T= To or
Q==
aT
-kA~=
ax
Qo
(3.73)
We know that when a heated surface is exposed to a cooling medium, such as air or liquid, the surface will cool faster. We say that the heat is convected away. The convection heat transfer between the surface and the medium in contact is given by Newton's law of cooling: (3.74)
where T; is the surface temperature, Too is the temperature of the surrounding medium (the ambient temperature), A is the surface area, and f3 is the convection heat transfer coefficient or film conductance (or film coefficient). The units of f3 are Wm- 2°C-1 • The heat flow due to conduction and convection at a boundary point must be in balance with the applied flow Qo:
aT ±kA ax + f3A(T - Too) + Qo=O
(3.75)
The sign of the first term in (3.75) is negative when the heat flow is from the fluid at Too to the surface at the left end of the element, and it is positive when the heat flow is from the fluid at Too to the surface at the right end. Convection of heat from a surface to the surrounding fluid can be increased by attaching thin strips of conducting metal to the surface. The metal strips are called fins. For a fin with heat flow along its axis, heat can convect across the lateral surface of the fin unless it is insulated (see Fig. 3.9). To account for the convection of heatthrough the surface, we must add the rate of heat loss by convection to the right-hand side of (3.68):
~ (Ak a1\ + Aq = peA aT +' Pf3(T - Too) ax
ax)
at
(3. 76a)
where P is the perimeter and f3 is the film coefficient. Equation (3.76a) can be expressed in the alternative form
pcA
sr ax a (kA -r. atax) + Pf3T = Aq + Pf3T..
(3.76b)
For a steady state, we set the time derivatives in (3.68), (3.71), (3.72), and (3.76) equal to zero. The steady-state equations for various onedimensional systems are summarized below:
Plane wall and fin
-
~(kA ~+ cT=Aq +cToo,
c=Pf3
(3.77)
108
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
Cylindrical system
dj = Znq dr
1d ( 2lCkr- -
rdr
(3.78)
Spherical system
(3.79)
For a plane wall and insulated lateral surfaces of a bar, we set e = 0 in (3.77). The essential and natural boundary conditions associated with these I' -, equations are
T = To,
Q
+ (3A(T - T",,) + Qo =
0
(3.80)
r
The weak form and finite element model of (3.77) can be developed using the ideas presented in Section 3.2.3. Since (3.77) is a special case of the model boundary value problem with a = kA, C = P{3, and q ........ Aq + Pf3T"", we can immediately write the finite element model of (3.77) from (3.31): (3. 81a)
where
where Qi and Qz denote heat flow into the element at the nodes. Equations (3.78) and (3.79) are also special cases of the model boundary value problem. However, in developing the weak forms of (3.78) and (3.79), the integration must be carried over a typical volume element of each system, as illustrated in Section 3.2.8 for a radially symmetric cylindrical problem. The weak form of (3.78) is given in (3.65), and the finite element model is given by (3.66), with {u"} = {T e } . Similarly, the weak form of (3.79) can be developed using a volume element of a sphere: dV = r 2 dr de dq, for 0 ~ e < Zn, 0,,;;
q, < 2lC
The weak form of (3.79) is
0= (2lC)2 t (k~; ~~ - qw)r2 dr - Qiw(rA) - Q;w(rB) B
(3.82)
and the finite element model of (3.79) is
[Ke]{T"} -:= {te}
+ {Qe}
(3. 83a)
SECOND·ORDER BOUNDARY VALUE PROBLEMS
109
where (3.83b)
In the following examples, we consider some typical applications of the finite element models (3.81) and (3.66). Example 3.1. Consider a slab of thickness L and constant thermal conductivity k (W m- I QC- I ) . Suppose that energy at a uniform rate of qo (W m- 3 ) is generated in the wall. We wish to determine the temperature distribution in the wall when the boundary surfaces of the wall are subject to the following three different sets of boundary conditions:
11,
T(L)=
~
(3.840)
Setl
T(O) =
Set 2
( -k
2) 1"'-0
=
Set 3
reO)
= 11,
(k 2) I"'-L
go (W m ") , =
[k
~ + P(T - T~)] I"-L = 0
(3.84b)
(3.84c)
go (W m")
The governing differential equation for this problem is given by (3.77) with c = O. Hence, the finite element model in (3.81) is applicable here. We must select the order of approximation (or type of element) to evaluate the coefficients Kij and If in (3.81b). For the choice of linear elements and the data 0 = kA = constant and q = Aqo = constant, (3.810) takes the form [see (3.370)]
h,
For a uniform mesh of N elements, i.e., a mesh of same-size elements, the assembled equations are
= h z = ... = L/N == h, 1
-1
kA h
-1
1+ 1
-1
o
o
-1 1+1
1+ 1 -1 -1
1
UN UN+ I
Aqoh 2
1 1+1 1+1 1+1 1
Q: Qi+Qi +
Q~+ Qt Q~-I
+ Q;'
Q~
(3.85)
110
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
where UJ (I = 1, 2, ... , N + 1) denotes the temperature at global node I. The assembled equations (3.85) are valid for all three sets of boundary conditions in (3.84). We now specialize the finite element equations (3.85) for each set of boundary conditions. Set 1. The boundary conditions (3.84a) imply that (3. 86a)
and the balance of the heats at global nodes 2, 3, ... , N requires Q;-l
+ Q~ = 0
for e = 2, 3, ... , N
(3. 86b)
The condensed equations for the unknown primary variables U2 , U3 , ••• , UN are obtained by considering the 2nd, 3rd, ... ,Nth equations of (3.85) (and omitting those corresponding to the known temperatures):
The unknown secondary variables Q~ and Q~ are computed from the first and last of the assembled equations (3.85):
They can also be computed from the definition (3.81b):
(3.88b)
The values computed in (3.88b) are in error compared with those in (3.8Sa) by the nodal sources, !qahA, for h = L/N. For any number of elements, the solution can be computed from (3.87). For this set of boundary conditions and a linear-element mesh, the minimum number of elements is 2. For N=2 (h =!L),
kA[_~ h
and the solution is
-1 O]{ T.} = {1}
2 0 -1
-1 1
U2
~.
A;a
h
2 1
+
{Q~} O Q22
,r-r-r-: SECOND-ORDER BOUNDARY VALUE PROBLEMS
111
For N=3 (h ~1L),
kAr-~ h
0
-1 2 -1
o
o
0 -1 2 -1
or
The solution is given by 2 qo 1( U2 -_ T h + 3" 2~
+ ~) ,
The exact solution of (3.77) (with (3.84a), is
c = 0),
subject to the boundary conditions
Note that the finite element solution at the nodes coincides with the exact solution for any number of elements. In fact, for constant a = kA, it can be shown that the finite element solution at the nodes is exact [see Reddy (1986), pp. 403, 404]; the only error would be that due to the round-off error introduced in electronic computations. The finite element solution, being linear, will not be exact at points other than the nodes. If we use quadratic elements, we can improve the solution at points between the nodes. Let us consider a mesh of one quadratic element. The element coefficient matrix and source vector are given in (3.40). We have (c. = 0) 7 -8 -8 16 3h [ 1-8
kA
where h = L. The solution is _
U2 -
4
.
Aqoh 3h
16 -
q
2
oh + T6(~ + ~)- 8T+ 2(~ + T2 ) 6-A k 8
(QD.qUi! = -~Aqoh + :A (1;. - T2) ,
_
1
1
(Q~)eqUi! = -4Aq oh +
k:
(T2 - 1;.)
112
Fll'lITE ELEMENT ANALYSIS OF ONE·DlMENSIONAL PROBLEMS
If we compute the
Ql
using the definition (3.81b), we obtain
which coincides with the exact value. Recall that (QDdel for a linear-element mesh does not coincide with the exact value. Also, the values of T(x) at x = tL, for example, from the two linear- and one quadratic-element meshes can be computed using the interpolations
T(tL) =
-b. q~LZ + t(311 + Tz)
(linear element)
T{tL) =
ft q~2 + t(311 + Tz)
(quadratic element)
The quadratic interpolation gives the exact value. Thus, the finite element solution given by the quadratic element is exact at all points, because the exact solution varies quadratically. Set 2, In this case, the surface at x := 0 is subjected to a uniform heat flux go (W m ~2) (if it is insulated, go = 0), and heat is dissipated by convection into a fluid of temperature T~ at the boundary surface at x = L. These boundary conditions imply that
Q~ == (-kA d1\ I
~Jlx~o
=
Ago
Qf == (kA 1) IX~L = -Af3(T - T~)lx_L =
T~)
-Af3(VN +l -
where A is the cross-sectional area normal to heat flow and f3 is the heat transfer. coefficient. Equations (3.86b) are also valid for the present case. For a one-element mesh (N = 1, h = L), the finite element equations are
kA [
h
1 -1]{V 1 U
I}
-1
A Qoh{1}
z =-2- 1
{
Ago
+ -Af3U2+Af3T~
or
Their solution is
(11-+ aa) qoh (~) goh + T~ 2k 1- a k U = _ (_1_) oh (_1_) goh + T~ 1-a k 1-a k Z
VI =
_
_
2
2
Q
_
}
SECOND-ORDER BOUNDARY VALUE PROBLEMS
113
where «= 1 + {3hlk. 'The exact solution is 2
2)
QOL ( 1+--2k X T(x)=2k {3L L 2
goL( X) «t: + - 1 +k- - k
{3L
~
L
The finite element solution agrees with this at the nodes. Set 3. In this case, the boundary surface at x = 0 is maintained at a temperature ~, while at the other boundary surface, x = L, a heat flux at the rate of go is removed. These boundary conditions can be expressed in terms of the primary and secondary variables as U1 =
Tt,
Q~ =
Ago
and (3.86b) are still valid. For a two-element mesh with h, = h 2 = !L == h, we have
kA[_~ -~ _~]{~~}=A;Oh{~}+{~:} h
0 -1
U3
1
Ago
1
or
kA[ 2 -1]{U =A qoh{2} +{k: Tt} h -1 1 U 2 1 A 2
}
3
go
We have
For a three-element mesh (h = ~L), we have
k: [-12-12 o
-1
0]{U U2}
-1
3
1
U4
2 D= -1
o
= A
;oh {2} 2 + {O} 0 + k: {Tt} 0 1
-1 2 -1
Ago
0 -1 =2+(-1)=1
1
0
114
FINITE ELEMENT ANALYSIS OF ONE· DIMENSIONAL PROBLEMS
and {F} = {F;.
Fz F3 } T is the right-hand-side vector:
Evaluating the determinants, we obtain
(QDequil= -!Aqoh + ~~(Ul- U2) = -A(go+ 3qoh) (Ql)der= -A(go+~qoh) The exact solution of (3.77) with
e= 0 and
subject to the boundary conditions
(3.84c) is given by
(3.89)
Note that the finite element solution at the nodes, for any number of elements, coincides with the exact solution. The exact value of Q1is
(Q1) exac,= -(kA
:)t,,-o
=
Q(O) =
-A(q~L+ go)
The value of Q~ computed from the assembled equations is the same as the exact one; however, when computed using the definition Q~ = -kA(dUeldx)lx~ol it is in error by an amount f1 = !Aqoh. As the number of elements is increased, the value of (QDder approaches the exact value. Of course, when quadratic elements are used, we shall obtain a more accurate (or even exact) value of (QDdd'
The next example deals with radially symmetric heat transfer in a cylinder. Example 3.2. Consider a long solid cylinder of radius R" in which energy is generated at a constant rate qo (W m-3) . The boundary surface at r = R o is maintained at a constant temperature To. We wish to calculate the temperature distribution T(r) and heat flux q(r) = -k dT[dr (or heat Q = -Ak dT jdr).
SECOND-ORDER BOUNDARY VALUE PROBLEMS
The governing equation for this problem is given by (3.78) with q boundary conditions are 1 =0 ( 2Jik r dT\ d-;) ,~o
=
115
qo. The
(3.90)
The zero-flux boundary condition at r = 0 is a result of the radial symmetry at r = O. If the cylinder is hollow with inner radius R; then the boundary condition at r = R 1 can be specified temperature, specified heat flux, or convection boundary condition, depending on the situation. The finite element model of the governing equation is given in (3.66) (for unit height of the cylinder and a = kr): [K']{re} = {t'}
+ {Q'}
(3.91a)
where Klj=2Ji
'S
J 'A
d1jJ'd1jJ'
k r -I -J dr, dr dr
(3.91b)
Q~ = -2Jik(r ~j 1,/
and (rA, rB) are the coordinates of the element Q' = (rA' rB)' For the choice of linear interpolation functions 1JIf as [see (3 .16b) and (3. 66c) l 1JI~ = (rB -
nl«;
1JI~ = (r - rA)/h,
the element equations for a typical linear element are 2Jikr'+l + r, [ 1 h. 2 -1
-1]{T:} = 2lrqo h.{2r. + r.+ + {Q!} 1 T2 6 r. + 2r'+1 Q2 I }
(3.92)
The element equations for individual elements are obtained from these by giving the element length h. and the global coordinates of the element nodes, r; = r A and r,+1 = rB' For the mesh of one linear element, we have rl = 0, r2 = h. = R o ' and Jik[
1 -1]{VI } = J i q oRo{Ro -1 1 V2 3 2R o
}+{Q !} Q2
The boundary conditions in (3.90) imply V 2 = To and Q~ = O. Hence the temperature at (global) node 1 is and the heat at r = R o is
QJ =
rrk(Uz - VI) - ~)1"qoR~ = -1CqoR~
The negative sign indicates that heat is removed from the body (because dT/ dr < 0). The one-element solution as a function of the radial coordinate r is TI(r) =
VI~:(r) + V21J1~(r) = q;:~ (1-
;J +
10
(3.93)
and the heat flux is (3.94)
116
FfNITE ELEMENT ANALYSIS 01' ONE-DIMENSIONAL PROBLEMS
The exact solution of the problem can be obtained by integrating (3.78) and evaluating the constants of integration with the help of the boundary conditions in (3.90): r(r) =
q~=~ [1- (;)2] + To
q(r) = !qor (in W m"),
and
r3
Q(R o) = - (2n-kr
(3.95)
~j Inn = n-qoR~
For a mesh of two linear elements, we take hi = h 2 = !R o, rl = hi + h 2 = RD. The two-element assembly gives
= 0,
r2
= hi = ~Ro,
,,-(3.96)
Ql = 0,
Imposing the boundary conditions U3 = Tv and n-k[
1 -lJ{ U -1 4 U
1
}
the condensed equations are
m{l}+ nk{ 0}
q = n o
12
2
6.
(3.97)
3To
Their solution is (3.98a) .
From equilibrium,
Qi is computed as Q~ = -fznqoR~ + 3rrk(U3
U2) = -rrqoR~
-
(3.98b)
The finite element solution becomes
u1't'1 '111+ U .11 1 = (~qoR~ + Tr)R o-2r + (~qoR~ + Tr) 2r 2't'2 k R k R 18
T. () fern
r
={ =
{
0
36
( R U .11· + V'I'. = z. qo 0+1: 2
.'t'1
3r2
36
qOR-~ ( r - -3r) + Tr 18k
Ro
7qoR~ - ( 1 - r) 18 k Ro
0
k
0
0
0
)
2(R ) - 2 R 0- r + 1: ~ R 0 R o
0
o
for 0 ~ r ~ -.1 R o
+ To for
(3.99) !Ro~r~Ro
Note that the heat flow at r = R o is predicted accurately by both one- and two-element models. The temperature at the center of the cylinder according to the exact solution is T(O) = qoR~{4k + To, whereas it is q oRU3k + To and q oRU18k + To according to the one- and two-element models, respectively. . The finite element solutions obtained using one-, two-, four-, and eight-element meshes of linear elements are compared with the exact solution in Table 3.3. Convergence of the finite element solutions to the exact solution with an increasing number of elements is clear (see Fig. 3.10). Figure 3.11 shows plots of q(r) = -dT [dr, as computed by the finite element interpolation and the exact formula. The figure also shows the plot of the exact Q = -2nkrdT{dr versus r,
SECOND·ORDER BOUNDARY VALUE PROBLEMS
TABLE 3.3
117
.
Comparison of the finite element and exact solutions for heat transfer in a radially symmetric cylinder (Example 3.2) (R o = m , q 0 =2x108Wm:-3 , k=20Wm- 1oC-1 , T,0 = 100°C) . OOl Temperature u(r)t One
rlRo
elementj
0.00 0.125 0.250 0.375 0.500 0.625 0.750 0.875 1.000
433.33 391.67 350.00 30~.33
266.67 225.00 183.33 141.67 100.00
Two elements
Four elements
Eigbt elements
Exact
377.78 356.24 335.11 315.28 294.44 245.83 197.22 148.61 100.00
358.73 348.31 337.90 313.59 289.29 249.70 210.12 155.06 100.00
352.63 347.42 335.27 315.48 287.95 252.65 209.56 158.68 100.00
350.00 346.09 334.38 314.84 287.50 252.34 209.38 158.59 100.00
t The underlined terms are nodal values and others are interpolated values. t Uniform meshes (i.e., equal-length elements) of linear elements.
3.3.2 Fluid ~echanjcs All bulk matter in nature exists in one of two forms: solid or fluid. A solid body is characterized by relative immobility of its molecules, whereas a fluid state is characterized by their relative mobility. Fluids can exist either as gases or liquids. The field of fluid mechanics is concerned with the motion of fluids 500 ~-------------------.
j
- - T(r), Exact T(r), lL ""-0-'" T(r),2L FEM •••••0-... T(r), 4L - A - - T(r),8L
---.0---
400
T(r) 300
200
100
O-l--..--.----.---r"-...---.....---.--...---.....---.--~_l
0.0
0.2
0.4
0.6
0.8
1.0
1.2
rIRo FIGURE 3.10 Comparison of the finite element solutions with the exact solution for heat transfer in a radially symmetric problem with cylindrical geometry (Example 3.2).
118
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
80 . , - - - - - - - - - - - - - - - - - - ,
60
- - (-2'ITkr dT/dr) x 10- 3 (exact) 3 - - -0- - (-dTldr) x 10(8L) --(-dTld,) X 10-' ("~
M
I
o,....,
x ?:;'''1J
~I{j 40 I
/ 20
I'
OT--==;:::::..-..---..---,--.-........-,...--,---.-~---...--{ 0.2 0.0 0.8 0.4 1.0 1.2 FIGURE 3.U Comparison of the finite element solution with the exact solution [or the temperature gradient in a radially symmetric problem with cylindrical geometry (Example 3.2).
and the conditions affecting the motion. In this section, we review the basic equations of fluid mechanics and develop finite element models of certain one-dimensional fluid systems. Several numerical examples will be discussed. The basic equations of fluid mechanics are derived from the global laws of conservation of mass, momentum, and energy. Conservation of mass gives the continuity equation, while the conservation of momentum results in the equations of motion. The conservation of energy, considered in the last section, is the first law of thermodynamics and results in (3.68), and (3.77)-(3.79) for various one-dimensional systems when thermal-fluid coupling is omitted. Before we review the basic equations of fluid mechanics, it is informative to consider various types of fluids. An ideal (or perfect) fluid is one that has zero viscosity and is incompressible. A real fluid or viscous fluid is one with finite viscosity, and mayor may not be incompressible. Nonuiscous fluids are those with zero viscosity, and again mayor may not be incompressible. A viscous fluid is said to be a Newtonian fluid if its viscosity coefficient is independent of the velocity gradient (i.e., the viscosity is constant). Non-Newtonian fluids are those for which the viscosity is a function of the velocity gradient. Two different viewpoints are used in the analytical description of the equations of a continuous medium. In the first, one considers the motion of all matter passing through a fixed spatial location. Here one is concerned with changes (e.g., in velocity field, pressure, and density) that are taking place in the matter that happens to occupy the fixed spatial location, This viewpoint, known as the Eulerian description, is the one that is most commonly used in
SECOND·ORDER BOUNDARY VALUE PROBLEMS
119
fluid mechanics. In the study of the motion of fluids, one is interested in the flow characteristics of fluids occuping a fixed region rather than a fixed set of fluid particles. In the other viewpoint, one considers the motion of a fixed set of material particles (i.e., fixed matter), irrespective of its spatial location. This viewpoint is known as the Lagrangian description, and it is used in the study of the motion of solid bodies. The conservation of mass in the Eulerian description is expressed as ap
~+
at
(3. 109a)
V· (pu)=O
or, for two-dimensional flow, ap + ~ (pu)
at ax
+ ~ (pu)
ay
=
0
(3.100b)
where p is the density (in kg m") and (u, u) are the velocity components (in m S-l) in the x and y directions. All problems of fluid mechanics require that the continuity equation (3.100) be satisfied (because of the Eulerian description). In the steady-state case, we have a/at = 0, and (3.1OOa,b) become
V· (pu) =0,
a ax
a ay
- (pu) + - (pu)
= 0
(3.101a,b)
If a fluid is incompressible, the density is constant, and the continuity equations (3.101a,b) take the forms
V'u=O,
au au ax ay
-+-=0
(3,102a,b)
For flows of incompressible fluids, the conservation of linear momentum results in the following equations of motion: V . (J + f = p ( : + u .
vu)
(3.1030)
or, for two-dimensional systems,
aox aoxy + =p (au au au) _.-+--+j, -+u-+u-
ax ay x at ax ay aO aoy .( =p (au au au) --+-+}l ax ay Y -+u-+uat. ax ay
(3.103b)
XY
where (ox> oy, oxy) are the' total stress components (in N m") and (fx,fy) are the x and y components of the body force vector (measured per unit volume). The total stress components can be expressed in terms of the viscous stress components (.x, .y, .Xy) and the hydrostatic pressure P (in N m- Z) : Ox
= l"x -P,
(3.104)
120
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
The viscous components of stress are related to the velocity gradients by Newton's law of viscosity. For isotropic, Newtonian fluids, these are
au
'ry =
21t ay'
'r
xy
=It
au) (-au ay+ax
(3.105)
where It is the viscosity (in kg m" S-1) of the fluid. Combining (3.103)(3.105), we obtain
au P ) +a [It (au au)] -a (21t--+-
(au au au) ax ax ay ay ax +fx=p -+u-+vat ax ay (3.106) a [ (au av) J a ( av) (av av av) +f,Y=p -+u-+vax It -+ay ax +ay 21t--P ay at ax ay" /
These are known as the Navier-Stokes equations. When the viscosity is zero, we have
ap (au au au) --+fx=p -+u-+vax at ax ay sr =p (av au au) --+f, ay Y -+u-+vat ax ay
(3.107)
which are known as the Euler equations. Conservation of energy for incompressible fluids is expressed by
aT et aj =k (efT efn pc(-+u-+vy2 +q+~ at ax ay ax 2+a-
(3.108)
where c is the mean heat capacity at constant volume, q is the internal heat generation, k is the thermal conductivity of the (isotropic) fluid, and
ax
ay
ay ax
(3.109)
which is zero for nonviscous fluids. For fluids of low viscosity and for velocities less than the sonic velocity, has a magnitude that is small compared with the other terms in the equation. In summary, the two-dimensional flows of viscous incompressible fluids are governed by (3.102), (3.106), and (3.108). There are four unknowns (u, v, P, T) and four equations. The two-dimensional flows of nonviscous fluids are governed by (3.100), (3.107), and (3.108) (with =0). There are five unknowns (u, v, T, P, p) in four equations. The fifth equation is provided by the equation of state, F(p, T, P) = 0, which relates the density p, temperature T, and pressure P. For certain flows, the equations can be further simplified to l-D equations. These are discussed below.
SECOND·ORDER BOUNDARY VALUE PROBLEMS
121
Consider the flow of a viscous, incompressible fluid between two stationary parallel flat walls separated by a distance 2L. We assume that there are no body forces. The velocity of the fluid at the wall is zero, because of adhesion, and reaches a maximum at the center of the channel. The velocity is constant on a plane parallel to the center plane, with its magnitude being proportional to the distance from the latter; the individual planes slide over each other, the velocity field being purely axial everywhere. Such fluid flows are called laminar. At a sufficiently large distance from the entrance, where the velocity is uniform, the velocity distribution becomes independent of the coordinate along the flow direction. The portion of the flow region beyond this distance is called the hydrodynamically developed or fully developed region, and the flow is called fully developed flow. For this case, the governing field equations (3.102), (3.106), and (3.108) can be simplified because of the specific nature of the velocity field:
u=u(x,y),
v=O
where the x and y coordinates are chosen along and normal to the flow direction, respectively. The continuity equation (3.012) reduces to :; = 0,
which implies that
u = u(y)
The y momentum equation in (3.106), for h = 0, simplifies to
ap
ay = 0,
which implies that P = P(x)
The x momentum equation in (3.106), subject to the requirements v = 0, u = u(y), P = P(x), and Ix = 0, simplifies to d 2 u dP /l d y 2 = dx
(3.110)
The energy equation (3.108) for this problem reduces to
(dU)2
et (~T pcu-=k - 2+~~ - +/l ax
ax
ay2
dy
(3.111)
In the case of the steady flow of an incompressible, Newtonian fluid inside a circular tube of radius r, (3.110) and (3.111) take the forms
(dU)
/l d dP. -; dr r dr = dz
et [1 a(aj +~~ - +/l (dU)2 az dr
pcu-=k - - r az r ar ar
2
(3.112) (3.113)
where u = u(r) is the axial velocity, T = T(r, z) is the temperature, P = P(z) is the hydrostatic pressure, and the rand z coordinates are chosen along and
122
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
normal to the direction of main flow. This flow is also known as Poiseuille flow.
This completes the review of the pertinent equations of fluid mechanics that are considered in this chapter. Next, we consider the finite element analysis of one-dimensional problems governed by (3.110)-(3.113). Example 3.3. Consider parallel flow between two long flat walls separated by a distance 2L. We wish to determine the velocity distribution u(y) for a given constant pressure gradient dP/dx, using the finite element method. The governing equation (3.110) is a special case of the model equation (3.1) with the following correspondence:
dP q = - dx = constant == qo,
a = J.l = constant,
c = 0,
Hence the finite element model in (3.31) is valid for this problem:
x=y /
(3.1l4a) where
(3.1l4b)
For the choice of linear finite elements, (3.114a) is the same as (3.37), with a. = J.l and q. = qo. For quadratic finite finite elements, [K<] is given by (3.40a) with c. = 0, and {!"} is given by (3040b). For a two-element mesh of linear elements (h = L), we have
*[ 1-1 o -1
2
{I} { Q~
U3
Q2
O]{Ul} U = q;h
2 -1 -1 1
2 1
+ Qi +pi
}
We consider two sets of boundary conditions
= U3=O
Setl
u(-L) = u(L) =0
or
UI
Set 2
u(-L)=O,
or
UI =0,
u(L)=Uo
U3 = Uo
(3.115)
The finite element solutions for these two cases are for Set 1 (3.116)
for Set 2 For a one-element mesh of the quadratic element (h = 2L), we have 7
J!.... -8
6L [
-8
16 1 -8
SECOND-ORDER BOUNDARY VALUE PROBLEMS
U3
and the solution is for Set 1 (3.117) for Set 2 Although the nodal values predicted in the linear- and quadratic-element meshes are the same, they vary linearly and quadratically, respectively, between nodes. The exact solutions of (3.110) for the two sets of boundary conditions in (3.115) are (- L ~ Y ~ L)
L2( y2)
q u(y)=_o1 - -2 2p.
for Set 1
L
Y) +_0_ qL 1 -y2) Il(Y) = Uo -1(1 +2 L 2p. L
(3.118)
2
(
2
for Set 2
Note that the finite element solutions at the nodes are exact, as expected (see the comments made in Example 3.1). The quadratic-element solution agrees with the exact solutions (3.118) for every value of y.
3.3.3
Solid Mechanics
Solid mechanics is that branch of mechanics dealing with the motion and deformation of solid bodies. The Lagrangian description of motion is used to express the global conservation laws. The conservation of mass for solid bodies is trivially satisfied because of the fixed material viewpoint used in the Lagrangian description. The conservation of momentum is nothing but Newton's second law of motion. Under isothermal conditions, the energy equation uncouples from the momentum equations, and we need only consider the equations of motion. Unlike in fluid mechanics, here the equations governing solid bodies undergoing different forms of deformations are derived directly, without specializing the three-dimensional elasticity equations. Various types of load-carrying members are called by different names, e.g., bars, beams, and plates. A bar is a structural member that is subjected to only axial loads, while a beam is a member that is subjected to bending loads. The equations governing the motion of such structural elements are not obtained directly from (3.103). They are derived either by considering an element of the member with all its proper forces and using Newton's second law, or by using an energy principle. Examples of the governing equations of the bending of beams and bars were discussed in Example 2.2 in Chapter 2. Energy principles provide an alternative to Newton's laws, and they are more suitable for finite element modeling because energy principles are nothing but the weak forms used in the development of the finite element models. Here we illustrate an application of Newton's second law and the energy principle, namely, the principle of virtual displacements, to a bar element. Other examples will be
124
FINITE ELEMENT ANALYSIS OF ONE~DIMENSlONAL PROBLEMS
presented in connection with the finite element modeling of beams (Chapter 4) and plates (Chapter 12) later in this book. Consider a material body of length L and cross-sectional area A. Suppose that the material of the body is homogeneous (i.e., material properties are independent of position), the cross-section is either constant or gradually varying in the axial (i.e., lengthwise) direction, and the applied loads are axial and symmetrically positioned with respect to the geometric centroid of the cross-section. Then the axial stress in the member, except near the points of load application, will be uniform. The only nonzero stress component is ax = ox(x, t). Such members are called bars. For this case, U = u(x, t), v = 0, and (3.103) reduce to the single equation (here u denotes the displacement) cru
oOx
ax
+fx = P of
'-
(3.119)
However, the above equation does not include cross-sectional properties of the member, and it is not useful in its present form. The governing equations of bars of axially varying cross-sections can be derived from Newton's second law (e.g., summation of forces along the x direction) applied to an element of the body (see Fig. 3.12); i.e.,
2: Fx =ma giving dxcru
-oxA + (ax + dox)(A + dA) + fdx = p[A + (A + dA»)--2 2 at or
ax dA +doxA+ doy dA +fdx
Dividing throughout by dx and taking the limit o
ax (oxA) +f
a2u at
= peA +~ dA)dx-2 dx~-O,
cru = pA
at2
we obtain (3.120)
where f is the body force per unit length.
FIGURE 3.12 Axially loaded member and a typical portion of a member of length dx with its axial forces.
SECOND-ORDER BOUNDARY VALUE PROBLEMS
US
From the strain-stress relation ex == (ax - yay)! E, we have (because ay =0)
au ax
a =Ee =E~
x
Substituting for ax from here into (3.120), we obtain
cJ1u -a (au) EA- +f=pA2 ax
ax
at
or
cJ1u - a ( EAau) =f(x, t) pA2 at
ax
ax
(3.121)
For static problems, this reduces to
d( dU)
- - EA- =f(x) dx dx
(3. 122a)
Equation (3.122a) can be used to determine the displacement u(x) of a material point located at a distance x along the axis of a uniaxially loaded member, called a bar. It should be recalled that (3.122a) is derived under the assumption that all material points on the line x = constant move by the same distance u(x) (i.e., the stress at any cross-section is uniform). Equation (3.122a) is the same as the model equation (3.1), with a = EA and q = f(x). The average transverse deflection u(x) of a cable made of elastic material is also governed by an equation of the form (3.122a):
d( dU)
- - T- == f(x) dx dx
(3. 122b)
where T is the uniform tension in the cable and f is the distributed transverse force. Example 3.4. A bridge is supported by several concrete piers, and the geometry and loads of a typical pier are shown in Fig. 3.13. The load 20 kN m- 2 represents the weight of the bridge and an assumed distribution of the traffic on the bridge. The concrete weighs approximately 25 kN m ? and its modulus is E = 28 X 106 kN m". We wish to analyze the pier for displacements and stresses using the finite element method. The pier is indeed a three-dimensional structure. However, we wish to approximate the deformation and stress fields in the pier as one-dimensional. To this end, we represent the distributed force at the top of the pier as a point force F"" (0.5 x 0.5)20 "" 5 kN The weight of the concrete is represented as the body force per unit length. The total force at any distance x is equal to the weight of the concrete above that point. The weight at a distance x is equal to the product of the volume of the body above x and the
126
FINITE ELE!'
20 kN m- 2
T .x
fJ
0.5 m
FIGURE 3.13 The geometry and loading in the concrete pier problem of Example 3.4.
specific weight of the concrete:
W(x) = 0.5 0.5 + (0.5 2
+ 0.5x) x X 25.0 = 6.25(1 + O.S:)x
The body force per unit length is computed from
dW f= dx =6.2S(1+x) Tills completes the load representation of the problem. The governing differential equation for the problem is given by (3.122a), with E = 28 X 106 kN m- 2 and cross-sectional area A(x):
A(x) = (0.5 + 0.5x)0.5 = 1(1 + x) Thus
d [ ~E(l + x) dx dU] = 6.25(1 + x) - dx
(3. 123a)
subject to the boundary conditions
I
dU] = -5, [ ~E(1 + x) dx ""~O
u(2) = 0
(3. 123b)
The finite element model is (3. 124a) where
(3. 124b)
For the choice of linear interpolation functions (3.16b), we have
1 =1
""' + 1
Kh=
EH1+x)
(1)2 E -h dx= 4h [l+1(x
e+xe+l)]
e
~
"", + 1
f~
x.
6.25(1
+ X)1J!~ dx = 6.25h.U + HXe +l + 2x.)]
SECOND·ORDER BOUNDARY VALUE PROBLEMS
U7
Similarly, other components can be evaluated: E
[
1 -1]1
[K·]=4h.[1+~(x,+x'+I)] -1
(3.125)
{X'+l 2x,})
{!'} == 6.25 h. ({l} +! + 2 1 3 2x'+1 +x,
Let us consider a two-element mesh with hi == h z == 1 m. We have
I}
-1.5] 1.5 '
{t} == 6.25{3 + == {4.167} 6 3 +2 5.208
-2.5] 2.5 '
{f2} = 6.25 + 4} == {7.292} 6 3+ 5 8.333
{3
The assembled equations are E
O.OOO]{ UVI} == {4'167} { Q~ } 12.500 + Qi + Qi
0.375 -0.375 -0.375 1.000 -0.625 [ 0.000 -0.625 0.625
2
V3
Q~
8.333
The boundary and equilibrium conditions require Q~+Qi==o,
V3=0,
Q~==5kN
The condensed equations are
E[ -0.375 0.375
VI}
-0.375]{ == {9.167} 1.000 U2 12.500 '
V
Q~ == -0. 6255
2
_
8.333
and the solution is given by
V1 =2.111 X 10- 6 m,
Q~==
V2 == 1.238 X lO-6 m ,
-30 kN
(3.126)
Hence the stress at the fixed end is given by a; = Q~/A = -30/0.75 = -40 kN m ? The exact solution of (3.123) is u(x)
==~(56.25 -
6.25(1 +X)2 -7.5 In
The exact values of u at nodes 1 and 2 are
u(O) == 2.08 X 10- 6 m,
c;
X)]
(3.127)
_
U(I) = 1.225 x 10- 6 ill
The four-element model gives 2.008 x 10- 6 m and 1.228 X 10- 6 m, respectively. The finite element solution at the nodes is not exact because a == EA is not a constant in the problem.
3.4 SUMMARY In this chapter, the finite element formulation of a second-order differential equation in a single variable has been presented systematically, following a step-by-step procedure. The basic steps of the formulation and analysis of a
128
FINITE ELEMENT ANALYSIS OF ONE·D1MENSIONAL PROBLEMS
typical equation. are described in Table 3.1. The model equation is representative of the equations arising in various fields of engineering (see Table 3.2). The finite element model is developed following three steps: 1. Weak formulation of the differential equation over an element. 2. Finite element interpolation of the primary variables of the weak fomulation. 3. Finite element formulation over a typical element. The weak formulation itself involves a three-step procedure, which enables identification of primary variables (i.e., variables that are required to be continuous throughout the domain, including the nodes at which elements are connected). The finite element interpolation functions have been developed here on the basis of continuity, completeness, and linear iI~dependence. The finite element model has been developed by substituting appropriate interpolation of the primary variable into the weak form of the differential equation. Applications of the model to the solution of problems of heat transfer, fluid mechanics, and solid mechanics have been presented. To aid the reader, a brief review of the basic terminology and governing equations of each of the three fields has also been given. The numerical examples should aid the reader in deeper understanding of the steps involved in the finite element analysis of one-dimensional second-order differential equations. It has been shown that the secondary variables of a problem can be computed using either the global algebraic equations of the finite element mesh (i.e., condensed equations for the secondary variables) or by their original definition through finite element interpolation. The former method gives more accurate results, which will satisfy the equilibrium at interelement nodes, whereas the latter gives less accurate results, which are discontinuous at such nodes. The secondary variables computed using the Lagrange linear elements are element-wise-constant, while they are element-wise-linear for the Lagrange quadratic elements.
PROBLEMS Many of the following problems are designed for hand calculation while some are intended specifically for computer calculations using the program FEMIDV2. This should give the student deeper understanding of what is involved in the formulation and solution of a problem by the finite element method. The hand calculations can be verified, in most cases, by solving the same problems using FEMIDV2, which is described in Chapter 7.
Section 3.2 3.1. Develop the weak form and the finite element model of the following differential equation over an element:
~ (a dU) +..:E.. (b d!2l)+cu = f 2
-
dx
dx
dx"
dx
for XA <x <XB
SECOND-ORDER BOUNDARY VALUE PROBLEMS
129
where a, b, C, and f are known functions of position x. Ensure that the element coefficient matrix [K e ] is symmetric. What is the nature of the interpolation functions for the problem? 3.2. Construct the weak form and the finite element model of the differential equation
_!!.. (a dU) - b du = f fix
fix
dx
xL
for 0 < <
over a typical element g< = (XA, XB)' Here a, b, and f are known functions of x, and u is the dependent variable. The natural boundary condition should not involve the function b(x). What type of interpolation functions can be used for u? 3.3. Construct the weak form and associated finite element model of the equation
_!!.. (a dU) + cu = f fix dx
x L
for 0 < <
such that the natural boundary condition of the type du a fix + k(u - uo) = Q
is included in the weak form. Here a, c, and f are known functions of x, while k, uo, and Q are constants. 3.4. Derive the Lagrange cubic interpolation functions for a four-node (onedimensional) element (with equally spaced nodes) using the alternative procedure based on interpolation properties (3.28). Use the local coordinate i for simplicity. 3.5. Verify (3.34a,b) by actual evaluation of Kij= Kjf andfi. 3.6. Evaluate the following coefficient matrices and source vector using the linear Lagrange interpolation functions:
l
" B
Kij=
d1J!~ d1J!'
(ao+alx) fix' fix! dx
XA
mif=
l
XB(co+ c\x )1JI11/1j fix,
XA
f~=
l"B (qo+qlx)1J!~dx .l';A
where ao, ai' Co, CI, qo, and ql are constants. 3.7. Verify the coefficients in (3.40a,b) by actual evaluation of Kij=Kfi and j",
p
I-- III I--- II~ fl~f2
Typical element
FIGURE P3.8
130
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
3.8. Consider the system of linear elastic springs shown in Fig. P3.8. Write the force-displacement relationship for a typical (single) spring element, and assemble the element equations to obtain the force-displacement relations for the entire system. Use the boundary conditions to write the condensed equations for the unknown displacements and forces. 3.9. Consider the hydraulic network (the flow is assumed to be laminar) shown in Fig. P3.9. A typical element (which is a circular pipe of constant diameter) with two nodes is also shown in the figure. The unknown primary degree of freedom at each node is the pressure P, and the secondary degree of freedom is the flow (or discharge) Q. The element equations relating the primary variables to the secondary variables are given by
C(de )4 [ 1 he -1
-1]{P1} == {Q1} 1
m'
Pi
C
:rc = 128/t
where de is the diameter of the pipe, he is its length, and f.l is the viscosity of the fluid. Write the condensed equations for the unknown pressures and flows (use the minimum number of elements.) Answer: Pi = HQa, P2 = -¥Qa, P3 == HQa.
Pi Ide Qf-.
11
·-m
I-h -1 e
R e = -~4-· 128Jih . P ·ipe resistance
1!"d e
FIGURE P3.9
3.10. Consider the direct current electric network shown in Fig. P3.10. We wish to determine the voltages V and currents I in the network using the finite element method. A typical finite element in this case consists of a resistor R, with the primary degree of freedom being the voltage and the secondary degree of freedom being the current. The element equations are provided by Ohm's law:
1 [ 1 -l]{V~} {I~} R. -1 1 V; == I;
The continuity conditions at the interelement nodes require that the net current flow into any junction (node) always be zero in a closed loop. Set up the algebraic equations (Le., condensed equation_~) for the unknown voltages and currents.
SECOND-ORDER BOUNDARY VALUE PROBLEMS
2
Rz
R I E1 1.
R4
3
1
1
E 1
...
2
131
4
u,
I'
vt v~ If-~-I~
R.
Typical element
FIGURE P3.10
3.11. Consider the composite structure of axially loaded members shown in Fig. P3,11. Write the continuity conditions (i.e., the correspondence of element nodal values to global nodal values) and the equilibrium conditions (i.e., the relationships between Qf at the interelement nodes) for the structure. Derive the assembled coefficient (stiffness) matrix for the structure, and set up the condensed equations for the unknown displacements and forces.
Aluminum
Steel
1 in diam,
1.5 in diam,
Aluminum 1 in diarn, 1-<--16 in
Rigid bar FIGURE P3.11
3.12. Use the finite element method to solve the differential equation
for the (Dirichlet) boundary conditions u(O) = 0 and u(I) = O. Use a uniform mesh of three linear elements, and compare the finite element solution with the exact solution for c = 1. Answer: U2 = -0.02999, U3 = -0.04257, P~ = 0.12771. 3.13. Solve the differential equation in Problem' 3.12 for the (mixed) boundary conditions u(O) =0,
Use three linear elements. Answer: U, = -0.18805, U3
I
L
dU)Ix~I =0 (-dx
= -0.34144,
U4 = -0.40708,
P~
= 5.6414.
132
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
3.14. Solve the differential equation in Problem 3.12 for the (Neumann) boundary conditions
Use a uniform mesh of three linear finite elements to solve the problem. Verify your solution with the analytical solution. Note that for Neumann boundary conditions, none of the primary dependent variables is specified, and therefore the solution can be determined within a constant; the coefficient matrix of the finite element equations for this case remains unaltered. When c := 0, the coefficient matrix is singular and cannot be inverted. In such cases, one of the U/ should be set equal to a constant (e.g., zero) to remove the "rigid-body" mode (i.e., to determine the arbitrary constant in the solution). _ Answer: U, = -0.56862, U2 := -0.20932, U4 := 0.18696( Us = 0.61334. 3.15. The governing equation for an unconfined aquifer with flow in the radial direction is given by the differential equation
.i». (rk dlt) =f r dr dr where k is the coefficient of permeability, f the recharge, and !l the piezometric head. Pumping is considered to be a negative recharge. Consider the following problem. A well penetrates an aquifer and pumping is performed at r = 0 at a rate Q = 150 m 2 h- I • The permeability of the aquifer is k = 25 m3 h- 1 m ", A constant head It o := 50 m exists at a radial distance L = 200 m. Determine the piezometric head at radial distances of 0, 10, 20, 40, 80, and 140 m (see Fig. P3.15). You are required to set up the finite element equations for the unknowns using a nonuniform mesh of five linear elements.
./==_r., . 123
4
5
•
6
•
L
7
•
-..j
.1
FIGURE P3.15
Section 3.3 Heat transfer
_3.16. The following differential equation arises in connection with heat transfer in an insulated rod:
-~ (<&) = T(O) =
To,
q for 0 < x < L
[ k ~~~ f3(T -
T~) + q]
Ll-
:=
0
SECOND~ORDER BOUNDARY VALUE PROBLEMS
133
where T is the temperature, k the thermal conductivity, and q the heat generation. Take the following values for the data: q = 0, q = 0, L = 0.1 m, k=O.01 Wm-Ioe- I, P=25Wm- 2oe- l • To=50oe, and T~=5°e. Solve the problem using two linear finite elements for temperature values at x = !L and L. Answer: V 2 = 27.59 °e , V3'= 5.179°e , PJ =4.482Wm~2= -P~. 3.17. An insulating wall is constructed of three homogeneous layers with conductivities k l , k 2 , and k 3 in intimate contact (see Fig. P3.17). Under steady-state conditions, the temperatures at the boundaries of the layers are characterized by the external surface temperatures 1; and ~ and the interface temperatures 1; and 1;. Formulate the problem to determine the temperatures T; (i = 1, ... , 4) when the ambient temperatures To and 1; and the (surface) film coefficients Po and 135 are known. Assume that there is no internal heat generation and that the heat flow is one-dimensional (aT / ay = 0). Answer: VI = 84.489 -c, V2 = 68.97re, V3 = 50.881 "C, V4 = 45.341 -c, (PDdef= 217.16 W m", (P~)def = -155.11 W m- 2.
CD
5cm
k 1 = 50 W em 1 0C I k 2 = 30 W cm? "C- I k 3 = 70 W em- 1 "C- I Ambient temperature, Ts = 35°C {3 = 15 W cm- 2 °C- 1
Ambient temperature,
To = WO·C
1
f3 = 10 W cm- 2 °C- 1
FIGURE P3.17
3.18. Consider the rectangular cooling fin shown in Fig. 3.9. The governing equation (i.e., balance of energy) is d2T 13 - - + - ( T - T)=O dx" ka ~ where T is the temperature, k the thermal conductivity, 13 the film coefficient, a the thickness, and T~ the temperature of the surrounding fluid (i.e., ambient temperature). The boundary conditions of the problem are T(O) = T",
(wall temperature),
(kA 2) IX-L = 0
The equations can be recast by introducing the following nondimensional quantities: (J =
T - T~ T",- T~'
S =-LX ,
2
N=
(PkLa )1!2
They then take the forms
d 2 (J
2 --+N 0 =0 2
ds
'
8(0) = 1,
de)1 (ds
1;=1
-0
134
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
Solve the problem using (a) two linear elements and (b) one quadratic element, and compare the finite solutions at four equal distances with the analytical solution
e = cosh Nt - (tanh N) sinh Nt; diameter D = 2 em, length L = 5 em, and
3.19. A steel rod of thermal conductivity k = 50W m - I °C- I is exposed to ambient air at T", = 20°C with a heat transfer coefficient fJ = 100 W m- 2 °C-I. If the left end of the rod is maintained at temperature To = 320 "C and the other end is insulated (see Fig. P3.19), determine the temperatures at distances 25 mm and 50 mm from the left end, and the heat at the left end. The governing equation of the problem is
d2 e
20=0 --+N for O<x
/
where 0 = T - Trn, T is the temperature, and N 2 is given by
The boundary conditions are
0(0) = T(O) - T", = 300 DC,
)I (dO dx
-0
x-L
Use (a) two linear elements and (b) one quadratic element to solve the problem by the finite element method. The exact solution is
O(x) = 0(0) coshN(L -x) coshNL Answer: (a) U1 = 300 DC, U2 = 50.272 DC, U3 = 15.996 DC, p~ = 998.9 W m-2. (b) U2 = 300 DC, U2 = 62.658 DC, U3 = 34.177 DC, p~ = 1367 W m-2. Ambient air
To
T", Diameter D
x L
-\
T",
FIGURE P3.19
3.20. Find the temperature distribution in the tapered fin shown in Fig. P3.20. Assume that the temperature at the root of the fin is 250 OF, the conductivity k = 120 BTu h- I ft- I °F-\ and the film coefficient f3 =;= 15 Btu h- I ft- 2 °F-t, and use three linear elements. The ambient temperature at the top and bottom of the fin is T",=75°P. Answer: TI(tip)=166.188~F, 1;=191.1 OF, 1; = 218.87 of.
SECOND·ORDER BOUNDARY VALUE PROBLEMS
135
TQ = 250°F
10.25 in FIGURE P3.20
3.21. Consider steady heat conduction in a wire of circular cross-section with an electrical heat source. Suppose that the radius of the wire is R o, its electrical conductivity is K. (Q~1 cm"), and it is carrying an electric current density of 1 (Acm"), During the transmission of an electric current, some of the electrical energy is converted into thermal energy. The rate of heat production per unit volume is given by q, = IZ/K e» Assume that the temperature rise in the wire is sufficiently small that the dependence of the thermal or electric conductivity on temperature can be neglected. The governing equations of the problem are
1d( dj
- - - rk- =q. for r dr dr
O~r~Ro,
I
= 0, ( kr dr\ d-;) r~O
T(R o) = To
Determine the distribution of temperature in the wire using (a) two linear elements and (b) one quadratic element, and compare the finite element solution at eight equal intervals with the exact solution
Also, determine the heat flow Q = -ZnRoLk(dT/dr)IRo at the surface using (i) the temperature field and (ii) the balance equations. 3.22. Consider a nuclear fuel element of spherical form, consisting of a sphere of "fissionable" material surrounded by a spherical shell of aluminum "cladding" as shown in Fig. P3.22. Nuclear fission is a source of thermal energy, which varies nonuniformly from the center of the sphere to the interface of the fuel element and the cladding. We wish to determine the temperature distribution in the nuclear fuel element and the aluminum cladding. The governing equations for the two regions are the same, with the exception that there is no heat source term for the aluminum cladding. We have
(z
1 d dT1) =q -2dr r k 1 r
dr
__ 12dr ~(rZk~~ d 12) r
dr
-_ 0 for
RF~r~Rc
where subscripts 1 and 2 refer to the nuclear fuel element and cladding, respectively. The heat generation in the nuclear fuel element is assumed to be of the form
where qo and c are constants depending on the nuclear material. The boundary
136
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
conditions are
1; = 12
at r = R F
10
ar r = R c
T2 =
Use two linear elements to determine the finite element solution for the temperature distribution, and compare the nodal temperatures with the exact solution 1; - To = qOR~{[ 6k] 1- ( Rr
p
)2] + roC3[1- (Rr )4]} + qoR} 3k (1 + 3 sC) (1- R R"
F)
p
2
To FIGURE P3.22
Fluid mechanics
3.23. Consider the flow of a Newtonian viscous fluid on an inclined flat surface, as shown in Fig. P3.23. Examples of such flow can be found in wetted-wall towers and the application of coatings to wallpaper rolls. The momentum equation, for a fully developed steady laminar flow along the z coordinate, is given by
d2 w
-11 dx 2
= pg cos {3
SECOND·ORDER BOUNDARY VALUE PROBLEMS
137
where w is the :z component of the velocity, fl. is the viscosity of the fluid, p is the density, g is the acceleration due to gravity, and f3 is the angle between the inclined surface and the vertical. The boundary conditions associated with the problem are that the shear stress is zero at x = 0 and the velocity is zero at x = L: w(L)=O
Use (a) two linear finite elements of equal length and (b) one quadratic finite element in the domain (0, L) to solve the problem and compare the two finite element solutions at four points x = 0, ~L, ~L, and ~L of the domain with the exact solution We
= pgL;;OS f3
[1 - (trJ
Evaluate the shear stress (Txz = -p. dw/dx) at the wall using (i) the velocity fields and [ii) the equilibrium equations, and compare with the exact value. Answer: (a) U1 = Yo, U2 = Yo, fn = (pg cos f3)L?"/ fl..
I
I I I
I
t Direction of gravity
FIGURE P3.23
3.24. Consider the steady laminar flow of a viscous fluid through a long circular
cylindrical tube. The governing equation is
-!~(rJ1 dW) = Pn- PL""fo r dr
dr
L
where w is the axial (i.e., z) component of velocity, J1 is the viscosity, andio is the gradient of pressure (which includes the combined effect of static pressure and gravitational force). The boundary conditions are
=0 ( r dW)! dr ,-0 '
w(R n) = 0
US
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
Using the symmetry and (a) two linear elements, (b) one quadratic element, determine the velocity field and compare with the exact solution at the nodes:
foR~ [ 1- ( Rr )2]
W.(r) = 4/l
o
3.25. In the problem of the flow of a viscous fluid through a circular cylinder (Problem 3.24), assume that the fluid slips at the cylinder wall; i.e., instead of assuming that IV = 0 at r = Ro, use the boundary condition that dw
kw = -(1. dr
at r = Ro
in which k is the "coefficient of sliding friction." Solve the problem with two t' " linear elements. 3.26. Consider the steady laminar flow of a Newtonian fluid with constant density in a long annular region between two coaxial cylinders of radii R, and R, (see Fig. P3.26). The differential equation for this case is given by r
-!~(r/l dW) rdr
dr
= PI - P2 ""fo
L
where IV is the velocity along the cylinders (i.e. the z component of velocity), (1. is the viscosity, L is the length of the region along the cylinders in which the flow is
I I
~
~
I, I I
i
~
I
Velocity distribution
I
I I
LR!
iRo
~L-- ]
~
r
~ FIGURE P3.26
SECOND·ORDER BOUNDARY VALUE PROBLEMS
139
fully developed, and PI and P2 are the pressures at z = 0 and z = L, respectively (PI and P2 represent the combined effect of static pressure and gravitational force). The boundary conditions are w =,0
at r = R; and R 1
Solve the problem using (a) two linear elements and (b) one quadratic element, and compare the finite element solutions with the exact solution at the nodes:
toR~[
wAr) = 4~
(r)2 +In(l/k)ln\.R.: l-e f!:)]
1- R o
where k = RjR o • Determine the shear stress T" = - ~ dw / dr at the walls using (i) the velocity field and (ii) the equilibrium equations, and compare with the exact values. (Note that the steady laminar flow of a viscous fluid through a long cylinder or a circular tube can be obtained as a limiting case of k -4 0.) Answer: U2 = 0.40198, U3 = 0.5036, U4 = 0.35811, Pl = -1.6079, P~ = -2.8705. 3.27. Consider the steady laminar flow of two immiscible incompressible fluids in a region between two parallel stationary plates under the influence of a pressure gradient. The fluid rates are adjusted such that the lower half of the region is filled with Fluid I (the denser and more viscous fluid) and the upper half is filled with Fluid II (the less dense and less viscous fluid), as shown in Fig. P3.27. We wish to determine the velocity distributions in each region using the finite element method. The governing equations for each fluid are d2Ut -~l dx2 = fo,
where
10 = (Po -
d2U2 -P.2 dx2 =
to
Pl.)/L is the pressure gradient. The boundary conditions are ul(-b)=O,
u2(b) =0,
UI(O) = U2(0)
Solve the problem using (a) four linear elements and (b) two quadratic elements, and compare the finite element solutions with the exact solution at the nodes
u, =fo •
IJ.1
b2
2~1
- _
[~ + ~l ~2 ~ (~)2] ~t + ~2 ~1 + fl2b b
Denser, more viscous fluid t
(i = 1, 2)
t FlGUREP3.27
Solid mechanics
3.28. Find the three-element finite element solution to the stepped-bar problem (axial deformation of a bar). See Fig. P3.28 for the geometry and data. Answer: U2=6P/nEa , U3=5P/nEa , U4=¥PJtEa •
140
FINlTE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
Aluminum (4 in diam.) P Aluminum (2 in diarn.)
--t-t~-~=-=:=I~tT&F[tGt" 1--4P Steel
P
~~-12 in
~I'
8 in-+-4 in-j
E = 107 lb in- Z = 3 x 107 lb in- z P = 100 kips
E;
FIGURE P3.2S
3.29. The equation governing the axial deformation of an elastic bar in the presence of applied mechanical loads f and P and a temperature change Y.is
-
~ [EA t~:
-
aT) ]
=f
for 0 < x < L,'
where a is the thermal expansion coefficient, E the modulus of elasticity, and A the cross-sectional area. Using three linear finite elements, determine the axial displacements in a nonuniform rod of length 30 in, fixed at the left end and subjected to an axial force P =400 lb and a temperature change of 60 OF. Take A(x) = 6 - foX in", E = 30 X 106lb in", and a = 12 X 10- 6 in in~1 °F-t, 3.30. Analyze the stepped bar with its right end supported by a linear axial spring (see Fig. P3.30). The boundary condition at x = 24 in is
du EA-+ku=O
dx
P
k---12in
Steel
'I" 8in+4in-.j Eo = 107 lb in~2 k 1010 lb in E, = 3 X 107 lb in- z P = 100 kips
=
FIGURE P3.30
10 = 200 Ib in~1
1"2'In dilam. 1.5 /in dia
1-4 in -1."---12 i n - - - - ! - - 4in--j
FIGURE P3.31
3.31. Consider the steel (E = 30 X 106 psi) beam shown in Fig. P3.31. Determine the transverse deflection using two linear elements. Exploit the symmetry of the beam.
SECOND-ORDER BOUNDARY VALUE PROBLEMS
141
3.32. Determine the axial deformation of a nonuniform bar, A = A o + A IX, under its own weight (10 per unit length). Use two linear elements. The bar is fixed at x=O. 3.33. Turbine disks are often thick near their hub and taper down to a smaller thickness at the periphery. The equation'governing a variable-thickness 1 = t(r) disk is
where
0)2
is the angular speed of the disk and a.>«:
dU U) (-+Y-, dr r
a 9=c
(U-+Y-, dll)
E
c=--
r dr 1- y 2 (a) Construct the weak integral form of the governing equation such that the bilinear form is symmetric and the natural boundary condition involves specifying the quantity tro.. (b) Develop the finite element model associated with the weak form derived in part (a). 3.34. Determine the axial deformation of a varying cross-section member (see Fig. P3.34) under its own weight. Use one quadratic element.
FIGURE PJ.34
REFERENCES FOR ADDITIONAL READING Fluid mechanics Bird, R. B., W. E. Stewart, and E. N. Lightfoot: Transport Phenomena, John Wiley, New York, 1960. Duncan, W. J., A. S. Thorn, and A. D. Young: Mechanics of Fluids, 2d ed., Elsevier, New York, 1970. Harr, M. E.: Ground Waler and Seepage, McGraw-Hili, New York, 1962. Shames, I. H.: Mechanics of Fluids, McGraw-Hili, New York, 1962. Vallentine, H. R.: Applied Hydrodynamics, Butterworths, London 1959. Heat transfer Kreith, F.: Principles of Heat Transfer, 3d ed., Harper & Row, New York, 1973. Myers, G. E.: Analytical Methods in Conduction Heal Transfer, McGraw-Hill, New York, 1972. Nagotov, E. P.: Applications of Numerical Methods 10 Heal Transfer, McGraw-Hill, New York, 1978.
142
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PRODLEMS
Solid mechanics
Boresi, A. P., and P. P. Lynn: Elasticity ill Engineering Mechanics, Prentice-Hall, Englewood Cliffs, NJ, 1974. . Dym, C. L., and 1. H. Shames: Solid Mechanics: A Variational Approach, McGraw-Hili, New York,1973. Reddy, J. N.: Energy and Variational Methods in Applied Mechanics, John Wiley, New York, 1984. Timenshenko, S. P., and J. N. Goodier: Theory of Elasticity, McGraw-Hill, New York, 1970. Variational methods (See also References for Additional Reading in Chapter 2) Crandall, S. H,: Engineering ,4nalysis, McGraw-Hill, New York, 1956. Mikhlin, S. G.: Variational Methods in Mathematical Physics, Pergamon Press, New York, 1964. - - - : The Numerical Performance of Variational Methods, Wolters-Noordhoff, Groningen, ;' '" 1971. Oden, J. T., and J. N. Reddy: Variational Methods in Theoretical Mechanics, Springer-Verlag, New York, 1976; 2d ed., 1983. Reddy, J. N.: Energy and Variational Methods in Applied Mechanics, John Wiley, New York, 1984. - - - : Applied Functional Analysis and Variational Methods in Engineering, Mcflraw-Hill, New York, 1986; Krieger, Melbourne, FL, 1991. - - - and M. L. Rasmussen: Advanced Engineering Analysis, John Wiley, New York, 1982; Krieger, Melbourne, FL, 1990. Rektorys, K.: Variational Methods in Mathematics, Science and Engineering, Reidel, Boston, 1977. Schechter, R. S.: The Variational Methods in Engineering, McGraw-Hill, New York, 1967. Washizu, K.: Variational Methods in Elasticity and Plasticity, 2d ed., Pergamon Press, New York, 1975; 3d ed., 1982.
CHAPTER
4 BENDING OF BEAMS
4.1 INTRODUCTION Here we consider the finite element formulation of the one-dimensional fourth-order differential equation that arises in the Euler-Bernoulli beam theory and the pair of one-dimensional second-order equations associated with Timoshenko beam theory. The formulations of a fourth-order equation and two coupled second-order equations. involve the same steps as described in Section 3.2 for a second-order equation, but the mathematical details are somewhat different, especially in the finite element formulation of the equations.
4.2 THE EULER-BERNOULLI BEAM ELEMENT 4.2.1 Governing Equation In the Euler-Bernoulli beam theory, it is assumed that plane cross-sections perpendicular to the axis of the beam remain plane and perpendicular to the axis after deformation. In this theory, the transverse deflection IV of the beam
143
144
FINITE ELEMENT ANALYSIS OF ONE·DlMENSIONAL PROBLEMS
I'
I(x)
~
?1
-
-x
V + dV _ .~ V t- dx --I
M
+ dM
Ifw M"'bdx 2
V
=
dM dx
dV dx
=
I
FIGURE 4.1 Bending of beams. The shear force-bending moment-deflection relations and the sign convention. (
is governed by the fourth-order differential equation (4.1) where b = b(x) and I = I(x) are given functions of x (i.e., data), and w is the dependent variable. The sign convention used in the derivation of (4.1) is shown in Fig. 4.1. The function b = E1 is the product of the modulus of elasticity E and the moment of inertia I of the beam, I is the transversely distributed load, and w is the transverse deflection of the beam. In addition to satisfying the differential equation (4.1), w must also satisfy appropriate boundary conditions; since the equation is of fourth order, four boundary conditions are needed to solve it. The weak formulation of the equation will provide the form of these four boundary conditions. A step-by-step procedure for the finite-element analysis of (4.1) is presented next.
4.2.2 Discretization of the Domain The domain of the structure (i.e., length of the beam) is divided into a set (say, N) of line elements, each element having at least the two end nodes (see Fig. 4.2a). Although the element is geometrically the same as that used for bars, the number and fonn of the primary and secondary unknowns at each node are dictated by the variational formulation of the differential equation (4.1). In most practical problems, the discretization of a given structure into a minimum number of elements is often dictated by the geometry, loading, and material properties.
4.2.3 Derivation of Element Equations In this step we isolate a typical element Qe = (xe , X e +l ) (see Fig. 4.2b) and construct the weak form of (4.1) over-the ~lement. The variational formulation
BENDING OF BEAMS
19
145
2\: ,:".§ § N <> N + 1 rhl-+- h ---+- h..~ .... --t--hN..J 2?
2
(a) W2 = u~
~--~.~
r- xe -...:!'<:!"I~- he ~S Qf
r-
Primary variables (Generalized displacements) Secondary variables (Generalized forces)
Q~
X
(b)
FIGURE 4.2 Discretization of a beam using Euler-Bernoulli beam elements. The generalized displacements and generalized forces are shown on a typical beam element.
provides the primary and secondary variables of the problem. Then suitable approximations for the primary variables are selected, interpolation functions are developed, and the element equations are derived. WEAK FORM. The weak forms of problems in solid mechanics can be developed either from the principle of virtual work (i.e., the principle of virtual displacements or virtual forces) or from the governing differential equations. Here we start with a given differential equation and using the three-step procedure to obtain the weak form. Following the three-step procedure developed in Chapter 2 and revisited in Section 3.2.3, we write
2
2
W) -I ] dx 0= , "<+1V [d - (d bdx? dx"
f = f"[- - ""e
~
2w)]x<+1
2
W) -vi] dx+ [d dv d (d dbv- ( b dx dx dx? dx dx?
2v 2w d d _)
_ fX<+l ( b d 2 dx" X< X
vi
2 d W) _ dv
[!!.- ( dx + v dx b dx2
~
2
d W]Xet1 d bd 2 X X x<
(4.2)
where v(x) is a weight function that is twice differentiable with respect to x. Note that, in the present case, the first term of the equation is integrated twice by parts to trade two differentiations to the weight function v, while retaining two derivatives of the dependent variable ·w; i.e., the differentiation is distributed equally between the weight function v and the dependent variable w. Because of the two integrations by parts, there appear two boundary expressions (see Example 2.2), which are to be evaluated at the two boundary points x = Xe and x = xe + 1- Examination of the boundary terms indicates that the essential boundary conditions involve the specification of the deflection w and slope dwldx, and the natural boundary conditions involve the specification of the bending moment b d 2w/dx2 and shear force (d/dx)(b d 2w/dx2) at the
146
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
endpoints of the element. Thus, there are two essential boundary conditions and two natural boundary conditions; therefore, we must identify wand dw / dx as the primary varaibles at each node (so that the essential boundary conditions are included in the interpolation). The natural boundary conditions always remain in the weak form and end up on the right-hand side (i.e., the source vector) of the matrix equation. For the sake of mathematical convenience, we introduce the following notation: e =
(4.3)
I'
where Q! and Q3 denote the shear forces, and Qi and Q~ denote the bending moments (see Fig. 4.2b). Since the quantities Qf contain bending moments, which can also be viewed as "bending forces," the set {QL Q~, Q3J QU is often referred to as the generalized forces. The corresponding displacements and rotations are called the generalized displacements.. With the notation in (4.3), the weak form (4.2) can be expressed as
0=
('+1 (b ~:~ ~:: - Vf) dx - v(xe)Qi - ( - ~~)LQ~ - V(X e +l)Q3- ( -
~V) x
I
Q4
..t't'+1
== R(v, w) -lev)
(4.4a)
We can identify the bilinear and linear forms of the problem as X
l =I
R(v, w) =
' +1
d2V d 2 w b dx 2 dx2 dx
x< X
l(v)
' +1
x,
I
( .dV) vfdx+v(xe)Qi+- dx x,Qi
+ v(Xe + 1 )Q3+ ( -
~V) X
I
(4.4b)
Q4
Xc+l
Equation (4.4a) is a statement of the principle of virtual displacements for the Euler-Bernoulli beam theory. The quadratic functional, known as the total potential energy of the beam element, is given by [from (2.43b)] x
I
<+!
Ie(w) = x,
[b2 (ddx2W)2 2
- W(X e +l)Q3-
-
]
w] dx - w(xe)Qi -
( - :)
L+l Q4
I
( - dW) dx x,Q~ (4.5)
The first term in the square brackets represents the elastic strain energy due to bending, while the second is the work done by the distributed load; the
147
BENDING OF BEAMS
remaining terms account for the work done by the generalized forces Q1 in moving through the generalized displacements of the element. INTERPOLATION FUNCTIONS. The variational form (4.4a) requires that the interpolation functions of an element be continuous with nonzero derivatives up to order two. The approximation of the primary variables over a finite element should be such that it satisfies the interpolation properties (i.e., that it satisfies the essential boundary conditions of the element):
(4.6) In satisfying the essential boundary conditions (4.6), the approximation automatically satisfies the continuity conditions. Hence, we pay attention to the satisfaction of (4.6), which form the basis for the interpolation procedure. Since there is a total of four conditions in an element (two per node), a four-parameter polynomial must be selected for w: (4.7) Note that the continuity conditions (i.e., the existence of a nonzero second derivative of W in the element) are automatically met. The next step involves expressing c, in terms of the primary nodal variables (i.e., generalized displacements)
U4= ( _ dW)1 dx
X=Xt'+l
such that the conditions (4.6) are satisfied:
(4.8a)
or
-1 Xe + 1
-1
L
(4.8b)
148
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
Inverting this matrix equation to express Cj in terms of u'L ui, substituting the result into (4.7), we obtain
u~,
and
U4' and
4
we(x) =' u'i1J'i + ui¢i + u~¢~ + U4
(4.9a)
1=1
(4.9b)
" by Note that the cubic interpolation functions in (4.9t are derived interpolating wand its derivative at the nodes. Such polynomials are known as the Hermite family of interpolation functions, and 4>'f in (4.9b) are called the Hermite cubic interpolation (or cubic spline) functions. Recall that the Lagrange cubic interpolation functions are derived to interpolate a function, but not its derivatives, at the nodes. Hence, a Lagrange cubic element will have four nodes, with the dependent variable, not its derivative, as the nodal degree of freedom. Since the slope (or derivative) of the dependent variable is also required by the weak form to be continuous at the nodes for EulerBernoulli beam theory, the Lagrange cubic interpolation of w, although it meets the continuity requirement for lV, is not admissible in the finite element approximation of Euler-Bernoulli beam theory. The interpolation functions 1J'f can be expressed in terms of the local coordinate x: (4. lOa)
The first, second, and third derivatives of r/J1 with respect to
x are
BENDING OF BEAMS
149
0.2
1.2 1.0
0.1 0.8 0.6
0.0
0.4
-0.1
0.2 0.0 0.0
0.2
0.6
0.4
0.8
1.0
-0.2 0.0
0.2
0.4
0.6
0.8
1.0
0.8
1.0
xII!
xIII
2.0
1.0
1.0 0.0 0.0 -1.0 -1.0 -2.0 0.0
~2.0
0.2
0.4
0.6
0.8
1.0
0.0
0.2
xlh
0.4
. 0.6 xlh
FIGURE 4.3 Hermite cubic interpolation functions and their first derivatives used in the finite element model of Euler-Bernoulli beam theory.
The Hermite cubic interpolation functions (4.9) satisfy the following interpolation properties (see Fig. 4.3): ¢'i(x,,) = 1, ¢j(Xe ) = 0 (i =1= 1) ¢j(Xe + l ) = 0 (i =1= 3) ¢3(Xe + l ) = 1,
(4.lla)
These can be stated in compact form as (i, j = 1, 2) 2
¢~-l(ij) ='(i);j,
¢~(ij) = 0,
2: ¢U-l = 1 ;=1
(4.llb)
where Xl = 0 and X2 = he are the local coordinates of nodes 1 and 2 of the element Qe = (xe , Xe+l)'
150
FINITE ELEMENT ANALYSIS OF ONE·DIMENSlONAL PROBLEMS
It should be noted that the order of the interpolation functions derived above is the minimum required for the variational formulation (4.4). If a higher-order (i.e., higher than cubic) approximation of w is desired, one must either identify additional primary unknowns at each of the two nodes or add additional nodes with the two degrees of freedom (w, -dw/dx). For example, if we add d'wldx? as the primary unknown at each of the two nodes, or add a third node, there will be a total of six conditions, and a fifth-order polynomial is required to interpolate the end conditions (see Problems 4.27 and 4.28). However, continuity of dw 2/dx 2 is not required, in general, and such elements should be used only in problems where d2w/dx 2 is continuous everywhere. FINITE ELEMENf MODEL. The finite element model of the Euler-Bernoulli
beam is obtained by substituting the finite element interpolation (4.9a) for w and the CPt for the weight function v into the weak form (4.4d). Since there are four nodal variables u'l, four different choices are used for v, v = 1>I, v = 1>~, v = cP~, and v = 1>'4, to obtain a set of four algebraic equations. The ith algebraic equation of the finite element model is (for v = 1>1) 4 o-_ /=1 ~
(1
X <+1
x.
2
2
d cp'l d cp; ) e _ b d 2 d 2 dx Uj X
X
f.x'+
x.
l
e
1>/1 dx
_
e
Qj
(4. 12a)
or 4
L Kijuj -
Fi = 0
(4. 12b)
/=1
where (4. 12c)
Note that the coefficients (4.12b) can be written as
Kit
are symmetric:
KZ· = KJi'
In matrix notation,
(4.13)
This represents the finite element model of (4.1). Here [K e ] is the stiffness matrix and {P} is the force vector of a beam element. When a transverse point force F~ is applied at a point Xo inside the element, it is distributed to the element nodes by the relation [see Remark 5 in Chapter 3: (3.60)]:
Fi = Fo1>'l(xo)
(4.14)
which contains both transverse forces (F 1 and F3) and bending moments (F; and F'4).
BENDING OF BEAMS
151
For the case in which b (= EI) and f are constant over an element, the element stiffness matrix [KeJ and force vector {F"} have the specific forms (see Fig. 4.2 for the element displacement and force degrees of freedom)
6 - 3h h3 -6 [ -3h
[ "l = 2b K
-sn -6 2 2h 3h hZ
3h 6 3h
-3h] hz 3h 2h Z
(b
= EI = constant) (4.15)
It can be verified that the generalized force vector in (4.15) represents the
"statically equivalent" forces and moments at nodes 1 and 2 due to the uniformly distributed load over the element. For any given function f, (4.12c) provides a straightforward way of computing the components of the generalized force vector {r}.
4.2.4 Assembly of Element Equations The assembly procedure for beam elements is the same as that used for bar elements, except that we must take into account the two degrees of freedom at each node. Recall that the assembly of elements is based on: (a) interelement continuity of the primary variables (deflection and slope) and (b) interelement equilibrium of the secondary variables (shear force and bending moment) at the nodes common to elements. To demonstrate the assembly procedure, we select a two-element model (see Fig. 4.4). There are three global nodes and a total of six global generalized displacements and six generalized forces in the problem. The continuity of the primary variables implies the following relation' between the element degrees of freedom Ut and the global degrees of freedom U; (see Fig. 4.4): u~
= VI, ui = Uz , uj = ui = U3 u~ = u~ = V4 , u~ = Us, u~ = U6
(4.16)
In general, the equilibrium of the generalized forces at a node between two connecting elements Qe and Q! requires that .
Q3 + Q{ =' applied external point force
Q4 + Q~ = applied external bending moment
(4.17)
If no external applied forces are given, the sum should be equated to zero. In
equating the sums to the applied generalized forces (i.e., force or moment), the sign convention for the element force degrees of freedom (see Fig. 4.2)
152
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
t
VI '" 0,
V2
• ---------.
~
Element 1
Ql
VS. Q~ = Fo
V6,
Ql '" -Mo
U~ut
:+;lzd QI
:r-
Qt = unknown = 0, Qi = unknown
4
Ql,+ Q1
w(x) 1.2
0.8
0.4
FIGURE 4.4 Assembly of two Euler-Bernoulli (or classical) beam finite elements, and the finite element solution as a linear combination of the nodal values and interpolation functions.
should be followed. Forces are taken positive acting upward and moments are taken positive acting clockwise. To impose the equilibrium of forces in (4.17), it is necessary to add the third and fourth equations (corresponding to the second node) of ge to the first and second equations (corresponding to the first node) of Qt. Consequently, the global stiffnesses K 33 , K 34 , K 43 , and K44 associated with global node 2 are the superpositions of the element stiffnesses: K 44 = K1 + Kb (4.18)
In general, the assembled stiffness matrix and force vector for beam elements
BENDING OF BEAMS
153
connected in series' have the following forms:
[K]=
Global· nodes 1
2
~
------"""--
3
...._----..
K~I
K~2
K1I
Kh
Kjl
Kj2
Kj3 + Kil
K1+Ki2
Kl i
Kl2
Kl 3 + K~I
Kit +K~2
(4. 19a)
F~
F1
{F} =
Fj+Fi F~+F~
(4. 19b)
F~
F~
The connectivity matrix [B] (which will be used in computer implementation) for the two-element mesh is
[B]=[~ ~] Since there are two primary degrees of freedom per node, repetition of a number in [B] indicates that the coefficients associated with both degrees of freedom will add up. For example, the repetition of the global node number 2 (which corresponds to global degrees of freedom 3 and 4) in rows 1 and 2 indicates that the global K))> K)4, K 43 , and K 44 have contributions from both elements 1 and 2. The assembled system of equations for a mesh of two elements with hI = h2 = ~L = h, and constant EI and f [hence, [W] and {r} are given by
154
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
(4.15)] is 0 -3h -3h 0 -6 2 z 0 3h -3h 2h 0 h 3h -3h -6 -3h 3h 6+6 2E1 -6 3 Z h -3h h 3h -3h 2hz+2h z 3h hZ 3h 0 3h 6 0 -6 Z 0 -s« 0 h 3h 2hz
U1
6
u, U3 U4 Us U6
Qt -h Qi =fh 6+6 + ).?5 + Qi '" (4.20) 12 6
h-h
Ql+Q~
6
Q~
h
Q~
The reader is cautioned that (4.20) does not' represent the assembled equations of any two beam elements; it is based on the assumption that hi = hz, (E1)1 = (£1)2, and (fh = (f)z. Equations (4.19) are more general.
4.2.5 Imposition of Boundary Conditions At this step of the analysis, we must specify the particular boundary conditions, i.e., geometric constraints and forces applied, of the particular problem to be analyzed. The type of essential (also known as geometric) boundary conditions for a specific beam problem depend on the nature of the geometric support. Table 4.1 contains a list of commonly used geometric supports for beams. For the sake of completeness, the boundary conditions on the axial displacement u are also included. The natural (also called force) boundary conditions involve the specification of generalized forces when the corresponding primary variables are not constrained. Here we consider a cantilever beam (i.e., a beam fixed at one end and free at the other) of length L, flexural rigidity £1 (= constant), and subjected to a uniformly distributed force fo, end force Po, and end moment Mo (see Fig. 4.4). First, we write the equilibrium conditions for the generalized forces. At global node 1, Qt and Qi (the shear force and the bending moment, respectively; i.e., the reactions at the fixed end) are not known. At global node 2, there are no externally applied shear forces and bending moment. Hence,
Qj+Qi=O,
Ql+Q~=o
(4.21a)
At global node 3, the shear force is given as 1'0, and the bending moment as Mo (note the sign convention for FO and Mo from Fig. 4.2):
Q~=_(bd2~:)1 dx
x=L
=-Mo
(4.21b)
155
BENDING OF BEAMS
'fABLE 4.1
Types of commonly used support conditions for beams and frames
Type of support
zf E3~x'
Displacement boundary conditions
Force boundary conditions
None
All, as specified
u=o 11'=0
Moment is specified
FREE
zt
~x PINNED
q
~Rx
. u=o
Transverse force and moment are specified
(vertical)
px
11'=0
Horizontal force and bending moment are specified
u=O 11'=0 dw/dx=O
None specified
ROLLER (horizontal)
FIXED or CLAMPED
Next, we identify and impose the specified generalized displacements. Since the beam is clamped at global node 1, it follows that the deflection wand the slope dw/ dx are zero there:
ui == w~ = V
1
u~ ==
= 0,
01 = Vz = 0
(4.22)
Using (4.21) and (4.22) in (4.20), we obtain
6
-3h
-6
-3h
0
0
2
Z
3h h 0 0 -3h 2h , ·-iz······6···---:·6---:..=.:3h -:..=.6"----3h·· 2EI h 3 -3h h 2 o 4h Z 3h h 2
o
0
-6
o
0
-3h
3h hZ
6
3h
3h
2h Z
V 1=0
Qi
Vz=O
Q~
--u;-V4
foh 12
+
o o
V5
Po
V6
-Mo
(4.23)
156
FINiTE ELEMEIIT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
4.2.6 Solution Equation (4.23) contains six algebraic equations in six unknowns: (QL Qi, U3 , U4 , Us, U6 ) . Because the algebraic equations for the unknown generalized displacements (U3 , U4 , Us, U6 ) do not contain the unknown generalized forces (QL QD, equations 3, 4, 5, and 6 of the system (4.23) can be solved independently; the known values of the displacements U, and Vz are used in equations 3 and 4. This provides us with the motivation to partition (shown by dashed lines) the matrix equation (4.23), which can be recast in the form (4.24) r
where {VI} denotes the column of known generalizeddisplacements, {U Z } the column of unknown generalized displacements, {pl} the column of unknown forces, and {pZ} the column of known forces. Equation (4.24) can be written, after carrying out the matrix multiplication, in the form [cf. (3.56)]
or (4.25a) (4.25b)
These are the condensed equations for the generalized displacements and forces, respectively. Since {U l } and {pZ} are known ({U l } = {On, we can use (4.25a) to solve for {V z}, and then use (4.25b) to compute the unknown reactions {Pi}:
-6 -3h]~l{ foh } 3h h 6 3h Po + YOh (4.26) z 3h 2h - + -t-zfoh2 2
0
Mo
Inverting the matrix (say, by Gaussian elimination) and performing the matrix
BENDING OF BEAMS
157
multiplication (i.e.;. solving the equations), we obtain Z
h {U } = 6EI Z
[
2h -3h -3h 6. 5h 2 -9h
6
- 3h
z 5h -9h 16h 2
-12h
Fa + Yah
-12h
12
- Mo + t-zfoh 2
-3h]{
foh
6
}
0
3
5h2Fa + 3hMo + ¥foh } h -9hFo - 6Mo - 7foh z = 6EI { 16h zFQ + 12hMo + 12foh3 -12hFo - 12Mo - 8foh z
(4.27)
The reactions Ql and Qi can be obtained by substituting (4.27) into (4.25b). The Q'f obtained from the element (equilibrium) equations are more accurate than those obtained from the definitions (4.3), wherein the derivatives of ware obtained by differentiation of its finite element interpolation. The reactions from equilibrium (QDequil are
{
1}
F
=
{Q~} = 2EI 3
Qi
h
[-63h
-3h
h
2
0 0
i}_
°OJ{ Us
6}
foh { 12-h
U6
. { -(Fa+2foh) } = 2h(Fo + foh) + Mo
(4.28)
It can be verified that the reactions Q~ and Qi in (4.28) satisfy the static equilibrium equations of the beam:
Qi + (Fa + 2foh) = The reactions
0,
Qi-
(2Foh + 2foh z + Mo)
=0
Qi and Qi can also be computed using the definitions Q 11 ==.!i dx
(E1 dZlzV) I, dx x=o
I
1 ( dZW) Qz== EI dx 2 x=o
(4.3): (4. 29a)
From (4.10b), we note that the second derivative of the Hermite cubic interpolation functions is linear over the element and the third derivative is constant over the element. Therefore, the reactions, i.e., bending moment and shear force, computed using the definition (4.3) are element-wise linear and constant, respectively. Further, at nodes connecting two elements, they yield discontinuous values because the second and third derivatives of ware not
158
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
made continuous across the interelement nodes. Substituting (4.10b) into (4.29a), we obtain the values
3ep1) Q}=EI ( U3 dJepl dX33+U4 ddx J4
I
r (12)
x 0
1
(6)] =-(FQ+!foh)
=EI U3 -h 3 +U4 -h 2
=
e
(6 + U he2) = (Mo + 2Foh," + lifoh2)
Q2 = EI U3 h;
2.3
4
(4.29b)
e
'
which are in error by Ii = Yoh and 12 = r-JOh 2 compared with those in (4.28).
4.2.7 Postprocessing of the Solution The finite element solution as a function of position x is given,-by
e( )_{U34>~+U4ep~ for O~x~h wx2 2 2 2 U34>1 + U44> 2 + U54>3 + U6 4>4 for h ~x ~2h
(4.30a) .
where [see (4.10a)]
4>~=3Gf -2Gr epl=h[Gf -GY]
4>1 =1-3(1- ~r - 2(1-~Y, 4>~ =h(1- ~)(2-~r
(4.30b)
4>~=3(1-~r+2(1-~r 4>~=h[(l-~r +(l-~r] The exact solution of (4.1) subject to the boundary condition (4.21) can be obtained by direct integration, and is given by .
Elw(x) = fJ'ox - UFo +f oL)x + :!(Mo + FoL + YoL ) X EI£J(x) = -tJoX 3 + HFo + foL )x 2 - (Mo + FoL + VaLL,) 4
M(x) = Yox
2
2
3
(Fo + foL)x
-
2
}
for 0 ~ x ~ L
+ Mo + PoL + YoL
2
(4.31) The finite element solution for the data in Table
4.2
(4.30) and the exact solution (4.31) are compared
fo=24kNm- 1 , 6kN
E = 200 x 10
m-
Fo=60kN, 2
,
1 =29 X
L=3m, Mo=OkNm 106mm4 (El = nr')
5800kN
As expected, the finite element solution for wand (J coincides with the exact solution at the nodes. At other points, the difference between the finite element and exact solutions is less than 2%. This completes the finite element formulation and analysis of the fourth-order differential equation (4.1) governing the Euler-Bernoulli beam theory. Whenever the flexural rigidity b == El is a constant in each element, the
BENDING OF BEAMS
159
TABLE 4.2
Comparison of the finite element solution with the exact solution of the cantilever beam of Fig. 4.4 (2 elements; L = 3 m, EI = 5800kNm2,Jo=24kNm~t, lb=6(}kN, Mo=OkNm) w(m)
-(J
=dw{dx
M{EI (kN m)
x [rn)
FEM
Exact
FEM
Exact
FEM
Exact
0.00 0.1875 0.3750 0.5625 0.7500 0.9375 1.1250 1.3125 1.5000 1.6875 1.8750 2.0625 2.2500 2.4375 2.6250 2.8025
O.OOOOt 0.0008 0.0033 0.0071 0.0124 0.0188 0.0263 0.0347 0.0439t 0.0539 0.0644 0.0754 0.0868 0.0986 0.1106 0.1228 0.1350t
0.ססOO
O.OOOOt 0.0088 0.0169 0.0244 0.0311 0.0372 0.0426 0.0472 0.0512t 0.0546 0.0575 0.0600 0.0620 0.0635 0.0645 0.0651 0.0652t
0.ססOO
0.0008 0.0033 0.0072 0.0124 0.0188 0.0263 0.0347 0.0439 0.0539 0.0644 0.0755 0.0869 0.0987 0.1107 0.1228 0.1350
0.0089 0.0171 0.0245 0.0311 0.0371 0.0425 0.0471 0.0512 0.0547 0.0576 0.0600 0.0620 0.0634 0.0644 0.0650 0.0652
0.0489t 0.0452 0.0415 0.0378 0.0341 0.D305 0.0268 0.0231 0.0194t 0.0169 0.0144 0.0118 0.0093 0.0068 0.0043 0.0017 -O.0008t
0.0497 0.0455 0.0414 0.0375 0.0338 0.0301 0.0266 0.0234 0.0202 0.0171 0.0143 0.0115 0.0089 0.0065 0.0042 0.0020
3.ססOO
0.ססOO
t Nodal values; all others are computed by interpolation.
element stiffness matrix (4.15) can be used directly. The finite element solution for the generalized displacements at the nodes is exact for all problems for which E1 is constant and the applied transverse load f is a polynomial expression. Further, the solution is exact at all points if the distributed load is such that the exact solution is a cubic. The bending moment at any point in the element ge of the beam can be computed from the formula (4. 32a)
For beams of rectangular cross-section with height H (and width B) the maximum bending stress is (4.32b)
The minus sign is for the top and the plus sign for the bottom of the beam.
160
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
. .= 2400Ib re'
10,000lb
EI
=<
2 X 107 lb tt W
=
2
I
_
0
__
EI /"
, f---10 ft-+-- 12 ft --1-6 ft -oj (a)
U1
= D, U2
t
1
U3 , U4
Us, U6
• 3
+
2
U7
107 lb tt 2
~X =<
dw IV =
= D,
• 4
dx = 0
Ug
=D
(b)
(c)
FIGURE 4.5 Finite element mesh and equilibrium conditions for the beam bending problem considered in Example 4.2: (a) physical problem; (b) finite element mesh of three elements; (c) equilibrium conditions among the generalized forces (i.e., secondary variables).
4.2.8 Examples Example 4.1. Consider the beam shown in Fig. 4.5(a). The differential equation (4.1) is valid with the following discontinuous data: 7 £1 = {2 x 10 lb ftl for 0 ~ x ~ 10ft 107lb ff for 10 ft ~ x ~ 28ft
f(x) = {0-2400 lb ft-
1
for O~x ~ 10ft for 10ft~x ~28ft
(4.33a)
(4.33b)
The geometry and loading in the present case require us to use at least three elements (see Fig. 4.5b) to represent the domain Q = (0, L), L = 28 ft. It is possible to use two elements if we choose to distribute the point load -10,000 lb by (4.14). We shall use three elements to analyze the problem. There are four nodes and eight global degrees of freedom in the mesh of three beam elements. Since £1 and fare element-wise-constant, the element stiffness matrix and the force vector are given by (4.15), with· = -2400 lb Wi in element 1 and f = 0 in elements 2 and 3. The point load will be directly included in the global force vector
to
161
BENDING OF BEAMS
through equilibrium of forces. The assembled equations are :-0.12
0.024
-0.024
--..----.·:·0:80-- -, ,: :
O~i2-
-0.12
-····O.4() ---------. --. ------.
0.0309
0.0783 -0.00694 1.133 0.0417 0.0625
1 ••• ~ ••• symmetric:
__ •
• __ • __ •
, :
·--·-r·,
-0.04167:, 0.167 : -0.125 : -0.0556
-0.167
I..P: ~??7... _~: ~~~__
.1~~
•
.
. __
i
,
0.0556
:
-12,000
U\
X
Q:
--~------
--------.
U2
20,000
U3
-12,000
Qi+ Qi
o,
-20,000
° ° ° °
Us U6
Q~
+
o,
Q~+Q~
(4.34)
Q;+Q~
Q~+Q~ ------- .. Q~
... __ .. _-_ .....
U7
0.1667 0.6667
Q~
where the interelement continuity conditions on the primary variables (i.e., displacements and rotations) have already been used. The equilibrium of the secondary variables (i.e., internal forces and moments) is given by
Qi =0,
Qj + Qi =0,
Q~ + Q~= 0,
Q;+ Q~ = -10,000,
Q~+ Q~ =0
(4.35a)
Note that the forces Q: and Q~ and the moment Q~ (the reactions at the supports) are not known. The boundary conditions on the primary degrees of freedom are w(O) = O:::} U\ = 0;
w(28) = o:::} U7 = 0;
(ddxW)Ix~28 =O:::}Ug=O
(4.35b)
Using the known forces and displacements in (4.35), we can partition the global system of equations to obtain the condensed equations for the unknown generalized displacements and forces. Since the specified generalized displacements are all zero, the condensed stiffness matrix associated with the unknown generalized displacements can be obtained by deleting the columns and rows corresponding to the known Vi [see the submatrix enclosed by the dashed lines in (4.34)]: 8.000
1.200 0.309
106
4.000
20,000
-0.417
U3
-12,000
1.667
U4
-20,000
0.625 -1.250
Us
-10,000
10.000
U6
0
0.783 -0.069 11.333
symmetric
V2
0.000 0.417
0.000
(4.36)
162
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
The unknown reactions can be computed from the remaining equations, i.e., equations 1,7, and 8 of (4.34):
{
Q~ } {12'OOO} Q~ = 0 + 10 [-0.12 0.0
-0.024
7
Q~
0.0
0
-0.12
0.0 0.0
0.0 0.0
0.0
O.33J ( ~:
0.0
-0.0556 0.1667 -0.1667
U2 U ) 3
U4
(4.37) The algebraic equations (4.36) are solved first for the generalized displacements, and then (4.37) are used to obtain the unknown generalized forces of the problem.
0.0 < r - - - - - - - - - - - _ . - , ---0--
~-
FEM Exact
-0.1
w(x) (ft) -0.2
-0.3 0
5
10
15
20
x (ft)
25
30
(a)
0.10
dw
0.05
dx
M -xlO EI
0.00
- - Exact --~- dwldx (FEM) M ---Q-- - x 10 (FEM)
-0.05
EI
-0.10 0
5
10
15 x (ft) (b)
20
25
30
FIGURE 4.6 Comparison of the finite element solutions for deflection, slope, and bending moment of a cantilever beam with the exact solutions (Example 4.2).
163
BENDING OF BEAMS
Equations (4.36) are 'solved with the help of a computer; the solution is
Uz = 0.03856,
U3 = -0.2808 ft,
U4 = 0.01214
(4.38a)
Us=-0.1103ft,
U6=-0.02752
The reaction forces, from the element equilibrium equations, are Q~
Q~ = 15,434.46Ib,
= 18,565.54Ib,
Q~ = 92,165 ft lb
(4.38b)
Plots of the finite element solution for the transverse deflection w, rotation
for 0".; x ".; 10 ft for 10 ft".;x"'; 22 ft for 22 ft ".; x ".; 28 ft (4.39a)
where RI
= 0.001856,
AI = 0.03856,
h, = 10ft,
A o = 2400 X 10- 7 A z = 0.07497,
A 3 = 0.20943
(4. 39b)
h z = 12ft
In the next example we consider a beam with linearly varying distributed transverse load and with clamped and spring-supported ends. This requires us to evaluate the integral for fi [see (4. 12c)], since it is not available whenf(x) is a linear function of x. Example 4.2. Consider a beam that has a clamped support at one end and is spring-supported at the other (see Fig. 4.7). A linearly varying transverse load is applied in the span, 4 ft".; x ".; 10 ft. We must use at least two elements, as dictated by the loading. A one-element model could be used when the load is distributed as discussed in Remark 5 in Section 3.2.7. The force vector {fZ} due to the distributed load on element 2 can be computed according to (4. 12c):
Ii =
f
!(x)1>i(x) dX,
100 !(x)=--i 6
(4.40)
and 1>; are the Hermite interpolation functions given in (4.10a). Carrying out the integration, we obtain
{F}. =
-901b } 120 lb ft { -2101b -1801bft
(4.41)
164
FINITE ELEMEl'IT ANALYSIS OF ONE·DlMENSIONAL PROBLEMS
(linear elastic spring)
ffill,j
t kw(L)= kUs
1'
(b)
210 Ib
}iii;EEl§E(::E[;g;BE~?im·"'E~,",;:m"",·1E{"," ) Qf
180 lb ft
kUs
(c)
FIGURE 4.7 Finite element analysis of a cantilevered beam with discontinuous loading: (u) physical problem; (b) finite element discretization and generalized element forces; (c) assembly of finite element and generalized global forces (Example 4.3).
The assembled equations are
27 -54 -54 144 EI
-
-27
-27
-54
0
54
72
0
54 27+8
0
U1
0
0
U2
0
54-24 -8 -24
U3
-90
54-24 144 + 96
144 -54
72
0
0
-8
0
0
-24
Q: Qi +
Qj+Qi Q~+Qi
24
48
U4
120
24
8
24
Q~
24
Us U6
-210
48
-180
Q~
96
(4.42) The displacement boundary conditions at x = 0 and force boundary conditions at x = L are
(4,43a)
BENDING OF BEAMS
165
which can be expressed in terms of the nodal degrees of freedom as
u, =0,
Uz=O,
Qi=
-iu;
Q~=O
(4.43b)
The condensed equations for the generalized displacements U3 , given by the last four equations of (4.42):
El 144 [
35 30 -8 30 240 24 -24] 48 -8 24 8+c 24 -24 48 24 96
{U3} U 4
=
Us U6
{-90} 120 -210 -180
.
(4.44)
where c = l44k/El. The solution of these equations for different values of k/El can be computed as follows: For k/EI=O (no spring), 4
= -0.16 X lOS (ft) 3
EI
U
U = 0,72 X 10
'
_ -0.7108 X u's EI
t
ra
d) (4.45)
4
(f)
105
(
EI
4
U6 =
'
0,99 X 10 EI
(
rad
)
for k/ EI = 1O-z (a soft spring), 4
_ -0.4627 X 10 (f) U3 El t, U. = -0.164 X lOS (f) s EI t ,
4
X 10 U4 = 0.1951 EI
(
ra
(4.46)
4
= 0.1699 X 10 1I6 EI TT
d)
(
ra
d)
for k/ EI == l(f (a hard spring), 4
U = -0.1216 X 10 (f) 3 EI t ,
U = 0.3765 X lQ3 ( d) 4 EI ra (4.47)
3
U. = -2.132 (ft) U. = -0.7617 X 10 s EI ,6 EI
(
ra
d)
The solutions coincide with the exact solution at the nodes:
w(x)=
{
~I (lRIX3 + 1MIX2) 1 EI
for
fi
[~RIX3 + 1M1x -12~b (x 2
O~x~a
0)5] for a ~x ~ L
(4.480)
where
s,
40
2b
+ lOkL - kb" 2-R tL .2El+ke ,'Mt = tfob
= (fob) 60E[
fo=100lbft-\
0=4ft,
b=6ft,
(4.48b)
L==10ft
Figure 4.8 shows plots of the transverse deflection, slope, and bending moment for the case klE! = 100. The finite element solution obtained using two elements is in good agreement with the exact solution. Improvement can be expected if the region 4 ft ~ x ~ 10 ft is subdivided into two or more elements (note that the particular scale
166
FINITE ELEMEtIT ANALYSIS OF ONE·DIMENSIONAL PROBLEMS
0.001..,-------------------, _Exact oOLl.FEM
0.000
Elw
X
10- 6
El dw X 10- 6 dx Mx 10- 6 -0.001
-
k
EI
-0.002
=
100
+-~--,,--~-,--r--.._-..--r_--.-_.-.,....-._;
o
4
2
6 x (it)
8
10
12
FIGURE 4.8 Comparison of the finite element solutions with the exact solutions for a clamped spring-supported beam (see Fig. 4.7 for the geometry and loading).
100
-r-------------------, ,imit value
Q
X
Elw{t) M
X
-
EI
X
10- 1 10- 6
o
10- 1 -100
_\.aV - - - - Q (spring force) --<)--
--0-
-200
w{L) M{O)
I I
--0
1
\........::.... Limit value ~
300 +--,--...........-.---,--......--.....,...--.-.---.-........--.----,-....--i -4 -6 -2 o 2 4 6 8 log (kIEJ)
FIGURE 4.9 The effect of spring stiffness on the deflection, bending moment, and spring force [or the problem in Example 4.3.
BENDING OF BEAMS
167
used in Fig. 4.8 brings out the difference between the finite element and exact solutions). The effect of the spring on the end deflection w(L), the bending moment M(O) at the fixed end, and the spring force Q == Qj = ~kw(L) can be seen from the results presented in Fig. 4.9. For k] EI > 1, the spring acts essentially like a rigid support.
This completes the development and applications of the Euler-Bernoulli beam element.
4.3 PLANE TRUSS AND EULER-BERNOULLI FRAME ELEMENTS Structures composed of bar elements and beam elements are classified as truss and frame structures, respectively. By definition, bars can only carry axial loads and deform axially, whereas beams can take transverse loads and bending moments about an axis perpendicular to the plane of the member. All members of a truss are subjected to only axial loads, and no transverse shearing forces and bending moments are experienced by any member. All members are connected to each other through pins that allow free rotation about the pin axis. On the other hand, members of a frame are connected by a rigid connection (e.g., welded or rivetted), so that axial and transverse forces and bending moments can be developed in the members. A truss can be looked upon as a special case of a frame structure. Thus, a typical truss member can be modeled using the bar finite element developed in Section 3.3.3. A member of a frame structure can be modeled by a superposition of the bar element with the beam element of Section 4.2. The objective of this section is to formulate, with the help of the information from Sections 3.3.3 and 4.2, the truss finite element and frame finite element. The formulation will be based on matrix notation. Since a truss finite element is a special case of the frame element, the derivation is presented for the frame element only. In many truss and frame structures, the bar and beam structural elements are found in many different orientations (see Fig. 4.10). Analysis of such structures for displacements and stresses requires the setting up of a global coordinate system and referencing of all quantities (i.e. displacements, forces, and stiffnesses) of individual elements to the common (global) coordinate system in order to assemble the elements and impose boundary conditions on the whole structure. When a truss element is oriented at an angle from the global axis, its axial displacements at the nodes have components along the global axes. Thus, every node of a truss will have two displacements in the global coordinates: one along the global x axis and another transverse to the x axis. Therefore, the element will have two degrees of freedom per node in the global coordinate system. In order to facilitate the transformation from element equations to global equations, we append the element equations for the axial displacements to those associated with the transverse displacements. Since there are no stiffnesses associated with the transverse displacements
168 z
FlNrrE ELEMENT ANALYSIS OF ONE·DIMENSIONAL PROBLEMS
A pin connection
/x
Members rotate freely about the pin axis
(a)
Different parts of the frame are welded so that they cannot rotate Ireely about the axis perpendicular to the plane of the structure
(b)
FIGURE 4.10 Typical examples of the plane truss and plane frame: (a) a plane truss structure (all elements carry only axial loads); (b) a typical plane frame structure (all members may carry axial and transverse loads and bending moments).
(because the element experiences axial deformation only), the entries in the stiffness matrix corresponding to the transverse displacements are set equal to zero. For example, when the linear Lagrange interpolation is used for the axial displacement, the element stiffness matrix in the element coordinates for a truss element with two displacements (axial and transverse) per node can be written as
o o o o
-1
o 1
o
~]
(4.49)
"
Similarly, a superposition of the bar element of Section 3.3.3 with the beam element of Section 4.2 gives three primary degrees of freedom per node (see Fig. 4.lla) of the frame element: (u, w, -dwldx). When the axial stiffness AE, bending stiffness El, and axial distributed force q and transverse distributed force fare element-wise-constant, the superposition of the linear bar element with the Hermite cubic Euler-Bernoulli beam element gives the following element equations: (4.50a)
BENDING OF BEAMS
169
,,4_.;3:.--:t¥.F,¢ft' itF. U
U6 .
F6
Generalized displacements
Generalized forces
(a)
'----------x Global degrees of freedom
l-----x
Element degrees of freedom (b)
FIGURE 4.11 The frame element with primary and secondary variables (or degree of freedom) in the local and global coordinate systems. (a) The generalized displacements and forces in the element coordinate system (t, y, z). (b) The generalized displacements in the element coordinate system and global coordinate system (x, y, z); the yaxis is into the plane of the paper. The angle of orientation is measured counter-clockwise from the global x axis to the element i axis. The truss element is obtained from the frame element by omitting the rotation and moment degrees of freedom at the nodes (also, u2 = IIx. = 0 for the truss element). 5
where UI
{u e } =
e
~qh
Qi Q2
WI
ifh
81
_fJh2 {P}=
+
Q~
U2
~qh
W2 82
+ifh
Q;
.lJh2 1 .
Q~
Q~
(4.50b)
and q = qo and f = fo are constants over an element. The element stiffness matrix [K e ] is of order 6 X 6:
[K] =
2~1
fl.
0
0 0
6 -3h
-Jt 0 0
i
l
0 -3h
-fl.
2h
0 0
0
0
-6 -3h
3h h2
2
0 0 -6. -3h 3h
h2
fl.
0
0
0
6
3h
0
3h
2h2
Ah 2 fl. = 2/
(4.50c)
170
flNITE ELaIENT ANALYSIS OF ONE·DIMENSIONAL PROBLEMS
In the following paragraphs, we develop transformation relations to express the element equations (4.50c)-valid in the element coordinate system-to the global coordinate system. Let u and wdenote the axial and transverse displacements referred to the local coordinate system (x, z). The local coordinates (x, y, z) are related to the global coordinates (x, y, z) by (see Fig. 4.11b) ; } = [ {
z
co~ a ~ Si~ a]{;} -sin a 0 cos a
(4.51)
z
where the angle a is measured counter-clockwise from x axis to i axis. Note that the y and y coordinates are parallel to each other, and they are into the plane of the paper. The same transformation relations hold-for displacements (u, v, w) along the global coordinates (x, y, z) and displacements (ii, V, l'v) in the local coordinates (x, y, z), Since we are considering 2-D structures, we have v = v = O. The rotation 8 == dw / dx about the y axis remains unchanged: 8 = 8. Hence, the relationship between (u, lV, 8) and (ii, lV, 8) can be written as -r
U} [cos a { : = -s~n a
sin 0;
0]{U}
co~ a ~
(4.52)
;
Therefore, the six element nodal degrees of freedom ii'f in the (x, y, z) system are related to the six degrees of freedom u'f in the (x, y, z) system by (a = a e ) cos a
sin a
ii 2
-sin a
cos a
0:,
ii 3
o -.. --_.
0
1 i
ill
e
ii 4
Us ii 6
0:,
UI
0
U2
U3
~P-~--_.----_.-----------
o
,: cos a
:,, sin a :
0
e
sin a
0
U4
cos a
0
Us
0
1
U6
(4. 53a)
or
(4.53b) The inverse of (4.53) is
and it can be shown that
(4.54) Le., the inverse of [T e ] is equal to its transpose.
BENDING OF BEAMS
171
Analogously to (4.53b), the element force vectors in the local and global coordinate systems are related according to (4.55)
To obtain expressions for the element stiffness matrix and the force vector referred to the global coordinates in terms of the element stiffness matrix and force vector in the local coordinates, we use (4.53)-(4.55) in the element equations (4.56)
Substituting the transformation equations into (4.56), we obtain
Premultiplying both sides with
[rer
1
== [rey, we obtain (4.57)
which gives {pe} = [Tef{pe}
I
(4.58a, b)
Thus, if we know the element matrices (1te] and {Fe} of an element ge in the local coordinate system (x, y, z) then the element matrices of the element in the global coordinate system, which is obtained by rotating the element coordinate system through an angle U' in the counter-clockwise direction about the y axis, are given by (4.58). Note that the angle U' is measured in the counter-clockwise direction from the positive global x axis. Inserting the element stiffness from (4.50c) for [Kel into (4.58a) and carrying out the indicated matrix multiplications, we arrive at the element stiffness matrix [Ke ] referred to the global coordinates: [K'1=2~1 2
Il cos a
X
+ 6 sin 2 a 2
2
(p- 6) cos a sin a
p sin a+ 6 cos a
3h sin a
-3h cos a
symmetric 2
2/r
2
2
2 2 -(Il cos a + 6 sin a) -(Il - 6) sin «cos a -3h sin « p cos a + 6 sin a 2
2
-(/I - 6) cos a sin « -(p sin «+ 6 cos a) 3h cos a 3h sin
a
-3/\ cos
a
h
2
2
2
(Il'- 6) cos a sin a p sin a + 6 cos « ~3h sin a
3h cos a
(4.59a)
where (4. 59b)
172
FINITE ELEMErIT ANALYSIS OF ONE·DlMENSIONAL PROBLEMS
Equation (4.58b),. after multiplication, yields
Fi cos a - F;sin a Fi sin a + it cos a
e
£3
(4.60)
F4 cos a - Fs sin a F4 sin a + F; cos a F6 which is the element force vector referred to the global coordinates. We next consider an example each of a truss and frame structure. /
Example 4.3. Consider the three-member truss shown in Fig. 4.12(a). All members of the truss have identical cross-sectional area A and modulus E. The hinged supports at points 1, 2, and 3 allow free rotation of the members about the faxis (taken as positive into the plane of the paper). We wish to determine the horizontal and vertical displacements at the joint 3 and the forces in each member of the structure. Since all joints are hinged, and the applied forces are acting at the nodes, the members are subjected to only axial forces. Hence, the structure is a truss. We use three finite elements to model the structure. Any further subdivision of the members
(a)
2
Cb
2
3
1
1
(b)
FIGURE 4.12 Geometry and finite element discretization of a plane truss: (a) geometry and loading; (b) element numbers, global node numbers of element nodes, and element nodal forces in the element coordinates.
BENDING OF BEAMS
173
does not add to the accuracy, because for all truss problems the finite element solutions are exact. This is a consequence of the fact that all truss members with constant cross-section are governed by the homogeneous differential equation
EA dx' d
2u=O
(4.61)
whose solution is of the form u(x) = CIX + C2• Thus, linear interpolation of the displacements should give the exact result. The global node numbers and element numbers are shown in Fig. 4.12(b). There are two degrees of freedom, horizontal and vertical displacements, at each node of the element. The element stiffness matrix in the local coordinate system is
A'Eel -1~
[K'J = he
o
o
-1
o o
0
o
0
1
~]
(4.62)
The (transformed) stiffness matrix of the element Q e in the global coordinate system is given by
(4.63)
which is obtained from (4.59) by deleting the rows and columns corresponding to the bending degrees of freedom and setting all bending stiffnesses to zero. The element stiffness matrix is 4 x 4 in the global coordinate system because of the horizontal and vertical displacement degrees of freedom at each node. The element data for the problem are as follows.
Element number
1 2
3
Global nodes of the element
Geometric properties
Material property Orientation
2 1 1
A,hl=L A, h 2= V2L A, h 2=L
E E
3 3 2
E
a-=O· a-=4S· a-= 90°
The assembled stiffness and force coefficients are given by
1
2
3
4
5
6
Kil + Ki1
K~2+ Ki2
KiJ Kb
Ki4
K~J
K~4
1
K~4
Kh
K~
2
K~3+Kll
K~+Kl2
Kl 3
K~4
3
Kt+Kh
Kb
Kh+K~2
[K] ee symmetric
K~3 + K~J
4 Ki4 5 KL+K.L Kt+K.L 6 (4.64)
174
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
The force vector can be written directly by including the known applied forces: Qi+Qi Q~+Q~ Qj+Q~
m=
Q 3+ Ql 4
2
~~
-2P
~P I
Substituting the element data into (4.63) and the result into the assembled equations, we obtain 0.3536
0.0
0.0
1.3536
0.0
-1.0
1.0
0.0
-1.0
1.0
0.0
EA [K]=L
-0.3536
0.3536
symmetric
-0.3536
-0.3536 1'-0.3536
-,
0.0 0.0
t
1.3536
0.3536 0.3536
The specified displacement degrees of freedom are UI
= U2 = U3 = U4 = 0
(4.66)
The first two correspond to the horizontal and vertical displacements at node 1, and the last two to the horizontal and vertical displacements at node 2. The condensed • equations for the unknown displacements and forces are
EA [1.3536 0.3536] { Us} = {-2P} !- 0.3536 0.3536 U6 P
{
~l: ~1}
= EA
L
Q3+QI Q1+ Q~
(4.67)
[=~:~~~: =~:~~~:]{US} -1.0 0.0
0.0. 0.0
U6
(4.68)
where, for example, Qi + Qi is the horizontal force and Q~ + Q~ the vertical force at node 1. Solving (4.67) and computing the reaction forces (4.68), we obtain U. __ 3PL sEA'
Pi "'" Qi + Q~ =
- P,
PL
PL
F;=3P,
F4=0.0
U6 = (3 + 2V2) EA = 5.828 EA
F2 = - P ,
(4.69)
The stress in each element can be computed from the relation 0"=
Q; A,
where Q; is the axial force at node 2 of the element g'. Note that, for a truss element with constant cross-section, the following relations hold: Q~=O,
<2:=0,
<21=-(2;
BENDING OF BEAMS
The
Q; can
175
be determined from the element equilibrium equations
o o
-1
o
1
o
0
0
(4.70)
Hence,
From the global displacements Us and U6 , we have -I
U3
3PL
= - AE'
-2
it3
PL
•
= Us cos (l;' + U6 sm a' = 2 AE'
3
U3
=0
(4.71)
Therefore, we have (4.72)
The next example deals with a frame structure. It also illustrates how to incorporate a point load between nodes. Example 4.4. The frame structure shown in Fig. 4.13 is to be analyzed for displacements and forces. Both members of the structure are made of the same material (E) and have the same geometric properties (A, I). The element stiffness matrices and force vectors in the global coordinate system (x, y, z) can be computed from (4.59) and (4.60). The geometric and material properties of each element are as foIlows. Element 1
L = 144 in,
A = 10 in",
1= 10 ir?t; 6
E = 10 psi,
It =
cos a = 0.0,
sin a = 1.0
-izp lb in-I
(4.73)
Element 2
L = 180 in,
A = 10 in2 , E
1= 10 in2 ,
= 106 psi,
cos a = 0.8,
sin a = 0.6
h. = 0
(4.74)
The load Po = 4P at the center of the element is distributed to the nodes according to (4.14). The assembled stiffness matrix and force vectors are obtained by superposing the last three rows and columns of element 1 on the first three rows and columns of element 2; i.e., the 3 X 3 sub matrix associated with rows and columns 4, 5, and 6 of element 1, and the 3 X 3 submatrix associated with rows and 'columns 1, 2, and 3 of element 2 overlap in the global stiffness matrix. The known geometric boundary conditions are (4. 75a)
The force boundary conditions are Ql + Qi = 0,
Q1 + Q~ = -2P,
Q~ + Q~ = 0
(4.75b)
176
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
12 ft
1 -- -
r- (a)
~-+-----L..~~X
12 ft
FIGURE 4.13 Geometry, loading and finite element discretization of a plane frame structure: (a) geometry and loading; (b) finite element discretization, element numbers, and element forces in the element coordinates.
Since all specified values of the known boundary conditions on the primary variables are zero, the condensed equations for the unknown global displacement degrees of freedom are lOs
-0'0178]{U4} '{-41} P Us
0.3560 0.2666 0.2666 0.8846 -0.0148 [ -0.0178 -0.0148 5.0000
=
U6
(4.76)
48
whose solution is
U4 = 0.839 X 1O- 4p (in),
Us = -0.681
X
1O- 4p (in),
U6 = 0.961 X 10- 4 p (rad} (4.77)
The reactions and forces in each member in the global coordinates can be computed from the element equations (4.78a)
The forces {Q"} can be transformed to those in the element coordinate system by means of (4.55):
{Q"J =
[T<]{Q<}
(4.78b)
BENDING OF BEAMS
177
We obtain
{QI}=
4.731
1.458
0.725
-0.180
-10.900 -4.731
P,
{Q2} =
21.550 -1.458
1.275
0.180
50.450
10.870
p
(4.79)
4.4 THE TIMOSHENKO BEAM AND FRAME ELEMENTS 4.4.1 Governing Equations Recall that the Euler-Bernoulli beam theory is based on the assumption that plane cross-sections remain plane and perpendicular to the longitudinal axis after bending. This assumption implies that all transverse shear strains are zero. When the normality assumption is not used, i.e., plane sections remain plane but not necessarily normal to the longitudinal axis after deformation, the transverse shear strain Exz is not zero. Therefore, the rotation of a transverse normal plane about the y axis is not equal to
[ GAKs ( 'II + : )] + f = 0
~ (£1 dqt) _ GAK ('II + dW) = dx dx
dx
(4.80a)
0
(4.80b)
S
where G is the shear modulus and K, is the shear correction coefficient, which is introduced to account for the difference in the constant state of shear stress in this theory and the parabolic variation of the actual (i.e., as predicted by equilibrium equations) shear stress through the thickness. When the second equation is substituted into the first for GAKlW + dw/dx), and 'II is replaced with -dw/dx, we obtain governing equation (4.1) of the Euler-Bernoulli beam theory.
4.4.2 Weak Form weak form of (4.80) over an element Qe = (XA, x B ) is developed using the Usual procedure, now applied to each equation. We multiply (4.80a) wtih a weight function -Wi and (4.80b) with a weight function -W2, and integrate
178
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
over the element length: 0=
(8 -Wt{~[GAK5('II+::)]+f}dx
0=
IB-wz[~ (EI~:) - GAKs(W + ~:) J
dx
Integrating the first term of each integral once by parts, we obtain 0= 0=
(8 [~:t GAKs(W + ~;) - w.]1 -lWtGAKs('I1 + ~:) (8 [d;z EI~: + zGAKs('I1 + ~:) J WzE1zr: dx
dx - [
W
r:
(4.81a)
(4.81b) ~
The coefficients of the weight functions
and
WI
( dW)
GAKs W + dx == V
Wz
in the boundary integrals are
d'¥ EI-'5M dx f
and
(4.82)
where V is the shear force and M is the bending moment; these coefficients constitute the secondary variables of the weak form. The weight functions WI and Wz must have the physical interpretations that give WI V and wzM units of work. Clearly, WI must be equivalent to (the variation of) the transverse deflection w, and Wz must be equivalent to (the variation of) the rotation function 'II: wz-lp
WI ~ W,
Hence, the primary variables of the formulation are wand '¥. Denoting the shear forces and bending moments at the endpoints of the element by the expressions
Ql == - [ GAKs('II + ~:)] \x/
Q3'5 [GAKs('¥ + ~:) JL'
Q~== -(EldW)1 dx
Q~ == (EI d'Il) dx
I
XA
(4.83)
"8
the weak statements in (4.81) can be written in the final form
(4.84)
4.4.3 Finite Element Model A close examination of the terms in (4.84) shows that both wand 'II are x, Since the primary variables are the differentiated only once with respect
to
BENDING OF BEAMS
179
dependent unknowns themselves (and do not include their derivatives), the Lagrange interpolation of wand W is appropriate here. The minimum admissible degree of interpolation is linear, so that dw / dx '1= 0 and dqJ/ dx '1= O. The variables wand qJ "do not have the same physical units; they can be interpolated, in general, with different degrees of interpolation. Let us consider Lagrange interpolation of wand l.p in the form n
2: S/IpjZ)
'P =
(4.85)
j=l
where 1J.rJ!) and w)2) are the Lagrange interpolation functions of degree m - 1 and n - 1, respectively. In general, m and n are independent of each other, although m = n is most common. However, when m = 11 = 2 (i.e., linear interpolation is used), the derivative of w is (
dW) e = w~ - w~ dx he
which is element-wise-constant. The rotation function W, being linear, is not consistent with that predicted by w(x). For thin beams, the transverse shear deformation is negligible, and we have qJ = -dwldx, which requires eXB-X ex-xA Sl--+ SZ - - = he he
-
w~-w~
he
(4. 86a)
or, equivalently (by equating like coefficients on both sides), S~
-s1 = 0
(4. 86b)
which in turn requires s~ = s~ =
(4.87)
This implies that W(x) is a constant:
lH() e XB - X eX - XA e 't:" X =Sl-h-+Sz-h-=Sl (=S2) e
(4.88)
e
However, a constant state of W(x) is not admissible, because the bending energy of the element,
J
XB
XA
EI (dlJl)Z dx 2 dx
(4. 89a)
would be zero. This numerical problem is known as shear locking. To circumvent this, two alternative procedures have been developed in the literature:
I
L
1. Use a consistent interpolation for wand 'P such that dw I dx and Ware polynomials of the same order (i.e., m = n + 1).
180
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
2. Use equal interpolation (i.e. m = n) for wand qJ, but evaluate the bending energy with actual interpolation of qJ and the shear energy
f
8
X
x"
GAKs (dW + 2 dx
qJ)2 dx
(4. 89b)
with a polynomial that is one order lower. The latter can be achieved computationally without using different interpolations of qJ in (4.89a, b). In the numerical evaluation of the integral (4.89b), we use a quadrature rule (see Section 7.1 for details) that is necessary to calculate the integral
L:8 GAKs(~:r dx
(4. 89c)
qJ
I'
exactly. For example, when the linear interpolation of wand is used, we use a one-point quadrature rule to evaluate (4.89b) because a one-point quadrature would give the exact value of the integral (4.89c) when GA = constant. A two-point quadrature is needed to evaluate the integral in (4.89b) exactly. The use of reduced integration, i.e., one-point quadrature on the integral (4.89b), would result in the linear term in the approximation of qJ not contributing to the shear energy. For illustrative purposes, we take a detailed look at the expression
r
8
GAKs (dW 2 Jx" dx
+ qJ)2 dx
= GAKs [(dW + 2 dx
qJ)21
]h e
x=x,,+,,-,z where x = XA + !h e is the midpoint of the element and he is its length. Substituting (4.85) into this expression (with m = n = 2), we have
A)2\
GAKshe(Wi-W1 eXB-X e X- X ---+SI--+S2-~ 2 he he he
x~x" +h,12
GAKshe (Wi = 2 'h
w1 s1 +
Si)2
+-2-
(4.90)
e
which is a weaker requirement than (4.87), i.e. if (4.87) holds then (4.90) also holds, but (4.90) does not imply (4.87). We note that (4.87) must hold only for problems for which the transverse shear energy (4.89) is negligible. In summary, we use either consistent interpolation (m = n + 1) or equal interpolation with reduced integration in the evaluation of the transverse shear stiffness coefficients in the Timoshenko beam element. We consider both forms of elements here. and WI = 1jJ~1) and W2 = 1/Jf) into the Substitution of (4.85) for IV and weak forms (4.84), we obtain the finite element equations:
qJ,
m
0= 0=
n
2: Ktlw + L Ktls Ft j -
j
j=1
j=1
m
n
-
j=l-
m) (4.91a)
L K~.lWj + 2: K~2Sj F;
i=1
(i = 1, 2, ... ,
(i = 1,2, ... ,n)
BENDING OF BEAMS
181
where
f. = f. f. FI = fB
K~.l=
XB
IJ
XA
d1jJP) d1jJ{1) -GAK -'---I-dx S dx dx , d1jJP) GAKS -d' - .11/(2) dx '#'
XB
K~.2 IJ
K?? = 'I
= K?t /1
X
xA
(4.91b)
d· I , (2) d· J, (2) ) E1--'#'t.:__ ' #'1_' + GAK 1jJ~2)tjJF) dx dx dx S 1
XB (
xA
I
Ff = Q2i
+ Q2I-1,
ftjJP) dx
xA
Equations (4.91a) can be written in matrix form as (4.92) A CONSISTENT INTERPOLATION ELEMENT (CIE). To illustrate the use of consistent interpolation, we select 'ljJP) to be Lagrange quadratic polynomials and 'ljJf2) Lagrange linear polynomials. For this choice of interpolation, [K I l] is 3 X 3, [K t2] is 3 X 2, and [K 22 ] is 2 X 2. The explicit forms of the matrices, when E1 and GAKs are constant, are
-8
[K 22 ) =
~I [_ ~ e
-1]
-H [2
[K"]- GAK, [ . : 16 3he 1 -8
[K 12] = GAKs [ -54 -4 6 1 5
(4.93)
e -1]1 + GAKsh 6 1 ~]
The element equations become
GAKs
8
7 3h
--
1 3h
8 -3h
16 3h
--
1 3h
8 -3h
7 3h
--65
4 6 4
6
6
6
-
1 6
--
3h
-
--
--
--
1 6
Wt
4
--64
W3
13
5 6
W2
= 12
St
0
Q2
S2
0
Q4
5
6
8 3h
-
6 1
-
-
1
-
5
-
-
6 a h
h 3
-+a h
h 6
--+-
«
h 6
--+~
h
«
h 3
-+h
e
It
e
Ql
e
Q +
Q3
(4.94) I
l
where «= EI/GAKs,
Q is any specified transverse force at node 3, and
182
FINITE ELEMENT ANALYSIS OF ONE. DIMENSIONAL PROBLEMS
QI> Q3) are shear forces and (Q2' Q4) bending moments at the end nodes 1 and 2 of the element. Note that node 3, which is the middle node of the element, is not connected to other elements, and the only degree of freedom there is the transverse deflection. Thus, there are different number of degrees of freedom at different nodes of the element, and this therefore complicates the assembly of elements and its implementation on a computer. Hence, we eliminate the node 3 dependence in the system of element equations by condensing out W 3 • We obtain ~
GAKs h GAK - - -s h
-GAK -h-s
-~GAKs
-!GAKs
Wl
GAKs h
!GAKs
!GAKs
W2
-!GAKs
iGAKs
£1 1 E1 lGAKsh+h J,GAKh-s h
SI
-!GAKs
!GAKs
£1 I lGAKsh -h- J,GAKsh
S2
L..
e
"
£1
+-,;
;
11 +iA =
fz+M -gh Y3 h
Ql
e
+
e
(4.95)
Q3
Qz Q4
where J3 = h + Q. This is obtained by solving the second equation of (4.94) for and substituting for W3 in the first four equations of (4.94). The forces /; are obtained using W3
l
xB
If =
l(x)1jJ'i dx,
v; = (1jJfl)y = quadratic interpolation functions
(4.96)
x"
The element equations (4.95) can be assembled in the same manner as the classical beam equations, with two degrees of freedom (w, s) per node. However, it should be noted that w is interpolated with quadratic polynomials. For constant 1=[0' the specified load vector in (4.95) takes the form [because /~ = U'ah, /'2 = U'a h, f; = Yah, Qo = 0; see (3.40b)]
{r} =
Yah } -t:h { Z
(4.97)
!-21ohz
which is precisely the same as that obtained in the classical beam element [see (4.15)J.
BENDING OF BEAMS
AN
EQUAL
INTERPOLATION~
REDUCED
INTEGRATION
183
ELEMENT
(RlE). When equal interpolation is used (m = n), all submatrices in (4.92) are of the same order: n X n, The element coefficient matrices Kl/ and Kb2 are evaluated exactly, as is the first part of Kt2 • The second part of Kt2 is to be evaluated using reduced integration, For the choice of linear interpolation functions, and for constant values of GAKs and E1, the matrices have the following explicit values: [Kll ] =
G~eKs [, ~
[ 22]=E1[ 1 K he -1
-
~l
[K 12 ] =
G~Ks [- ~
-
~J (4.98)
h [1 11
-1J+GAKs 1 4
e
1J
1
where one-point integration is used to evaluate the second part of [KU]. Note that [K ll ] , [K 12 l, and the first part of [K2Z] are also evaluated exactly with one-point quadrature when E1 and GAKs are constant. Hence the uniform one-point integration for [K"'PJ satisfies all requirements. The element equations are _ GAKs h
-!GAKs
~GAKs
~GAK h - 4 s h
Sl
~GAKs
GAKs h
~GAKs
Wz
. £1 IGAKh-4 s h
~GAKs
GAKs h -!GAKs OAKs h
--~
-~GAKs
-!GAKs 1
4 GA Ksh
E1
+ J;
E1
1
1 4
WI
GA Ksh
r:E1
e
S2
~ur+gr
(4.99)
It is interesting to note that the element stiffness matrix in (4.99) is the same as that in (4.95) obtained from the consistent interpolation with quadratic approximation of wand linear approximation of \II, except that the nodal variables are listed in a different order. The only difference is the load representation. In the consistent interpolation, the load vector is equivalent to that of the Euler-Bernoulli beam theory, whereas, in the equal interpolation with reduced integration element, the load vector does not contain any moment components due to the distributed load. The quadratic interpolation of both wand \II with full integration of the element coefficient matrices also suffers slightly from the shear-locking phenomenon. A uniform two-point quadrature rule has the desired effect on [K ll ] , [K 1Z ] , and [K ZZ] ; i.e., [K Il ] , [K 12 ] , and the first term of [K 2Z] will.be
184
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
evaluated exactly and the second term of [K Z2] approximately. As the degree of approximation and/or the number of elements in the mesh is increased, the shear locking will disappear and reduced integration is not necessary. Example 4.5. Here we reconsider the indeterminate beam problem of Example 4.2 (see Fig. 4.7), and analyze it with the reduced integration element (RIE) and consistent interpolation element (eIE). Unlike the Euler-Bernoulli beam element, the Timeshenko beam element does not yield exact values at the nodes, even when EI and GAKs are constant. This is because of the coupled nature of the equations relating w and 'P. The beam is modeled using two (hi = 4, h~ = 6) and four (hi = 2, h~ = 2, h 3 = 3, h4 = 3) linear elements with reduced integration. The element equations for a typical element are the same as those in (4.99), whereff for the elements with distributed force are given by / -, x ·+I- 4
f~ =
[ - 1~ itpf(i)] d.i
L
for x.;=: 4
x,£'"-4
where i is a coordinate such that x
(4.100) r
= i + 4.
We obtain
for the two-element case and
{I} _h44fo {I}1
{f4} = _ h 3fo 12 2
for the four-element case (h) = h 4) . 0.02
..-.. ~ ;l::
-r--...---------------......,
0.00
--0-
LlH
c
'B 0)
Exact solution FE solution (2L) FE solution (4L)
= loJ, k = 0.0
-0.02
~ -o
0)
el -0.04
~
~
-0.06
o
2
4
6 x
8
10
12
FIGURE 4.14 Comparison of the transverse deflection obtained using Timosnenko beam elements with the exact deflection of a cantilever beam (see Fig. 4.7). _
BENDING OF BEAMS
185
Figure 4.14 shows plots of transverse deflection versus x for the case with k = 0 (i.e., a centilever beam), beam length-to-height ratio L!H=HY, and E/=106 ff lb. The ratio L!H is a measure of the thinness of the beam. When it is large (i.e., for very thin beams), the transverse shear deformation is negligible and the Euler-Bernoulli and Timoshenko beam theories give the same results. For small values of L!H, say 10 (i.e., GAKs = 4 X 106 1b) , Timoshenko beam theory predicts larger deflections, and for the problem at hand the difference is not noticeable enough to be seen if the deflections from both theories were included in Fig. 4.14. The finite element solutions shown in the figure are obtained with the reduced integration elements. Figure 4.15 contains results of a convergence study, which includes two and four linear and quadratic element meshes for the case of k]EI = 1.0 and L!H = 10. The reduced integration elements are used. The scale used for plotting the deflections is such that the difference between the finite element solutions and the exact solution can be seen clearly. The mesh of four quadratic elements gives the converged solution. To show the effect of the transverse shear deformation, the exact solution for the thin beam (L!H=1ff) is also shown in Fig. 4.15. It is clear from the results that the convergence is rapid and the quadratic elements yield faster convergence. The accuracy of the reduced integration element (RIE) relative to the full integration element (FIE) and the consistent interpolation element (CIE) can be seen from the results shown in Fig. 4.16 (for L!H=lO and k!EI=1). Clearly, the CIE element gives more accurate results, followed by the reduced integration element. Recall that the stiffness matrices of the two elements are identical, the only difference being in their force vectors [see (4.95) and (4.99)]. Of course, in the CIE element, the transverse deflection is interpolated using quadratic functions. The plots shown in Fig. 4.17 indicate that the reduced integration is necessry even for quadratic elements, although they are not as sensitive to locking.
0.001 . , - - - - - - - - - - - - - - - - - , ::: ~{a}ct (LiH = 10, klEI = 1) --¢-
~4Q
l:l
o
.~ r;::
4L
-A- 2Q
;l::
0.000
FE solutions (kIEI = 1, LlH
= 10)
---- Exact (LiH = 1()l, k1EI = 1)
OJ
-0
~
!
-0.001
-0.002 +-.....,....--,-......--.---.-,-.........--r-.--....-.........--1 o 4 6 8 2 10 12 x FIGURE 4.15 Convergence of the finite element solution to the exact solution of the beam in Fig. 4.7 (k! EI = 1); the Timoshenko beam element is used.
186
FlN1TE ELEMENT ANALYS1S OF ONE·DIMENSIONAL PROBLEMS
0.001
FIE RIB --()-FIE -<>-- RIB
--0--, -0-
(2L) (2L) (4L) (4L)
--
-0-
em (2 elements) ClE (4 elements) Exact solution
0.000
L
o
Ii
= 10
k E1
= 1
2
/
4
6
8
10
12
Distance x (ft) FIGURE 4.16 Comparison of the transverse deflection w(x) obtained with reduced integration elements (RIE), full integration elements (FIE), and consistent interpolation elements (ClE) with the exact solution: 2L, two linear elements; 4L, four linear elements.
0.001 .....-
-, - - Reduced integration --- Full integration
o
2
4
6
8
10
12
x FIGURE 4.17 The effect of full and reduced integration on the accuracy of the finite element solution (FES) obtained using the Timoshenko beam element. ~
BENDING OF BEAMS
187
\
The following" general observations can be made about various finite element models based on the Timoshenko beam theory: 1. The reduced integration element (RIE) exhibits less locking compared with the full integration element (FIE). 2. As the number of elements in the mesh is increased or the degree of approximation is increased (i.e., higher-order elements are used), the finite element solutions obtained by both RIB and FIE elements improve; i.e., the effect of locking is reduced with mesh refinements and higher-order elements. 3. The consistent interpolation element (i.e., quadratic approximation of w and linear approximation of 'II) with full integration yields a more accurate solution than that predicted by the RIB element. This is due to a better representation of the distributed load. 4. The element with quadratic approximation of both wand 'II and reduced integration of the coefficients yields more accurate results than the consistent interpolation element with quadratic approximation of wand linear approximation of t[J and with full integration of the coefficients. The frame element based on shear deformation beam theory can be obtained by superposing the bar and beam stiffnesses.
4.5 INCLUSION OF CONSTRAINT EQUATIONS When the support plane of a roller support is at an angle to the global coordinate system (see Fig. 4.18), the boundary conditions on the displacements and forces at the roller are u~=o,
Q~= Qo
(4.101)
where u~ is the normal component of the displacement, Q~ is the tangential component of the force at node 1 of the element ~Y, and Qo is any specified tangential force. These conditons must be expressed in terms of the global
x
/ n
u, = u cos f3 +
II'
cos /3 -
U
Un
=
II'
sin f3 sin /3
FIGURE 4.18 Transformation of specified boundary conditions from a local coordinate system to the global coordinate system.
188
FINITE ELEMENT ANALYSIS OF ONE·DIMENSIONAL PROBLEMS
components of displacements and forces by means of the transformation (4.53) and (4.55):
-u1 sin f3 + U2 cos f3 = 0
(4.102a)
= Qi cos f3 + Q2 sin f3 = Qo
(4.102b)
u~ =
Q~
where (ui, U2) and (QJ:, Q2) are the x and z components of the displacements and forces at the support. Equations (4.102) can be incorporated into the global system of equations as follows. Consider the assembled system of equations,
KUVi + K 12V2 + K 21VI + K 22V2 +
+ Ki"V" =F1 + K 2n V" = Fz
(4.103)
, where Vi are the global generalized displacement degrees of freedom and F; are the sums of the applied (fD and internal (QD generalized force degrees of freedom. Suppose that the roller support is at the first node of the element ge, and that the corresponding displacement degrees of freedom are V/1 VlJ and VK' The forces Q'J., Q2, and Q; corresponding to these displacements end up in the forces Fj, Fj, and FK , respectively. Hence, to include the force boundary condition of (4.102b), we must add cos f3 times the lth global equation to sin f3 times the Jth equation: (cos (3)(KIlVI + K n V 2 + (sin f3)(KJ1VI + K]2 U2 +
+ KIlV} + KJJV] + + KJJU} + KJJV] +
+ K/NUN ) = (cos (3)Fi + KINVN ) = (sin (3)F]
and obtain
(K Il cos f3 + KJ1 sin f3)U1 + ...
+ (KiN cos 13 + KIN sin (3)VN =(Fi cos 13 + FJ sin 13) = (fj cos f3 + f2 sin (3) + (QJ: cos f3 + Qi sin (3) = ([1 cos 13 +fi sin 13) + Qo (4.104)
We replace the Jth equation with this and replace the lth equation with (4.10Za): (4.105) These modifications of the global set of algebraic equations violate the symmetry of the resulting global stiffness matrix. . To retain the symmetry of the global stiffness matrix, an alternative method of incorporating the conditions (4.102) is presented here. Equations (4.102a) or (4.105) can be viewed as the constraint equations among the global displacements, which have a companion relation among the associated forces, i.e., (4.102b). In the following paragraphs, we present a general procedure by .
BENDING OF BEAMS
189
which constraint equations of the type (4.106a)
among the primary variables (4.106b)
can be implemented in the assembled system of equations (4.103). In (4.106), { U 1} denotes the n X 1 vector of generalized nodal displacements that are selected as the independent nodal variables, and {U Z } denotes the m X 1 vector of generalized nodal displacements that are selected as the dependent nodal variables. The matrix operator [A] is of order (n + m) X n. For example, consider a frame problem with N nodes and a total of 3N (= m + n) degrees of freedom in the problem. If one of the supports is a roller support, there will be one constraint equation of the type (4.102a). If the global node number corresponding to the roller is I then p = 3(1 - 1) + 1 is the first degree of freedom at the support. Hence, the constraint condition (4.102a) can be expressed in terms of the generalized global displacement degrees of freedom Up and Up+ 1 as - Up sin f3
+ Up+ 1 cos f3 = 0
(4.107)
Suppose that Up is selected as the independent variable and Up+ 1 as the dependent variable. Then the number of independent variables is n = 3N + 2, and there is only one dependent variable (i.e., m = 1). For this case, the constraint (4.106a) has the form 0
0
0
0
U1
o,
1 0 0 1
0
0
0
0
o.
Up
0
0
1
0
0
Up
0
Up+ z
tan f3 0 ... 0 L p th column
Um + n
VI
0
Vp+ z
0 0
Um + n
0 0
Vp+1
.. .
0
(4.108)
Equation (4.106a) represents a transformation similar to (4.55a), between two sets of global generalized nodal displacements, with [A] being the transformation matrix. Therefore, the discussion presented in the paragraph following (4.58) can be used to transform the equations in m + n variables to those in only n variables. Consider the assembled equations [K]{U} = {F}
(4.109)
190
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
which can be rearranged as (4.110) where {UI} and {U2 } denote the vectors defined in (4.106a). Using the transformation (4.106a), we obtain (4.111) To obtain a symmetric coefficient matrix, we premultiply both sides with [AjT, and arrive at /
or
(4.112a) where
[K] = [AV[K][A],
{p} = [At {P}
(4. 112b)
Equations (4.112) are now ready for the implementation of boundary conditions and solution. As an example, consider the frame element in Fig. 4.18. We have one constraint equation, U5 = U4 tan
f3
The transformation equation (4.108) has the form 0
0
U2
1 0 0 0 1 0
0
0
U3
0 0
1
0
0
U4
0 0 0
1
V6
0 1
0 0 0 0 .. ------.0 0 0 tanp 0
U1
- ----
U5
_.-----~.---_
VI U2 U3 V4 U6
and the stiffness matrix [K] is the same as [K], with the fifth and sixth rows and columns interchanged: K ll
[K]=
• ••
K 14
K 16
K 15 K 45
K 41 •
• •
K 44
K 46
K 61 •
••
K 64
K 66 K 65
K 51 •
••
K 54
K 56
K 55
BENDING OF BEAMS
191
The transformed stiffness matrix and force vector are, from (4. 112b), of order 5 X 5 and 5 X 1, respectively. The elements of [K] and {F} are given by
Kij = Kij (i, j
= 1, 2, 3, 5)
K4i = K4i + K6i tan f3 } A
_
K i4
=
K{4
_
+ K i 6 tan f3
(i=1,2, ... ,5;i*4)
K44 = K44 + (K46 + K64 ) tan f3 + K66 tan? f3
fi; = F; (i
=
I, 2, 3, 5),
F4 = F4 + F;; tan f3
During the imposition of the boundary conditions of the problem, the force will be replaced by Qo.
14
4.6 SUMMARY In this chapter, finite element models of the classical (i.e., Euler-Bernoulli) and Timoshenko beam theories have been developed. The classical beam theory is governed by a fourth-order differential equation, and therefore results in a weak form whose primary variables contain the transverse deflection and its first derivative. Therefore, Hermite interpolation of the transverse deflection is required in order to impose the continuity of the deflection and its derivative at the nodes between elements. In the case of the Timoshenko beam theory, there are two second-order equations governing the transverse deflection and the rotation. The weak forms of the equations require Lagrange interpolation of the transverse deflection and rotation. Since the rotation function is like the (negative of the) derivative of the transverse deflection, the degree of the interpolation used for the rotation should be one less than that used for the transverse deflection. Such selective interpolation of the variables is caIled consistent interpolation. When the same interpolation functions are used to approximate the transverse deflection and the rotation, the resulting stiffness matrix is often too stiff-especially when the number of elements used is small-to yield good solutions. This is due to the inconsistency of interpolation of the variables, and the phenomenon is known as shear locking. It is overcome by the use of reduced integration to evaluate the stiffness coefficients associated with transverse shear strains. Both reduced integration elements (RIE) and consistent interpolation elements (eIE) have been developed here. It has been shown that consistent interpolation with linear approximation of the rotation and quadratic interpolation of the transverse deflection yields the same stiffness' matrix as that obtained with a reduced integration element with linear approximation of the rotation as well as the deflection. However, the load vector of the consistent interpolation element, for a uniformly distributed transverse load, is equal to that of the Hermite cubic element of the classical beam theory. The plane truss element and frame elements of the classical and Timoshenko beam theories have also been discussed. A plane truss element is
192
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
a bar element that carries only axial loads and is oriented, in general, at an angle from the horizontal axis (the global x axis is taken to be horizontal). The bar element is first modified by adding columns and rows of zeros corresponding to the transverse displacements, so that it has two degrees of freedom (axial and transverse displacements) per node. The arbitrary plane truss element is then obtained by transforming the stiffness matrix and force vector from element coordinates to global coordinates, which are taken to be horizontal and vertical. Thus, a plane truss element has two degrees of freedom (horizontal and vertical displacements) per node, and carries only axial loads. The frame element is a superposition of the beam and bar elements, and has three degrees of freedom (axial displacement, transverse deflection, and rotation about an axis perpendicular to the plane of axial and transverse coordinates). The general plane frame element is oriented, at an angle from the horizontal position, and its equations /are obtained by transforming the equations of the frame element in local coordinates. Finally, a procedure for including constraint conditions among the displacements and/or forces has been presented.
PROBLEMS 4.1-4.16. For the beam problems shown in Figs. P4.1-P4.16, use the Euler-Bernoulli beam element, and give: (a) the assembled stiffness matrix and force vector; (b) the specified global displacements and forces, and the equilibrium conditions; (c) the condensed matrix equations for the primary unknowns (i.e., generalized displacements) and the secondary unknowns (i.e., generalized forces) separately. Solve for the unknown displacements if there are less than four unknown displacements (use Cramer's rule), and evaluate the bending moment M C = EI d2 wl dx 2 at point C using the finite element interpolation of IV (when the condensed equations are not solved, express M in terms of the ~odal values of C
10 lb in- 1
~. hiO=r' EI '" constant; Point C is at x = ih
FIGURE P4.1
_ _ _x
-10 5 m---j Point C is at x = 7.5 m E = 200 OPa, G = 79 OPa, A = 2.86 X 10- 3 mI, I = 20 1--5 m
FIGURE P4.2
X
10- 6 m4
BENDING OF BEAMS
193
.--===== { ~ I--- h
h ----4
.[.
Mom:nt of inertia I Modulus E
FIGURE P4.3 10 Ib in- l
....- - h in .l~ h in Point C is at x '" ~h; EI'" constant (Ib in-2 ) FIGURE P4.4
-+- -+--
f-- h h h---j h '" 20 in E '" 30 x 1
FIGURE P4.5
I(x) =
~#M~=========='-x 8 ft--+-6 ft-J
~3ftl 10 = 1000 lb fCl,EI '" constant FIGURE P4.6
~;'"~"'"' Point C is at x",
400 N m- 1 2400 N
~9600Nm-l ~x
EI = 20.7 x 107 N m2
Point C is at x
~L
FIGURE P4.7
1000 Ib 1 ft
FIGURE P4.8
to Sill• - 7TX
=3m
{f
~-l
yt==~x '}--Sft4-5ft-+-Sft+Sft-l EI = constant Point C is at x = 2.5 ft
FIGURE P4.9
194
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
to ~ SOO~~ -
, 5
~x
liN -~x
-
10,000 Ib
m-+- 5 m---+--- 5!l14 .
~lS ft--+Sft--l .
EI = constant
EI = constant Point C is at x = 7.5 ft
Point C is at x = 7.5 m
FIGURE P4.11
FIGURE P4.10
10 =
1000 N m-
1
2500 N
i-x
10 f---Sm
/"
'I·
EI = 2 x 106 N m 2 ;
5m----+j Point C is at x='7.5 rn
FIGURE P4.U
~/o
E,21
tf· ~. ~{MO~~ I_
h
.1-
h
..
!
of inertia, 1 Modulus E
FIGURE P4.13
Fo Mo
='
2500 N
= 1250 N m
~~~~~::=;~===~-.. x k =
E1 = 2
X
106 N m 2 ; Point C is at x = 7.5
1O~4
£1 (N m"")
In
FIGURE P4.14
~;;,:,~b'0' IbfC'
F~' ::.:b;'"" f-----l 6 ft
FIGURE P4.15
~
6 ft
x
=
3 ft
BENDING OF BEAMS
k
= -ET 3 ; p' oint
195
C'IS at
x ""lh 4
L
FIGURE P4.16
the appropriate element). Use the minimum number of elements required in each problem. Answer: (Problem 4.1) U3 = foh 4/48EI, U4 = -(foh l/96EI). 4.17-4.21. Repeat Problems 4.1-4.5 using the Timoshenko beam element (with reduced integration). Use a value of ~ for the shear correction factor. Note that accurate results can be obtained only with a sufficiently large number of elements, when compared with the Euler-Bernoulli element. 4.22. Consider a simply supported beam on an elastic foundation (with foundation modulus k) and subjected to uniform transverse loading. Determine the transverse displacement at midspan using one Euler-Bernoulli beam element. 4.23. Consider the axisymmetric bending of a linear elastic circular plate of constant thickness. The governing differential equation according to the thin plate assumption is (see Section 7.3 for additional details) 2
1d ( d'w dW) 1 d ( dZw DndW) -;. dr z rD II dr z + D lz dr - -;. dr D 12 dr z + ---;: dr = f where D w D 12 , and Dzz are the plate material stiffnesses (constant), W is the transverse deflection, and r is the radial coordinate. Develop (a) the weak form of the equation over a typical element ge = (rA , ra); the quantities in parentheses should not be integrated by parts; (b) the finite element model of the equation in the form
Make sure that [K e ) is symmetric (i.e., the bilinear form in (a) should be symmetric). Comment on the interpolation functions that are admissible for the element. 4.24. The differential equations governing axisymmetric bending of circular plates according to thick plate theory are
_!~ [rA 55 (lIJ + dW)] = f r dr
dr
where A 5 5 , D II , D 1z , and D n are plate material stiffnesses, 'If is the rotation function, W is the transverse deflection, and f is the transverse load. Develop (a) the weak form of the equations over an element; (b) the finite element model of the equations.
196
F1NITE ELEMENT ANALYSIS OF ONE·DlMENSIONAL PROBLEMS
4.25. Solve the problem of a thin (radius-to-thickness ratio rolt = 100) clamped isotropic (v = 0.3) circular plate with uniformly distributed load using the element developed in Problem 4.23. Exploit symmetry, and use two thin plate (EulerBernoulli) elements in the computational domain. 4.26. Solve the circular plate problem of Problem 4.25 using a two-element mesh of Tirnoshenko elements (use k = ~). 4.27. Consider the fourth-order equation (4.1) and its weak form (4.4). Suppose that a two-node element is employed, with three primary variables at each node: (w, (J, K), where (J = dwl dx and K = d 2wldx2. Show that the associated interpolation (Hermite) functions are given by
¢3=
x 2h S - 3x 3h 4 + 3x 4h3 _ x Sh 2 2h s '
¢4=
¢s=
8x3h 3 - 14x 4h 2 + 6x sh 2h s J
-20x 3h2 + 30x 4h C 12x s 2h s
x 3h 4 _ 2x4 h 3 4- x 5lz 2 2h s
where x is the element coordinate with the origin at node 1. Also compute the element stiffness matrix and force vector. 4.28. Consider the weak form (4.4a) of the Euler-Bernoulli beam element. Use a three-node element with two degrees of freedom (IV, (J), where (J == -rdwl dx. Derive the Hermite interpolation functions for the element. Compute the element stiffness matrix and force vector. 4.29-4.36. For the truss and frame problems shown in Figs. P4.29-P4.36, give (a) the transformed element matrices; (b) the assembled element matrices; (c) the condensed matrix equations for the unknown generalized displacements and forces.
Al = 3 in2 A 2 = 4 in2 E = 30,000 ksi v = 0.3
FIGURE P4.29 Pt
= 8 kips
1 P = 8 kips 32
EA is the same for all members
T
10 ft
--l
2
r10 --/--10 ft
FIGURE P4.30
ft
-i
E
A
6 = 30 X 10 = 3.0 in 2
psi, v = 0.3
BENDING OF BEAMS
E = 30
Al Az
X
106 psi, v = 0.3
= As = A 9 = 5 inz = A 4 = A 6 = As = 6 inz
A3 = A7
= 2 in2
FIGURE N.31
8 kN
~
G)
2
T
EI 3
v = 3.0
EA
E
5 m+5 m--j
3m t 10 kN-+-ooi
£1, £A are the same for the two members
f
=
200 GPa
A = 103 rnm? 1= 1& rnm"
FIGURE P4.32 v = 0.3
E = 30 X 106 psi A = 10 in2 1= 10 in"
3 kips ft- l (43.78 kN m- I)
T2 6 ft (1.83 m)
3
10 kips (44.5 kN)
EA is the same for all members
FIGURE P4.33
2 0.5 kips ft-l-r-
!
40 kips 8 it 12 it
s2
51, 3A
13 ~-I
16 it
16 ft
4J
_I
r-FIGURE P4.34
20 ft ------i
v = 0.3 E 3 X 106 psi 1= 100 in4
=
A
= 100 in2
197
198
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
2 1........,.........-...........
..,.,...I-0/.00010...;::):f;
v = 0.3
E = 30
X
10 6 psi
I = 1.0 in" A = 1.0 in2 (same for all) .
6 ft (1.83 rn)
8 kips (35.6 k,--N...!-)~....
FIGURE P4.35
E1, EA are the same for both members v = 0.3
f- 4
ft
-l-- --l 6 ft
FIGURE P4.36
Answer: (Problem -9428 lb, p~ = 7454 lb.
4.29)
U3 = 0.022973 in,
U4 = -0.002169 in,
REFERENCES FOR ADDITIONAL READING Budynas, R. G.: Advanced Strength and Applied Stress Analysis, McGraw-Hili, New York, 1977. Dym, C. L., and 1. H. Shames: Solid Mechanics: A Variational Approach, McGraw-Hill, New York,1973. Reddy, J. N.: Energy and Variational Methods in Applied Mechanics, John Wiley, New York,
1984. Timoshenko, S. P., and J. N. Goodier: Theory of Elasticity, McGraw-Hill, New York, 1970. Ugural, A. C., and S. K. Fenster: Advanced Strength. and Applied Elasticity, Elsevier, New York, 1975. Volterra, E., and J. H. Gaines: Advanced Strength of Materials, Prentice-Hall, Englewood Cliffs, NJ, 1971. Wang, Chu-Kia, and C. G. Salmon: Introductory Structural Analysis, Prentice-Hall, Englewood Cliffs, NJ, 1984. Willems, N., and W. M. Lucas, Jr.: Structural Analysis for Engineers, McGraw-Hili, New York, 1978.
CHAPTER
5 FINITE ELEMENT ERROR ANALYSIS
5.1 APPROXIMATION ERRORS The errors introduced into the finite element solution of a given differential equation can be attributed to three basic sources:
1.
Domain approximation error, which is due to the approximation of the domain. 2. Quadrature and finite arithmetic errors, which are due to the numerical evaluation of integrals and the numerical computation on a computer. 3. Approximation error, which is due to the approximation of the solution (see (iv) in the Note to Remark 10 in Section 3.2.7): N
U ""' Uh ""
2: U;c'P1 1=1
(5.1)
where VJ denotes the value of u at global node I, and c'PJ denotes the global interpolation function associated with global node 1 (see Fig. 3.3b). In the one-dimensional problems discussed thus far, the domains considered have been straight lines. Therefore, no approximation of the 199
200
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
domain has been necessary. In two-dimensional problems involving nonrectangular domains (as will be seen in Chapter 8), domain (or boundary) approximation errors are introduced into the finite element solutions. In general, these can be interpreted as errors in the specification of the data of the problem because we are now solving the given differential equation on a modified domain. As we refine the mesh, the domain is more accurately represented, and, therefore, the boundary approximation errors are expected to approach zero. When finite element computations are performed on a computer, round-off errors in the computation of numbers and errors due to the numerical evaluation of integrals are introduced into the solution. In most linear problems with a reasonably small number of total degrees of freedom in the system, these errors are expected to be small (or zero when only a certain decimal point accuracy is desired). ,The error introduced into the finite element solution U" because of the approximation of the dependent variable u in an element Qe is inherent to any problem N
U
=
Uh
=
n
M
L: L ui'lj1i = 2:
e=l 1=1
U/q,/
(5.2)
/=1
where Uh is the finite element solution over the domain (Uh = U" in Qe), N is the number of elements in the mesh, M is the total number of global nodes, and n is the number of nodes in an element. We wish to know how the error E = U - u«. measured in a meaningful way, behaves as the number of elements in the mesh is increased. It can be shown that the approximation error is zero for the single second-order and fourth-order equations with element-wiseconstant coefficients [see (5.30)-(5.35)].
5.2 VARIOUS MEASURES OF ERRORS There are several ways in which one can measure the "difference" distance) between any two functions U and Uh' The pointwise error is difference of U and Uh at each point of the domain. One can also define difference of U and Uh to be the maximum of an absolute values of differences of U and Uh in the domain Q = (a, b):
lIu - uhll", "" max lu(x) - u,,(x)1
(or the the the
(5.3)
a~x""b
This measure of difference is called the supmetric. Note that the supmetric is a real number, whereas the pointwise error is a function and does not qualify as a -distance or norm in a strict mathematical sense. The norm of a function is a non-negative real number. More generally used measures (or norms) of the difference of two functions are the energy norm and the L 2 norm (pronounced "Lstwo norm"). For any square-integrable functions u and Uh defined on the domain Q =
FINITE ELEMENT ERROR ANALYSIS
201
(a, b), the two nOrlns are defined by d'u, [2 )112 dxi - dX/ dx (L i~ Idiu b
energy norm .
lIu -
llh
II", =
'"
a
(5.4)
(5.5) where 2m is the order of the differential equation being solved. The term "energy norm" is used to indicate that this norm contains the same-order derivatives as the quadratic functional (which, for most solid mechanics problems, denotes the energy) associated with the equation. Various measures of the distance between two functions are illustrated in Fig. 5.1. These definitions can easily be modified for two-dimensional domains.
5.3 CONVERGENCE OF SOLUTION The finite element solution the true solution u if
Uh
in (5.1) is said to converge in the energy norm to
IIIU-Uhllm~ChP
for p>O
I
(5.6)
where c is a constant independent of u and Uh, and h is the characteristic length of an element. The constant p is called the rate of convergence. Note that the convergence depends on h as well as on p; p depends on the order of the derivative of u in the weak form and the degree of the polynomials used to approximate u [see (5.15) below]. Therefore, the error in the approximation can be reduced either by reducing the size of the elements or increasing the degree of approximation. Convergence of the finite element solutions with mesh refinements (i.e., more of the same kind of elements are used) is termed h-conuergence. Convergence with increasing degree of polynomials is called p-eon vergence.
L-.L-------------~t_-x
a
b
FIGURE 5.1 Different measures of error E = U - U h between the exact solution U and the finite element solution Uh' The maximum norm and the L 2 norm are illustrated.
202
FINITE ELEMENT ANALYSIS OF ONE·DIMENSIONAL PROBLEMS
5.4 ACCURACY OF THE SOLUTION Returning to the question of estimating the approximation error, we consider a 2mth-order differential equation in one dimension (m = 1, second-order equations; m =' 2, fourth-order equations):
~ (-1Yddii(aiddil~)=t x
1=1
for O<x
(5.7)
X
where the coefficients alex) and a2(x) are assumed to be positive. Suppose that the essential boundary conditions of the problem are u(O)
(-ddxU)I
='
u(L) = 0 (m = 1,2)
- (du) dx
x=o
I
-0
(m -2)
(5.8) (5.9)
x=L
The variational formulation of (5.7) and (5.9) is given by
0=
fL (f a, di~ dil: - vt) dx Jo i=l dx dx
(5.10)
The quadratic functional corresponding to the variational form is leu) =
L-21 [ ~m a, (d~iiU)2] dx -
Lo
1=1
dx
LL ufdx
(5.11)
0
Now consider a finite element discretization of the domain by N elements of equal length h. If u" denotes the finite element solution in (5.1), we have, from (5.11), l(uh) =
lL ir~
ai (
~;;
rJ
dx -
LL Ul.!dx
(5.12)
In the following paragraphs, we show that the energy I associated with the finite element solution approaches the true energy from above, and we then give an error estimate. We confine our discussion, for the sake of simplicity, to the second-order equation (m = 1). From (5.11) and (5.12), and
we have
FlNI1E ELEMENT ERROR ANALYSIS
203
. LL{a2 [(dU)2 dxh - (dU)2J dx + a1 du dx dxd (U - U,,) }dx 1
= = =
0
L
ai
L02-
dx I :
~
dx
du dUh] dx dxdx
-2~-
LL a (dU" _dU)2 dx ~ 0 1
o 2
Thus,
[(dUh)2 + (dU)2 dx
(5.13)
dx
I
l(u,,) ~l(u)
I
(5.14)
The equality holds only for u = u.; Equation (5.14) implies that the convergence of the energy of the finite element solution to the true energy is from above. Since the relation in (5.14) holds for any u", the inequality also indicates that the true solution u minimizes the energy. A similar relation can be established for the fourth-order equation (m = 2). Now suppose that the finite element interpolation functions 1 (I = 1, 2, ... ,M) are complete polynomials of degree k. Then the error in the energy norm can be shown to satisfy the inequality [see Reddy (1986,1991), p.
401]
IlIellm~IIU-Uhllm~ChP,
p=k+l-m>O
I
(5.15)
where c is a constant. This estimate implies that the error goes to zero as the pth power of h as h is decreased (or the number of elements is increased). In other words, the logarithm of the error in the energy norm versus the logarithm of h is a straight line whose slope is k + 1 - m. The greater the degree of the interpolation functions, the more rapid the rate of convergence. Note also that the error in the energy goes to zero at the rate of k + 1 - m; the error in the ~ norm will decrease even more rapidly, namely, at the rate of k + 1, i.e., derivatives converge more slowly than the solution itself. Error estimates of the type in (5.15) are very useful because they give an idea of the accuracy of the approximate solution, whether or not we know the true solution. While the estimate gives an idea of how rapidly the finite element solution converges to the true solution, it does not tell us when to stop refining the mesh. This decision rests with the analysts, because only they know what a reasonable tolerance is for the problems they are solving. As an example of estimating the error in the approximation, i.e, (5.15), consider the linear (two-node) element for a second-order equation (m = 1). We have for an element . u,,=ul(1-s)+u2s
(5.16)
where s = x/h and x is the local coordinate. Since Uz can be viewed as a function of Ul via (5.16), one can expand in a Taylor series around node 1 to obtain
U2
(5.17)
l
204
FINITE ELEMENT ANALYSIS OF ONE·DlMENSIONAL PROBLEMS
where u'
~dulds.
Substituting this into (5.16), we obtain (5.18)
Expanding the true solution in a Taylor series about node 1, we obtain (5.19) Therefore, we have, from (5.18) and (5.19),
IUh - ul ~ 2-1 (s - s 2) max
0",,-<"'; 1
I~u I= .J~2
w·
I I 2
-21 (s - s 2 )h 2 m~x dd-u2 O"';x,.,;h
(5.20)
X
(5.21) /
'"
These lead to (5.22)
where the constants C1 and C2 depend only on the length L of the domain. The reader may carry a similar error analysis for the fourth-order equation. Example 5.1. Here we consider a computational example to verify the error estimates in (5.22). Consider the differential equation d2u
- dx2 =2 for 0 < x < 1
(5.23)
with u(O) = u(l) = 0
The exact solution is ll(x)=x(l-x)
(5.24)
while the finite element solutions are, for N = 2,
Uh=
h 2 (X/h ) { h2 ( 2 - x / h )
for O";;x,,;;h for h~x";;2h
for N=3, for O'%x'%h for h c x .;;;2h for 2h '%x .;;;3h and, for N "" 4, for for for for
O';;;x.;;;h h e x ,,;;2h 2h.;;;x .;;;3h 3h.;;;x .;;;4h
(5.25)
FINITE ELEMENT ERROR ANALYSIS
205
TABLE 5.1
The ~ error and error in the energy norm of the solution to (5.23) (Example 5.1) h
logw h
lIelio
loglO lie110
lielit
loglo lieII I
1 2 1
-0.301 -0.477 -0.601
0.04564 0.02028 0.01141
-1.341 ~1.693
0.2887 0.1925 0.1443
~0.7157
3
1
4
-1.943
-0.5396 ~0.8406
For the two-element case (h = 0.5), the errors are given by
lIu-uhll~=
l
h
0
(x-x 2-hx)2dx+
~
L (x-x 2-2h 2+xhfdx
= 0.002083
II:-:1[ f =
(1-2x -h)2dx
+ L~ (1-2x +h)2dx
(5.26)
=0.08333 Similar calculations can be performed for N = 3 and N = 4. Table 5.1 gives the errors for N=2, 3, and 4. Plots of log Hello and log lIell! versus logh show that (see Fig. 5.2) log lie 110 = 2 log h
log lIeli. = log h + log C2
+ log CI,
(5.27)
In other words, the rate of convergence of the finite element solution is 2 in the L 2 norm and 1 in the energy norm, verifying the estimates in (5.22).
Much of the discussion presented in this section can be carried over to curved elements and two-dimensional elements. When the former, i.e.,
log lIelll ---log Ilello = log
Cl
+ 2 log h
log lIelio
"log lIell! = log
Cz
+ log h
,,
I
i
l
FIGURE 5.2 Plots of the Lz and energy norms of errors versus the mesh size. The log-log plots give the rates of convergence in the respective norms. The rates of convergence are given by the slopes of the lines (the plots shown are for linear elements).
206
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
elements with nonstraight sides, are involved, the error estimate also depends On the Jacobian of the transformation. Because of the introductory nature of the present study, these topics are not discussed here. Interested readers can consult Cairlet (1978), Wait and Mitchell (1985), Oden and Reddy (1982), Strang and Fix (1973), and Reddy (1986, 1991). As noted earlier, in the case of both second- and fourth-order equations in a single unknown and with constant coefficients, the error between the exact solution and the finite element solution at the nodes is zero. This is not accidental. We can prove that when the coefficients a and b are constant, the finite element solutions of the equations
d ( adU) =f(x) -dx
. (5.28)
dx
2
2
/
d ( d U) dx2 b dx 2 = f(x)
(5.29)
coincide with the exact solutions at the nodes. The proof is presented below for the second-order equation. Consider the equation d 2u
-a dx 2 = f
for O<x
(5.30)
u(L) = 0
(5.31)
with
u(O) = 0,
The global finite element solution is given by (VI
= UN = 0)
N-I
Uh =
L:
(5.32)
U/PI
1=2
where
1) dx = 0
for each 1=2, ... , N -1
(5.33)
J
where =f [a. The exact solution also satisfies this equation. Hence, by subtracting the finite element equation (5.33) from the exact solution, we obtain
(dU dUh) dcf>l J(L di--Y; dx dx=O o
(1=2, ... ,N-l)
Since we have ddx = llh for (l-l)h ~x ~lh and dcf>Ildx = -l/h for Ih ~x ~ (1 + l)h, it follows that
llh
(I-I)h
(dU dUh) 1 f(l+l)h (dU dUh)( 1) - - - -dx+ - - - - - dx=O dx
dx
h
11!-
dx
dx
h
(5.34)
FINITE ELEMENT ERROR ANALYSIS
for 1 = 2,3, ... ,N'-l. Denoting E(X)
~ (El -
£1_1)
= u(x) -
207
Uh(X), we have
+ ( -l)(EI+1 -
£/)
=0
or 1
It (-£1-1 + 2EI -
E1+1) = 0 (1 = 2, 3, ... , N -1)
(5.35)
where E1 = E(1h) (i.e., the value of E at x = Ih). Since Eo = EN = 0 (because both u and u" satisfy the essential boundary conditions), it follows from the above homogeneous equations that the solution is trivial: £1 = E2 = ... = EN-1 = O. This implies that the finite element solution coincides with the exact solution at the nodes.
5.5 SUMMARY Various types of errors in the finite element approximation of differential equations have been discussed and, different measures of the error (or difference between two functions) have been defined. Error estimates .for the second-order differential equations have been presented. It has been shown that the finite element solutions of differential equations with constant coefficients are exact at the nodes. The proof has been presented for a single second-order differential equation. This result does not hold for coupled second-order differential equations with constant coefficients.
PROBLEMS 5.1. Show that the error estimate for the fourth-order equation (4.1) is given by
IIw -
IVhlb,,;;ch2
where c is a constant, Wh is the finite element solution obtained by using the Hermite cubic interpolation, and IV is the exact solution of the problem. 5.2. Consider a Lagrange quadratic element extending between x = -h and x = hand having the three nodes at x = -h, x = ah, and x = h. The transformation between x and a normalized coordinate S is given by
x = h[s + a(l- 52)] If the dependent variable u is interpolated by a quadratic polynomial in that the error £ = U - llh is given by
5,
Hint: First show that
and then d 3 11
~3 =
ds
-6h 2o:(1- 2a- fo) '"
d2u d'u + h 3(1- 2o:fo)3~ dx: ." dx?' ~
d 1 d dx = h(l- 2ag)
ds
show
208
FlNITE ELEMENT ANALYSIS Of ONE-DIMENSIONAL PROBLEMS
5.3. The error in the finite element approximation is often measured in terms of the energy associated with the problem under consideration. For the second-order problem considered in (3.1), the energy of the problem is given by the functional N
(i)
1=2: 1.{ue ) ~=1
where N is the total number of elements in the finite element mesh and I. is the functional given in (3.11). The error in the solution is defined to be the difference between the true or exact solution Elf} and the finite element solution Uh' and the error in the energy is defined by N
I!EIIt "" 2: 1.(£)
.-1
(ii, iii)
If the finite element approximation u~ is an interpolant of the true solution uo, determine the error in the solution and the energy of (3.1) when (a) Uh is a linear interpolant and (b) Uk is a quadratic interpolant. Hint: Use pertinent references at the end of the chapter to determine the interpolation error in terms of the mesh parameter (spacing) h, and use the result (iii) to determine the error in the energy in the form
HEll! = cohP where Co and p are constants; p determines the rate of convergence (p > 0) or divergence (p < 0).
REFERENCES FOR ADDITIONAL READING Ciarlet, P. G.: The Finite Element Method for Elliptic Problems, North-Holland, Amsterdam, 1978.
Davies, A. L.: The Finite Element Method, A FirstApproach, Clarendon Press, Oxford, 1980. Oden, J. T., and J. N. Reddy: An Introduction to the Mathematical Theory of Finite Elements, Wiley-Interscience, New York, 1982. Reddy, J. N.: Applied FUllctionalAnalysis and Variational Methods in Engineering, McGraw-Hili, New York, 1986; Krieger, Melbourne, FL, 1991. . Rektorys, K: Variational Methods in Mathematics, Science and Engineering, Reidel, Boston, 1977.
Strang, G., and G. J. Fix: An Analysis of the Finite Element Method, Prentice-Hall, Englewood Cliffs, NJ, 1973. Wait, R., and A. R. Mitchell: Finite Element Analysis and Applications, John Wiley, New York, 1985.
CHAPTER
6 EIGENVALUE AND TIME-DEPENDENT PROBLEMS
6.1 EIGENVALUE PROBLEMS 6.1.1 Introduction Determination of the values of the parameter Asuch that the equation A(u) = AB(u)
(6.1)
where A and B denote linear differential operators, has nontrivial solutions u is called an eigenvalue problem. The values of A are called eigenvalues and the associated functions U are called eigenfunctions. For example, the equation d 2u - dx'1= AU,
d2
with A = dx 2'
B =1
which arises in connection with the axial oscillations of a bar or the transverse oscillations of a cable, constitutes an eigenvalue problem. Here A denotes the square of the frequency of vibration to, In general, the determination of the eigenvalues is of engineering as well as mathematical importance. In structural problems, the eigenvalues denote either natural frequencies or buckling loads. In fluid mechanics and heat transfer, eigenvalue problems arise in connection with the determination of the homogeneous parts of the solution. In these cases, eigenvalues often denote 209
210
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROllLEMS
amplitudes of the Fourier components making up the solution. Eigenvalues are also useful in determining the stability characteristics of temporal schemes, as discussed in Section 6.2. In this section, we develop finite element models of eigenvalue problems. In view of the close similarity between the equations of eigenvalue and boundary value problems, the steps involved in the construction of their finite element models are entirely analogous. Differential eigenvalue problems are reduced to algebraic eigenvalue problems by means of the finite element approximation. The methods of solution of algebraic eigenvalue problems are then used to solve for the eigenvalues and eigenvectors.
6.1.2 Formulation of Eigenvalue Problems Consider the parabolic partial differential equation
au a(kAau) = q(x, t)
pcA--~
at ax
ax
(6.2)
which governs transient heat transfer in one-dimensional systems (e.g., a plane wall). Here u denotes the temperature, k the thermal conductivity, p the density, A the cross-sectional area, c the specific heat, and q the heat generation per unit length. The homogeneous solution (i.e., the solution when q = 0) of (6.2) is often sought in the form of a product of a function of x and a function of t (i.e., through the separation of variables technique):
u(x, t) = S(x)T(t)
(6.3)
Substitution of this assumed form of solution into the homogeneous form of (6.2) gives dT d ( kAdS) T=O peAS--dt
dx
dx
Separating the variables (assuming that peA and kA" are functions of x only), 1 dT
1 1d (
"Tdi= peASdx
dS)
kA dx
(6.4)
Note that the left-hand side of this equation is a function of t only while the right-hand side is a function of x only. For two functions of two independent variables to always be equal, both must be equal to the same constant, say -,\:
. .!:- dT =_1_!~ (kA dS) =_). T dt
peA Sdx
dx
(6.5a)
or dT dt
-=-}..T
'
d ( kAdS) -).pcAS=O -dx dx
(6.5b)
EIGENVALUE AND TlME·DEPENDENT PROBLEMS
211
The negative sign In the constant A is based on the physical requirement that the solution SeX) be harmonic in x while T(/) must decay exponentially with increasing I. The solution of the first equation is T = 'Toe-At. When k, A, p, and c are constants, the solution of the second equation is
Sex) = B 1 sin VJ.x
+ B z cos YXx, }..
The constants A, To, B 1 , and B 2 are determined with the help of initial and boundary conditions. In view of the above discussion, the solution of (6.2) is of the form
u(x, I)
=
U(x)e- M
(6.6)
This form is consistent with the solutions we derived above, with U(x) ~ Sex) 'To. Substituting (6.6) into the homogeneous form of (6.2), we obtain
d ( kA~ dU) e-A'-ApcAU(x)e-A'=O -dx dx or
d ( kA~ dU) -ApcAU=O -dx dx
(6.7)
We wish to determine). and nonzero Vex) such that (6.7) holds and the boundary conditions of the problem are met. Equation (6.7) describes an eigenvalue problem, A being the eigenvalue and U(x) the eigenfunction. The axial motion of a bar can be described by the hyperbolic equation
cru a( au)
p AZ- - - EA- =q(x, I)
at
ax
ax
(6.8)
Here u denotes the axial displacement, E the modulus of elasticity, A the cross-sectional area, p the density, and q the axial force per unit length. The natural axial oscillations of the bar are periodic, and they can be determined by assuming a solution of the form
uix, I) = U(x)e-;wt, with i = v=I
(6.9)
where to denotes the frequency of natural axial motion (or vibration), and U(x) denotes the configuration of the bar, called the mode shape, during the vibration. For each value of oi, there is an associated mode shape. Substitution of (6.9) into the homogeneous form of (6.8) gives
[-PAWZU -
~ (EA ~~) ]e-;wl= 0
2U
FINITE ELEMENT ANALYSIS OF ONE·DIMENSIONAL PROBLEMS
or (6.10) where A = (1)2. Equation (6.10) is an eigenvalue problem, which involves determining the square of natural frequencies 1\. and mode shapes U. This equation also arises in the solution of (6.8) by means of separation of variables, as discussed in connection with the parabolic equation. Note that (6.7) and (6.10) are of the same form. Only the coefficients are different. Equations similar to (6.10) can be derived for the transverse vibrations of a beam using the Euler-Bernoulli or the Timoshenko beam theories. For the Euler-Bernoulli beam theory, we assume
\V(x, t) = W(x)e-ia>t where (I) is the frequency of natural transverse motion and W(x) is the mode shape of the transverse motion. Substitution of this form into the equation of motion of the Euler-Bernoulli beam theory
~w
pA at2
f? (
+ ax2
~W)
E1 ax 2 = 0
(6.11)
gives (6.12) where 1\.= w2 • For the Timoshenko beam theory, we assume
w(x, t) = W(x)e-ia>t,
W(x, t) = S(x)e-ia>t
and substitute into the equations of motion of the theory 2
a w2- - a- [GAK (aw pA -+'P)] =0 at ax ax
a(aw)
(
(6.13)
aw ) =0 pOZw 12- - - £1- +GAK -+'P at ax ax ax to obtain the eigenvalue problem
-
~ [ GAK( ~: + S) ] -
1\.pA W = 0
d(dS) -£1- +GAK(dW) -+S -1\.p1S=0 dx dx dx
(6.14)
The study of buckling of beam-columns also leads to an eigenvalue problem. For example, the equation_ governing the equilibrium of a beam
EIGENVALUE AND TIME·DEPENDENT PROBLEMS
213
subjected to an axial force P, according to the Euler-Bernoulli beam theory, is
2
2
. d ( d 1V) d'w dx2 E~ dx 2 + P dx 2 = 0
(6.15)
which is an eigenvalue equation with A = P as the eigenvalue, which represents the buckling load. Often one is interested only in the smallest value of A, called the critical buckling load. For the Timoshenko beam theory, the buckling equations are d -~
(dW
)] +P-=O d w
[ GAK -+W dx dx
2
dx?
d(dW) EI- +GAK (dW) -+W =0 dx dx dx
(6.16)
-~
This completes the formulation of eigenvalue problems associated with the model problems studied in this book. In the next section, we develop the finite element models of (6.7), (6.10), (6.12), and (6.14)-(6.16).
6.1.3 Finite Element Models An examination of the eigenvalue equations derived in the previous section shows that they are a special case of the equations studied in Chapters 3 and 4. For example, consider
_~(adU) =f dx
dx
(6.17)
The eigenvalue equation associated with this is
- dx~ (a dU) = ACo U dx where a and transfer,
Co are
(6.18)
quantities that depend on the physical problem: for heat a = kA,
Co= pcA
where c is the specific heat, while, for a bar,
a = EA,
co=pA
Similarly, the eigenvalue equations associated with the transverse vibrations and buckling of beams are special cases of their static counterparts. Therefore, the finite element models of the eigenvalue equations can readily be developed. It is important to note that the spatial derivative operators of the static (i.e., non-time-dependent) and eigenvalue equations are the same. The difference between (6.17) and (6.18) is that, in place of the source term f, we have ACOU in the eigenvalue equations. This difference is responsible for
214
FINITE ELEMENT ANALYSIS OF ONE·D1MENSIONAL PROBLEMS
another coefficient matrix, in addition to the usual coefficient matrix [K e ] , in the eigenvalue problems. The derivation of the finite element models of eigenvalue equations is presented next. Over a typical element Qe, we seek a finite element approximation of u in the form n
U=
2: uilJi/(x)
(6.19)
j=l
(6.20a) where w is the weight function, and Ql and Qn are the "usual secondary variables (Qi = 0, i =F 1, n) (6.20b)
Substitution of the finite element approximation into the weak form gives the finite element model of the eigenvalue equation (6.18): (6.21a)
where
«: _ fX 8 d1J!i d1/JJ d e:
a dx
XA
d
X
(6.21b)
X,
Equation (6.21a) represents the finite element model of the eigenvalue equations (6.18) and (6.10). The finite element model of (6.12) is (6.22a)
where {u e} and {Qe} are the columns of nodal generalized displacement and force degrees of freedom of the Euler-Bernoulli beam element:
L~(EI~~)l
W'l
(-~: {u"} =
W2
(-~:
{Qe} =
d2W) (El dx 2 1
L
[- ~ (EI~x~) 2W) ( -EI ddx 2 2
(6.22b)
where the subscripts 1 and 2 refer to element nodes 1 and 2 (at x = XA and x = XB)' The matrices [Ke ] and [Me], known as the stiffness and mass matrices,
EIGENVALUE AND TIME·DEPENDENf PROBLEMS
are defined by Kij=
d2ifl7 d 2iflJ EJ2 d2 dx , dx X
XB
f
xA
Mij=
fX8
pA
215
(6.22c)
XA
where ifli are the Hermite cubic interpolation functions (see Chapter 4 for details). The finite element model of (6.14), with equal interpolation of wand S, is
where K~.l 'I
=
d.l,e do/,e GAK- .~'f'~/ _'f'~J dx dx dX '
X8
f
XA
K~?'I
=
iXB XA
d.l,e GAK-'f'_/ 111~ dx d.X 'f'1
K?2 = fXB (GAK .1,e.I'~ + EI dtpi dlJ.'J) dx IJ 'f'/'f'1 dX dX XA
(6.23b)
Note, that for sufficiently large ratios of length L to height H of the beam, the Timoshenko beam element gives the results of the Euler-Bernoulli beam element. For example, for L/H ~ 100, the effect of shear deformation is negligible, and both elements give approximately the same solution. The finite element models of (6.15) and (6.16) are the same as those in (6.22a) and (6.23a), respectively, with }..=P, and [Me] and [Mll ] (and [M 22 ] = [0]) replaced by [G e ] and [G l l] , respectively, where e
G/j
_jXB d
XA
X
dx dx,
(6.24)
The coefficient matrix [G e ] is known as the stability matrix. The numerical form of the stiffness matrices [K e ] were given in the previous sections [see, e.g., (3.34a), (3.40a), -(4.15), and (4.98)]. Expressions for the mass matrices Mij and stability matrices Gij for the Lagrange elements are also available from the previous derivations [see, e.g., (3.34a) and (3.35)]. The mass and stability matrices for the Hermite cubic interpolation,
l
(6.25)
216
FINITE ELEMENT ANALYSIS OF ONE·DlMENSIONAL PROBLEMS
can be evaluated numerically for element-wise-constant values of c, and a.: -22h
156
[Me]
=
~ -22h 420 [
a e [G ] = 30h
54 13h
[
54 13h ] 2 -13h -3h 2 4h -13h 156 22h -3h 2 22h 4h 2
36 -3h -36 -3h] -3h 4h 2 3h -h 2 -36 3h 36 3h -3h
-h 2
3h
(6.26a)
(6.26b)
4h 2
The assembly procedure and imposition of boundary "conditions'in the eigenvalue analysis remains the same as for static problems. The boundary conditions are necessarily homogeneous. The standard error estimates for the fundame~tal eigenvalues and eigenfunctions of the problems discussed here are [see Strang and Fix (1973)] ;,.<0) ~).,h;:;; ).,(0)
+ ch2(k+l-m}[).,(O)](k+l)/m
lIuo- uh II", ~ ch k +1 - m [ ).,(O) ] (k + l )l2m
(6.27)
where ().,(o), u'') is the exact solution, ().,h, u") is the finite element solution, m is the order of derivatives appearing in the weak form, k is the degree of polynomials used in u", and h is the characteristic length of the element (see Chapter 5 for the notation and definitions of errors).
6.1.4 Applications Here we consider a couple of examples of eigenvalue problems to illustrate the concepts described in the previous section. We consider one example of a heat-transfer-type problem and one of free vibration of beams. Example 6.1. Consider a plane wall, initially at a uniform temperature To, which has both surfaces suddenly exposed to a fluid at temperature T~. The governing differential equation (6.28) and the initial condition is T(x, 0) =
To
where « is the diffusion coefficient, k the thermal conductivity, p the density, and c; the specific heat at constant pressure. Equation (6.28) is also known as the diffusion equation. We consider two sets of boundary conditions.
EIGENVALUE AND TIME-DEPENDENT PROBLEMS
217
Set 1. If the heat transfer coefficient at the surfaces of the wall is assumed to be infinite, the boundary conditions can be expressed as T(O, t)
= T~,
T(L, t)
= T= for t > a
(6.29a)
Set 2. If we assume that the wall at x = L is subjected to ambient temperature, we have T(O, t)
=
[ k A aT + PA(T -
T=,
ax
T~)J I
= 0
(6.29b)
x-L
Equation (6.28) can be normalized while making the boundary conditions homogeneous. Let T-T~
u=-To - T~
The differential equation (6.28), boundary conditions (6.29), and the initial condition become _ (fit
ax
u(O, t) = 0, u(O, t) = 0,
2
+ au =0
(6.30a)
at
u(l, t) = 0,
c:
u(x, 0) = 1
+ Hu)lx~1 =0,
(6.30b)
H=~L
(6.30c)
where the bars over x and t are omitted in the interest of brevity. Solution of (6.30a,b) by separation of variables leads to solution of the eigenvalue problem d 2U - dx 2 -).U=O,
U(O) =0,
V(l) =0
(6.31)
The finite element model of this equation is given by (6.21), with a = 1 and Co = 1. For the choice of linear and quadratic interpolation functions, the element equations (6.21a) become [see (3.34) and (3.40)]
1 [ 1 -lJ ( he -1 1 -
-8 1]
16 -8 -8 7
)'h '"6
h [ -). 3~
e[2
.
l]){U~} {Q~} u~ =
1 2
Q~
4 2-l]){U~}
2 16 -1 2
2 4
u~
ui
(linear element)
=
{Q~} 0
(quadratic element)
Q;
For a mesh of two linear elements (the minimum needed), with hi = h 2 = 0.5, the assembled equations are
({ -~ ~~-:J-Al~G : m{~}=U;} The Set 1 boundary conditions V(O) = 0 and V(l) = 0 require VI = U3 = O. Hence, the eigenvalue problem reduces to the single equation (4 - ~A)U2 = 0,
or
Al = 12.0,
*0
U2
218
FINITE ELEMENT ANALYSIS OF ONE·DlMENSIONAL PROBLEMS
For a mesh of one quadratic element, we have (h
Jf -
ioA16 = 0,
=
1.0)
or Al = 10.0
The corresponding eigenfunction amplitude is U2 = 1.0 (or any nonzero constant), so that the eigenfunctions are as follows: for linear elements (h = 0.5),
{
U(X) =
U21J!i = ~
O~x~0.5
for
i-x U21J!~=h for 0.5~x~1.0
while, for a quadratic element (h = 1.0),
U(x) = U21J!i =
4~ (1-~)
for
0""X"" 1.0 "-
The exact eigenvalues are A" = (Ilny and Al = rP = 9.8696. The exact eigenfunctions for Set 1 boundary conditions are U"(x) = sin nJrx and U1 = sin JrX. The eigenvalues and eigenfunctions can be used to construct the solution of the transient problem. For example, the solution of (6.28) with Set 1 boundary conditions is eo
~
u(x, t) =
2: T"U"(x)en=l
ln '
= 2:
1;, sin IlJrX e-("If)2t
n=1
where T" are constants to be determined using the initial condition of the problem. The finite element solution of the same problem, when one quadratic element is used, is given by Uh(X,
t)
= 4x(1- x)e~HJrTo
For a mesh of two linear elements, the Set 2 boundary conditions translate into V\ = 0 and Q~ + V3 = O. The condensed equations are
(2[-12 -1]1 _~12 [41 21]){ VV
z} _ {
0}
-U3
3
or
The characteristic polynomial of the above eigenvalue problem is obtained by setting the determinant of the coefficient matrix equal to zero:
1 -(2+,\.) 4 - 4~
-(2+!)! = 3-Z'\' 0,
or
The roots of this equation are f
_12± v88 7
I1.I,Z -
-
-
(A\ = 0.374167, Az = 3.0544)
and the eigenvalues are (A = 12):)
A.
=
4.4900,
Az = 36.6529
EIGENVALUE AND TIME-DEPENDENT PROBLEMS
219
The eigenvectors are computed from the equations
-(2 + fzA/)]{ U }(f) {OJ [-(24-+n/"f 12,1./) 3 - 12,1./ U3 0 2
2
=
For example, for A, = 4.4900, we have 2.5033Ull) - 2.3742U~') = 0 or {U(l)} = (1.000, 1.0544) = (0.6881, 0.7256) (normalized)
Hence, the eigenfunction corresponding to ,1.1
= 4.4900 (h = 0.5)
is
U(I)(x) _ {0.688lxlh for O~x ~O.~ . - 0.6881(1-x)lh+O.7256(2x-1)/2h for O.5~x~1.0 The exact eigenfunctions for Set 2 boundary conditions are U; (x)
= sin v'f:,x
and the eigenvalues An are computed from the equation 1 + v'f:, cot v'f:, =
°
Table 6.1 gives a comparison of the eigenvalues obtained using meshes of linear and quadratic elements with the exact values. Note that the number of eigenvalues__\y~ can obtain is equal to the number of unknown nodal values. As the mesh is refined, not OiilYdo we increase the number of eigenvalues but we also improve the accuracy of the preceding eigenvalues. Note also that the convergence of the numerical eigenvalues to
TABLE 6.1
Eigenvalues of the heat conduction equation (6.28) for two sets of boundary conditions U(O) = 0, U(1) =0 Set 1: Set 2 (in parentheses): U(O) = 0, idtlldx + U)]..,=l = 0 Mesh
A,
2L
12.ססOO
1.2
A3
A4
A5
,1.6
328.291 (257.580)
507.025 (417.701)
686.512 (607.022)
(4.4900) (36.6529) 4L
48.ססOO 126.756 10.3866 (4.2054) (27.3318) (85.7864) (177.604)
8L
9.9971 41.5466 (4.1380) (24.9088)
lQ
10.000
99.4855 192.000 (69.1036) (143.530)
(4.1545) (38.5121) 2Q
9.9439 40.000 (4.1196) (24.8995)
128.723 (81.4446) (207.653)
4Q
39.7754 9.8747 (4.1161) (24.2039)
91.7847 160.000 (64.7705) (129.261)
308.253 (240.539)
514.891 (405.253)
794.794 (658.137)
Exact
39.4784 9.8696 (4.1159) (24.1393)
88.8264 157.9137 (63.6591) (122.889)
246.740 (201.851)
355.306 (300.550)
483.611 (418.987)
220
FINITE ELEMENT ANALYSIS OF ONE·D1MENSIONAL PROBLEMS
2-.------------~~~--,
Mode 1 Mode 2 - - Mode 3 --0----Q--
1
!leX) O-lf------j'--~+-_+--~-::;a_-___j
~1
8L, Eight linear elements H = 1.0 0.2
0.4
0.6
0.8
1.0
x
the exact ones is from the above, i.e., the finite element solution provides an upper bound to the exact eigenvalues. For structural systems, this can be interpreted as follows. According to the principle of total minimum potential energy, any approximate displacement field would overestimate the total potential energy of the system. This is equivalent to approximating the stiffness of the system with a larger value than the actual one. A stiffer system will have larger eigenvalues (or frequencies). The first three mode shapes of the system are shown in Figs. 6.1 and 6.2. We dose this example by noting that the eigenvalue equation (6.31) can also be interpreted as that arising in connection with the axial vibrations of a constant cross-section member. In that case, U denotes the axial displacement and A= (J)2 p / E, OJ being the frequency of vibration. The boundary conditions in (6.30c) can be interpreted as the left end of the bar being fixed and the right end being connected to a linear
2,-------------------, 1
u{x) O~----__\---_I_-_I_----~
-1
Mode 1 Mode 2 _____ Mode 3
---0----<:r-
H = 1.0 0.2
0.4
0.6 x
0.8
1.0
EIGENVALUE AND TIME-DEPENDENT PROBLEMS
Linear elastic spring with spring constant k
.. I~
L
~ ~l
221
FIGURE 6.3 An elastic bar with an end spring. The axial vibrations in this case can be shown to be governed by the same eigenvalue problem as that used for the heat transfer problem with convective boundary condition at x = L (Set 2 boundary conditions in Example 6.1).
elastic spring (see Fig. 6.3). The constant H is equal to kIEA, k being the spring constant. Thus, the results presented in Table 6.1 can be interpreted as the square of the natural frequencies of a uniform bar (multiplied by pIE).
In the next example we study transverse vibrations of cantilever beams using the Timoshenko beam theory. The effect of shear deformation is brought out by considering two different ratios of length to height of the beam. In problems with more than one independent variable and certain coarse meshes, the computed eigenvalues are not always the lowest eigenvalues of the problem. This is due to the restrictions placed by the particular mesh on the mode shapes it can model. Example 6.2. Consider a uniform beam of rectangular cross-section, length L, width B, and height H. The beam is fixed at one end, say at x = 0, and free at the other, x = L. We assume that Poisson's ratio is v = 0.25. We wish to determine the first four natural frequencies associated with the transverse deflection IV. The finite element model of the Timoshenko beam theory is given by (6.23a). The number of eigenvalues we wish to determine dictates the minimum number of elements to be used. If we use one linear element, we shall have four degrees of freedom, with two degrees of freedom at the fixed end being specified as zeros. Thus, we can only obtain two eigenvalues. If two linear elements are used, there are six degrees or' freedom, with two of them known to be zero, and we can obtain four eigenvalues. However, the four computed eigenvalues may not be the lowest four. Indeed, a mesh of two linear elements can only represent the first two mode shapes of the cantilever beam (see Fig. 6.4). In order to represent the first four mode shapes, we must use at least four linear elements.
•2
+
3
u(x)
FIGURE 6.4 Two possible nonzero mode shapes that can be represented by a mesh of two linear (Lagrange) elements.
222
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
Because of the algebraic complexity of the element matrices for meshes of 4, 8, and 16 linear elements and 2, 4, and 8 quadratic elements that are used to study the convergence characteristics of the eigenvalues of the beam, the element matrices and assembled equations are not presented here. For all meshes used, the boundary conditions at the fixed end require w(O) = 0 and ll'(0) = 0, or VI =0,
V2 = 0
The frequencies obtained by solving the resulting eigenvalue problems are shown in Table 6.2 for two different values of the length-to-height ratio LIB. The value LIH = 100 makes the effect of shear deformation negligible and yields essentially the Euler-Bernoulli beam theory results. Since the frequencies are normalized, iiJ = we(pA (EI) Vl, it is necessary only to select the values of v and LIH. For computational purposes, we take v = 0.25, pI = 1.0, E1 = 1.0, and L = 1.0, and compute E 5 4£1 GAK =2(1 + v) BH 6= If'
12pI pA= H 2
/
where Band H are the width and height, respectively, of 'the beam. Thus for LIH = 100 (or H = 10-2 ) , we take GAK = 4 X 104 and pA = 12 X 104, and, for LIH = 10, we have GAK = 4 X 1(f and pA = 12 x 102• We note from Table 6.2 that the finite element results converge with IIrefinement (i.e., when more of the same kind of elements are used) and also with p-refinement (i.e., when higher-order elements are used). The p-refinement shows more rapid convergence of the fundamental (i.e., first) frequency (see Fig. 6.5). The rates of convergence are consistent with the error estimates in (6.27). The mesh refinements with either more or higher-order elements refine the higher frequencies more than the fundamental frequency (see Table 6.2). Note also that the effect of shear deformation is to reduce the natural frequencies. This is because of the increased flexibility in the Timoshenko beam theory compared with the Euler-Bernoulli beam theory. The first four mode shapes of the cantilever beam, as obtained using the 16-element mesh of linear elements, are shown in Fig. 6.6. TABLE 6.2
Natural frequencies of a cantilever beam according to the Timoshenko and Euler-Bernoulli beam theories [cO = wL2(pA/EI)In) L/H~10
L(H= 100 Mesh
OJ}
OJ 2
OJ 3
6)4
OJ I
W2
OJ)
OJ4
4L 8L 16L 2Q 4Q 8Q
3.5406 3.5223 3.5174 3.5214 3.5161 3.5158 3.5158 3.5158 3.5160
25.6726 22.8851 22.2350 23.3226 22.1054 22.0280 22.0226 22.0315 22.0345
98.3953 68.8937 63.3413 78.3115 63.3271 61.7325 61.6179 61.6774 61.6972
417.1330 151.8431 127.5434 328.3250 133.9828 121.4458 120.6152 120.8300 120.9019
3.5137 3.4956 3.4908 3.4947 3.4895 3.4892 3.4892 3.5092 3.5160
24.1345 21.7004 21.1257 22.0762 21.0103 20.4421 20.9374 21.7425 22.0345
80.2244 60.6297 56.4714 67.0884 56.4572 55.2405 55.1530 59.8013 61.6972
189.9288 119.2798 104.6799 181.0682 108.6060 100.7496 100.2116 114.2898 120.9019
.tTl
Exact EBTt EBn
tTBT, Timoshenko beam theory; EBT, Euler-Bernoulli beam theory (with rotary inertia).
t Rotory inertia neglected; the results are independent o~ the ratio LI H.
EIGENVALUE AND TIME·DEPENDENT PROBLEMS
223
3.65 - , - - - - : . . - - - - - - - - - - - - - - 0 - - WI
_
W2
~
j (linear)
-<>-- WI ~
3.60
-
Wz ~ (quadratic)
"'3 I 0
3
.... 3.55
g u.l
3.50
In h 3.45 +-~---,r__...,..............-~-r---.--r---.----r-..----l 0.3 0.4 0.5 0.6 0.1 0.2 0.0 Element size h FIGURE 6.5 Plots of error in the frequencies computed using linear and quadratic finite elements (for length-to-height ratios L/ H = 10 and 100).
0.2.,------------------,
s 0.0 .... ¥ti -0.2
~~---""w-7L-__::I~---:~~~c__---_l
~
i
eo ~ -0.4
.,
--c-- WI
~ .c
'"
~ -0.6
~
-------0--
W2 W3 W4
-0.8 +-~-.--~-r_-.:-__r-...--_.._--_r_~____1 0.0 0.2 0.4 0.6 0.8 1.2 1.0 Distance x FIGURE 6.6 First four natural mode shapes of a cantilever beam, as predicted using a 16-element mesh of linear Timoshenko beam elements (L/ H = 10).
224
1i
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
6.2 TIME-DEPENDENT PROBLEMS 6.2.1 Introduction In this section, we develop the finite element models of one-dimensional time-dependent problems and describe time approximation schemes to convert ordinary differential equations in time to algebraic equations. We consider finite element models of the time-dependent version of the differential equations studied in Chapters 3 and 4. These include the second-order (in space) parabolic (i.e., first time derivative) and hyperbolic (i.e., second time derivative) equations and fourth-order hyperbolic equations arising in connection with the bending of beams. Recall that second-order parabolic equations arise in heat transfer and fluid mechanics (see Sections 3.3.1 and 3.3.2), while second- and fourth-order hyperbolic equations arise in solid mechanics problems. The finite element formulation of time-dependent problems involves two steps: 1.
Spatial approximation, where the solution u of the equation under consideration is approximated by expressions of the form n
u(x, r) = U'(», t) =
L ui(t)1fJi(x)
(6.32)
}=1
2.
and the spatial finite element model of the equation is developed using the procedures of static or steady-state problems, while carrying all timedependent terms in the formulation. This step results in a set of ordinary differential equations (i.e., a semidiscrete system of equations) in time for the nodal variables ui(t) of the element. Equation (6.32) represents the spatial approximation of II for any time t. When the solution is separable into functions of time only and space only, u(x, t) = T(t)X(x), the approximation (6.32) is clearly justified. Even when the solution is not separable, (6.32) can represent a good approximation of the actual solution, provided a sufficiently small time step is used. Temporal approximation, where the system of ordinary differential equations are further approximated in time, often using finite difference formulae for the time derivatives. This step allows conversion of the system of ordinary differential equations into a set of algebraic equations among ui at time ts +1 = (s + 1) !i.t, where !1t is the time increment and s is an integer.
All time approximation schemes seek to find known values of u] from previous times: compute
Uj
at time ts + 1 using the
{UL+l using {uL, {U}s-1' ...
EIGENVALUE AND TIM:E·DEPENDENT PROBLEMS
225
Thus, at the end of the two-stage approximation, one has a continuous spatial solution at discrete intervals of time: n
Ue(X, ts) =
2: uj(tS)1/Jj(X)
(s = 0,1, , , .)
}=1
Here we study the details of these two steps by considering a model differential equation that contains both second- and fourth-order spatial derivatives and first- and second-order time derivatives:
a (au) + ~cfl2 (b~ cflu) +COU+Cl-+C2~Z au aZu =f(x, t) oX ax at at
- - a-;ax ax
(6.33a)
subject to appropriate boundary and initial conditions. The boundary conditions are of the form
.
specify u(x, t)
or
au
a ( cflu)
-a ax (x, t) + ax b ax Z
and
(6.33b)
au (x, t) or speClify -. ax
at x = 0, L, and the initial conditions involve specify (6.33c)
where u== au/at. Equation (6.33a) contains, as special cases, time-dependent second- and fourth-order equations. Second-order equations arise, for example, in determining the transverse motion of a cable (a = T; b = 0, Cl = p, C2 = 0, Co = 0), the longitudinal motion of a rod (a = EA, b = 0, Cl = 0 if damping is not considered, Cz = pA, Co = 0), and the temperature transients in a fin (a = kA, b = 0, Cl = pA, C2 = 0). A fourth-order equation arises in determining the transverse motion of a beam (a = 0, b = El, Co = k, Cl = 0, Cz = pA).
6.2.2 Semidiscrete Finite Element Models The semidiscrete formulation involves approximation of the spatial variation of the dependent variable, which follows essentially the same steps as described in Section 3.2. The first step involves the construction of the weak form of the equation over a typical element. Following the three-step procedure of constructing the weak form of a differential equation, we can develop the weak form of (6.33a) over an element. Integration by parts is used on the first term once and on the second term twice to distribute the spatial derivatives equally between the weight
226
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
function wand the dependent variable u:
0=
cfU)
XBw[ - -;-a (au) ,;2 ( au a ~a + - 2 b ~2 + Cou + C 1 ~ + C2
Jx"
x
ox
ax
au) +a + [w[( -a~ ax
ax
at
£flu f ] dx .., 2 -
dt
2 (b -£flU)] +aw (- b-a ll) ]XB
ax ax 2
ax
ax 2
x"
where
2 ax
I
au a (b( -11)] Ql = [-a~+, z ax ax
~ Q3=-
l
x"
au a (bcPU)] - I , ax ax ax z
-a~+-
(6.34b)
IB
Next, we assume that u is interpolated by an expression of the form (6.32). Equation (6.32) implies that, at any arbitrarily fixed time t > 0, the function u can be approximated by a linear combination of the 1J1J, with uj(f) being the value of u at time t at the jth node of the dement ge. In other words, the time and spatial variations of u are separable. This assumption is not valid, in general, because it may not be possible to write the solution u(x, t) as the product of a function of time only and a function of space only. However, with sufficiently small time steps, it is possible to obtain accurate solutions to even those problems for which the solution is not separable in time and space. The finite element solution that we obtain at the end of the analysis is continuous in space but not in time. We only obtain the finite element solution in the form u(x, ts) =
n
n
j=l
j=l
L uf(ts)1J1j(x) = L (ujYtpJ(x)
where (ujY is the value of
u(x, t)
(s = 1, 2, ... )
(6.35)
at time t = ts and node j of the element
Qe.
EIGENVALUE AND TIME-DEPENDENT PROBLEMS
227
Substituting w;= Wj(x) and (6.32) into (6.34a), we obtain
0;= fXB XA
[a dWI (i d Wj)U4- b dZ~j (i Uj d2~j) dx
j=1
dx
dx
j=l
dx
( " dU') (" dZU.) ] n ) + COWl ( j~ UNj + Ct Wj ~ d/ Wj + CzWj j~ Wj - wJ dx
d/
(6.36)
(6. 37a) where (6.37b)
(6.37c)
This completes the semidiscrete finite element formulation of (6.33) over an element.
6.2.3 Time Approximations As special cases, (6.37a) contains the parabolic equation (set [M 2 ] = [OJ) and the hyperbolic equation (set [M 1] = [0]). The time approximation of (6.370) for these two cases will be considered separately: in Case 1, C2 = 0; in Case 2, C1 O. ;=
CASE 1: PARABOLIC EQUATIONS. Consider. the parabolic equation [set
[M 2] equal to zero in (6.37a)]
[M 1]{ u} + [K]{u};= {F}
(6.38a)
subject to the initial condition (6.38b)
228
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
where {u}o denotes the value of the enclosed quantity u at time t = 0, whereas {uo} denotes the column of values uiO' The most commonly used method for solving (6.38a) is the a family of approximation, in which a weighted average of the time derivative of a dependent variable is approximated at two consecutive time steps by linear interpolation of the values of the variable at the two steps:
(6.39a) where { }s refers to the value of the enclosed quantity at time [ = ts = 2:1= 1 Mj , and /).ts = ts - ts- 1 is the sth time step. If the time interval [0, 'To] is divided into equal time steps then t, = s tst. Equation (6.39a) can be interpreted as '/
{U}S+l = {u}s + M{uL+n{u}s+a=(l-a){uL+«{U}S+l
for O~«~l
(6.39b)
For different values of ex, we obtain the following well-known numerical integration schemes: the forward difference (or Euler) scheme (conditionally stable); order of accuracy = OCM) the Crank-Nicolson scheme (stable); O«M?) the Galerkin method (stable); O«M?) the backward difference scheme (stable); OeM)
(6.40)
Equation (6.39a) can be used to reduce the ordinary differential equations (6.38a) to algebraic equations among the Uj at time ts + 1 ' Since (6.38a) is valid for any t » 0, it is valid for t = t, and t = [s+l ([M 1] = [M]):
[M]{u}s + [Kls{uL
= {F},
.
(6.41a)
[M]{U}s+l + [K]s+l{U}S+1 = {FL+l
(6.41b)
where it is assumed that the mass matrix is independent of time. After multiplying (6.39a) throughout by /).t s + 1 • we premultiply both sides of .the equation with [M] and obtain '
M S +1 a[M]{u1s+1 + M S +1(1- «)[M]{zIL = [M]({U}s+l - {uL) Substituting for [M]{uL+l and [M]{uL from (6.41a) and (6.41b), respectively, in the above equation, we obtain
M s+ 1 a({F}S+1 - [K]S+l{U}S+l) + M S+1(1 - «)({F}, - [K]s{uL) =
[M]({U}S+1 - {u}s)
EIGENVALUE AND TIME-DEPENDENT PROBLEMS
229
Rearranging the terms into known and unknown ones, we obtain (6. 42a)
where
[K]s = [MI ] - a2[K]s {FL,s+l = M s+1 [Q'{F}s+l + (1- cr){FL] a l = cr Llts +1 ' a2 = (1 - Q') Llts + 1
[K]s+l
= [M I ] + al[K]s+!,
(6.42b)
Note that, in deriving (6.42), it has been assumed that [MIJ is independent of time and that the time step is nonuniform. Equations (6.42) are valid for a typical element. The assembly, imposition of boundary conditions, and solution of the assembled equations are the same as described before for static (or steady-state) problems. Calculation of [K] and {F} at time t = 0 requires knowledge of the initial conditions {u}o and the time variation of {F}. Note that, for cr = 0 (the forward difference scheme), we obtain [K] = [M I ] . When the mass matrix [MI ] is diagonal, (6.42a) become explicit, and one can solve for {UL+l directly without inverting [K]. The mass matrix obtained according to the weak form, called the consistent mass matrix, is not diagonal. There are several ways to diagonalize mass matrices; these will be described in Section 6.2.4.
I
I
Stability and accuracy. Since (6.39a) represents an approximation, which is used to derive (6.42a), error is introduced into the solution {U}s+l at each time step. In addition to the truncation error introduced in approximating the derivative, round-off errors can be introduced because of the finite arithmetic used in our computations. Since the solution at time t s +1 depends on the solution at time ts ' the error can grow with time. If it grows unboundedly with time, the solution scheme is said to be unstable. If it is bounded (i.e., it increases for one time step and decreases for another time step, but never exceeds a certain finite value), the solution scheme is said to be stable. The numerical scheme (6.42) is said to be consistent with the continuous problem (6.38) if the round-off and truncation errors go to zero as St-» O. Accuracy of a numerical scheme is a measure of the closeness between the approximate solution and the exact solution, whereas stability of a solution is a measure of the boundedness of the approximate solution with time. As one might expect, the size of the time step can influence both accuracy and stability. When we construct an approximate solution, we like it to converge to the true solution when the number of elements or the degree of approximation is increased and the time step I:!.t is decreased. A time approximation scheme is said to be convergent if, for fixed ts and I:!.t, the numerical value {u}s converges to its true value {u(ts ) } as I:!.t~O. Accuracy is measured in terms of the rate at which the approximate solution converges. If a numerical scheme is stable and consistent, it is also convergent [see Isaacson and Keller (1966)]. A numerical scheme is said to be conditionally stable if it is stable only
230
FINITE ELEMENT ANALYSIS OF ONE·DlMENSIONAL PROBLEMS
when certain restrictions on the time step are satisfied. For all numerical schemes in which a < t the a family of approximations is stable only if the time step satisfies the following (stability) condition: (6.43) where A is the largest eigenvalue of the finite element equations (6.38). Note that the same mesh as that used for the transient analysis must be used to calculate the eigenvalues. When a = 0, the numerical scheme is called an explicit scheme. The name comes from the fact that when the mass matrix [M] is diagonal, (6.42) can be solved without inverting [K] (because [K] = [M] is diagonal). When a 0 the scheme is said to be implicit, indicating that [K] has to be inierted (whether or not [M] is diagonal). Such a classicfication of time integration schemes seems to have originated with finite difference methods. When these methods are used for spatial discretization, the mass matrix [M] ends up as a diagonal matrix. However, in the finite element method, irrespective of the time integration scheme used, the consistent mass matrix [M] is not diagonal and hence it is necessary to invert [K]. When the consistent mass matrix is replaced by an equivalent diagonal mass matrix (see Section 6.2.4), an explicit scheme results in an explicit set of algebraic equations that can be solved without inverting the coefficient matrix [K].
"*
CASE 2: HYPERBOLIC EQUATIONS. For this case
CI
=0
(i.e., [M l ]
= [0]),
and (6.37a) takes the form
[M2]{ a} + [K]{Il} = {F} (6.44) The hyperbolic nature is dictated by C2 oF 0, not by CI = 0; in fact, in structural systems, both Cl and C2 can be nonzero. For example, consider the case where [M I ] is the damping matrix in a structural system; see Problem 6.24. There are several numerical integration methods available to integrate second-order (i.e., hyperbolic) equations. Among these, the Newmark family of time integration schemes is widely used in structural dynamics. Other methods, such as the Wilson method and the Houbolt method, can be used to develop the algebraic equations from the second-order differential equations (6.44). In the Newinark method, the function and its first time derivative are approximated according to {U}S+l = {u}, + At {u}s + HM)2{U}s+y {It}S+I =
where
I
{uls + {u}s+a M
{ii}s+o = (1- 8){iiL + 8{U}S+1
I
(6.45a)
(6.45b)
and a and y ( = 2f3) are parameters that determine the stability and accuracy
231
EIGENVALUE AND TIME-DEPENDEIIT PROBLEMS
of the scheme. The following schemes are special cases of (6.45a,b):
a=t
y=2{J=t
",_1
.... - 2 ,
y = 2{3 =
a=t
Y = 2{3 =0,
'" _1 .... 2,
Y=2{3 =
"'-:! ""'-2,
y =2[3 =2,
1,
t
the constant-average acceleration method (stable) the linear acceleration method (conditionally stable) the central difference method (conditionally stable) the Galerkin method (stable) the backward difference method (stable) (6.45c)
For all schemes in which y < a and a ~ t the stability requirement is
I At'%Atcr=[:!w~ax(LY-y)rli2 I
(6.46)
where W m ax is the maximum natural frequency of the system (6.44). The use of (6.45) in (6.44) gives the following system of algebraic equations: (6.47a)
where
[K]S+1 = [K]s+l + a3[MJs+l {F}.,S+l = {F}.+l + [M].+1(a 3{u}s + a4{u}. + as{ii},)
(6.47b)
221 a4 = y At' as =
a3 = y(At)2>
y- 1
Again, (6.47) are valid over a typical element. Note that the calculation of [KJ and {F} requires knowledge of the initial conditions {u }o> {Ii}o, and {ii }a. In practice, one does not know {it}o. As an approximation, it can be calculated from (6.44) (we often assume that the applied force is zero at t = 0): (6.48)
At the end of each time step, the new velocity vector {u }.+1 and acceleration vector {ii},+! are computed using the equations
{ii},+! = a;( {u }.+! - {u},) - a4{ll},s- as{ il},
{U},+l
= {u}s + a2{ii}. + al{ii},+l
al = a At,
(6.49)
«z = (1- a) At
The remaining procedure stays the same as in static (i.e., non-timedependent) problems.
232
FINITE ELEMENT ANALYSIS OF ONE· DIMENSIONAL PROBLEMS
6.2.4 Mass Lumping Recall from the time approximation of parabolic equations that use of the forward difference scheme (i.e., «= 0) results in the following time marching scheme [see (6.42)]:
[Me ]{U}S+ l = ([Me] - /).t [K"]){uL +!!J.t {F"}s
(6.50)
The mass matrix [Me] derived from the weighted-integral formulation of the governing equation is called the consistent mass matrix, and it is symmetric, . positive-definite, and nondiagonal. Solution of the global equations associated with (6.50) requires inversion of the assembled mass matrix. If the mass matrix is diagonal then the assembled equations can be solved explicitly,
(U1) S + 1 = Mil[MII ( UI)s - M
f
KJJ(UJ)s
+ M (15)s]
'(6.S1)
J=l
thus saving computational time. The explicit nature of (6.51) motivated analysts to find rational ways of diagonalizing the mass matrix. There are several ways of constructing diagonal mass matrices [see Hughes (1987)]. Diagonal mass matrices are known as lumped mass matrices. The error estimates in (6.27) are generally not valid for lumped mass matrices. The row-sum and proportional lumping techniques are discussed here. ROW-SUM LUMPING. The sum of the elements of each row of the consistent
mass matrix is used as the diagonal element:
where the property [7=1 wj = 1 of the interpolation functions is used. When p is constant, (6.52) gives
[Me]L =
P~el~ ~]
[Me]L = ph e 6
for the Lagrange linear element (6.53a)
[~ ~
for the Lagrange quadratic element
0 0
Compare these lumped mass matrices with the consistent mass matrices
1] he [Me]c -- P6 [2 2 1
[Me]c =
. for the Lagrange hnear e Iement
~~e [ ~ 1~ -~] -1
2
(6.53b)
for the Lagrange quadratic element
4
Here subscripts Land C refer to lumped and consistent mass matrices, respectively.
EIGENVALUE AND TIME·DEPENDENT PROBLEMS
233
PROPORTIONAL LUMPING. Here the diagonal elements of the lumped mass .matrix are computed to be proportional to the diagonal elements of the consistent mass matrix while conserving the total mass of the element:
(6.54) For constant p, the proportional lumping gives the same lumped mass matrices as those obtained in the row-sum technique for the Lagrange linear and quadratic elements. The use of a lumped mass matrix in transient analyses can save computational time in two ways. First, for forward difference schemes, lumped mass matrices result in explicit algebraic equations, not requiring matrix inversions. Second, the critical time step required for conditionally stable schemes is larger, and hence less computational time is required when lumped mass matrices are used. To see this, consider the stability criterion in (6.46) for the case a' = f3 = O. For a one linear element model of a uniform bar of stiffness EA and mass pA, fixed at the left end, the eigenvalue problem with a consistent mass matrix is
t
Since U1 = 0 and Q~ = 0, we have w 2 = EA/PAh = 3E h 3 ph?
Substituting this into the critical time step relation (6.46), we have,
(Atcr)c = 21wmax= h(4p13E)112 If we use the lumped matrix, w is given by
w = (2Elp)1J2jh and the critical time step is
I~(~-t-c<-)L-=-h-(-2p-j-E-)-II2->-(-~-tc-r)-c-
(6.55)
6.2.5 Applications Here we consider two examples of applications of finite element models of one-dimensional problems ..Problems are taken from heat transfer and solid mechanics. Other field problems can be related to heat-transfer-type problems. Example 6.3. Consider the transient heat conduction problem with equation
all a2u
---= 2 0
at
8x
for O<x
(6.56a)
234
fiNITE ELEMENT ANALYSIS OF ONE-DIMENSWNAL PROBLEMS
boundary conditions
au at
(6.56b)
0) = 1.0
(6. 56c)
u(O, t) :: 0,
-(1, t) =0
and initial condition It(X,
The problem at hand is a special case of (6.33a) with a = 1, b = 0, Co = 0, and f:: O. The finite element model of (6.56a) is given by (6.38a):
[Me]{u} + [KeHu} = {Qe}
Ct
= 1, C2 = 0,
(6.57a)
where Mij=
1"8
tPf1Jtj dx,
e
K/ J =
"A
1"8 d1JJ~ d1JJj dx -d dx X
"A
(6..S7b) /
For the choice of linear interpolation functions, (6.57a) becomes
h[21 21]{U1~2
1
6"
}
1[ 1 -1]{U 1 2 1
+ h -1
U
}
=
{Ql}
(6. 57c)
Q2
where h is the length of the element. Use of the o-family of approximation (6.39) results in the equation [see (6.42)]
([Me] + D.t a'[Ke]){Ue}.+1
= ([Me] -
At (1- a')[Ke]){ueL
+ At(a'{Qe}s+1 + (1- a'){Qe}.)
(6. 58a)
where At is the time step. For a one-element model, we have I At -h + a'3 h
I 1
6h
-
At
a'J;
I I
=
3h
At
- (1- a)"h
~h + (1- a) ~t
where Qj = a'(QDS+l
+ (1- a)(Qns- The boundary conditions of the (U1) . = 0, (QD. = 0 for all s > 0 (i.e., t > 0)
problem require
while the initial condition requires
Since the initial condition should be consistent with the boundary conditions, we take (U1)0 = 0.0. Using the boundary conditions, we can write for the one-element model (h = 1.0) (6.59)
EIGENVALUE AND TIME·DEPENDENT PROBLEMS
235
which can be solved repeatedly for U2 at different times, s = 0, 1, .... Repeated use of (6.59) can cause the temporal approximation error to grow with time, depending on the value of a. As noted earlier, the forward difference scheme (a = 0) is a conditionally stable scheme. The critical time step is given by
At
er
where
Amax
== 2/}'max
is the maximum eigenvalue associated with (6.57c):
-A{M]{U} + [K]{U} == {O} For the model at hand, this reduces to -~AhU2
+ h- 1 U2 =
0, or A= 31h2= 3
Hence Mer= 0.6667. Thus, in order for the forward difference solution of (6.59) to be stable, the time step should be smaller than M« == 0.6667; otherwise, the solution will be unstable, as shown in Fig. 6.7. For unconditionally stable schemes (a ~ D, there is no restriction on the time step. However, to obtain a sufficiently accurate solution, the time step must be taken as a fraction of !:lt er • Of course, the accuracy of the solution also depends on the mesh size h. As this is decreased (i.e., the number of elements is increased), !:lt er decreases. Figure 6.8 shows plots of u(l, t) versus time for a = 0.5 and M = 0.05. Solutions predicted by meshes of one and two linear elements and the mesh of one quadratic element are compared with the exact solution. The convergence of the solution with increasing number of elements is clear. The finite element solutions obtained with different methods, time steps, and meshes are compared with the exact solution in Table 6.3.
1
I/(l, t)
o
-1 ilt = 0.675, lL ex = 0.0 ~
2 +----.----,...-----,------r----.--r--..---+ 6 8 4 2 o Time t
FIGURE 6.7 Transient solution of a parabolic equation according to the forward difference scheme (.t'l.t = 0.675, one linear element). The solution is unstable because the time step is larger than the critical time step.
236
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
1.2 +--'----,.L_~_l-.__'__...L-_~__'__
__'__+
..._.__._-. Analytical 1.0
-----0----
1L
~2L
---<>--- lQ
0.8
tJ.t = 0.05
u(l, t)
" = 0.5
0.6
0.4 0.2 /
0.0 +---.-......--r--..---,--......---,,.--..-,--,.---.---+ 0.6 0.2 0.0 0.8 0.4 1.0 Time t FIGURE 6.8 Transient solution of a parabolic equation according to linear and quadratic finite elements. TABLE 6.3
A comparison of the finite element solutions obtained using various time approximation schemes and meshes with the analytical solution of a parabolic equation arising in conductive heat transfer 1L Time t a=O 0.00 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0040 0.45 0.50 0.55 0.60 0.65 0.70 0.75 0-.80 0.85 0.90 0.95 1.00
«=1
Linear elements (« = 0.5) lL
2L
4L
8L
Quadratic elements (<<=0.5, t=0.05) lQ
i.coeo t.eoeo i.oooo i.ooco i.cooo i.oooo i.oooo 0.8500 0.7225 0.6141 0.5220 0.4437 0.3771 0.3206 0.2725 0.2316 0.1969 0.1673 0.1422 0.1209 0.1028 0.0874 0.0743 0.0631 0.0536 0.0456 0.0388
0.8696 0.7561 0.6575 0.5718 0.4972 0.4323 0.3759 0.3269 0.2843 0.2472 0.2149 0.1869 0.1625 0.1413 0.1229 0.1069 0.0929 0.0808 0.0703 0.0611
0.8605 0.7404 0.6371 0.5482 0.4717 0.4059 0.3492 0.3005 0.2586 0.2225 0.1914 0.1647 0.1418 0.1220 0.1050 0.0903 0.0777 0.0669 0.0575 0.0495
1.0359 0.9279 0.8169 0.7176 0.6300 0.5533 0.4858 0.4266 0.3746 0.3289 0.2888 0,2536 0.2227 0.1955 0.1717 0.1508 0.1324 0.1162 0.1020 0.0896
0.9951 0.9588 0.8639 0.7557 0.6759 0.5906 0.5250 0.4608 004083 0.3592 0.3176 0.2798 0.2472 0.2180 0.1924 0.1697 0.1498 0.1322 0.1166 0.1029
0.9933 0.9554 0.8707 0.7694 0.6824 0.6037 0.5325 0.4713 0.4158 0.3676 0.3247 0.2868 0.2535 0.2238 0.1979 0.1747 0.1544 0.1363 0.1205 0.1065
1.0870 0.9819 0.8693 0.7679 0.6780 0.5987 0,5286 0.4668 0.4121 0.3639 0.3213 0.2837 0.2505 0.2212 0.1953 0.1725 0.1523 0.1345 0.1187 0.1048
Exact solution
2Q
4Q
i.ooco 0.9942 0.9550 0.8831 0.7633 0.6933 0.6006 0.5394 0.4710 0.4201 0.3687 0.3275 0.2883 0.2556 0.2253 0.1995 0.1761 0.1557 0.1375 0.1216 0.1074
i.ocoo
i.coeo
0.9928 0.9549 0.8725 0.7731 0.6855 0.6070 0.5358 0.4741 0.4188 0.3701 0.3273 0.2890 0.2556 0.2258 0.1996 0.1764 0.1559 0.1378 0.1218 0.1076
0.9969 0.9493 0.8642 0.7723 0.6854 0.6068 0.5367 0.4745 0.4194 0.3708 0.3277 0.2897 0.2561 0.2264 0.2001 0.1769 0.1563 0.1382 0.1222 . 0.1080
EIGENVALUE AND TIME-DEPENDENT PROBLEMS
237
The next example concerns a hyperbolic equation. Example 6.4. Consider the. transverse motion of a beam clamped at both ends, according to the Euler-Bernoulli beam theory, 4
a:zw2 + a w4 = 0
for O<x < 1
: ; (0, t)
w(l, t) = 0,
at
w(O, t) = 0,
ox
=
0,
w(x, 0) = sin ttx - m(l - x),
(6.60a) : ; (1, t) = 0
ow (x, 0) = 0 at
(6.60b) (6.60c)
Note that the initial deflection of the beam is consistent with the boundary conditions. The initial slope is given by
ow
- (x, 0) = n; cos itx - n;(l - 2r) ax
(6.60d)
Because of symmetry about x = 0.5, we consider only half of the beam for finite element modeling. In this case, the boundary condition at x = 0.5 is (awlox)(0.5, t) = O. For a one-element model with the Euler-Bernoulli beam element, we have 156
l!-
-22h
420 [ 54 13h
-22h 54 4h2 -1311 -13h 156 -3h 2 22h
+23[-~h h
-6 -3h
6
;:: ;h 3h 6 h2
3h
~l~h]{;;:}={~:}
3h . 2h 2
U3
Q3
U4
Q4
The boundary conditions for the one-element model translate into VI = 0,
V2 = 0,
V4 = 0,
Q3 = a for all t > 0
while the initial conditions
U3 = 0.2146, U3 = 0, The time marching scheme (6.47a) for this case takes the form
(K33+ a3M33)( V3)S+1 = (~)'.S+I ~ M33(a3 U3 + a4U3+ as(3). where a3, a.to and as are defined in (6.47b). The second derivative (i.e., when s = 0) is computed from the equation of motion:
(12
U3 for
time t = 0
)
.. K 33( U3)O 420 (V3)o= M =- h3XO.2146 156h=-110.932
33
The stability criterion (6.46) requires, for y < t that the time step tit be less than tite , . For the present model, W max is computed from the eigenvalue problem (K33- w
2M )V = Q or 33 3
w2=M33/K33=516.923
238
FINITE ELEMENT ANALYSIS OF ONE·DlMENSIONAL PROBLEMS
.-.-.•..-.-. tJ.t = 0.005 - - . . 6.1 = 0.15 --a-- 6.1 = 0.175
w(0.5, r)
o ....\ -,, '"
One element in half-beam 0: = 0.5, f3 = i
-1
- 2 +---.-----,..--.----,-......-,--.,...-.---
0.2
0.4
0.6 Time /
0.8
1.0
1.2
FIGURE 6.9 Transient response of a beam clamped at both ends, according to the linear acceleration method (a = 0.5 and f3 = i). The critical time step for the method using one element is 0.1524. The remainder of the b.f = 0.005 plot is not shown.
Hence, the critical time step for
«= 0.5 and y =! (i.e., the linear acceleration scheme)
is
Although there is no restriction on time integration schemes with a = 0.5 and y > 0.5, the critical time step provides an estimate of the time step to be used. Figure 6.9 shows plots of w(0.5, t) versus time for the scheme a = 0.5, Y = 1. Three different time steps, li.t=0.175, 0.150, and 0.005, are used to illustrate the accuracy. For /),t = 0.175 > li.t w the solution is unstable, whereas for li.t = 0.15 < li.ton it is stable but inaccurate. The period of the solution is given by T = 21[/ W = 0.27635 For a time step li.t = 0.005, the solution is predicted very accurately. For two- and four-element meshes, the critical steps are computed by computing the maximum eigenvalues of the corresponding discrete systems. The critical time steps for the two meshes are
where the subscripts refer to the number of elements in the mesh. Figure 6.10 shows a comparison of the transverse deflections obtained with the two Euler-Bernoulli elements (M = 0.005) and the Galerkin method (see Chapter 2) for a complete period (0,0.28). The problem can also be analyzed using the Timoshenko beam element, which requires us to select the coefficients GAK, EI, pA, and pI consistent with those in the differential equation (6.11). Comparing (li.60a) with (6.11), we have EI = 1.0 and
EIGENVALUE AND TIME-DEPENDENT PROBLEMS
239
.,
.-
0.20 I
0.15
••
- Galerkin solution / _•• Finite element solution! (2 Hermite elements) I I
I
0.10
-
I
~
on
Ss;
0.05
c:
0 'C u
0.00
o:l 0;:::; oJ
0
-0.05 -0.10
-0.15
-0.20 FIGURE 6.10 Transient response of a beam clamped at both ends and subjected to an initial transverse deflection (M = 0.005, a- = 0.5, and f3 = 0.25).
pA = 1.0. Therefore, OAK can be computed as GAK=
E BHK= EI 125 =~EI 2(1 + v) 2(1 + v)H26 H 2
where B is the width and H the height of the beam, and 1= 12BH3 , are used in arriving at the last expression. Similarly,
(6.61) V
= 0.25, and K = ~
(6.62) For LIH = 100 (since L = 1.0, H = 0.01), the shear deformation effect is small; while for L/H=lO (or H=O.l), it is significant enough to warrant its inclusion in the analysis. Table 6.4 gives values of w(0.5, t) as obtained using the Euler-Bernoulli and Timoshenko elements for various numbers of elements. The time step is taken to be M = 0.005, which is larger than, that required for stability of the four-element mesh of the Euler-Bernoulli beam element when y = 1. Figure 6.11 shows plots of w(O.5, t) obtained with two quadratic Timoshenko elements for LIB = 100 and 10. The Timoshenko elements have better stability characteristics (i.e., larger Me<) than the Euler-Bernoulli beam element for small ratios LIH. This is because, as LIH is decreased, the W m • x predicted by the Timoshenko beam theory is smaller than that predicted by the Euler-Bernoulli beam theory. The critical time steps for the mesh of
240
FINITE ELEMENT ANALYSIS OF ONE·DlMENSIONAL PROBLEMS
TABLE 6.4
Effect of mesh arid shear deformation on the transient response of a beam clamped at both ends (M = 0.005) Timoshenko element
Euler-Bernoulli beam element
«=0.25,13=1.6
(2Q)
«=0.5,13=0.25
«=0.5.13=0.25
Tune 2
I
0.00 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.10 0.11 0.12 0,13 0.14 0.15
0.2146 0.2091 0.1928 0.1666 0.1319 0.0904 0.0442 -0,0043 -0.0525 -0.0980 -0.1385 -0.1719 ~0.1964
-0.2108 ~0.2144
-0,2070
0.2146 0.2098 0.1951 0.16% 0.1346 0.0930 0.0481 0.0014 -0.0462 -0.0926 -0.1345 -0.1685 -0.1933 -0.2088 -0.2153 -0.2113
2
4t 0.2146 0.2098 0.1950 0.1681 0.1181 -0.0795 -1.7165 -17.877 -179.92 -1796.9
0.2146 0.2091 0.1928 0.1667 0.1320 0.0905 -0.0443 -0.0523 -0.0978 -0.1383 -0.1717 -0.1963 -0.2108 -0.2144
0.2146 0.2098 0.1951 0.1696 0.1348 0.0931 0.0482 0,0014 -0.0459 -0.0923 -0.1342 -0.1685 -0.1933 -0.2088
0.2146 0.2098 0.1951 0.1698 0.1350 0.0935 0.0483 0.0018 -0,0455 -0.0916 -0.1336 -0.1682 -0.1932
~0.2150
~0.2071
-0.2112
-0.2148 -0.2111
~0.0041
Diverged
L!H= 100 L!H= 10
4
~0.2087
0.2146 0.2100 0.1953 0.1695 0.1342 0,0929 0.0484 0.0016 -0.0469 r -0.0937 -0.1349 -0.1680 -0.1931 -0.2100 -0.2169 -0.2117
0.2146 0.2116 0.1951 0.1690 0.1427 {I. 1067 0.0657 0.0234 -0,0267 -0.0706 -0.1100 -0.1461 -0.1717 -0.1969 -0.2110 ~0.2146
Galerkin In space and exact in lime 0.2146 0.2157 0.1988 0.1716 0.1~6
0.0925 0.0447 -0.0055 ~0.0553
-0.1023 -0.1441 -0.1783 -0.2034 -0.2179 -O.22Il -0.2129
t M", = 0.00135
0.3 0.2
---<'r-
L1H = 100
---0'---- L1H = 10 ~ ~
"1
0.1
0 '-' ~
c
0 '!::
0.0
<>
"
Q
OJ
Q
-0.1 -0.2 -0.3 0.0
0.1 Time t
0.2
FIGURE 6.11 Transient response of a beam clamped at both ends, according to the Timoshenko beam theory (11.( = 0.005, two quadratic elements are used, «= 0.5, and f3 = 0.25).
EIGENVALUE AND TIME-DEPENDENT PROBLEMS
241
two quadratic elements are (Atcr)lO = 0.00644
(Atcr)lOO = 0.00665,
where the subscripts refer to' the ratio LIB. This completes the example.
6.3 SUMMARY In this chapter eigenvalue problems and their formulation for one-dimensional second- and fourth-order equations (beams) have been discussed, finite element models of the equations have been developed, and applications to heat transfer and the natural vibration of beams have been presented. Except for the solution procedure, the finite element formulation of eigenvalue problems is entirely analogous to boundary value problems. Finite element models of time-dependent problems described by parabolic and hyperbolic equations have also been presented. A two-step procedure to derive finite element models from differential equations has been described. In the first step, we seek spatial approximations of the dependent variables of the problem as linear combinations of nodal values that are functions of time and interpolation functions that are functions of space. This procedure is entirely analogous to the finite element formulation presented for boundary value problems in Chapters 3 and 4. The end result of this step is a set of ordinary differential equations (in time) among the nodal values. In the second step, the ordinary differential equations are further approximated to replace the time derivatives with the values of the functions at different times.
PROBLEMS Section 6.1 6.1. Determine the first two longitudinal frequencies of a rod (E, A, L) fixed at one end and spring-supported at the other:
cPu
rYu
ox
ot
-EA-+pA-=O 2 2
u(O) = 0,
( EA :
for O<x
+ kU)
I..
=L
=0
Use (a) two linear finite elements and (b) one quadratic element. Answer: (a) The characteristic equation is 7A? - (10 + 4c»). + (1 + 2c) = 0, c = kh]EA, A = (ph 2/6E)w 2 • 6.2. Determine the smallest natural frequency of a. beam with clamped ends, and of constant cross-sectional area A, moment of inertia I, and length L. Use the symmetry and two Euler-Bernoulli beam elements in the half-beam. 6.3. Re-solve the above problem with two linear Timoshenko beam elements in the half-beam. 6.4. Consider a beam (A, I, E, L) with its left end clamped and its right end supported by an elastic spring. Determine the fundamental natural frequency using (a) one Euler-Bernoulli beam and (b) one Timoshenko beam element.
242
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
6.5. Determine the critical buckling load of a cantilever beam (A, I, L, E) using (a) one Euler-Bernoulli beam element and (b) one Timoshenko beam element. 6.6. Determine the fundamental natural frequency of the truss shown in Fig. P4.24. 6.7•. Determine the fundamental natural frequency of the frame shown in Fig. P4.27. 6.8. Determine the first two longitudinal natural frequencies of a rod (A, E, L, m), fixed at one end and with an attached mass m2 at the other. Use two linear elements. Hint: Note that the boundary conditions for the problem are u(O) = 0 and (EA aul ax + m 2 (fuI8F)lx~L = O. 6.9. The equation governing the torsional vibration of a circular rod is
"
where 4> is the angular displacement, J the moment of inertia, G the shear modulus, and m the density. Determine the fundamental torsional frequency of a rod with disk (1\) attached at each end. Use the symmetry and (a) two linear elements, (b) one quadratic element. 6.10. The equations governing the motion of a beam according to the Timoshenko beam theory can be written as
a
1.
otw (fw
-+~-b 4
8x
ee
2(1+E) -~w - + b 2-m-~w =0 kG ax 28t2
kG 8t 4
where a2 = EllmA and b 2 = IIA. Assuming that b 2 m l k G « 1 (i.e., neglecting the last term in the governing equation), formulate the eigenvalue problem for the determination of natural frequencies, and develop the finite element model of the eigenvalue problem. 6.11. Use the finite element model of Problem 6.10 to determine the fundamental frequency of a simply supported beam. 6.12. Find the critical buckling load P~r by determining the eigenvalues of the equation
w(O) = w(L)
= 0,
d\V)! (EIdX 2
(ddt 2
X~O
W )! = EI2
x~L
= 0
Use one Euler-Bernoulli element in the half-beam. Answer: Per = 9.9439EI I L 2. Section 6.2 6.13. Consider the partial differential equation arising in connection with unsteady heat transfer in an insulated rod: au- a ( aau) =1 for O<x
u(O) = uo,
ax
ax
[ a alt + f3(1t -u",) + ~x ~
fiJI x-L =0
EIGENVALUE AND TIME-DEPENDENT PROBLEMS
243
Following the procedure outlined in Section 6.2, derive the semidiscrete variational form, thesemidiscrete finite element model, and the fully discretized finite element equations for a typical element. 6.14. Using a two-element (linear) model and the semidiscrete finite element equations derived in Problem 6.13, determine the nodal temperatures as functions of time for the case in which a = 1, f = 0, UI) = 1, and q "" O. Use the Laplace transform technique [see Reddy (1986)] to solve the ordinary differential equations in time. 6.15. Consider a uniform bar of cross-sectional area A, modulus of elasticity E, mass density m, and length L. The axial displacement under the action of timedependent axial forces is governed by the wave equation cru
2
a=
(jZu
alZ = a axZ'
(E.)
112
\;;;
Determine the transient response [i.e., find u(x, t)] of the bar when the end x = 0 is fixed and the end x = L is subjected to a force Po. Assume zero initial conditions. Use one linear element to approximate the spatial variation of the solution, and solve the resulting ordinary differential equation in time exactly to obtain
6.16. Re-solve Problem 6.15 with a mesh of two linear elements. Use the Laplace transform method to solve the two ordinary differential equations in time. 6.17. Solve Problem 6.15 when the right end is subjected to an axial force Po and supported by an axial spring of stiffness k. Answer:
Uz(/)
=
c(l- cos 13t),
e=
m~~13z,
13 =
v'3
f (1 + ;~)
112
6.18. A bar of length L moving with velocity Vo strikes a spring of stiffness k. Determine the motion u(x, t) from the instant the end x "" 0 strikes the spring. Use one linear element. 6.19. A uniform rod of length L and mass m is fixed at x = 0 and loaded with a mass M at x = L. Determine the motion u(x, t) of the system when the mass M is subjected to a force Po. Use one linear element. Answer:
UZ(t) = e(l - cos ),f),
PoL AE'
e=~
6.20. The flow of liquid in a pipe, subjected to a surge-of-pressure wave (Le., a water hammer), experiences a surge pressure p, which is governed by the equation
Z
(jZp- e (jZp = 0 ax z '
se .
cZ =..!: (~+
m k
E.)-I bE
where m is the mass density and K the bulk modulus of the fluid, D is the diameter and b the thickness of the pipe, and E is the modulus of elasticity of the pipe material. Determine the pressure p(x, I) using one linear finite element, for the following boundary and initial conditions: p(O, I) = Po,
peL, t) = 0,
p(x, 0) = Po
244
FINITE ELEMENT ANALYSIS OF ONE·DlMENSIONAL PROBLEMS
6.21. Consider the problem of determining the temperature distribution of a solid cylinder, initially at a uniform temperature 10 and cooled in a medium of zero temperature (i.e., T~ = 0). The governing equation of the problem is pc
aT_ L~ (rk aI\ = 0 at
a~)
r ar
The boundary conditions are
aT
~(O
sr >" t)=O ,
( rk
8T+PT)1
r~R
ar
=0
The initial condition is T(r, t) = To. Determine the temperature distribution T(r, t) using one linear element. Take R = 2.5 em, To = 130 DC, k = 215 W m- l DC-t, P= 525 W m" DC-I, P = 2700 kg m-\ and c = 0.9 kJ kg- 1DC~J. What is the heat loss at the surface? '6.22. Determine the nondimensional temperature B(r, t) in the region bounded by two long cylindrical surfaces of radii R 1 and R2 • The dimensionless heat conduction equation is
with boundary and initial conditions
aB
~ (R 1 ,
ar
t) = 0,
B(R2 , t) = 1,
B(r, 0) = 0
6.23. Show that (6.44) and (6.45) can be expressed in the alternative form [see (6.47)]
[H]{ii}S+1 = {F}'+1 - [K]{b}, where [H] = P(M)2[K] + {M], {b} = {«}, + At {u}, + (! - P)(M)2{a), 6.24. Using the Newmark integration scheme (6.45), express the equation
IM]{a} + [C]{u} + [K]{u}
= {F}
in the form
[K]{ut+! = {F}'+l where
Ii] = [K] + ao[M] + as[C] {F},+!::::; {F}S+1 + [M](ao{u}, + adu}s + a2{a}s) + [C](as{u}. + a6{u}s + a7{u}s) a'
as= PM'
a'
a6=/i-1,
M(a') -p-2
a7=2
6.25. A uniform cantilever beam of length L, moment of inertia I, modulus of elasticity E, and mass m begins to vibrate with initial displacement
w(x, 0) = woX 2 /
e
and zero initial velocity. Find its displacement at the free end at any subsequent time. Use one Euler-Bernoulli beam element to determine the solution. Solve the resulting differential equations in time using the Laplace transform method. 6.26. Re-solve Problem 6.25 using one Tirnoshenko element.
EIGENVALUE AND TIME-DEPENDENT PROBLEMS
245
6.27. Use the Newmark integration scheme to reduce the ordinary differential equations of time in Problem 6.10 to algebraic equations.
REFERENCES FOR ADDITIONAL READING Bathe, K.J.: Finite Element Procedures in Engineering Analysis, Prentice-Hall, Englewood Cliffs, NJ, 1982. and E. L. Wilson: "Stability and Accuracy Analysis of Direct Integration Methods," International Journal of Earthquake Engineering and Structural Dynamics, vol. 1, pp. 283-291,1973. Belytschko, T.: "An Overview of Semidiscretization and Time Integration Procedures," in Computational Methods for Transient Analysis, eds. T. Belytschko and T. J. R. Hughes, pp. 1-65, North-Holland, Amsterdam, 1983. Goudreau, G: L., and R. L. Taylor: "Evaluation of Numerical Integration Methods in Elastodynamics," Journal of Computer Methods in Applied Mechanics and Engineering, vol. 2, No.1, pp. 69-97, 1973. Hilber, H. M.: "Analysis and Design of Numerical Integration Methods in Structural Dynamics," EERC Report no. 77-29, Earthquake Engineering Research Center, University of California, Berkeley, California, November 1976. Houbolt, J. C.: "A Recurrence Matrix Solution for the Dynamic Response of Elastic Aircraft," Journal of Aeronautical Science, vol. 17, pp. 540-550, 1950. Hughes, T. J. R.: "Analysis of Transient Algorithms with Particular Reference to Stability Behavior," in Computational Methods for Transient Analysis, eds, T. Belytschko and T. J. R. Hughes, pp. 67-155, North-Holland, Amsterdam, 1983. - - - : The Finite Element Method, Prentice-Hall, Englewood Cliffs, NJ, 1987. - - - and W. K. Liu: "Implicit-Explicit Finite Elements in Transient Analysis: Stability Theory," Journal of Applied Mechanics, vol, 45, pp. 371-374, 1978. - - - and W. K. Liu: "Implicit-Explicit Finite Elements in Transient Analysis: Implementation and Numerical Examples," Journal of Applied Mechanics, vol, 45, pp. 375-378, 1978. - - - , Pister, K. S., and Taylor, R. L.: "Implicit-Explicit Finite Elements in Nonlinear Transient Analysis," Computer Methods in Applied Mechanics and Engineering, vol. 17/18, pp, 159-182, 1979. Isaacson, E., and H. B. Keller: Analysis of Numerical Methods, John Wiley, New York, 1966. Krieg, R. D., "Unconditional Stability in Numerical Time Integration Methods," Transactions of the ASME, Journal of Applied Mechanics, vol. 40, pp. 417-421, June 1973. Lanczos, C.: Applied Analysis, Prentice-Hall, Englewood Cliffs, NJ, 1956. Newmark, N. M.: "A Method of Computation for Structural Dynamics," Journal of Engineering Mechanics Division, ASCE, vol. 85, pp. 67-94, 1959. Nickell, R. E.: "On the Stability of Approximation Operators in Problems of Structural Dynamics," International Journal of Solids and Structures, vol. 7, pp. 301-319, 1971. - - - : "Direct Integration in Structural Dynamics," Journal of Engineering Mechanics Division, ASCE, vol. 99, pp. 303-317,1973. - - - : "Nonlinear Dynamics by Mode Superposition," Iournal of Computer Methods in Applied Mechanics and Engineering, vol. 7, pp. 107-129, 1976. Park, K. C.'; "An Improved Stiffly Stable Method for Direct Integration of Nonlinear Structural Dynamics Equations," Journal of Applied Mechanics, vol. 42, pp. 464-470, 1975. Wilson, E. L., L Farhoomand, and K. J. Bathe: "Nonlinear Dynamic Analysis of Complex Structures," lnternational Journal of Earthquake Engineering and Structural Dynamics, vol. 1, pp. 241-252, 1973.
CHAPTER
7 NUMERICAL INTEGRATION AND COMPUTER IMPLEMENTATION
I'
7.1 ISOPARAMETRIC FORMULATIONS AND NUMERICAL INTEGRATION 7.1.1 Background Exact evaluation of the integrals appearing in element coefficient matrices and source vectors is not always possible because of the algebraic complexity of the coefficients a, b, and c in differential equations. In such cases, it is natural to seek numerical evaluation of these integral expressions. Numerical evaluation of the coefficient matrices is also useful in problems with constraints, where reduced integration techniques are used (see, e.g., the reduced integration element of the Timoshenko beam theory, Section 4.4). Numerical evaluation of integrals, called numerical integration or numerical quadrature, involves approximation of the integrand by a polynomial of sufficient degree, because the integral of a polynomial can be evaluated exactly. For example, consider the integral, XB
!J =
J
XA
246
F(x) dx
(7.1)
NUMERICAL INTEGRATION AND COMPUTER IMPLEMENTATION
247
We approximate the function F(x) by a polynomial: N
F(x) =
L
F]1jJ/(x) (7.2) 1=1 where F] denotes the value of F(x) at the lth point of the interval [XA' XB] and 1J!I(X) are polynomials of degree N -1. The representation can be viewed as the finite element interpolation of F(x), where Fi is the value of the function at the lth node. The interpolation can be of the Lagrange type or the Hermite type. Substitution of (7.2) into (7.1) and evaluation of the integral gives an approximate value of !J. For example, suppose that we choose linear interpolation of F(x). Then N = 2, 1J!1 = (x B - x)/h, 1J!2 = (x - xA)/h, and !J = M(F1 + 0), F;. = F(XA)' Fz = F(XB) (7.3) Thus, the value of the integral is given by the area of a trapezoid used to approximate the area under the function F(x) (see Fig. 7.1). Equation (7.3) is known as the trapezoidal rule of numerical integration. If we use the Lagrange quadratic interpolation of F(x), we obtain !J = ih(F1+ 40 + F3), F;. = F(XA)' (7.4) Fz = F(XA + !h), Fj = F(XB) which is known as Simpson's one-third rule. Equations (7.3) and (7.4) represent the form of numerical quadrature formulae. In general, a quadrature formula has the form (7.5)
F(x)
'---------<>----0------x (a)
F(x)
'-------()---L---<Je------_x
FIGURE 7.1 Approximate evaluation of an integral using the trapezoidal rule: (a) Two-point formula; (b) three-point formula.
248
FINITE ELEMENT ANALYSIS OF ONE·DlMENSIONAL PROBLEMS
where x, are called the quadrature points and WI are the quadrature weights. These formulae require functional evaluations, multiplications, and additions to obtain the numerical value of the integral. They yield exact values of the integral whenever F(x) is a polynomial of order r - 1. In this section, we describe several numerical integration techniques and formulations in which the geometry as well as the dependent variables are approximated using different degrees of polynomials. We begin with the discussion of a local coordinate system.
7.1.2 Natural Coordinates Of an the quadrature formulae, as will be discussed in the subsequent sections, the Gauss-Legendre one is the most commonly used. The details 0(. the method itself will be discussed shortly. The formula requires the integral to be cast as one to be evaluated over the interval [-1, 1]. This requires the transformation of the problem coordinate X to a local coordinate ; such that (see Fig. 7.2); when
;=-1;
X=XA'
when
X=XB,
;=1
s
The transformation between X and can be represented by the linear "stretch" transformation x =a +bs where a and b are constants to be determined such that the above conditions hold;
xA=a+b(-1),
xB=a+b(1)
Solving for a and b, we obtain b
=
~(XB
-XA)
= the,
a =1(XB +xA ) =XA
+ 1h.
Hence the transformation takes the form
(7.6) where XA denotes the global coordinate of the left end node of the element Qe and he is the element length (see Fig. 7.2). The local coordinate S is called the normal coordinate or natural coordinate, and its values always lie between -1 and 1, with its origin at the center of the element. The local coordinate S is useful in two ways: (i) it is convenient in constructing the interpolation functions; (ii) it is required in numerical integration using Gauss-Legendre quadrature.
FIGURE 7.2
Global coordinate x, local coordinate X, and normalized local coordinate ~.
NUMERICAL INTEGRATION AND COMPUTER IMPLEMENTATION
249
The derivation of the Lagrange family of interpolation functions in terms of the natural coordinate ~ is made easy by the property 1 in (3.28) of the interpolation functions:
, {I
if i = j
lM~j)= 0 if i=l=j
(7.7)
where ~j is the ~ coordinate of the jth node in the element. For an element with n nodes, Wi (i = 1, 2, ... , n) are functions of degree n -1. To construct Wi satisfying (7.7), we proceed as follows. For each Wi' we form the product of n - 1 linear functions S- ~j (j = 1, 2, ... , i-I, i + 1, ... , n, j =1= i):
t/Ji. = Ci(~ - SI)(S -
~2)
... (S -
~/-1)(~
- Si+l) ...
(~-
Sn)
Note that t/Ji is zero at all nodes except the ith. Next we determine the constant c, such that t/Ji = 1 at ~ = s/:
c, = [(~f - ;1)(;/ - ~2) ... (Si - ~/-I)(SI - ~/+1) ... (~f -
;n)r
1
Thus, the interpolation function associated with node i is lM~) =
(; - ~1)(; - ~2) (;/ - ;1)(51 - 52)
(~- ~/-1)(~
(~i -
- ;;+1) 5/-1)(;/ - ;i+l)
(5 - 5n) (Sf - ;n)
(7.8)
Interpolation functions that satisfy (7.7) are said to belong to the Lagrange family of interpolation functions, and the associated finite elements belong to the Lagrange family of finite elements. The interpolation functions t/J/ in (3.16b) and (3.18) provide an example of the Lagrange interpolation functions (n = 2). Figure 7.3 shows the linear, quadratic, and cubic Lagrange interpolation functions expressed in terms of the natural coordinate (for equally spaced nodes).
7.1.3 Approximation of Geometry Recall from (3.31c) and (4. 12c) that the element matrices involve the derivatives of the interpolation functions with respect to the global coordinate Q- -- --
I
r}__ -9
-- -----------
2
1/11
=
~(1 - [)
1/1}. = ~(1
If!1 =
-iw -
~:.-_-_-_Q::..-t:;i:.:.:.~ 1
234
=
§) -
+ [)(l f§(l + ~)
t/JJ. = (1
I/J3
+ [)
mr
~)
.pI = -;Kl + ~)(} - §) rh. = H(l + §)(1 - §)G - §) .p3 = H(1 + §)(1 - f)(} + §) .p4 = -M~ + §)(~ - §)(1 + §)
FIGURE 7.3 Lagrange family of I-D interpolation functions in terms of the normalized coordinate.
250
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
x. A transformation of the form
x = f(1;)
(7.9)
is required in order to rewrite the integrals in terms of 1; (~1 ~ 1; ~ 1). The function f is assumed to be a one-to-one transformation. An example of f(s) is provided by (7.6):
f(s)
=
XA
+ !h e (1 + s),
In this case, f(s) is a linear function of S. Hence, a straight line is transformed into a straight line. When f is a nonlinear function, a straight line is mapped into a curve of the same degree as the transformation. It is natural to think of approximating the geometry in the same way as we approximated a dependent variable: In other words, the transformation x=: f(1;) can be written as r m
X
= ~ xfij;f(1;)
(7.10)
i=l
where xf is the global coordinate of the ith node of the element Qe and {Pi are the Lagrange interpolation functions of degree m - 1. Equation (7.10) represents the shape (or geometry) of an element, and the 1M are therefore called shape functions. Equation (7.10) maps a geometric shape from S space into x space, i.e., for any given 1;, (7.10) gives the corresponding x. When the element is a straight line, (7.10) is exactly the same as (7.6). The transformation (7.10) is useful in evaluating integrals by the Gauss quadrature. It should be noted that the transformation is not used to change the actual geometry of the element; the transformation is used to write integral expressions involving x in terms of expressions involving 1;: X
f
8
F(x) dx
x,.
=
JI F(s) d1; -1
(7.11)
so that the Gauss quadrature can be used to evaluate the integral over [-1, 1]. The differential element dx in the global coordinate system x is related to the differential element d1; in the natural coordinate system S by
dx = where
Je is called
dx
ds d1;
=:
Je d1;
the Jacobian of the transformation. We have (7.12)
For a linear transformation, i.e., when ij;, are the linear Lagrange interpolation functions (m =: 2), we have A
_1
1J'1 - 2(1-1;),
_1
1J'2 - 2(1 + s) A
Je =: xH-1) + xz(!) ~ 1(x z- xD = !he
(7.13)
NUMERICAL INTEGRATION AND COMPUTER IMPLEMENTATION
251
It can be shown that ,J" = 1h" whenever the element is a straight line, irrespective of the degree of interpolation used in the transformation (7.10).
7.1.4 Isoparametric Formulations Recall that a dependent variable u is approximated in the element expressions of the form
Qe
by
n
u(x) =
2: uJ1JlJ(x)
(7.14)
j=l
In general, the degree of approximation used to describe the coordinate transformation (7.10) is not equal to the degree of approximation (7.14) used to represent a dependent variable, i.e., ~1* 1Jl1. In other words, two independent elements can be used in the finite element analysis: one for the approximation of the geometry x and the other for the interpolation of the dependent variable u. Depending on the relationship between the degree of approximation used for the coordinate transformation and that used for the dependent variable, the finite element formulations are classified into three categories: 1. Subparametric formulations: m < n 2. Isoparametric formulations: m = n 3. Superparametric formulations: m > n
(7.15)
In subparametric formulations, the geometry is represented by lower-order elements than those used to approximate the dependent variables. An example of this category is provided by the Euler-Bernoulli beam element, where the Hermite cubic element is used to approximate the transverse deflection, while the geometry is approximated, when straight beams are analyzed, with linear interpolation functions. In isoparametric formulations (the most common in practice), the same element is used to approximate the geometry as well as the dependent unknowns: 'lJli(X) = ~i(~)' In the superparametric formulations, the geometry is represented with higher-order elements than those used to approximate the dependent variables. This formulation is seldom used in practice.
7.1.5 Numerical Integration The evaluation of integrals of the form
f
F(x) dx
(7.16)
by exact means is either difficult or impossible owing to the complicated form of the integrand F. Numerical integration is also required when the integrand is to be evaluated inexactly (as in the Timoshenko beam element) and when
252
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
the integrand depends on a quantity that is known only at discrete points (e.g., in nonlinear problems). The basic idea behind all numerical integration techniques is to find a function P(x) that is both a suitable approximation of F(x) 'and simple to integrate. The interpolating polynomials of degree n, denoted by PlI , which interpolate the integrand at n + 1 points of the interval [a, b], often produce a suitable approximation and possess the desired property of simple integrability. An illustration of the approximation of the function F(x) by the polynomial Pix) that exactly matches the function F(x) at the indicated base points is given in Fig. 7A(a). The exact value of (7.16) is given by the area under the solid curve, while the approximate value
f ...
Pix)dx
/
---'"'"
F(x)
L.-----JL....-_---'_ _---'-_ _---'-_ _- - ' - _ _
a =
XJ
X
X3
(a)
'------'------...L.----x Xz
(b)
_F(x)
'------'-----'----'-----x Xz (c)
FIGURE 7.4 Numerical integration by the Newton-Cotes quadrature: (a) ap· proximation of a function by P4(X); (b) the trapezoidal rule; (c) Simpson's rule.
NUMERICAL INTEGRATION AND COMPUTER IMPLEMENTATION
253
is given by the area under the dashed curve. It should be noted that the difference (i.e., the error in the approximation) E = F(x) - P4(X) is not always of the same sign, and therefore the overall integration error may be small (because positive errors in one part cancel negative errors in other parts), even when P4 is not a good approximation of F. The commonly used integration methods can be classified into two basic groups: 1. The Newton-Cotes formulae that employ values of the function at equally spaced base points. 2. The Gauss quadrature formula that employs unequally spaced base points. These are described here. THE NEWTON-COTES QUADRATURE. For r equally spaced base points, the Newton-Cotes integration formula is given by
(b
r
)(1 F(x) dx = (b - a) ~l F(x[)w[
(7.17)
where WI are the weighting coefficients and x, are the base points, which are equally spaced. For r = 1, (7.17) gives the rectangle formula. For r = 2, it gives the familiar trapezoidal rule, in which the required area under the solid curve in Fig. 7.4(b) is approximated by the area under the dotted straight line [i.e., F(x) is approximated by Pl(X)]:
i~~~2 F(x) dx = !h[F(Xl) + F(X2)],
E = O(h
3)
(7.18)
where E denotes the error in the approximation and h is the spacing between two base points. The notation O(h), read as "order of h", is used to indicate the order of the error in terms of the spacing h. For r = 3, (7.17) gives the familiar Simpson's one-third rule (see Fig. 7.4c):
i~:~3 F(x) dx = !h[F(Xl) + 4F(X2) + F(X3)],
E = O(h5 )
(7.19)
The weighting coefficients for r = 1, 2, ... , 7 are given in Table 7.1. Note that I;~-!fWI = 1. The base point location for r = 1 is Xl = a +!(b - a) = !(a + b). For r> 1, the base point locations are al
= a,
a2 = a
+ ~x,
""
Or
~a
+ (r
- 1) ~x = b
where ~ = (b - a)/(r -1).A comment is in order on the use of the Newton-Cotes integration formula (7.17). For mn r (i.e., when there is an even number of intervals or an odd number of base points), the formula is exact when F(x) is a polynomial of degree r + 1 or less; for odd r, the formula is exact for a polynomial of degree r or less. Conversely, a pth-order polynomial is integrated exactly by choosing r = p + 1 base points.
254
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
TABLE 7.1
Weighting coefficients for the Newton-Cotes formula (7.17) r
WI
1 2 3
1
Wz
W4
W3
Ws
W6
w7
1 1
2
Z
t
'!
1
J.
8
5
.1-
3
1
90
90
ik
2Q.
50
288
288
216
.zi.
272 840
90
Z8B
.31840
7
6
8 1£
8 3Z
90 .is,
6
1
6
4
8 32
840
840
.1-
90 .J2.. 288
sa: 840
19 2118
ill 840
41
840
THE GAUSS-LEGENDRE QUADRATURE. In the Newton-Cotes quadrature, the base point locations have been specified. If the XI are not specified then
there will be 2r + 2 undetermined parameters, the weights )Vl and base points which define a polynomial of degree 2r + 1. The Gauss-Legendre quadrature is based on this idea. The base points XI and the weights WI are chosen so that the sum of the r + 1 appropriately weighted values of the function yields the integral exactly when F(x) is a polynomial of degree 2r + 1 or less. The Gauss-Legendre quadrature formula is given by (see Fig. 7.5)
Xl>
(7.20) where
WI
~
-1
§
are the weight factors,
~~
-0.57735
~ =
(a)
(b)
are the base points [roots of the Legendre
§= 1
0.57735
§= 1
-1
-0.;7~597
~=
~l
§= 0.774597
FIGURE 7.5 The two-point (a) and three-point (b) GaussLegendre quadratures.
NUMERICAL INTEGRATION AND COMPUTER IMPLEMENTATION
255
TABLE 7.2
Weights and Gauss Legendre quadrature
Points ~i
points for the Gauss-
T
Weights
0.000000000o
One-point formula
2.OOOOOOOOOO
±O.5773502692
Two-point formula
1.OOOOOOOOOO
O. OOOOOOOOOO ±0.7745966692
Three-point formula
0.8888888889 0.5555555555
±0.3399810435 ±0.8611363116
Four-point formula
0.6521451548 0.3478548451
O. ()()()(J{)(J()( ±0.5384693101 ±0.9061798459
Five-point formula
0.5688888889 0.4786286705 0.2369268850
±0.2386191861 ±0.6612093865 ±0.9324695142
Six-point formula
0.4679139346 03607615730 0.1713244924
polynomial Pr+l(;)], and
P is the
lVi
transformed integrand
PC;) =
F(x(;»J"(';)
(7.21)
The weight factors and Gauss points for the Gauss-Legendre quadrature (7.20) are given, for r = 1, ... , 6, in Table 7.2. The Gauss-Legendre quadrature is more frequently used than the Newton-Cotes quadrature because it requires fewer base points (hence a saving in computation) to achieve the same accuracy. The error in the approximation is zero if the (2r + 2)th derivative of the integrand vanishes. In other words, a polynomial of degree p is integrated exactly by employing r =!(p + 1) Gauss points. When p + 1 is. odd, one should pick the nearest larger integer: r = [!(p
+ 1)]
(7.22)
In finite element formulations, we encounter integrals whose integrands F are functions of x, 1jJ;(x) and derivatives of 1jJ;(x) with respect to x. For the Gauss-Legendre quadrature, we must transform F(x) dx to p(.;) d; to use (7.20). For example, consider the integral
( ) d1jJ'f d1jJJ dX K ~. = fXB ax dx If
XA
dx
(7.23)
Using the chain rule of differentiation, we have (7.24)
256
FINITE ELEMENT ANALYSIS OF ONE·DIMENSIONAL PROBLEMS
Therefore, the integral can be written, with the help of (7.10), as I
Kij =
J
-I
1 dljJ~ 1 dljJ:
a(x(~)) j d~' j d~J J d~
(7.25)
r
2: Fij(Sf)Wf
=
(7.26)
f~1
where ~e
F jj
1 dljJ1 d1jJj
_
aj d~
-
m
d{;'
j =
d,p~
~ xf d{;'
(7.27)
For the isoparametric formulation, we take 1jJf = ,pf. The transformation from S is not required for the Newton-Cotes quadrature. "As noted earlier, the Jacobian matrix will be the same {Je = ~he) when the element is straight, even if the coordinate transformation is quadratic or cubic. However, when the element is curved, the Jacobian is a function of S for transformations other than linear. It is possible to determine the number of Gauss points required to evaluate the finite element matrices
x to
e
K jj =
fXB d1jJf d1jJj ~d d dx, XA x X
Mij=
fXB
1jJfljJJ dx,
Fi =
XA
1X8
1jJi dx
(7.28)
XA
exactly using linear, quadratic, and cubic interpolation functions. For linear: interpolation functions, the integrand of Kij is constant, requiring only one-point Gauss quadrature. The integrand of the mass matrix Mij. is quadratic (p = 2), requiring [r = !(p + )1 =~] two-point quadrature. The coefficients are evaluated exactly by one-point quadrature. Similarly, for quadratic and cubic elements, we can estimate the number of Gauss points needed to evaluate Kij, Mij, and fi exactly. The results are summarized below. Note that, in estimating the quadrature points, it is assumed that the Jacobian is a constant, which holds true when the element is a straight line.
n
Number of Gauss quadrature points needed Element type
Kif
Mij
f~
Linear Quadratic Cubic
1 2 3
2 3 4
2
1 3
. If the matrices in (7.28) have variable coefficients or the elements are curved [and hence Je = j"(';)], the degree of the variation of the integrands changes and the number of Gauss points needed to evaluate the integral exactly changes. If the elements are straight, and the coefficients a = a(x) and c = c(x) together with f = f(x) are no more than linear in x, then the number
NUMERICAL INTEGRATION AND COMPUTER IMPLEMENTATION
257
of Gauss points for evaluating the coefficients
Kij =
"'B dlJJ~ -d d1/J~ dx, j . a -d X X I
J
"'A
Mij =
j"'B clJJiVJJ dx
(7.29)
XA
remain the same as listed in the above table. However, the evaluation of fi requires one point more than before. Conversely, the two-point quadrature for linear elements, three-point quadrature for quadratic elements, and four-point quadrature for cubic elements would exactly evaluate Kij with a quadratic variation of a(x), Mij with linear variation of c(x), and fi with quadratic variation of f(x). The use of Gauss quadrature on (7.28) yields the following values (exact up to the fifth decimal place) when the element is straight and the isoparametric formulation is used: Quadratic (three-point formula)
1 [
[K] "i:
e
h [ [M] = 1~
0.33333] 2.33333 -2.66667 5.33333 -2.66667 -2.66667 0.33333 -2.66667 2.33333 1.33333 0.66667 -0.33333] 0.66667 0.66667 5.33333 -0.33333 0.66667 1.333433
(7.30)
0' 166667} {F} = he 0.666667 { 0.166667 Cubic (four-point formula)
1.350 -0.325] 3,700 -4.725 1.350 1 -4.725 10.800 -7.425 [K]=~ he [ 1.350 -7.425 10.800 -4.725 -0.325 1.350 -4.725 . 3.700 0.761905 0.589286 -0.214286 0.113095] 0.589286 3.857143 -0.482143 -0.214286 = [ ] M 10 -0.214286 -0.482143 3.857143 0.589286 [ 0.113095 -0.214286 0.589286 0.761905
he
{F} =
(7.31)
he{~:~~} 0.125
In Section 7.2, we study the computer implementation of the steps involved in the finite element analysis of one-dimensional problems. As a part
258
FINITE ELEMENT ANALYSIS OF ONE·DIMENSIONAL PROBLEMS
of the element calculations there, the computer implementation of the numerical integration ideas presented in this section will be studied. A model finite element program (FEM1DV2) for the solution of one-dimensional problems is also described, and its application is demonstrated via several examples. Appendix 1 contains a source listing of program FEM1DV2.
7.2
COMPUTER IMPLEMENTATION
7.2.1 Introductory Comments Chapters 3-6 were devoted to the finite element formulations of two classes of boundary value, initial value, or eigenvalue problems in one dimension: I'
"-
1. Second-order differential equations (e.g., heat transfer, fluid mechanics, I-D elasticity, bars, and the Timoshenko beam theory);' 2. Fourth-order differential equations governing the Euler-Bernoulli beam theory. The frame element, obtained by superposing the bar element and the beam element, was discussed in Chapter 4. By now, it should be clear to the reader that the steps involved in the finite element analysis of a general class of problems (e.g., single second-order, single fourth-order, and a pair of second-order equations) are systematic and can be implemented on a digital computer. Indeed, the success of the finite element method is largely due to the ease with which the analysis of a class of problems, without regard to a specific problem, can be implemented on a digital computer. For different geometries, boundary and initial conditions, and problem data, a specific problem from the general class can be solved by simply supplying the required input data to the program. For example, if we develop a general computer program to solve equations' of the form (7.32) I
then all physical problems described by (3.1) and (4.1) and their timedependent versions can be solved for any compatible boundary and initial conditions. The purpose of this section is to discuss the basic steps involved in the development of a computer program for second- and fourth-order onedimensional differential equations studied in the preceding chapters. The ideas presented here are used in the development of the model program FEM1DV2 (a revised version of FEM1D from the first edition of this book), and they are meant to be illustrative of the steps used in a typical finite element program development. One can make use of the ideas presented here to develop a program of one's own.
NUMERICAL INTEGRATION AND COMPUTER IMPLEMENTATION
259
PREPROCESSOR • Read the input data • Echo the input data • Write the input data and plot the mesh
PROCESSOR • Compute element coefficient matrices and column vectors • Assemble element equations • Impose boundary conditions • Solve equations or find eigenvalues
POSTPROCESSOR • Compute solution at points other than the nodes • Compute the gradient of the solution • Print/plot the results
7.2.2
FIGURE 7.6 The three main functional units of a finite element program.
General Outline
A finite element program consists of three basic parts (see Fig. 7.6):
1. Preprocessor 2. Processor 3. Postprocessor In the preprocessor part of the program, the input data of the problem are read in and/or generated. This includes the geometry (e.g., length of the domain and boundary conditions), the data of the problem (e.g., coefficients in the differential equation), finite element mesh information (e.g., element type, number of elements, element length, coordinates of the nodes, and connectivity matrix), and indicators for various options (e.g., print, no print, type of field problem analyzed, static analysis, eigenvalue analysis, transient analysis, and degree of interpolation).
260
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
In the processor part, all steps in the finite element method, except for postproeessing, discussed in the preceding chapters are performed. These include the following: 1. 2. 3. 4.
Generation of the element matrices using numerical integration. Assembly of element equations. Imposition of the boundary conditions. Solution of the algebraic equations for the nodal values of the primary variables.
In the postprocessor part of the program, the solution is computed by interpolation at points other than nodes, secondary variables that are deriv~ble from the solution are computed, and the output data are processed in a desired format for printout and/or plotting. The preprocessor and postprocessors can be a few Fortran statements to read and print pertinent information, simple subroutines (e.g., subroutines to generate mesh and compute the gradient of the solution), or complex programs linked to other units via disk and tape files. The processor, where typically large amounts of computing time are spent, can consist of several subroutines, each having a special purpose (e.g., a subroutine for the calculation of element matrices, a subroutine for the imposition of boundary conditions, and a subroutine for the solution of the equations). The degree of sophistication and the complexity of a finite element program depend on the general class of problems being programmed, the generality of the data in the equation, and the intended user of the program. It is always desirable to describe, through comment statements, all variables used in the computer program. A flow chart of the computer program FEM1DV2 is presented in Fig. 7.7. In the following sections, a discussion of the basic components of a typical finite element program is presented, and then the basic ideas are illustrated via FORTRAN statements (see Appendix 1) ..
7.2.3 Preprocessor The preprocessor unit consists of reading input data and generating finite element mesh, and printing the data and mesh information. The input data to a finite element program consist of element type IELEM (i.e., Lagrange element or Hermite element), number of elements used (NEM), specified boundary conditions on primary and secondary variables (number of boundary conditions, global node number and degree of freedom, and specified values of the degrees of freedom), the global coordinates of nodes Xl> and element properties (e.g., coefficients a., be' Ce, fe, etc.). If a uniform mesh is used, the length of the domain should be read in, and global coordinates of the nodes can be generated in the program. The preprocessor portion that deals with the generation of finite element mesh (when not supplied by the user) can be separated into a subroutine
r----------.,
:
I
~
/
I I
PREPROCESSOR I I I
1
I I
I
I I
I I I
I I
r - - - - - - ----- ----, I I
I
I I I
I I I I
POSTPROCESSOR
ASSMBL
I I I I
1 I I
I
I I
I
j
I I
I
l-
I I
I J
I
'j
I
AXLBX:
Subroutine {o~ determining eigenvalues and eigenvectors of the equation [AJ(X} = L[B]{X}.
BONDRY:
Subroutine for imposing specified boundary conditions of essential type, natural type, and mixed type.
COEFNT:
Subroutine for computing clement matrices and Vectors for all problems except truss and frame problems. Subroutine to echo the input file.
Subroutine to generate the mesh (i.e , global coordinates 0/ the global nodes and the connectivity array).
SOLVER or AXLBX
,2.. 51 C!
n
;>-
SHPlD
I .r......... -::
PSTPRC:
Subroutine to postprocess the solution for all' problems, except truss and frame problems.
REACTN:
Subroutine to calculate the reactions for truss and frame problems.
1 SHP1D:
Subroutine to compute the shape functions and their derivatives.
SOLVER:
Subroutine to solve Iinear algebraic equations.
TRSFRM:
Subroutine to compute element stiffness matrices and force vectors for truss .and frame problems.
r-
I Z
~
I:;)
I
I
ECHO: MESH1D:
~.-
I
I I
1
++
I
I
!
COEFNT or TRSFRM BONDRY
I I
Subroutine for the assembly of element equations: upper-banded form for static and transient problems: full matrix form for eigenvalue problems.
I
PROCESSOR
1
ECHO and MESHlD
ASSMBL:
PSTPRC Or REACTN
I I
n
o
~
";::
:;; e-
m
zm
~
FIGURE 7.7 Flow chart of the computer program FEMIDV2 along with the subroutines.
~
~
262
FINITE ELEMENT ANALYSIS 01' ONE·DIMENSIONAL PROBLEMS
(MESH1D), depending on the convenience and complexity of the program. Mesh generation includes computation of the global coordinates X, and the connectivity array [B} = [NOD]. Recall that the connectivity matrix describes the relationship between element nodes to global nodes: NOD(I, J)
= global node number corresponding to the Jth node
of
element I This array is used in the assembly procedure as well as to transfer information from element to the global system and vice versa. For example, to extract the element nodal coordinates x7 of the element Q" from the global coordinates Xl> we can use the array NOD:
x7 = Xl>
1= NOD(n, i)
The arrays {ELX} and {GLX} are used in FEM1DV2 for {x7} and {Xl}, respectivel y.
7.2.4 Calculation of Element Matrices (Processor) The most significant part of a processor is where we generate' element matrices. The element matrices are computed in various subroutines (COEFNT and TRSFRM), depending on the type of problem being solved. These subroutines typically involve numerical evaluations of the element matrices [Ke] and [Me] (program variables ELK and ELM) and the element vector {Ie} (program variable ELF) for various field problems. The Gauss quadrature described in Section 7.1.5 is used to evaluate element matrices and vectors, and the arrays are assembled as soon as they are computed. Thus, a loop on the number of elements in the mesh (NEM) is used to compute element matrices and assemble them (subroutine ASSMBL). It is here that the connectivity array NOD plays a crucial role. By putting element matrices into global locations one at a time, we avoid the computation of all element matrices at once. Element matrices for different model equations (MODEL) and type of problem (NTYPE) are generated by assigning values as follows:
1. MODEL = 1, NTYPE = 0: all field problems described by the model equation (3.1), including radially symmetric heat-transfer-type problems. 2. MODEL = 1, NTYPE = 1: radially symmetric elastic disk problems (see Problem 3.33). 3. MODEL = 2, NTYPE = 0 (RIE) or 2 (CIE): the Timoshenko theory of beams. 4. MODEL = 2, NTYPE = 1 (RIE) or 3 (CIE): the Timoshenko theory for bending of circular plates. 5. MODEL = 3, NTYPE = 0: the Euler-Bernoulli theory of beams. 6. MODEL = 3, NlYPE = 1: the Euler-Bernoulli theory for bending of circular plates.
NUMERICAL INTEGRATION AND COMPUTER IMPLEMENTATION
263
7. MODEL = 4, NTYPE = 0: the two-node truss element. 8. MODEL = 4, NTYPE = 1: the two-node Euler-Bernoulli frame element. 9. MODEL = 4, NTYPE = 2: the two-node, Timoshenko frame element.
The time-dependent option is exercised through variable ITEM: ITEM = 0 ITEM = 1 ITEM = 2
static analysis first-order time derivative (i.e., parabolic) problems second-order time derivative (i.e., hyperbolic) problems
The element matrices are evaluated using the Gauss quadrature, except for MODEL = 4, where the explicit forms of element coefficients are programmed in the interest of computational efficiency. The element shape functions SF and their derivatives GDSF are evaluated at the Gauss points in subroutine SHP1D. The Gaussian weights and points associated with two-, three-, four-, and five-point integration are stored in arrays GAUSWT and GAUSPT, respectively. The nth column of GAUSWT, for example, contains the weights corresponding to the n-point Gauss quadrature rule: GAUSPT(i, n)
= ith Gauss point corresponding to the zr-point Gauss rule
The variable NGP is used to denote the number of Gauss points, which is selected to achieve good accuracy. As noted earlier, the linear, quadratic, and cubic interpolation functions require two, three, and four quadrature points, respectively, to evaluate the element coefficients exactly. Thus, if IELEM is the element type, I for linear IELEM = 2 for quadratic { 3 for cubic
(Lagrange elements)
n
[see (7.29)] exactly then NGP = IELEM + 1 would evaluate KJj , MJj , and when c(x) is linear, and a(x), b (x), and f(x) are quadratic functions. The Hermite cubic element is identified with IELEM = 0, for which case NGP is taken to be 4. The coefficients a(x) = AX, b(x) = BX, and c(x) = CX, together with f(x) = FX in the differential equation (7.32) are assumed to vary with x as follows: BX=BXO+BXl*X
(a=aO+alx) (b =bo+b1x)
CX=CXO+CXl*X
(C=CO+C1X)
FX= FXO + FXl *X + FX2*X*X
(f =/0+ hx + Jzx 2 )
AX=AXO+AXl*X
For radially symmetric elasticity problems, (AXO, AXl) [or (BXO, EXl) for circular plates] are used to input Young's modulus E and Poisson's ratio Y.
264
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
The Gauss quadrature formula (7.20) can be implemented on the computer as follows. Consider Kij of the form (7.33)
Let us use the following program variables for the quantities in (7.33): SF(I)
ex = c(x),
AX=a(x), NPE = n, After transforming x to
= 1jJ1,
d·l,e GDSF(I) =~'I'~/ dx ELX(I) =xi
the number of nodes in the element
s, n
X
=
L x~ljJ't
[= ~XA +1h e (1 + s)]
(7.34)
/=1
the coefficients Kij in (7.33) take the form [see (7,25)]
(7.35a) NGP
=
L
Fij(s/)JWi
(7.35b)
/=1
where F't; denotes the expression in the square brackets in (7.35a), .:J is the Jacobian, and (SI, WI) are the Gauss points and weights. Examination of (7 .35b) shows that there are three free indices: i, i, and 1. We take the Gauss-point loop on I as the outermost one.' Inside this loop, we evaluate F'ft at the Gauss point for each i and j, multiply with the Jacobian J = !he and the weights Wi, and sum:
s/
ELK(i, j) = ELK(i, j) + Fij(sl)JWi
(7.36)
To accomplish this, we must initialize all arrays that are being evaluated using the Gauss quadrature: DO 10 J DO 10 I 10 ELK(IrJ)
= =
=
1,NPE l,NPE 0.0
This initialization is made outside the do-loop on number of Gauss points. The computation of coefficients F'ft in (7 .35b) requires evaluation of a, c, 1jJ/, and d1jJJds at the Gauss point SI' Hence, inside the loop on I, we call subroutine SHP1D to evaluate 1jJ;, d1jJJdx = (d1JJJd;)/,1. We now have all
NUMERICAL INTEGRATION AND COMPUTER IMPLEMENTATION
265
quantities needed to compute Kij in (7.35b); DO 100 NI = l,NGP XI = GAUSPT(NI,NGP)
c c C
call subroutine SHPID to evaluate the interpolation functions (SF) and their global derivatives (GDSF) at the Gauss point XI
C
CALL SHPID(XI,NPE,SF,GDSF,GJ) CONST = GJ*GAUSWT(NI,NGP) C
x = 0.0 DO 20 I=l,NPE 20 X = X + SF(I)*ELX(I)
C
AX=AXO + AXl*X CX=CXO + CXl*X DO 30 J = I,NPE ELF(J) = ELF(J) + CONST*SF(J)*FX DO 30 I = 1,NPE 30 ELK(I,J)=ELK(I,J)+CONST* (AX*GDSF(I) *GDSF(J) +CX*SF(I) *SF (J))
In the same way, all other coefficients (e.g., Mij andfD can be evaluated. Recall that the element properties (i.e., Kij, Mij, and ff) are calculated by calling a suitable subroutine (COEFNT or TRSFRM) for the field problem being analyzed within a loop on number of elements. As soon as the element properties are available for a particular element, they are put into their proper locations (i.e., assembled) with the help of array NOD. The assembly is explained in the next section.
7.2.5
Assembly of Element Equations (Processor)
The assembly of element equations should be carried out as soon as they are computed, rather than waiting till element coefficients of all elements are computed. The latter requires storage of the element coefficients of each element. In the former case, we can perform the assembly in the same loop in which a subroutine is called to calculate element matrices. A feature of the finite element equations that enables us to save storage and computing time is the assembly of element matrices in upper-banded form. When element matrices are symmetric, as is the case in most problems of interest in this book, the resulting global (or assembled) matrix is also symmetric, with many zeros away from the main diagonal. Therefore, it is sufficient to store only the upper half-band of the assembled matrix. The half-bandwidth of a matrix is defined as follows. Let N; be the number of matrix elements between the diagonal element and the last nonzero element in the ith row, after which all elements in that row are zero; the half-bandwidth is the maximum of (N; + 1) X NDF, where NDF is the number of degrees of freedom per node:
b, = max [(N; + 1) X NDF] l~i";;;;n
266
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
where 11 is the number of rows in the matrix (or equations in the problem). General-purpose equation solvers are available for such banded systems of equations. The half-bandwidth NHBW of the assembled (i.e., global) finite element matrix can be determined in the finite element program itself. The local nature of the finite element interpolation functions (i.e., 1fJ'f are defined to be nonzero only over the element Qe) is responsible for the banded character of the assembled matrix. Recall from earlier discussions that if two global nodes do not belong to the same element then the corresponding entries in the global matrix are zeros: KlJ = 0 if global nodes 1 and J do not correspond to local nodes
of the same element "-
This property enables us to determine the half-bandwidth 'NHBW of the assembled matrix: (
NHBW =
max
{abs [NOD(N, 1) - NOD(N, J)]
+ 1} x NDF
(7.37a)
I ",N"'NEM I~I,J~NPE
where NEM = number of elements in the mesh NPE = number of nodes per element
(7.37b)
NDF = number of degrees of freedom per element Clearly, for one-dimensional problems with elements connected in series, the maximum difference between nodes of an element is equal to NPE - 1. Hence, NHBW= [(NPE-1) + 1] x NDF=NPExNDF
(7.38)
Of course, NHBW is always less than or equal to the total number of primary degrees of freedom, i.e., the number of equations, NEQ, in the finite element mesh of the problem. The logic for assembling the element matrices Kij into the upper-banded form of the global coefficients K lJ is that the assembly can be skipped whenever J < I and J > NHBW. The main diagonal, 1 = J, of the assembled square matrix (i.e., full storage form), becomes the first column of the assembled banded matrix (i.e., banded storage form), as shown in Fig. 7.8. The upper diagonals (parallel to the main diagonal) take the position of respective columns in the banded matrix. Thus, the banded matrix has dimension NEQ X NHBW, where NEQ denotes the total number of equations in the problem. . The element coefficients Kif and f? of a typical element Q" are to be assembled into the global coefficient matrix [K) and source vector {F}, respectively. If the ith node of the element is equal to the Ith global node, and the jth node of the element is equal to the Jth global node, we have KlJ = Kij,
Pi = Fi_
(for NDF = 1)
(7.39a)
NUMERICAL INTEGRATION AND COMPUTER IMPLEMENTATION
Upper-half-banded mode
Full storage mode ~ Half-bandwidth = NHBW X X
,X
"-
-,
x x x x
All blanks contain zeros
X X
'x X x ""'.
X X X
X X X X X X X
.
"'" All entries above x, x x '~this d.iagonal x x x x contain zeros
'x
, x xx'>.x, x "x, x x"-' "
X X X
x x x x X X X
X
X X
X
X
X
-,
X
X
X
x x x x
X
"x x x >. " "
Symmetric
267
X
X
X
X
X
X X X X
X
x,x X X, X X
X
X
X
X X X'~ X X·/ I // ( X .< J
~,
l:
.>, Main diagonal NEQ x NEQ
NEQ x NHBW
FIGURE 7.8 Finite element coefficient matrix storage in upper-half-banded form.
The values of I and J can be obtained with the help of array NOD: 1= NOD(n, i),
J = NOD(n, j)
(7.39b)
Recall that it is possible that the same I and J may correspond to a pair of i and j of some other element Q"'. In that case, K~'j will be added to existing coefficients KIf during the assembly. For NDF> 1, the logic still holds, with the change K(NR)(NC)
= K(i+p-l)(j+q~l)
= 1, 2, ' .. s NDF)
(7.40a)
NC = (J - 1) X NDF + q
(7.40b)
(p, q
where NR
= (I -
1)
X
NDF + p,
and I and J are related to i and j by (7 .39b). A Fortran listing of the subroutine ASSMBL can be found in FEM1DV2 in Appendix 1.
7.2.6 Imposition of Boundary Conditions (Processor) Imposition of boundary conditions on the primary and secondary global degrees of freedom can be carried out through a subroutine (BONDRY), which remains unchanged for 2-D or 3-D problems. There are three types of boundary conditions for any problem:
1. Essential boundary conditions, i.e., boundary conditions on primary variables (Dirichlet boundary conditions).
268
FINITE ELEMENT ANALYSIS OF ONE·DIMENSIONAL PROBLEMS
2. Natural boundary conditions, i.e., boundary conditions on secondary variables (Neumann boundary conditions). 3. Mixed boundary conditions (Newton boundary conditions). The procedure for implementing the boundary conditions on the primary variables involves modifying the assembled coefficient matrix (GLK) and right-hand column vector (GLF) by three operations: Step 1 Step 2
Step 3
moving the known products to the right-hand column of the matrix equation. replacing the columns and rows of GLK corresponding to the known primary variable by zeros, and setting the coefficient on the main diagonal to unity. "replacing the corresponding component of the right-hand column by the specified value of the variable.
Consider the following N algebraic equations in full matrix form: 13
K2ll1 K12 K K 22 [ K·3 1 K 32
K •• ']{Vl} K2J ... U2 K 33 ••• V3
·· . , .. . ~.
...
_
{Pi} IS. ~
.. .
where VJ and Fj are the global primary and secondary degrees of freedom, and KlJ are the assembled coefficients. Suppose that Us = is specified. Recall that when the primary degree of freedom at a node is known, the corresponding secondary degree of freedom is unknown, and vice versa. Set K ss = 1 and Fs = Os; further, set K SJ = K JS = 0 for 1= 1, 2, ... , N and 1=1= S. For S = 2, the modified equations are
o,
Ku
o
o
where
F;=F;-Ki2 02 (i=1,3,4,5, ... ,n;i=f=2) Thus, in general, if Us =
Kss = 1,
o, is known, we have
Fs = Us; F; = F; - KiSOS; KSi = KiS = 0 where i = 1, 2, ... , S -'1, S + 1, ... , n (i =1= S). This procedure is repeated for .every specified primary degree of freedom. It enables us to retain the original order of the matrix, and the specified boundary conditions on the primary degrees of freedom are printed as part of the solution. Of course, the logic should be implemented for a banded system of equations.
NUMERICAL INTEGRATION AND COMPlJfER IMPLEMENTATION
269
The specified secondary degrees of freedom (Qj) are implemented directly by adding their specified values to the computed values. Suppose that the point source corresponding to the Rth secondary degree of freedom is specified to be FR' Then
FR = fR+FR where fR is the contribution due to the distributed source f(x); fR is computed as a part of the element computations and assembled. Mixed-type boundary conditions are of the form du a dx + k(u - u) = 0 (u and k are known constants)
(7.41)
which contains both the primary variable u and the secondary variable a du/dx. Thus a dul dx at the node P is replaced by -kp(up - up): Qp = -kp( Up - Up)
This amounts to modifying Kpp by adding kp to its existing value, K pp oE-- K pp + k p
F;, oE-- F'p + k p Up All three types of boundary conditions are implemented in subroutine BONDRY for boundary, initial, and eigenvalue problems. The following are used in subroutine BONDRY (see Appendix 1): NSPV NSSV NNBC
VSPV VSSV VNBC
UREF ISPV
number of specified primary variables number of specified secondary variables number of Newton boundary conditions column of the specified values 0. of primary variables column of the specified values FR of secondary variables column of the specified values k p column of the specified values Op array of the global node and degree of freedom at the node that is specified [ISPV(I, 1) = global node of the lth boundary condition, ISPV(I, 2) = degree of freedom specified at the global node, ISPV(I, 1)]
(7.42)
Similar definitions are used for ISSV and INBC arrays.
7.2.7 Solution of Equations and Postprocessing Subroutine SOLVE is used to solve a banded system of equations, and the solution is returned in array GLF. The program performs the Gaussian elimination and back-substitution to compute the solution. For a discussion of the Gaussian elimination used to solve a set of linear algebraic equations, the
270
FINITE ELEMENT ANALYSIS OF ONE·DlMENSIONAL PROBLEMS
reader is referred to the book by Carnhan, Luther, and Wilkes (1969). On most computing systems, a variety of equation solvers are available, and one can use any of the programs that suits the needs. See Appendix 1 for a listing of subroutine SOLVER. Postprocessing involves computation of the solution and its gradient at preselected points of the domain. Subroutine PSTPRC is used to evaluate the solution and its derivatives in any element: n
ue(x) = 2: uJ1JJj(x),
I t uj (d1JJj) I dx
( due) = dx
j=1
x
1=1
(7.43a)
x
for the Lagrange elements and
e
dmwm = ~ " uj (d"'tP~) ~d d m l \ (m = 1, 2,3) (7.....43b) 1=1 x 1=1 X x / for the Hermite cubic elements. The nodal values uJ of the element Qe are ( deduced from the global nodal values VI as follows: n we(x) = 2: ujtPj(x),
uJ= VI>
1= NOD(e, j),
For NDF> 1, I is given by I uj+p
when NDF = 1
= [NOD(e, j) -1] X NDF and
= V/+p (p = 1, 2, ... , NDF)
The values computed using the derivatives of the solution are often inaccurate because the derivatives of the approximate solution become increasingly inaccurate with increasing order of differentiation. For example, the shear force computed in the Euler-Bernoulli beam theory,
d (d
2
W)
V = dx b dx2 =
2tPe) d ( d b dxi
j~ uJ dx n
(7.44)
will be in considerable error compared with the true value of V. The accuracy increases, rather slowly, with mesh refinement and higher-order elements. When accurate values of the secondary variables are desired, it is recommended that they be computed from the element equations: n
Qi =
L KijuJ - fi
(i = 1,2, ... , n)
(7.45)
j=1
However, this requires recomputation or saving of element coefficients Kij and
/1. 7.3 APPLICATIONS OF THE COMPUTER PROGRAM FEMIDV2
7.3,.1 General Comments The computer program FEM1DV2, which embodies the ideas presented in the previous section, is intended to illustrate the use of the finite element models developed in Chapters 3-6 to a variety of one-dimensional field problems, some of them not discussed in this book. FEM1DV2 is a modified version of
NUMERICAL INTEGRATION AND COMPUTER IMPLEMENTATION
271
FEMID from the first edition of this book. It was developed as a learning computational tool for students of the course. In the interest of simplicity and ease of understanding, only the model equations discussed in this book and their immediate extensions are included in the program (see Appendix 1). Table 7.3 contains a summary of the definitions of coefficients of various model problems and their corresponding program variables. The table can be used as a ready reference to select proper values of AXO, AXl, and so on for different problems.
7.3.2 Illustrative Examples Here we revisit some of the example problems considered earlier to illustrate the use of FEMIDV2 in their solution. Only certain key observations concerning the input data are made, but complete listings of input files for each problem are given. In the interest of brevity, the output files for most problems are not included. Table 7.4 contains a description of the input variables to program FEMlDV2. Example 7.1 Steady heat transfer in a fin. The problem is governed by
dze --z+ce.=o for O<x
(~:) IX~L = 0
(Set 1)
+ f!. e) I (de dx k
-0 (Set 2)
I=L
where
e is the nondimensional temperature, and L, L = 0.25 m,
P
C
= 256 m",
= 64 W m- z °C- I ,
c,
eo, p,
and k are
60 = 100°C,
k = 50W m" °C- 1
(7.46)
Thus the problem is governed by the model equation (3.1). Hence, MODEL = 1, NITPE = 0, and ITEM = 0 (for a steady-state solution). Since a = ao = 1.0 and c = Co= P{3/k = 256 are the same for all elements, we set ICONT = 1, AXO = 1.0, and CXO = 256.0. All other coefficients are zero [b = 0 and f (= q) = OJ for this problem. For a uniform mesh of four linear elements (NEM = 4, IELEM = 1), the increments DX(I) are [DX(I) is always the coordinate of node 1]: {DX} = {O.O, 0.0625, 0.0625, 0.0625, 0.0625} (because !L = 0.25/4 = 0.0625).. Set 1 boundary conditions are U1 = 0 and Q; = O. Since the natural boundary condition (Q; = 0) is homogeneous, there is no need to add a zero to the corresponding entry of the source column (1;; + Q~-di;). There are no mixed (i.e., convection) boundary conditions. Hence, NSPV = 1, NSSV = 0, and NNBC = O. The specified boundary condition on the primary variable is at node 1 and degree of freedom 1: ISPV(l, 1) = 1 and ISPV(I, 2) = 1. The specified value is VSPV(I) = 100.0.
~
N
."
Z
~
t'!l
r-
t'!l ,. m
~
)-
z
)-
;:;
TABLE 7.3
'" iii
Meaning of the program variables AXO, AXl, ... , for various field problems
Subscripts 0, 1, and 2 on variables denote the constant, linear, and quadratic coefficients of the variables [e.g., /0, 11' and h denote the coefficients in I(x) = /0 + Ax + /2 X 2] Field problem
1. Plane wall 2. Heat exchanger fin 3. Radially symmetric heat transfer 4. Viscous flow through channels S. Viscous flow through pipes 6. Unidirectional seepage 7. Radially symmetric seepage (ground water flow) 8. Axial deformation of a bar 9. Radially symmetric deformation of a disk (plane stress)
MODEL 1 1
NTYPE 0 0
ITEMt 1 1
AXO
AXl
ko
kl
(kA)o
(kA)1
BXO BXl 0.0 0.0
0.0 0.0
exo ext 0.0
0.0
Co
c1
kl
0.0
Ilo
III
0.0
0.0
0.0
0.0
1
0.0
III
0.0
0.0
0.0
1
Ilo
III
0.0
0.0
0.0
1
1
0
1
0
1
1
0
1
0
0.0
0.0
0.0
FXO FXl
10 10
ft ft
FX2
12 h
eros
cru
Po Po
?:t'!l
0 z)-
PI
"":
0.0
10
t.
12
Po
PI
0.0
0.0
ft
12
0.0
PI
0.0
10
ft
A
Po
PI
"
ttl
,;;,
PI PI
12
0.0
0
:z:
:z: co
11
0.0
0
."
r-
0;
f;;
1
0
1
0.0
I-tl
0.0
0.0
0.0
0.0
0.0
ft
12
0.0
PI
1
0
2
(AE)o
(AE)I
0.0
0.0
Co
CIt'
10
ft
12
(pA)o
(pA)1
"1
1
2
EI
Ez
v 12
H
Co
cl
10
II
h
(pA)o
(pA)1
'"
10. Radially symmetric deformation of a cylinder (plane strain) 11. Euler-Bernoulli beam theory 12. Euler-Bernoulli theory for circular plates 13. Timoshenko beam theory (RIE) 14. Timoshenko beam theory (CIE) . 15. Timoshenko theory of circular plates (RIE) 16. Timoshenko theory of circular plates (CIE) 17. Truss 18. The Euler-Bernoulli frame element 19. The Timoshenko frame element
1
2
2
E1
E2
'1'12
Co
C1
10
It
12
(pA)o
(pA)1
3
0
2
0.0
0.0
(£/)0 (EI)1 Co
C1
fo
ft
12
pA
pI
3
1.
2
£1
E2
'1'12
H
C1
to
It
f2
pA
pI
2
0
2
(GAK)o
(GAK)]
(El)o (EI)l Co
c]
to
It
h.
pA
pI
2
2
2
(GAK)o
(GAK)1
(£/)0 (£/)1 Co
ct
fo
It
h.
pA
pI
2
1
2
E1
£2
V 12
H
Co
C1
to
It
G13
pA
pI
2
2 0
E]
E2
V)2
H
Co
C1
ft
Cn
pA
pI
4
3 0
4
1
0
4
2
0
H
Co
fo
For field problems 17-19, these parameters are not read; instead, E = SE, A =0 SA, L = SL, and so on are read for each member of the structure: SE = modulus E, SA = cross-sectional area A, SI = moment of inertia I, SL = length L of the member, eN = cos c¥, SN= sin c¥, etc. (see Table 7.4)
t For time-dependent problems only;whensteady-state solutions are required,set ITEM = O. :t For transient analysis only;no transient analysis optionis included for trussand frame problems.
z ~ tr1
'"~ r-
~
~ ~
;l>
z
'='
8 ""
,~. ~ ttl
"" iii
~
N
t;J
274
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
TABLE 7.4
Description of the input variables to the program FEMIDV2t
*
Data Card 1: TITLE - Title of the problem being solved (80 characters)
*
Data Card 2: MODEL - Model equation being solved (see below) NTYPE - Type of problem solved (see below) MODEL=l, MODEL=l, MODEL=l, MODEL=2, MODEL=2, MOOEL=2, MODEL=2, MODEL=3, MODEL=3, MODEL=4, MODEL=4, MODEL=4,
NTVPE=O: NTYPE=l: NTYPE>l: NTYPE=O: NTYPE=l: IlTYPE=2: IlTYPE>2: NTYPE=O: NTYPE>O: NTYPE=O: IlTYPE=l: NTYPE=2:
A A A A A A A A A A A A
problem of MODEL EQUATION 1 circular DISK (PLANE STRESS) circular DISK (PLANE STRAIN) Timoshenko BEAM (RIEl) problem Timoshenko PLATE (RIE) problem Timoshenko BEAM (CIE#/) problem Timoshenko PLATE (CIE) problem Euler-Bernoulli BEAM problem Euler-Bernoulli Circular plate plane TRUSS problem Euler-Bernoulli 'FRAME problem Timoshenko (CIE) FRAME problem
I - Reduced Integration Element (RIE) II - Consistent Interpolation Element (CIE)
ITEM - Indicator for transient analysis: ITEM=O, ITEM=l, ITEM=2, ITEM=3,
*
Steady-state solution Transient analysis of PARABOLIC equations Transient analysis of HYPERBOLIC equations Eigenvalue analysis
Data Card 3: IELEM - Type of finite element: IELEM=O, Hermite cubic finite element IELEM=l, Linear Lagrange finite element IELEH=2, Quadratic Lagrange finite element IlEM
*
- Number of elements in the mesh
Data Card 4: rCOIlT - Indicator for continuity of data for the problem: ICONT=l, Data (AX,BX,CX,FX and mesh) is continuous ICONT=Q, Data is element dependent NPRNT - Indicator for printing of element/global matrices: NPRNT=O, Not print element or global matrices but postprocess the solution and print NPRNT=l, Print Element 1 coefficient matrices only but postprocess the solution and print
t SKIP means that you omit the input data. It does not mean that you leave a blank. In the "free format" used here, variables of each data card are read from the same line; if the values are not found on the same line, the computer will look for them on the next line(s). Each data card should start with a new line. Note that the variable names included in the data sets of Tables 7.5~7.14 are only for the convenience of the reader-s-they are nOI read by the computer.
NUMERICAL INTEGRATION AND COMPUTER IMPLEMENTATION
275
TABLE 7.4 (Continued)
Print Element 1 and global matrices but NOT postprocess the solution NPRNT>2, Not print element or global matrices and 'NOT postprocess the solution
NPRNT~2,
SKIP Cards 5 through 15 for TRUSS/FRAME problems (MODEL ~ 4), and read Cards 5 through 15 only if MODEL.NE.4. SKIP Cards 5 through 9 if data is discontinuous (ICONT ~ 0)
*
Data Card 5: DX(I) - Array of element lengths. DX(l) denotes the global coordinate of Node 1 of the mesh; DX(I) (I~2,NEMl) denotes the length of the (I-l)st element. Here NEMl~NEM+l, and NEM~number of elements in the mesh. Cards 6 through 9 define the coefficients in the model equations. All coefficients are expressed in terms of GLOBAL coordinate x. See Table 7.3 for the meaning of the coefficients, especially for deformation of circular plates and Timoshenko elements. __
*
Data Card 6: AXO AXl
*
Data Card 7: BXO BXl
*
- Constant term of the coefficient AX - Linear term of the coefficient AX
-
Constant term of the coefficient BX - Linear term of the coefficient BX
Data Card 8: CXO CXl
- Constant term of the coefficient ex - Linear term of the coefficient CX
SKIP Card 9 for eigenvalue problems (Le. ITEM=3)
*
Data Card 9: FXO FXl FX2
- Constant term of the coefficient FX - Linear term of the coefficient FX - Quadratic term of the coefficient FX
SKIP Cards 10 through 15 if data is continuous (ICONT.ME.O). Cards 10 through 15 are read for each element (i.e., NEM times). All coefficients are expressed in terms of the GLOBAL coord _
*
Data Card 10: {GLX} - Global x-coordinates of the FIRST and LAST nodes of the element
*
Data Card 11: {NOD} - Connectivity of the element: NOD(N,I}=Global node number corresponding to the I-th node of 'Element N (I=l,NPE) NPE.denotes the Number of nodes Per Element
*
Data Card 12: {DCAX}- Constant and linear terms of the coefficient AX
*
Data card 13: {DCBX}- Constant and linear terms of the coefficient BX
276
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
TABLE 7.4 (Continued)
*
Data Card 14: {DCCX}- Constant and linear terms of the coefficient CX
*
Data Card 15: {DCFX}- constant, linear and quadratic terms of FX READ Cards 16 through 21 for TRUSS/FRAME problems (MODEL SKIP Cards 16 through 21 if MODEL.NE.4
4).
* Data Card 16: NNM
- Number of nodes in the finite element mesh
SKIP Cards 17 through 19 for TRUSS problems (NTYPE = 0). Cards 19 through 19 are read for each element, i.e., NEM times
* Data Card 17: PR SE SL SA 81 CS SN
-
/
Poisson's ratio of the material# Young's modulus of the material Length of the element Cross-ectional area of the element Moment of inertia of the element cosine of the angle of orientation of the element Sine of the angle of orientation of the element Angle is measured counter-clack-wise from x axis
# PR is not used for the Euler -Bernoulli element
*
Data Card 18: HF VF PF XB
*
-
Intensity of the horizontal distributed force Intensity of the transversely distributed force Point load on the element Oistance from node I, along the length of the element, to the point of load application, PF CMT - cosine of the angle of orientation of the load PF SNT - sine of the angle of orientation of the load PF Angle is measured counter-clack-wise from the element x axis Data Card 19: {NOD} - connectivity of the element: NOD(N,I) Global node number corresponding to the I-th node of Element N (I=1,NPE) READ Cards 20 and 21 only for TRUSS problems (NTYPE = 0). Cards 20 and 21 are read for each element;i.e. NEM times
*
Data Card 20: SE SL SA CS SN HF
*
-
Young's modulus of the material Length of the element Cross-ectional area of the element Cosine of the angle of orientation of the element Sine of the angle of orientation of the element Angle is measured counter-clack-wise from x axis - Intensity of the horizontal distributed force
Data Card 21: {NOD} - connectivity of the element: NOD(N,I) = Global node number corresponding to the 1th node of Element N (I=l,NPE)
NUMERICAL INTEGRATION AND COMPUTER IMPLEMENTATION
277
TABLE 7.4 (Continued)
* Data Card 22: NSPV
- Number of specified PRIMARY degrees of freedom
SKIP Card 23 if no primary variables is specified (NSPV=O). Repeat Card 23 NSPV times _ _~ ~ _ * Data Card 23:
(I = 1 to NSPV)
ISPV(I,l) - Node number at which the PV is specified ISPV(I,2) - specified local primary DOF at the node VSPV(I) - specified value of the primary variable (PV) (will not read for eigenvalue problems) SKIP. Card 24 for eigenvalue problems (i.e. when ITEM=3)
*
Data Card 24: NSSV
- Number of specified (nonzero) SECONDARY variables
SKIP Card 25 if no secondary variable is specified (NSSV=O). Repeat Card 25 NSSV times _ * Data Card 25:
(I = 1 to NSSV)
ISSV(I,l) - Node number at which the SV is specified ISSV(I,2) - specified local secondary DOF at the node VSSV(I) - specified value of the secondary variable (PV)
*
Data Card 26: NNBC
- Number of the Newton (mixed) boundary conditions
SKIP Card 27 if no mixed boundary condition is specified (NNBC=O). The mixed boundary condition is assumed to be of the form: SV+VNBC *(PV-UREF) = O. Repeat Card 28 NNBC times
*
Data Card 27: INBC(I,l) INBC(I,2) VNBC(I) UREF(I)
(I = 1 to NNBC) -
Node number at which the mixed B.C. is specified Local DOF of the PV and SV at the node Value of the coefficient of the PV in the B.C. Reference value of the PV
SKIP Card 28 if ITEM=O (read -value problems
*
only for time-dependent and eigen-
_
Data Card 28: CTO - Constant part of -CT = CTO -+ CTl*X CTI - Linear part of CT = CTO + -CTl*X SKIP remaining cards if steady-state or eigenvalue analysis is to be performed (ITEM=O or ITEM=3)
* Data Card 29: DT - Time increment (uniform) ALFA - Parameter in the time-approximation scheme BETA - Par~meter in the time approximation scheme
*
Data Card 30: INCOND- Indicator INCOND=O, 1NCOND>O, NTIME - Number of INTVL - Time step
for initial conditions: Homogeneous (zero) initial conditions Nonhomogeneous initial conditions time steps for Which solution is sought intervals at which solution is to printed
278
ANITE ELEMENT ANALYSIS OF ONE·DIMENSIONAL PROBLEMS
TABLE 7.4 (Continued) SKIP Cards 31 and 32 if initial conditions are zero (INCOND=O) ___
*
Data Card 31: {GUO} - Array of initial values of the primary variables SKIP Card 32 for parabolic equations (ITEM=l)
*
Data Card
32~
{GU1} - Array of initial values of the first time-derivatives of the primary variables
For Set 2 boundary conditions, we have one essential boundary condition and one mixed boundary condition: ;' "VI = 0,
Qi+
t
(Us -
V~) = 0
Hence, NSPV = 1, NSSV = 0, and NNBC = 1, and the values in the mixed boundary conditions are input as
VNBC(l) = fJ/k
= 1.28,
UREF(1) = V~= 0.0,
INBC(l, 1) = 5,
INBC(I, 2)
= 1.
The output file for Set 1 boundary conditions is presented in Table 7.5(a). The input files are echoed in the output. The input file for Set 2 boundary conditions is given in Table 7.5(b). Example 7.2 (Example 3.2) Radially symmetric heat transfer in a solid cylinder. The governing equation of the problem is given by [see (3.78)] -
~ (21I'kr ~~ =
2:rqo for O
(7.47) (7.48)
with k = 20 W m- I °C-\ qo = 2 X 108 W m- 3 , To = lOO°C, arid R; = 0.01 m (see Table 3.3). We have MODEL = 1, NTYPE = 0, and ITEM = 0 (for a steady-state solution), and the data is continuous (ICONT = 1) in the domain for a mesh of two quadratic elements (IELEM = 2, NEM = 2). The data is a=2nkr~ao=O, C
=
O~co=
0.0,
CI
=0.0;
al=2nk;
b=O~bo=O.O,
1 =2nqor~/o=0.0,
. CXO=O.O,
AXI = 125.6637,
CX1=O.O,
FXO=O.O,
BXO = 0.0,
12 = 0.0
It =2nqo,
Thus, we have [for values k = 20W m " °C-\ qo=2 x WsW m-
AXO=0.0
b 1=O.O 3
BX1
FX1 = 12.5664E8,
= 0.0 FX2 = 0.0
The array {DX} and boundary information are given by {DX} = {O.O, 0.0025,0.0025,0.0025, 0.0025}
NSPV=l,
ISPV(l,l) =5,
ISPV(1,2) = 1,
VSPV(1) =100
j --'
Nill.IERICAL INTEGRATION AND COMPUTER IMPLEMENTATION
279
TABLE 7.5
OUtput from FEMlDV2 for the problem in Example 7.1 (a) Set 1 boundary conditions (edited output)
***
ECHO OF THE INPUT DATA STARTS
***
Example 7.1: steady heat transfer in a fin (Set 1 boundary conditions) MODEL, NTYPE, ITEM 1 0 o IELEM, NEM 1 4 ICONT, NPRNT 1 1 0,0 0.0625 0.0625 0.0625 0.0625 DX(I) 1.0 0.0 AXO, AXI BXO, BX1 0.0 0,0 256.0 0.0 CXO, CXl 0.0 0.0 0.0 FXO,FX1,FX2 NSPV 1 ISPV(1,J) [J=1,2}, VSPV(1) 1 1 100.0 NSSV o o NNBC **** ECHO OF THE INPUT DATA ENDS ****
OUTPUT FROM PROGRA}!
FEMIDV2
BY
J. N. REDDY
Example 7.1: Steady heat transfer in a fin (Set 1 boundary conditions)
***
ANALYSIS OF MODEL I, AND TYPE 0 PROBLEM
***
Element type (0, Hermite,>O, Lagrange) .. = No. of deg. of freedom per node, NDF = ND. Df elements in the mesh, NEM = No. of total DOF in the model, NEQ ..•... = No. of specified primary DOF, NSPV••...• = lIo. of specified secondary DOF, NSSV.... = ND. of specified Newton B. C.: NNBC .••.. =
1 1 4 5 1
0
0
Boundary information on primary variables: 1
1
0.10000£+03
Global coordinates Df the nodes, {GLX}: 0.00000£+00
0.62500E-Ol
0.12500E+00
0.18750E+00
0.25000E+00
Coefficients of the differential equation: AXO BXO CXO FXO
0.1000E+01 O.OOOOE+OO 0.2560E+03 O.OOOOE+OO
AX1 BX1 eXl FXl
O.OOOOE+OO O.OOOOE+OO O.OOOOE+OO O.OOOOE+OO
FX2
O.OOOOE+OO
SOLUTION (values of PVs) at the NODES; 0.10000E+03
0.35158E+02
0.12504E+02
0.48560E+01
0.30350E+Ol
280
RNITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
TABLE 7.5 (Continued)
x
P. variable
S. variable
0.00000£+00 0.78125£-02 0.15625£-01 0.23438£-01 0.31250£-01 0.39063£-01 0.46875£-01 0.54688£-01 0.62500£-01 0.62500£-01 0.70313£-01 0.78125E-01 0.85938E-01 0.93750£-01 0.10156£+00 0.10938£+00 0.11719£+00 0.12500£+00 0.12500£+00 0.13281£+00 0.14063E+00 0.14844£+00 0.15625E+00 0.16406£+00 0.17188£+00 0.17969£+00 0.18750£+00 0.18750E+00 0.19531£+00 0.20313£+00 0.21094£+00 0.21875E+00 0.22656£+00 0.23438E+00 0.24219£+00 0.25000£+00
0.10000£+03 0.91895£+02 0.83789£+02 0.75684£+02 0.67579£+02 0.59473£+02 0.51368£+02 0.43263£+02 0.35158£+02 0.35158£+02 0.32326£+02 0.29494£+02 0.26663£+02 0,23831£+02 0.20999£+02 0.18168£+02 0.15336£+02 0.12504£+02 0.12504£+02 0.11548£+02 0.10592£+02 0.96362£+01 0.86801£+01 0.77241£+01 0.67681£+01 0.58120£+01 0.48560£+01 0.48560£+01 0.46284£+01 0.44008£+01 0.41731£+01 0.39455£+01 0.37179E+01 0.34903£+01 0.32626£+01 0.30350£+01
-0.10375£+04 -0.10375£+04 -0.10375£+04 -0.10375£+04 -0.10375£+04 -0.10375£+04 -0.10375£+04 -0.10375£+04 -0.10375£+04 -0.36245£+03 -0.36245£+03 -0.36245£+03 -0.36245£+03 -0.36245£+03 -0.36245E+03 -0.36245£+03 -0.36245£+03 -0.36245£+03 -0.12237£+03 -0.12237£+03 -0.12237E+03 -0.12237£+03 -0.12237£+03 -0.12237£+03 -0.12237£+03 -0.12237E+03 -0.12237£+03 -0.29136£+02 -0.29136£+02 -0.29136£+02 -0.29136£+02 -0.29136£+02 -0.29136£+02 -0.29136£+02 -0.29136£+02 -0.29136£+02
(b) Set 2 boundary conditions (input data only)
Example 7.1: Steady heat transfer in a fin (Set 2 boundary conditions) MODEL, NTYPE, ITEM 1 0 o IELEM, NEM 1 4 1
1
0.0 1.0
0.0 256.0 0.0
0.0625 0.0625 0.0 0.0 0.0 0.0 0.0
o
1
ICONT, NPRNT DX(I) AXO, AX1 BXO, BX1 CXO, CX1 FXO, FX1, FX2
ISPV(l,J), VSPV(1}
100.0
NSSV
1
5
0.0625
NSPV
1
1
0.0625
1
1.28
0.0
NNBC INBC(1,J), VNBC(l}, UR£F(1)
NUMERICAL INTEGRATION AND COMPlITER IMPLEMENTATION
281
TABLE 7.6
Input file for the problem in Example 7.2 Example 7.2: Radially sYmmetric heat transfer in a solid cylinder 1
a a
2
2
1
1
0.0 0.0 0.0 0.0 0.0
MODEL, NTYPE, ITEM IELEM, NEM
ICONT, NPRNT DX(I)
0.005 0.005 125.6637 0.0 0.0 12.56637EB 0.0
AXO, AXl BXO, BXl CXO, CXl FXO,FXl,FX2 NSPV ISPV(l,J), VSPV(l) NSSV NNBC
1
5
1
100.0
°o
The input file of the problem is presented in Table 7.6 (ct. Table 3.3). Note that the finite element solution obtained with two quadratic elements is more accurate (essentially the same as the exact) than the solution obtained with four linear elements.
The fluid mechanics problem in Example 3.3 is very simple, and the reader should be able to generate the input file very easily to solve it with FEMIDV2. Example 7.3 Deformation of a rotating disk. For this case, we have MODEL = 1, NTYPE = 1, and ITEM = O. For a mesh of two quadratic elements (i.e., IEL = 2 and NEM = 2), we use ICONT = 1 and {DX} = {O.O, 0.25R, O.25R, 0.25R, O.25R} where R is the radius of the disk. For a uniform and homogeneous disk of thickness H and made of isotropic material, we take the moduli E 1 = E 2 = E. Since we are seeking results in nondimensional form, we take
R=1.0,
£=1.0,
v=0.3,
H=1.0
Thus, we have AXO (= E 1)
= 1.0,
AXI (=£2)
BXO(=
= 0.3,
BX1 (=H)= 1.0
V 12 )
CXO = 0.0,
= 1.0
CX1 = 0.0
The body force is t = pw 2 r "'" /0 + /Ir + /20. Hence, taking poi = 1.0, FXO = 0.0,
FXl = 1.0,
FX2 = 0.0
The boundary conditions are u(O) = 0 (by symmetry) and ro, = 0 at r = R (stress-free condition). Since the secondary variable is homogeneous, there is no need to impose it-only the boundary condition on the primary variable is to be imposed. We have NSPV = 1,
NSSV = 0,
ISPV(I, 1) = 1,
NNBC = 0
ISPV(1,2) = 1,
VSPV(I) = 0.0
The input file for this problem is presented in Table 7.7.
282
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
TABLE 7.7
Input file for the problem in Example 7.3 Example 7.3: Deformation of a rotating disk 1
1
2
2
1
1 1
a
HODEL, NTYPE, ITEH IELEM, IIEM ICOIIT, NPRNT DX(I) AXO, AXl BXO, BXl cxo, eXl FXO, FXl, FX2 IISPV ISPV{l,J) , VSPV(l} NSSV
1
0.0 1.0 0.3 0,0 0.0
0.50
0.50
1.0 0.0 1.0
0.0
1
0.0
La
°0
NNBe "-
Example 7.4 (Example 4.2) Clamped and spring-supported beam "in Fig. 4.7. We solve the problem using the Euler-Bernoulli beam element (MODEL = 3, NTYPE = 0, IELEM=O) and the Timoshenko beam element (MODEL=2, NTYPE=O or 2, IELEM"" 1,2, or 3). Since the loading is discontinuous, we set ICONT = 0. A minimum of two elements are required to model the problem (i.e., NEM = 2). If we take EI = 1.0E6 (Le., 106 ff lb) then GAK=
E
2(1 + v)
BH~=...E-.~2 6 1+ YH
For L/H = 10, we have H = 1.0 because L = 10 ft. For the choice GAK
y
= 0,25, we have
= 4EI/H = 4 x 10
61b
2
Thus, we use AXO = 0,0, AXI = 0.0, BXO (= El) = 1.0E6 cxu- 0.0, eXI = 0,0 BX1 = 0.0, for the Euler-Bernoulli beam and AXO (= GAK) =4.0E6, BXl=O.O,
AXl=O,O,
cxu-.o.o,
BXO (= E1) = 1.0E6 eXl=O.O
for the Timoshenko beam. The distributed transverse load is zero in element 1, and it is
100
f(x)= ---;sex -4) in element 2. Hence, FXO = 0.0, FXI = 0.0, FX2 = 0.0 in element 1 FXO = 66.666, FXl = -16.666, FX2 = 0.0 in element 2
-The global coordinates of nodes and the connectivity matrix entries for each element are obvious from the geometry. For the Euler-Bernoulli beam element the number of nodes is always equal to 2 (NPE = 2), whereas for the Timoshenko beam element, the number of nodes depend on the degree of interpolation (or element type) selected: NPE = IELEM + 1.
J
NUMERICAL INTEGRATION AND COMPlJIER IMPLEMENTATION
283
The boundary conditions for this problem are
) j =0 (-dW dx ..~II
W(O) =0,
'
Therefore, we have (NSSV = 0) NSPV = 2,
ISPV(l, 1) = 1,
ISPV(2, 1) = 1,
INBC(l, 1) = 3,
NNBC = 1,
ISPV(I, 2) = 1,
VNBC(l) (=k)=1.0E6
VSPV(l) = 0.0
VSPV(2) = 0.0
ISPV(2,2) = 2,
INBC(I, 2) = 1
(forkIEI=I) and 0.0 (fork=O.O)
UREF(l) = 0.0 Tables.7.8 and 7.9 give the input files for the Euler-Bernoulli and Timoshenko elements. Note that the Euler-Bernoulli element is a Hermite cubic element, whereas the Timoshenko element is only a Lagrange linear element. Example 7.5 (Example 4.4) Analysis of a plane frame. Here we consider the two-member frame structure shown in Fig. 4.13(a). We shall analyze it using the Euler-Bernoulli frame element (MODEL = 4, NTYPE = 1) and the Timoshenko frame element (MODEL = 4, NTYPE = 2). The former gives an exact solution for all frame structures with constant cross-section members. The Timoshenko frame element, on the other hand, does not yield accurate results unless several elements per member of the structure are used. The input files of the problem are presented in Tables 7.10 and 7.11. The eight-element mesh of Timoshenko elements gives results comparable to the twoelement mesh with the Euler-Bernoulli frame elements (results are not included here).
The next example deals with the use of FEM1DV2 for time-dependent problems (i.e., ITEM = lor 2). TABLE 7.8
Input file for the problem in Example 7.4 Example 7.4: Clamped and spring-supported beam (E-B element; 3
0
a
2 1
a
a
0.0
4.0
1
0.0
1. OE6
0.0 0.0 4.0
o. a
0.0
1.0E6 0.0
0.0 0.0
66.666667
o 1 3
FXO,FXl,FX2
0.0
GLX(I)
NOD(2,J) AXO, AXl BXO t BXl
3
0.0
Data for Element 1
exo, eXI
0.0 0.0 10.0
2
2 1 1
NOD(I,J) AXO, AXI BXO, BXI
2
0.0
k~I.0E4)
MODEL, NTYPE, ITEM IELEM, NEM IeONT, NPRNT GLX(I)
Data for Element 2
exo t eX1
-16.666667
0.0
FXO,FXl,FX2
NSPV 1 2
ISPV(1,J), VSPV(l) tSPvf2,J), VSPV(2)
0.0 0.0
NSSV NNBC 1
1. OE04
0.0
.
(with transv. spring)
284
FlNITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
TABLE 7.9
Input file for the problem in Example 7.4 Example 7.4: 2 0 0 1 2
a
2
1 1 0 1 3
Clamped and spring-supported beam (TIM element; k=1.0E4) MODEL, NTYPE, ITEM IELEM, NEM 1 ICONT, NPRNT 0.0 4.0 GLX(I) 1 2 NOD(l,J) 4.0E6 0.0 Data for AXO, AX1 L OE6 0.0 Element 1 (L/H 10) BXO, BX1 0.0 0.0 CXO, eXl 0.0 0.0 0.0 FXO,FX1,FX2 4.0 10.0 GLX(1) 2 3 NOD(2,J) 4.0E6 0.0 AXO, AX1 Data for 1.0E6 0.0 Element 2 BXO, BX1 0.0 0.0 CXO, CX1 66.666667 -16.666667 0.0 FXO,FX1, FX2 NSPV 0.0 1 ISPV(l,J), VSPV(l) 0.0 2 ISPV(2,J), VSPV(2) NSSV NNBC (with tranv. spring) 1.0E4 0.0 1 INBC(l,J), VNBC(l), UREF(l)
Example 7.6 (Example 6.4) Transient heat conduction in a plane wall. Consider the transient heat conduction problem of Example 6.4 [see (6.56»): (7.49a)
u(O, t) = 0,
au at '
-(1 t) =0
(Set 1)
(7.49b)
TABLE 7.10
Input file for the problem in Example 7.5 Example 7.5: 410
a a
Analysis of a plane frame
2 1
(E-8 element) MODEL, NTYPE, ITEM IELEM, NEM ICONT, NPRNT NE~l
3
0.3 1.0E6 144.0 10.0 10.0 0.0 -0.0138888 0.0 0.0 0.0 1 2 0.3 1.0E6 180.0 10.0 10.0 0.0 -4.0 90.0 0.6 0.0 2 3 6 1 1 1 3
3 3 1 2
o
2 3
0.0 0.0 0.0 0.0 0.0 0.0
2
-2.0
1 2 3 1
0.0 0.0
1.0
0.8 0.8
0.6
PR, SE, SL, SA, SI,
es,
SN
HF, VF, PF, XB, CST, SNT NOD(l,J)
<-----------
Same as above for Element 2 NSPV
ISPV, VSPV
<-----------
NSSV ISSV, VSSV NNBC
J
NUMERICAL INTEGRATION AND COMPUTER IMPLEMEIITATION
285
TABLE 7.11
Input file for the problem in Example 7.5 Example 7.5: 4
2
a a
Analysis of a plane frame
a
(TIM element) MODEL, NT'iPE, ITEM IELEM, NEM ICONT, NPRNT
2 1
NNN
3
0.3 0.0 1
0.3 0.0 2 6 1
1.0E6 144. a 10.0 10.0 -0.0138888 0.0 0.0 0.0 180.0 -4.0
10.0 90.0
10.0 0.6
0.8 0.8
0.6
PR, SE, SL, SA, SI, CS, SN HF, VF, PF, XB, CST, SNT NOD(l,J) Same as above for Element 2
3
1
1 3
1
3 3
2 3
1 2
2
-2.0
o
1.0
2
1. OE6 0.0
0.0 0.0 0.0 0.0 0.0 0.0
1
0.0 0.0
2 3
<-----------
NSPV
ISPV, VSPV
<-----------
NSSV ISSV, VSSV
NNBe
u(O, t) = 0,
(au -+u ), at
/ (Set 2)
=0
(7.49c)
pI
u(x, 0)= 1 In Example 6.4, only Set 1 boundary conditions were considered. We have MODEL = 1, NTYPE=O, ITEM = 1, ICONT= 1, NSPV= 1, NSSV= 0, and NNBC = for Set 1 and NNBC = 1 for Set 2. The coefficients of the differential equations are (a = 1.0, b = 0.0, C = 0.0, C, = 1.0 and f = 0)
°
AXO= 1.0, CXO=O.O, FX2=O.O,
AX1=0.0, CX1=O.0, CTO= 1.0,
BXO = 0.0, FXO=O.O, CT1=0.0
BX1=O.0 FX1 =0.0
The boundary and initial conditions (since INCOND = 1) are input as ISPV(I, 1) = 1, ISPV(I,2) = 1, GUO(I) = {O.O, 1.0, 1.0, ...}
VSPV(I) = 0.0
From the discussions of Example 6.4, we use i1t = 0.01 (DT = 0.01) and print the solution for every time step (i.e., INTVL = 1). The input file of the problem for Set 1 boundary conditions is presented in Table 7.12.
Example 7.7 (Example 6.2) Natural vibrations of a cantilever beam. For this problem, the boundary conditions are given by
W(O) = 0,
(ddxW),.x-a = 0
for the Euler-Bernoulli beam theory
w(o) = 0,
W(O) = a
for the Timoshenko beam theory
The input data for all variables is the same as in the static analysis. In addition, we must input C,o and C'l' For the Timoshenko beam theory [see (6.13)], C/O denotes the inertia
286
FINITE ELEMENT ANALYSIS OF ONE·DIMENSIONAL PROBLEMS
TABLE 7.12
Input file for the problem in Example 7.6 Example 7.6: Transient heat conduction in a plane wall MODEL, NTYPE, ITEM 1 0 1 IELEN, NEM 1 2 ICONT, NPRNT 1 1 0.5 0.5 DX(I) 0.0 0.0 AXO, AXl 1.0 0.0 BXO, BXl 0.0 CXO, CXl 0.0 0.0 0.0 0.0 FXO,FXl,FX2 0.0 1 NSPV ISPV(I,J), VSPV(I) 0.0 1 1 NSSV 0 0 NNBe 1.0 0.0 CTO, CTl 0.05 0.5 0.0 DT, ALFA, BETA 2 INCaND, NTIME, INTVL 1 20 / 1.0 1.0 GUO (I) 0.0
pA, and
"-
r
denotes the rotatory inertia pl. The eigenvalue solver used in FEMIDV2 requires the matrix [B) in [A]{x} = A[B]{x} to be positive-definite. Hence, C,o and C,l should be nonzero, otherwise, the mass matrix coefficients associated with '¥ will be zero. The input files for the natural vibrations of the cantilever beam by the two types of elements are given in Tables 7.13 and 7.14. The reader can investigate the convergence characteristics of the elements in improving the accuracy of the fundamental frequency with the use of FEMIDV2. CIl
7.4 SUMMARY In this chapter three main items have been discussed: numerical integration of finite element coefficient matrices and vectors, logical units of a typical finite element program and their contents, and applications of the finite element program FEM1DV2. The numerical evaluation of the coefficients is required because of (a) variable coefficients of the differential equations modeled and (b) special evaluation of the coefficients, as was required for the Timoshenko TABLE 7.13
Input file for the problem in Example 7.7 Example 7.7: Natural vibrations of a cantilever beam (E-Bj with RI) MODEL, NT'lPE, ITEM 303 IELEN, NEM o 4 IeONT, NPRNT 1 1 0.25 0.25 DX(I) 0.25 0.25 0.0 AXO, AXI 0.0 0.0 BXO, BXl 0.0 1.0 CXO, eXl 0.0 0.0 NSPV 2 ISPV(l,J) 1 1 ISPV(2,J) 1 2 NNBC o CTO, CTl (LjH=lO) 1200.0 1.0
NUMERICAL INTEGRATION AND COMPlITER IMPLEMENTATION
287
TABLE 7.14
Input file for the problem in Example 7.7 Example 7.7: Natural vibrations of a cantilever beam (TIM element) 20) MODEL, NTYPE, ITEM IELEM, NEM 1 4 ICONT, NPRNT 1 1 0.25 0.25 0.25 0.0 0.25 DX(I) 4.0E2 0.0 AXO, AXl 0.0 1.0 BXO, BXl 0.0 0.0 CXO, eXl 2 NSPV ISPV(1,J) 1 1 1 2 ISPV(2,J) o NNBC 12.oE2 1. 0 CTO, CT1 (LjH=10)
beam element with equal interpolation. The Newton-Cotes and GaussLegendre integration rules have been discussed. The integration rules require the transformation of the integral expressions from the global coordinate system to a local coordinate system. This transformation requires interpolation of the global coordinate x. Depending on the relative degrees of interpolation of the geometry and the dependent variables, the formulations are classified as subparametric, isopararnetric, and superparametric. The three logical units-preprocessor, processor, and postprocessorhave been discussed. The contents of processor, where most finite element calculations are carried out, have been considered in detail. Fortran statements for numerical evaluation of integral expressions, assembly of element coefficients, and imposition of boundry conditions have been discussed. A description of the finite element computer program FEM1DV2 has been presented, and its application to problems of heat transfer and solid mechanics has been discussed.
PROBLEMS Section 7.1 In Problems 7.1-7.5, compute the matrix coefficients using (a) the Newton-Cotes integration formula and (b) the Gauss-Legendre quadrature. Use the appropriate number of integration points, and verify the results with those obtained by the exact integration.
7.1. G12 =
fB (1+X)1J!1!J!zdx XA
where 1J!1 are the linear (Lagrange) interpolation functions. A,lSwer: K 12 = -h- 1[1 + 1(xA + x B ) } , G IZ = ~h(1 +xA + !h). 7.2. Repeat Problem 7.1 for the quadratic interpolation functions.
288
FINITE ELEMENT ANALYSIS OF ONE-DIMENSIONAL PROBLEMS
7.3.
where 'l/J/ are the Hermite cubic interpolation functions. Answer: r = 2: K l l = 12/h 3 (exact), Gil = 0.398148h. 7.4. Repeat Problem 7.3 for the case in which the interpolation functions are the fifth-order Hermite polynomials of Problem 4.2l. Answer: K tl = l!fh 3 , Gl l = ~ilt (exact for five-point quadrature).
7.5.
"-
where 'l/Jl = sin Un;(~ + 3';2)]. Use three- and five-point Gauss quadrature to compute s.; Section 7.2 Computer exercises (use FEMlDV2)
7.6. Solve the problem in Example 3.1 (Set 2) using two, four, and six linear elements. Tabulate the results along with the exact solution. Use the following L=O.02m, k=20Wm- 1oC-t, go=105Wm- 2 , Tm=50°C, f3= data: 5(J()Wm- 1 oC- 1 • 7.7. Solve the problem in Example 3.1 (Set 2) using one, two, and three quadratic elements. Compare the finite element results for the temperature and heat flux with the exact solutions at the nodes. 7.8. Solve the heat transfer problem in Example 3.2 (Set 2), using four linear elements and two quadratic elements, and tabulate them with the exact solution at nodes (see Table 3.3). 7.9. Solve the problem in Example 3.4 using four quadratic elements, and compare the solution with that obtained using eight linear elements and the exact solution. 7.10. Solve the one-dimensional flow problem of Example 3.4 (Set 2), for dP/dx = - 24, using four linear elements and two quadratic elements. Compare the finite element results with the exact one. 7.11. Solve the Couette flow problem in Example 3.3 using (a) four linear elements and (b) two quadratic elements. Compare the finite element solution for the temperature with the exact solution. 7.12. Solve the problem of heat flow in a rod (Problem 3.19) using (a) four linear elements and (b) two quadratic elements, and compare the results with the analytical solution. 7.13. Solve Problem 3.26 using (a) four linear elements and (b) two quadratic elements, and compare the finite element solution with the exact solution at nodes. 7.14. Solve the problem of axisymmetric deformation of a rotating circular disk using (a) four linear elements and (b) two quadratic elements (see Example 7.3). Assume that the body force is given by f = pw 2 r. 7.15. Solve Problem 3.28.
NUMERICAL INTEGRATION AND COMPlITER IMPLEMENTATION
289
7.16. Solve Problem 3.30. 7.17. Solve the problem in Example 3.4 using (a) four linear and (b) two quadratic elements. Determine the stress at the fixed end. 7.18-7.29. Solve the beam problems 4.1-4.12 using the minimum number of Hermite cubic elements. . 7.30. Analyze a clamped circular plate under a uniformly distributed transverse load using the Euler-Bernoulli plate element. Investigate the convergence using two, four, and six elements by comparing with the exact solution
qoa
4 [
(r)2]2
w(r) = 64D 1- ~
where D = EH3/12(1- v'), qo is the intensity of the distributed load, a is the radius of the plate, H is its thickness, and v is Poisson's ratio (v = 0.25). 7.31. Repeat Problem 7.30 with (a) two, four, and six linear and (b) one, two, and three quadratic Timoshenko plate elements (RIE) for a[H = 10 and 100. 7.32. Repeat Problem 7.30 with the Timoshenko plate element (eIE) for a/H = 10 and 100. 7.33. Consider an annular plate of outer radius a and and inner radius b, and thickness H. If the plate is simply supported at the outer edge and subjected to a uniformly distributed moment M o at the inner edge (see Fig. P7.33), analyze the problem using the Euler-Bernoulli plate element. Investigate the accuracy using two and four elements and comparing with the analytical solution (v = 0.25)
b 2Mo(a 2- r2) w(r) = 2(1 + v)D(a 2 _ b2) See Problem 7.30 for the definition of D. y
Radius a
Line load along the
inner edge
FIGURE P7.33
7.34. Repeat Problem 7.33 with (a) two and four linear and (b) one and two quadratic Timoshenko (RIE) elements for a/R = 10 and 100. 7.35. Consider the simply supported annular plate described in Problem 7.33. Suppose that the inner edge is loaded with a uniformly distributed shearing force Qo. Use meshes of two and four Euler-Bernoulli plate elements to analyze the problem. 7.36. Analyze Problem 7.35 with (a) two and four linear and (b) one and two quadratic Timoshenko (RIE) plate elements for af H = 10 and 100. 7.37. Repeat Problem 7.36 with the Timoshenko (eIE) plate element.
290
FINITE ELEMENT ANALYSIS OF ONE·D1MENSIONAL PROBLEMS
7.38. Consider a simply supported circular plate of radius a, loaded at the center with a load P. Analyze the problem with two, four, and six Euler-Bernoulli plate elements and compare with the analytical solution (v = 0.25)
P [ 3+V z z z (')] w(r ) = 8nD 2(1 + v) (a - r ) +, In ~ Note that QI = P/2n. 7.39. Analyze Problem 7.38 with four and eight linear Tirnoshenko (RIE) plate elements for a/H = 10 and 100. 7.40. Analyze the simply supported annular plate in Problem 7.33 when it is subjected to a uniformly distributed load of intensity qo. Use the Euler-Bernoulli plate element. 7.41. Analyze the annular plate in Problem 7 AD using two and four Timoshenko (fIE) plate elements. I' 7.42-7.49. Solve the truss and frame problems in Figs. P4.29-P4.36. 7.50. Consider the axial motion of an elastic bar, governed by the second-order equation
cJ2u
azu
EA-z=pA-z for O<x
and zero initial conditions. Using 50 linear elements and At = 0.002 s, determine the axial displacement and plot the displacement as a function of position along the bar for t = 0.8 s. 7.51. Consider the following nondimensionalized differential equation governing the plane wall transient [see Myers (1971), p. 101]:
cJ2T
st
ax
at
--+ z - = 0 for O<x<1
with boundary conditions T(O, t) = 1 and T(l, t) = 0, and initial condition T(x, 0) = O. Solve the problems using (a) four, six, and eight linear elements, and (b) two, three, and four quadratic elements. Compare the finite element solutions' with the exact solution.
Note. Program FEMIDV2 cannnot be used without modification to solve Problems 7.52-7.54. 7.52. -Consider a simply supported beam of length L subjected to a point load
pet) =
~ ~r
Posin nt for 0 t 0 r { for t;3 r
NUMERICAL INTEGRATION AND COMrtJ!CR IMPLEMENTATION
291
at a distance c from the left end of the beam (assumed to be at rest at t = 0). The transverse deflection w(x, t) is given by [see Harris and Crede (1961), pp. 8-53] w(x, t) =
i..!.
2POL 3 sin inc sin inx [ 1 (Sin 1rt _ 1; sin w n 4 EI 1=1 i 4 L L 1- Ti/4r 2 T 2-r 1
t)]
for 0,;;;t «: -r
(_!)] { 2Po£l ~..!. . inc . inx [('J;J-r) cos (nr/1;). n4EI6i4sm L sm L Ti/4-r2-1 sm o, t 21" for
t";31"
where
Use the data Po = 10001b, 1" = 20 X 1O~6 s, L = 30 in, E = 30 X 106lb in", p = 733 X 1O- 6 1b in>', 6t = 10- 6 s, and assume that the beam is of square crosssection 0.5 in by 0.5 in. Using five Euler-Bernoulli elements in the half-beam, obtain the finite element solution and compare with the series solution at midspan for the case c = !L. 7.53. Repeat Problem 7.52 for c = ~L and eight elements in the full span. 7.54. Repeat Problem 7.52 for P(t) = Po at midspan and eight elements in the full span. 7.55. Consider a cantilevered beam with a point load at the free end. Using the load and data of Problem 7.52, find the finite element solution for the transverse deflection using Euler-Bernoulli beam elements. 7.56. Repeat Problem 7.52 for a clamped beam with the load at the midspan. 7.57-7.61. Solve Problems 7.52-7.56 using Timoshenko beam elements. Use v = 0.3.
REFERENCES FOR ADDITIONAL READING Fluid mechanics Bird, R. B., W. E. Stewart, and E. N. Lightfoot; Transport Phenomena, John Wiley, New York, 1960. Duncan, W. J., A. S. Thorn, and A. D. Young: Mechanics of Fluids, 2d ed., Elsevier, New York, 1970. Eskinazi, S.: Principles of Fluid Mechanics, Allyn and Bacon, Boston, 1962. Harr, M. E.: Ground Water and Seepage, McGraw-Hili, NeVI York, 1962. Nadai, A.: Theory of Flow and Fracture of Solids, vol. II, McGraw-Hill, New York, 1963. Schlichting, H.: Boundary-Layer Theory (translated by J. Kestin), 7th ed., McGraw-Hili, New York, 1979. Shames, I. H.: Mechanics of Fluids, McGraw-Hili, New York, 1962. Vallentine, H. R.: Applied Hydrodynamics, Butterworths, London, 1959. Verrujit, A.: Theory of Groundwater FlolV, Gordon and Breach, New York, 1970.
Heat transfer Carslaw, H. S., and J. C. Jaeger: Conduction of Heat ill Solids, Clarendon Press, Oxford, 1959. Holeman, J. P.: Heal Transfer, 6th ed., McGraw-Hili, New York, 1986. Kreith, F.: Principles of Heat Transfer, 3rd ed., Harper & Row, New York, 1973. Myers, G. G.: Analytical Methods in Conduction Heat Transfer, McGraw-Hill, New York, 1972. OZisik, M. N.: Heat Transfer: A Basic Approach, McGraw-Hili, New York, 1985.
292
FINITE ELEMENT ANALYSIS OF ONE· DIMENSIONAL PROBLEMS
Plane elasticity Budynas, R. G.: Advanced Strength and Applied Stress Analysis, McGraw-Hili, New York, 1977. Harris, C. M., and C. E. Crede: Shock and Vibration Handbook, vol. I, McGraw-Hili, New York, 1961. Ugural, A. C., and S. K. Fenster: Advanced Strength and Applied Elasticity, Elsevier, New York, 1975. Volterra, E., and J. H. Gaines: Advanced Strength of Materials, Prentice-Hall, Englewood Cliffs, NJ, 1971.
Time approximations Bathe, K. J.: Finite Element Procedures in Engineering Analysis, Prentice-Hall, Englewood Cliffs,
NJ,1982. Clough, R. W., and J. Penzien: Dynamics of Structures, McGraw-Hill, New York, 1975. Hughes, T. J. R.: The Finite Element Method, Prentice-Hall, Englewood-Cliffs, NJ, 1987. Numerical integration
/
Carnahan, B., H. A. Luther, and J. O. Wilker: Applied Numerical Methods, John WHey, New York, 1969. ( Loxan, A. N., N. Davids, and A. Levenson: "Table of the Zeros of the Legendre Polynomials of Order 1-16 and the Weight Coefficients for Gauss' Quadrature Formula," Bulletin of the American Mathematical Society, vel, 48, pp. 739-743, 1942. Silvester, P.: "Newton-Cotes Quadrature Formulae for N-Dimensional Simplexes," Proceedings of 2d Canadian Congress of Applied Mechanics, Waterloo, Ontario, 1969. University of . Waterloo, Waterloo, Ontario, 1969. Stroud, A. H., and D. Secrest: Gaussian Quadrature Formulas, Prentice-Hall, Englewood Cliffs,
NJ,1966. Zienkiewicz, O. C., and R. L. Taylor: The Finite Element Method, vols. 1 and 2, McGraw-Hili, 1989 and 1991.
PART
3 FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
293
CHAPTER
8 SINGLE-VARIABLE PROBLEMS
8.1 INTRODUCTION The finite element analysis of two-dimensional problems involves the same basic steps as those described for one-dimensional problems in Chapter 3. The analysis is somewhat complicated by the fact that two-dimensional problems are described by partial differential equations over geometrically complex regions. The boundary I' of a two-dimensional domain Q is, in general, a curve. Therefore, the finite elements are simple two-dimensional geometric shapes that can be used to approximate a given two-dimensional domain as well as the solution over it. Thus, in two-dimensional problems, we not only seek an approximate solution to a given problem on a domain but we also approximate the domain by a suitable finite element mesh. Consequently, in the finite element analysis of two-dimensional problems, we shall have approximation errors due to the approximation of the solution as well as discretization errors due to the approximation of the domain. The finite element mesh (discretization) consists of simple two-dimensional elements, such as triangles, rectangles, and/or quadrilaterals, that allow unique derivation of the interpolation functions. The elements are connected to each other at nodal points on the boundaries of the elements. The ability to represent domains with irregular geometries by a collection of finite elements makes the 295
TABLE 8.1
Some examples of the Poisson equation -V· (kVu) = f Natural boundary condition: k au/ an + f3(u - uoo) = q. Essential boundary condition: u = it Primary variable Field or application
u
Material constant k
1. Heat transfer
Temperature T
Conductivity k
2. Irrotational flow of an ideal fluid
Stream function 'l/J
Density p
f Heat source Q
Secondary variables
au au q, ax' ay Heat flow q Icomes from conduction k aT/an and convection h(T - T~)l Velocities:
Mass production (normally zero)
a'l/J ax
(J
a1J! ay
- = - v , -:;;::u
Velocity potential 3. Groundwater flow
Source variable
tP
Piezometric head 4>
Density p
Mass production a (normall zero)
~=U
Permeability K
Recharge Q (or pumping, -Q)
Seepage q = k
a4> ax
a4> -=v 'ay
~:
Velocities:
a4> ax
a4J ay
u=-k~, v=-k~
4. Torsion of members with constant cross-section
Stress·function 'II
4J
5. Electrostatics
Scalar potential
6. Magnetostatics
Magnetic potential
7. Transverse deflection of elastic.membranes
Transverse deflection u
k=l
1=2
G = shear modulus
o ':' angle of twist per GO aw = a umt length ay xz
Dielectric constant e Charge density
4J
a'll GO ax = -ayz
p
Permeability /.I.
Charge density p
Tension Tin membrane
Transversely distributed load
Displacement flux density D n Magnetic flux density s,
t!'
Normal force q
SINGLE·VARIABLE PROBLEMS
297
method a valuable practical tool for the solution of boundary, initial, and eigenvalue problems arising in various fields of engineering. The objective of this chapter is to extend the basic steps discussed earlier for one-dimensional problems to two-dimensional boundary value problems involving a single dependent variable. Once again, we describe the basic steps of the finite element analysis with a model second-order partial differential equation, namely the Poisson equation, governing a single variable. This equation arises in a number of fields, including electrostatics, heat transfer, fluid mechanics, and solid mechanics (see Table 8.1).
8.2 BOUNDARY VALUE PROBLEMS 8.2.1 The -Model Equation Consider the problem of finding the solution differential equation
II
of the second-order partial
(8.1) for given data aij (i, j = 1, 2), aoo and f, and specified boundary conditions. The form of the boundary conditions will be apparent from the weak formulation. As a special case, one can obtain the Poisson equation from (8.1) by setting all = an = a and a12 = a21 = aoo = 0:
-V'(aVu)=f in
Q
(8.2)
where V is the gradient operator. If i and J denote the unit vectors directed along the x and y axes, respectively, the gradient operator can be expressed as (see Section 2.2.2) A
a
A
a
V=i-+j-
ax
ay
and (8.2) in the cartesian coordinate system takes the form
au)
-~(a -~(a ax ax oy
au) =f ay
(8.3)
In the following, we shall develop the finite element model of (8.1). The major steps are as follows:
1. 2. 3. 4. 5.
Discretization of the domain into a set of finite elements. Weak (or weighted-integral) formulation of the governing differential equation. Derivation of finite element interpolation functions. Development of the finite element model using the weak form. Assembly of finite elements to obtain the global system of algebraic equations.
298 6. 7. 8.
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
Imposition of boundary conditions. Solution of equations. Post-computation of solution and quantities of interest.
Steps 6 and 7 remain unchanged from one-dimensional finite element analysis because at the end of Step 5 we have a set of algebraic equations whose form is independent of the dimension of the domain or nature of the problem. In the following sections, we discuss each step in detail.
8.2.2 Finite Element Discretization In two dimensions, there is more than one simple geometric shape that can be used as a finite element (see Fig. 8.1). As we shall see shortly,«, the interpolation functions depend not only on the number of nodef in the element but also on the shape of the element. The shape of the element must be such that its geometry is uniquely defined by a set of points, which serve as the element nodes in the development of the interpolation functions. As will be discussed later in this section, a triangle is the simplest geometric shape, followed by a rectangle. The representation of a given region by a set of elements (i.e., discretization or mesh generation) is an important step in finite element analysis. The choice of element type, number of elements, and density of elements depends on the geometry of the domain, the problem to be analyzed,
r
y
Discretization error
(a)
y
~: D'ds
1 x
r (b)
FIGURE 8.1 Finite element discretization of an irregular domain: (a) discretization of a domain by triangular and quadrilateral elements; (b) a typical triangular element (boundary P", the unit normal fi on the boundary of the element).
SINGLE-VARIABLE PROBLEMS
299
and the degree of accuracy desired. Of course, there are no specific formulae for obtaining this information. In general, the analyst is guided by his or her technical background, insight into the physics of the problem being modeled (e.g., a qualitative understanding, of the solution), and experience with finite element modeling. The general rules of mesh generation for finite element formulations include the following: 1. 2.
3.
4.
Select elements that characterize the governing equations of the problem. The number, shape, and type (i.e., linear or quadratic) of elements should be such that the geometry of the domain is represented as accurately as desired. The density of elements should be such that regions of large gradients of the solution are adequately modeled (i.e., more or higher-order elements should be used in regions of large gradients). Mesh refinements should vary gradually from high-density regions to low-density regions. If transition elements are used, they should be used away from critical regions (i.e., regions of large gradients). Transition elements are those that connect lower-order elements to higher-order elements (e.g., linear to quadratic).
Additional discussion of finite element meshes and types of elements (linear and higher-order Lagrange elements, transition elements, etc.) will be presented in Chapter 9.
8.2.3 Weak Form In the development of the weak form, we need only consider an arbitrarily typical element. We assume that Qe is such an element, whether triangular or quadrilateral, of the finite element mesh, and we develop the finite element model of (8.1) over ~Y. Various two-dimensional elements will be discussed in the sequel. Following the three-step procedure presented in Chapters 2 and 3, we develop the weak form of (8.1) over the typical element Qe. The first step is to multiply (8.1) with a weight function iv, which is assumed to be oncedifferentiable with respect to x and y, and then integrate the resulting equation over the element domain Qe: 0=
L, w[-
:x (Ft) -
~ (F2) + aoou - f] dx dy
(8Aa)
where (8Ab)
In the second step, we distribute the differentiation equal1y between u and w. To achieve this, we integrate the first two terms in (8Aa) by parts. First we
300
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
note the identities or
aFl aw
a
ax ax
ax
-w~=-F1-~(wF1)
(8.5a) (8.5h)
or
Next, we recall the component form of the gradient (or divergence) theorem in (2. 17b):
(8.6a) I'
Ln' vy: (WF;) dx dy =,[Try wF;n
y
ds
(8.6b)
where n, and n y are the components (i.e., direction cosines) of the unit normal vector ii = n) +
fd = cos at + sin aj
(8.7)
on the boundary I", and ds is the arclength of an infinitesimal line element along the boundary (see Fig. 8.th). Using (8.5) and (8.6) in (8Aa), we obtain
(8.8) From an inspection of the boundary term in this equation, we note that the specification of u constitutes the essential boundary condition, and hence u is the primary variable. The specification of the coefficient of the weight function in the boundary expression
(8.9) constitutes the natural boundary condition; thus, q" is the secondary variable of the formulation. The function q" = q,,(s) denotes the projection of the vector a1-.Vu along the unit normal Ii. By definition, q" is positive outward from the surface as we move counter-clockwise along the boundary I", The secondary variable q" is of physical interest in most problems. For example, in the case of heat transfer through an anisotropic medium, a'l are the conductivities of the medium, and q" is the heat flux normal to the boundary of the element (into the element).
SINGLE-VARIABLE PROBLEMS
301
The third and last step of the formulation is to use the definition (8.9) in (8.8) and write the weak form of (8.1) as
(8.10a)
or B(w, u) = I(w)
where the bilinear form B(·, .) and linear form
(8.l0b)
10 are
I(W)=l wfdxdy+i. wqc ds Q<
JP-
The weak form (also called the variational problem) in (8.10) forms the basis of the finite element model of (8.1). The quadratic functional associated with the problem can be obtained from (2.43b) when B(·, .) is symmetric [see Mikhlin (1964), Reddy and Rasmussen (1982), and Reddy (1986)}: I(u) = ~B(u, u) -l(u)
The bilinear form in (8.lOe) is symmetric when
al2
= a21'
8.2.4 Finite Element Model The weak form in (8.10) requires that the approximation chosen for u should be at least linear in both x and y so that there are no terms in (8.10) that are identically zero. Since the primary variable is simply the function itself, the Lagrange family of interpolation functions is admissible. Suppose that u is approximated over a typical finite element ge by the expression n
uix, y) = trt», y) = L ul1/1i(x, y)
(8.11)
j=l
where uJ is the value of U" at the jth node (Xj,· Yj) of the element, and 1/1i are the Lagrange interpolation functions, with the property (8.12) The specific form of 1/1f will be derived for linear triangular and rectangular elements in Section 8.2.5, and higher-order interpolation functions will be derived in Chapter 9.
302
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
Substituting the finite element approximation (8.11) for form (8.10), we obtain
0=
OW( -;- a [ L ox
n
into the weak
ot/J. otp.) l+a12Luj-o} II
l 1 L uj j=1
Q'
U
aX
Y
j=1
"ot/J. n ot/J-) J + -ow( 021 L uj _ + a22 2: Uj_J oy
j=1
+ ooow
OX
j;, Ujt/Jj - Wf]
oy
j=l
dx dy -
£., wqn ds
(8.13)
This equation must hold for any weight function w. Since we need n independent algebraic equations to solve for the n unknowns Ut> U2, ••• , u"'. we choose n independent functions for w: lV = t/Jl, t/J2' ... , t/J,,/ This particular choice is a natural one when the weight function is viewed as a virtual variation of the dependent unknown (i.e., lV = Du = E7=1 (jUt t/Jt). For each choice of lV, we obtain 'an algebraic relation among (u 1 , U 2, ••• , un). We label the algebraic equation' resulting from substitution of WI for w into (8.13) as the first algebraic equation. The ith algebraic equation is obtained by substituting W = t/Jt into (8.13):
0=
±{flQ< [OWj (a
j=1
OX
11
ot/Jj + 012 at/Jj) OX oy
ot/Jj) ]} + 01J!i oy (ot/Jj °21 ax + °22 oy + aooWt1J!j dx dy Uj
- f ft/J/ dx dy _1 t/Jtqn ds In< 'Yr.
(i = 1, 2, ... , n)
or n
2: KijuJ = n + in
(8. 14a)
j=l
where
(8. 14b)
In matrix notation, (8.14a) takes the form
[Ke]{u e} = {te} + {Qe}
(8. 14c)
Note that Kij = KJt (i.e., [K] is symmetric) only when 012 = 021' Equation (8.14c) represents the finite element model of (8.1). This completes the
SINGLENARIABLE PROBLEMS
303
development of the finite element model. Before we discuss assembly of elements, it is informative to consider how the interpolations 1fJf are derived for certain basic elements. and evaluate the element matrices in (8.14b).
8.2.5
Interpolation Functions
The finite element approximation trt«, y) of u(x, y) over an element Qe must satisfy the following conditions in order for the approximate solution to be convergent to the true one: 1.
2.
3.
U" must be differentiable, as required in the weak form of the problem (i.e., all terms in the weak form are represented as nonzero values). The polynomials used to represent U" must be complete (i.e., all terms, beginning with a constant term up to the highest order used in the polynomial, should be included in Ue ) . All terms in the polynomial should be linearly independent.
The number of linearly independent terms in the representation of U" dictates the shape and number of degrees of freedom of the element. Next, we discuss some of the basic polynomials and associated elements for problems with a single degree of freedom per node. An examination of the variational form (8.10) and the finite element matrices in (8.14b) shows that 1fJ'f should be at least linear functions of x and y. For example, the polynomial (8.15) contains three linearly independent terms, and it is linear in both x and y. To write the constants c, (i = 1, 2, 3) in terms of the nodal values of U", we must identify three points or nodes in the element ~Y. These three nodes must also uniquely define the geometry of the element. Obviously, the geometric shape defined by three points in a two-dimensional domain is a triangle. Thus the polynomial (8.15) is associated with a triangular element, and there are three nodes identified, namely, the vertices of the triangle. On the other hand, the polynomial (8.16) contains four linearly independent terms, and is linear in x and y, with a bilinear term in x and y. This polynomial requires an element with four nodes. There are two possible geometric shapes: a triangle with the fourth node at its center (or centroid), or a rectangle with the nodes at the vertices. A triangle with a fourth node at the center does not provide a single-valued variation of u at interelement boundaries, resulting in incompatible variations of u there, and is therefore not admissible. The linear rectangular element is a compatible element.
304
FINITE ELEMENT ANALYSIS OF lWO·DIMENSIONAL PROBLEMS
A polynomial with five constants is the incomplete quadratic polynomial
U'(x, Y) =Cl + CzX + C3Y + C4XY + C5(XZ + y Z )
(8.17)
which can be used to construct an element with five nodes (e.g., a rectangle with a node at each corner and at its midpoint); however, the element does not give single-valued variation of u. Also, note that the X Z and Yz terms cannot be varied independently of each other. The quadratic polynomial trt», y) = C\ + CzX + c + C4XY + C5X2 + C6Y z (8.18) 3Y
with six constants can be used to construct an element with six nodes. For example, a triangle with a node at each vertex and a node at the midpoint of each side is admissible. It is known as the quadratic triangular element. Examples of three-, four-, five-, and six-node elements are shown in Fig. '8.2. Here we derive the linear interpolation functions for the three-node triangular element and the four-node rectangular element. The procedure used is the same as that for one-dimensional elements. The interpolation functions for linear, quadratic and cubic triangular and rectangular elements can be found in many books, and the present study is intended to illustrate the procedure used to derive the interpolation functions. Additional discussion on the generation of interpolation functions is presented in Chapter 9. LINEAR TRIANGULAR ELEMENT. Consider the linear approximation (8.15). The set {I, x, y} is linearly independent and complete. We must rewrite the approximation (8.15) such that it satisfies the conditions
Ue(xL
yD = uj
(i = 1, 2, 3)
(8.19)
where (xL yi) (i = 1, 2, 3) are the global coordinates of the three vertices of the triangle "t. In other words, we determine the three constants C/ in (8.15) in
4
3
D
2
(a)
1
2 (c)
(d)
FIGURE 8.2 Finite elements in two dimensions: (a) a three-node element; (b) four-node elements; (c) a five-node element; Cd) a six-node element.
SINGLE-VARIABLE PROBLEMS
terms of
305
uT from (8.19):
(8.20)
where the element label e on the us, xs, ys, and cs is omitted for simplicity. Throughout the following discussion, this format will be followed. In matrix form, we have
(8.21)
Solution of (8.21) for c, (i = 1,2,3) requires inversion of the coefficient matrix in (8.21). The inverse does not exist when any two rows or columns of (8.21) are the same. This happens only when all three nodes lie on the same line. Thus, in theory, as long as the three vertices of the triangle are distinct and do not lie on a line, the coefficient matrix is invertible. However, in actual computations, if any two of the three nodes are very close relative to the third, or the three nodes are almost on the same line, the coefficient matrix can be nearly singular and numerically noninvertible. Hence, one should avoid elements with narrow geometries (see Fig. 8.3) in finite element meshes. Inverting the coefficient matrix in (8.21), we obtain
(8.22)
and, solving for c, in terms of u.,
'F
~l' L-
(a)
.~ ,-
L
(b)
-I
FIGURE 8.3 Triangular geometries that should avoided in finite element meshes.
be
306
FINITE ELEMENT ANALYSIS OF TWO·D1MENSIONAL PROBLEMS
we obtain
1
CI
= 2A (£l'IUI
+ £l'zUz + £l'3 U3)
e
(8.23a) 1
C3
= 2A (YIUr
+ Y2 U2 + Y3 U 3),
e
where A e is the area of the triangle (or 2A e is the determinant of [AD, and f3i> and Yi are the geometric constants '"
£l'i'
/
(i =/:- j =f. k; and i, j and k permute in' a natural order) (8.23b)
Substituting for c, from (8.23a) into (8.15), we obtain
U'(», y)
1
=
2A [(£l'lUt +
£l'zUz
+
£l'3U3)
+ (f3t Ul +
f3Z U2
+
f33 U3)X
e
3
= 2: uJljJi(x, y)
(8.24)
i=l
y
'---------- x
3
1
2 FIGURE 8.4 Linear interpolation functions for the three-node triangular element.
2
SINGLE·VARIABLE PROBLEMS
307
where t/J'f are the linear interpolation functions for the triangular element,
t/J'f =
2A1
(ar + {3ix e
+ riY)
(i = 1, 2, 3)
(8.25)
.
and aj, {3;, and ri are constants defined in (8.23b). The linear interpolation functions t/J; are shown in Fig. 8.4. They have the properties
tJ1f(xj, yJ) = (jij (i, j = 1, 2, 3) 3
Ot/J'f
3
~ 1jJ; = 1,
2:-=0, AX
;=1
;=1
3
O.JI~
i=1
oy
(8.26)
~_'t"=0
Note that (8.24) determines a plane surface passing through U1> U2' and U3' Hence, use of the linear interpolation functions 1jJ'f of a triangle will result in the approximation of the curved surface u(x, y) by a planar function U" = Ei=1 u'ft/Ji as shown in Fig. 8.5. We consider an example of the computation of 1jJ'f. Example 8.1. Consider the triangular element shown in Fig. 8.6. Let
u lI(X, y)
,J----------+--+""-.::::..::=_-=.7'-:- y
~ I
I
x
'
JI
A---l\-----1'-~ \ I \ ;' I \ / ' ~J \ f \,. I \ ..,; I
_'"
",/'
I(
--
\
---_'..L---.~:::--
\
r
\
,
.................. \ r
/ J
I \,
l
, //.\ --,
/'
..... "
\
,,1
\
/
,,'?
,-----.--If, "'...... ,/ \
I
_--.(
---"
, ...,
'V
/'\
',1
)r--
I
\
I'
I
... ,
.J(-- __ J:.
"i'-,
__
I
<, ~
\
,
\
I
Finite element mesh / ' " / '-.}, of the domain '-L---
FIGURE 8.5 Representation of a continuous function u(x, y) by linear interpolation functions of three-node triangular elements.
308
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
y 4
3 2
1 (2,1) L--.----r---,---.----r-~-_x
2
3
4
5
FIGURE 8.6 A triangular element with element nodes and coordinates (for Example 8.1).
Evaluating this polynomial at nodes 1, 2, and 3, we obtain the equations, from (8.21)
U ll [1 u~ = 1
f
U3
where
2l]{CI}
ccr.
5 3 1 3 4
"-
{CI} = [Ar {UI}
C3
c~
l
C3
u~
r
U3
[Art =~[~~ -~ -3~] -2 -1
Substituting into U, we obtain ([Ar
U«xk {I x
l
= [A*])
y}[A { } { ,!"
'!"i{:} ~
,!"
'i'1u;
where
tJlf = Atl + Atx + Aj/y and AZ are the elements of the inverse matrix [Ar l • Alternatively, from the definitions (8.23b), we have a'i
= 5 x 4 - 3 x 3 = 11,
a~
= 3 X 1- 2 x 4 = -5, ,8~
,81 =3- 4= -1, YI=-(5-3)=-2,
=4-1 =3,
y~=-(3-2)=-1,
lA,
a3 = 2 X 3 - 5 x 1 = 1
,83= 1- 3=-2 Y3=-(2-5)=3
= a\ + a 2 + «3= 7
The interpolation functions are tJI~ =
Hll- x -
2y),
tJI~ =
H-5 + 3x -
y),
tJlj= HI-2x + 3y)
LINEAR (FOUR-NODE) RECfANGULAR ELEMENT. Here we consider an approximation of the form (8.16) and use a rectangular element with sides a and b (see Fig. 8.7a). For the sake of convenience, we choose a local coordinate system (x, y) to derive the interpolation functions. We assume that
U(i, y) =
Cl
+ C2X + C3Y + c4iy
(8.27)
SINGLE·VARIABLE PROBLEMS
y
309
Yf
TQ 11
'2.i'
_a----oo! x (a)
4 3
2
2
3 (b)
2
FIGURE 8.7 Linear rectangular element and its interpolation functions: (a) geometry of the element; (b) interpolation functions. .....
and require Ut
= U(O, 0) = Ct
Uz = U(a, 0) =
uJ = U(a, b) U4
Cl
+ cza
= Cl + cza + c-b + csab
= U(O, b) =
Cl
(8.28)
+ c-b
Solving for c, (i = 1, ... ,4), we obtain
(8.29)
. 310
FINITE ELEMENT ANALY~jS OF TWO-DIMENSIONAL PROBLEMS
Substituting these into (8.27), we obtain
X Y x Y) +uz(X---XY) +U3--+ XY U4 (Y x-Y) U(X,Y)=Ul ( 1----+---a
b
ab
a
ab
ab
b
ab
4
= Uj'l/Jl + UZ'l/J2 + U3'l/J3 + U4'l/J4 = L: ui'l/J't
(8.30)
;=1
where
tJ!i
=(1-~)(1-~), tJ!~ = ~
t,
tJ!2 =~(1-~)
'l/J: = ( 1 -
~)
t
(8.31a)
or, in concise form,
tJ!i(x, y) = (-1Y+l(1- x :x;)(1_ Y :
Y;)
(8.31b)
where (ij, Yj) are the (x, y) coordinates of node i. The interpolation functions are shown in Fig. 8.7(b). We again have
tJ!j(Xj, M= Djj (i, j = 1, ... , 4),
4
2: 'l/J't = 1 ;=1
(8. 32a,b)
where (Xj, yJ are the coordinates of node j in the (i, Y) system. Note that the linear interpolation functions for the four-node rectangular element can also be obtained by taking the tensor product of the I-D linear interpolation functions (3.18) associated with sides 1-2 and 2-3:
(8.33)
The procedure given above for the construction of the Lagrange interpolation functions involves the inversion of an n»; n matrix, where n is the number of nodes in the element. When n is large, the inversion becomes very tedious. The alternative procedure discussed in Chapter 3 for one-dimensional elements proves to be algebraically simple. Here we illustrate the alternative procedure for the four-node rectangular element. Equation (8.32a) requires that
'l/J1(i;, Y;) = 0 (i = 2,3,4),
lfJi(X1' Yl) = 1
That is, 1/Ji is identically zero on lines i = a and . be of the form
Y=
b. Hence, 1/Ji(x, y) must
i
---l
SINGLE-VARIABLE PROBLEMS
Using the condition wi(Xt, Yl) = wHO, 0) = 1, we obtain
Ct
311
= 1/ab. Hence,
Likewise, one can obtain the remaining three interpolation functions.
8.2.6 Evaluation of Element Matrices, and Vectors The exact evaluation of the element matrices [Ke ] and {r} in (8.14b) is, in general, not easy. Therefore, they are evaluated using numerical integration techniques described in Section 7::6.5. However, when alj, aoo, and fare element-wise constant, it is possible to evaluate the integrals exactly over the linear triangular and rectangular elements discussed in the previous section. The boundary integral in {Qe} of (8.14b) can be evaluated whenever q" is known. For an interior element (i.e., one that does not have any of its sides on the boundary of the problem), the contribution from the boundary integral cancels with similar contributions from adjoining elements of the mesh (analogous to the Qf in one-dimensional problems). A more detailed discussion is given below. For the sake of brevity, we rewrite [K e ] in (8.14) as the sum of four basic matrices [saP] (a, f3 = 0, 1,2): (8.34)
where [
r denotes the transpose of the enclosed matrix, and s,?!/3 IJ =
1
11, . 1('. R 'YI,a'YJ,p
dx dy
(8.35)
Q'
with WI,a= a1/J;/axa, Xl = X, and X2 = Y; WI.O = Wi' All matrices in (8.34) and interpolation functions in (8.35) are understood to be defined over an element; Le., all expressions and quantities should have the element label e, but these are omitted in the interest of brevity. We now proceed to compute the matrices in (8.34) and (8.14b) using the linear interpolation functions derived in the previous section. ELEMENT MATRICES FOR A LINEAR TRIANGULAR ELEMENT. For a
triangle, the following exact integral formulae are available for evaluating the integrals. Let (8.36)
312
FINITE ELEMENT ANALYSIS OF TWO·DlMENSIONAL PROBLEMS
Then we have (the element label on A is omitted) (area of the triangle)
100 = A
3
110 = Ax,
X =1
L Xi'
3 AI""
lot =Ajl,
Y=
3" L.J
i=1
III =
i=1
~ (~XiYi + 9Xjl), 1 = ~ (~XT + 9X 20
2
102 =
) ,
v.
~ (~YT+ 9jl2) (8.37)
Using the linear interpolation functions (8.25) in (8.35), and noting that
A
aVJi _ ax -2A'
aVJi
ay
~
(8.38)
2A
we obtain 11 1 Si; = 4A {3;{3;,
12 1 Si; = 4A PiY;,
zz 1 f Sij = 4A YIYi
sr: = 4A1 {[lYllY; + (lYi{3i + lYiPi)X + (lYiYi + a';YI)jl].
(8.39)
+ ~ [I2o{3i{3i + III (YiP; + YiPI) + 102YiY;]} In view of the identity a'i + {3iX + Yljl = iA [which follows from (8.23b) and (8.37)], for an element-wise-constant value of f = fe, we have
fi = !fe(a'i + PIX + y;jl) = 1/eAe
(8.40)
This should be obvious, because for a constant source fe, the total magnitude of the source on the element is equal to feA o which is distributed equally among the nodes. Once the coordinates of the element nodes are known, one can compute a'i, Pi' and Yi from (8.23b) and substitute into (8.39) to obtain the element matrices, which in turn can be used in (8.34) to obtain the element matrix [Ke ] . For example, when a12, a21> and aoo are zero, and all and an are element-wise-constant, we have
e 4A 1 ( all e pepe + anYiYj e e e) K ij= i j
(8.41) .
e
ELEMENT MATRICES FOR A LINEAR RECTANGULAR ELEMENT. When aij (i, j = 0, 1, 2) and f are constants, we can use the interpolation functions of
(8.31a) expressed in the local coordinates i and global coordinates by X=
i + xL
Y = y + yL
y,
dx = eli,
which are related to the
dy
= dy
(8.42)
where (xL y'D are the global coordinates of node 1 of the element ge with
SINGLE-VARIABLE PROBLEMS
313
respect to the global (x, y) coordinate system. For example, we have
, 'l/J;'l/Jj dx dy L L 'l/J;'l/Jj dx dy jx,X.:i+ l}'~+b o
S~ =
O
b
=
y,
0
0
where a and b are the lengths along the i and y axes of the element. Consider the coefficient
sri = =
ff L
a(
0
'l/Jl'l/Jl dxdy = i)2
1- ~
1 di
f f (1-~)(I-~)(I-~)(I-~)dXdY
b
0
(
1-
by)2 dy = :3a 3b = 9ab
Similarly, we can evaluate all the matrices [sap] with the aid of the integral identities
f(1-~) f (1-~) 2
di = la, di =
f ~ ( -~) ~a, f1
o
dx = ia (8.43)
~di =~a a
We have
-2 -1 2 1 [S"] 6a -1 2 -2 ' 1 2 1 -1 -2
~!: [-~
[2
1 -1
-:]
[S"I~!4 [
-2]
2 1 4 2 [S"'] ab [ 36 1 2 4
2 -2 -1
22 a 1 [S ] = 6b -1 -2 -2 -1
2 1
1 '
1 -1 -1 1 -: -1 -1 1 1 1 -1 -1
-:]
~ ~
2
2 1 2
{f} =trab{1 1 1
IV
~]
(8.44)
EVALUATION OF THE BOUNDARY INTEGRALS. Here we consider the evaluation of boundary integrals of the type
Qi =
e:
£. q~
1.JJi(s) ds
(8.45)
where is a known function of the distance s.along the boundary I", It is not necessary to compute such. integrals when a portion of I" does not coincide with the boundary I' of the total domain Q. On portions of I" that are in the interior of the domain Q, q~ on side (i, j) of the element Qe cancels with q~ on side (p, q) of the element Qf when sides (i, j) of Qe and (p, q) of gf are the same (i.e.;: at the interface of Qe and Qf). This can be viewed as the equilibrium of the internal "flux" (see Figs. 8.Sb,c). When I" falls on the
314
FINITE ELEMENT Al:/ALYSIS OF TWO·DlMENSIONAL PROBLEMS
qn (specified)
(a)
51. M \-~
(b)
q. (specified)
,
True boundary of the domain
(c)
FIGURE 8.8 Computation of boundary forces and equilibrium of secondary variables at interelernent boundaries: (a) finite element discretization; (b) equilibrium of forces at interfaces; (c) computation of forces on the true boundary.
boundary of the domain 0, q~ is either known, in general, as a function of s, or is to be determined in the post-computation. In the latter case, the primary variable will be specified on the portion of the boundary where qn is not specified. The boundary I" of linear two-dimensional elements is a set of linear one-dimensional elements. Therefore, the evaluation of the boundary integrals in two-dimensional problems amounts to evaluating line integrals. It should not be surprising to the reader that when two-dimensional interpolation functions are evaluated on the boundary, we obtain the corresponding one-dimensional interpolation functions. For example, consider the linear triangular element shown in Fig. 8.9. The linear interpolation functions for this element are given by (8.25). Now let us choose a coordinate system (s, t) with its origin at node 1 and the coordinate s parallel to the side connecting nodes 1 and 2. The two coordinate systems (x, y) and (s, t) are related by
The constants a I> b-,
C I,
az, bz, and
Cz
can be determined with the following
SINGLE-VARIABLE PROBLEMS
315
conditions: when s =0, t =0, when's = a, t = 0, when s
= c, i =
Y Yl
=x 1 , = x = X2' Y = Y2 x = X3' Y = Y3
X
b,
We obtain
x(s, t) =XI + (X2 -XI)~ + [(~ -l)Xl -~X2 +X3]k y(s, t) = Yt + (Y2 - Yt!; + [ (~- 1)Yt -
~ Y2 + Y3]
i
(8.46)
These equations allow us to express W;(x, y) as 1/-';(s, t), which can be evaluated on the side connecting nodes 1 and 2 by setting t = 0 in 1/-';(s, t):
w;(s) i3W;(S, 0) = W;(x(s, s
x(s) =Xt + (X2 - Xt)-, a
O~,
y(s) =
y(s, 0))
Yl + (Y2 - Yl) a~s
For instance,
1/-'1(S) = ~ {crt +
f3t[ (1-~)XI +~X2] + Yl[ (l-~)Yl +~Y21}
= ~ (crl + !X2 + cr3)( 1-~) =
1- ~ ,
where the definitions of crl, f3t, and Yt have been used to rewrite the entire expression. Similarly,
s W2(S) = - , a
W3(S) = 0
where a = h 12 is the length of side 1-2. We note that 1/11(S) and 1/-'2(S) are precisely the linear one-dimensional interpolation functions associated with the line element connecting nodes 1 and 2. Similarly, when p;(x, y) are evaluated on side 3-1 of the element, we obtain S
Wl(S) = h-
J
W2 = 0,
S
1/1ls) = 1 - h 13
13
where the s coordinate is taken along the side 3-1, with origin at node 3, and h 13 is the length of side 1-3. Thus evaluation of Qi involves the use of appropriate 1-D interpolation functions and the known variation of q; on the boundary: Qi
=
1 w;(s)q,,(s) ds + L w;(s)q,,(s) ds + L 1JJ;(s)qll(S) ds 1-2
i3 Qit
2-3
+ Qi2 + Qi3
3-1
(8.47)
316
FINITE ELEMENT ANALYSIS OF nvO-DIMENSIONAL PROBLEMS
y
FIGURE 8.9 The linear triangular element in the global (x, y) and local (s, t) coordinate systems.
L - - - . . - - - - - . - - - - - - - , - -__ x
where L-i denotes the integral over the line connecting node i to node i, the s coordinate is taken from node i to node j, with origin at node i, and Q'I.r is defined as the contribution to Qi from q~ on side J (see Fig. 8.9) at the I' element ge:
Q'I.r =
1J1iqn ds
(
(8.48)
JsideJ
For example,
The contribution from side 2-3 is zero, because 1J11 is zero on side 2-3 of a triangular element. For a rectangular element, Q~ has contributions from sides 1-2 and 4-1, because 1J11 is zero on sides 2-3 and 3-4. Example 8.2. Consider the evaluation of the boundary integral Qf in (8.45) for the four cases of q(s) and finite elements shown in Fig. 8.10. For each case, we must use the q(s) and the interpolation functions associated with the type of boundary element (i.e., linear or quadratic). Case 1. q(s) = qo = constant; linear element:
where
1J!3 = 0 We have
m= ~qoh.
(= Q~l)'
m= !qoh.
(= Q;l).
m= 0
'Case 2. q(s) = qoS/h. (linear variation); linear element:
Qf =
i
re
s qo qo-h 1J!1 ds = he
e
Ih S1J!1 ds e
0
(i = 1, 2, 3)
SINGLE-VARIABLE PROBLEMS
1
3
Case 1
3
Case 2
s
Case 3
Case 4 FIGURE 8.10 Evaluation of boundary integrals in the finite element analysis (Example 8.2).
where
We have
Case3. q(s)
= sl« = constant; quadratic element: Q;=
£,
qO'l/Ji cis
(i = 1, 2, ... 6)
and 'l/J4' 1fJ5' and 1/16 are zero on side 1-2-3. We have
Case 4. q(s) as shown in Fig. 8.10; linear element:
J
317
318
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
We obtain,
m=J,
S qOh
1-2
12
(l-/~)ds+O+O=iqOhl2 112
Q~= J qo~~ ds h 1-2
=
12h 12
+1
2-3
ql(l-~) h
(=Qh)
ds +0
n
~qOhl2 + !ql h n (= ml + m2)
Q; =0 +
1.
2-3
ql/~ ds +0 =!ql h n
(= Q;2)
123
8.2.7 Assembly of Element Equations The assembly of finite element equations is based on the same two princiR!es that were used in one-dimensional problems: I'
1. 2.
Continuity of primary variables "Equilibrium" (or "balance") of secondary variables
We illustrate the procedure by considering a finite element mesh consisting of a triangular element and a quadrilateral element (see Fig. 8.lla). Let K~ (i, j = 1, 2, 3) denote the coefficient matrix corresponding to the triangular element, and let Kt (i, j = I, ... , 4) denote the coefficient matrix corresponding to the quadrilateral element. From the finite element mesh shown in Fig. 8.ll(a), we note the following correspondence (i.e., connectivity relations) Global-.
Kll
3
Side 2
5
Local
Ktl
K 12
Kli
K 12
K 2i
K
u
K 1S K 23
KJ +
K l4 K 34
Kl!
K l7 K 44
0
K 4S K S6 K 47
+ Krr
0 0
K 4!
K 3! Kd 0 Kd
+
Ka
t
K3
+ KIt + Kd + + Kd +
K l1
K l1
2
(b)
FIGURE 8.11 Assembly of finite element coefficient matrices using the correspondence between global and element nodes (one unknown per node): (u) assembly of two elements; (b) assembly of several elements.
SINGLE·VARIABLE PROBLEMS
319
between the global .and element nodes:
[B] =
[12 24 53 XJ3
(8.49)
where x indicates that there is no entry. The correspondence between the local and global nodal values is (see Fig. 8.lla)
which amounts to imposing the continuity of the primary variables at the nodes common to elements 1 and 2. Note that the continuity of the primary variables at the interelement nodes guarantees the continuity of the primary variable along the entire interelerhent boundary. For the case in Fig. 8.11(a), the requirement
ul =
ui
and u~ = u~
guarantees
U 1(s ) = U 2 (s )
on the side connecting global nodes 2 and 3. This can be shown as follows. The solution U 1(s) along the line connecting global nodes 2 and 3 is linear, and is given by
where s is the local coordinate along side 2-3 with its origin at global node 2 and h is the length of side 2-3 (or side 2). Similarly, the finite element solution along the same line but from element 2 is "'./" . ~ ll"2..~ + U ~ ~ Il----5 , (rrIT/ \,--1_'1' ,k 1 ( I
-
2
U (s) =
..... ~ Is-
ui(l -
-h)
+ u~ -h S
4
h-)
\'c
.
1's
'.JJlcILC_~
-.;Jr r<:.::'11~. ". n .j
I
l
. -'
,-
()'CI
.hnOlo rl) .4 v '/1 .(' -;" I.Ji ~.- , tt&-. .t-- ....' 1 Since ui = ui and u~ = uL it follows that U (s) = U\s) for every value of s"~ :C';;
I
(8.51) In the finite element method, we impose the above relation in a weightedintegral sense:
'
320
FINITE ELEMENT ANALYSIS OF TWO·DIMENSIONAL PROBLEMS
where h;q denotes the length of the side connecting node p to node q of the element Qe. The above equations can be written in the form
or
Qi2 + QI4 = 0,
Q~2
+ Qit = 0
(8. 52c)
where Q~ denotes the part of Q't that comes from side J of element e {see (8.48)]:
Q~ =
1 q~ljJ't
tis
sideJ
"-
The sides of triangular and rectangular elements are numbered as shown in Fig. 8.11. These balance relations must be imposed in assembling the element equations. We note that Q~ is only a portion of Qi [see (8A7)]. The element equations of the two elements are written first. For the model problem at hand, there is only one primary degree of freedom (NDF = 1) per node. For the triangular element, the element equations are of the form
Ktlul + Kbui + Kl~u~ = It + Ql Kilut + K1zu1 + Kbu~ = 11 + Q1 K11ul + K~2U1 + K~3U~ =fj + Q~
(8.53a)
For the rectangular element, the element equations are given by
Kilui + Kizu~ + Ki3U~ + KI4u~ = Ii + Qi K~luI + K~2U~ + K~3U~ + K~4U~ = I~ + Q~ K~lui + K~2U~ + K~3U~ + K~u~ = I~ + Q~
(8.53b)
K~luI + K~2U~ + K~3U~ + Kitu~ = I~ + Q~
In order to impose the balance of secondary variables in (8.52), we must add the second equation of element 1 to the first equation of element 2, and also add the third equation of element 1 to the fourth equation of element 2:
(K1lut + Khu1 + Kbld) + (Kilui + Kizui + Ki3u~ + Ki4U~)
= ([1 + Q1) + (Ii + Qi)' (K~IUi + K~2Ui + K~3UD + (K~tUI + K~zu~ + K~3U~ + Kitu~) = (f~
+ QD + ([~ + Q~)
Using the global-variable notation in (8.50), we can rewrite the above equations as follows [this amounts to imposing continuity of the primary variables in (8.50)]:
Kit VI + (Kh + Kil) Vz + (Kb + Ki4)V3 + KI zU4 + KI3US = t1 + Ii + (Q1 + QD K~t VI + (K5z + K~l) Vz + (K~3 + Kit) V3 + K~2V4 + K~3US =I~ + I~ + (Q~ + Q~)
SINGLE·VARIABLE PROBLEMS
321
Now we can impose the conditions in (8.52) by setting appropriate portions of the expressions in parentheses on the right-hand sides of the above equations equal to zero: Q~ + Qr = (Qi1 + Qk +. Q~3) + (Qrl + Qr2 + Qr3 + Qr4)
+ Qh + (Qi2 + Qr4) + Qrl + Qrz + Qr3 Q~ + Q~ = (Q~1 + Q~2 + Q~3) + (Q~l + Q~2 + Q~3 + Q~4) = Q~l + Q~3 + (Q12 + Q~) + Q~l + Q~2 + Q~3 '= Qil
The underlined terms are zero, by the balance requirement (8.52c). The remaining terms of each equation will be either known because qll is known on the boundary or will remain unknown because the primary variable is specified on the boundary. In general, when several elements are connected, the assembly of the elements is carried out by putting element coefficients Kij, fi, and Qi into proper locations of the global coefficient matrix and right-hand column vectors. This is done by means of the connectivity relations, i.e., the correspondence of the local node number to the global node number. For example, if global node number 3 corresponds to node 3 of element 1 and node 4 of element 2 then we have
F3 =
F~ + F~=f1+ f~+ Qj + Q~,
K 33= Kj3+ K~
If global node numbers 2 and 3 correspond, respectively, to nodes 2 and 3 of element 1 and nodes 1 and 4 of element 2 then the global coefficients K 22, K 23 and K 33 are given by
K 22 = Kh + Ktv
K 23 = Kh + KI4'
K 33 = K;3 + K~
Similarly, the source components of global nodes 2 and 3 are added: F2=F~+Fr,
F3=Fj+F~
!I
For the two-element mesh shown in Fig. 8.1l(a), the assembled equations are
Ktl Kil Kil [
o o
KhKb + Krl Kj2 + K~l K~l K}l
0 KhKt3 + Kr4 Kr2 Kj3 + K~ K~4 K}4
K~2 K~ K~2
0] KI3 K~3 K 23 K}3
(Vll = F~+ V2
V3
V4 Us
Fi
Fi
Fj +2F~ F2
(8.54)
F~
The assembly procedure described above can be used to assemble elements of any shape and type. The procedure can be implemented on a computer, as described for one-dimensional problems, with the help of the array [B] (program variable is NOD). For hand calculations, the procedure described above must be used. For example, consider the finite element mesh shown in Fig. 8.11(b). Location (4,4) of the global coefficient matrix contains K~3 + Ki1 + Kil + K11' Location 4 in the assembled column vector contains Fj + Fi + Fi + Fi. Locations (1,5), (1,6), (1,7), (2,5), (2,6), (2,7), (3,6), (3,7), and (5,6) of the global matrix contain zeros because KlJ = 0 when global nodes 1 and J do not correspond to nodes of the same element in the mesh.
322
FINITE ELEMENT ANALYSIS OF lWO·D1MENSIONAL PROBLEMS
This completes the first five steps in the finite element modeling of the model equation (8.1). The next two steps of the analysis, namely, the imposition of boundary conditions and solution of equations, remain the same as for one-dimensional problems. Postprocessing of the solution for twodimensional problems is discussed next.
8.2.8 Postprocessing The finite element solution at any point (x, y) in an element ge is given by n
tri«, y)
2: uj1jJj(x, y)
=
(8.55)
j=1 I'
and its derivatives are computed as
ave 2:n ll~-~J a'tJ!~
-~=
ax
j=l
J
ax '
ave 2:n uj-_J a1.V
--=
ay
j=l
ay
(8.56)
Equations (8.55) and (8.56) can be used to compute the solution and its derivatives at any point (x, y) in the element. It is useful to generate, by interpolation from (8.55), information needed to plot contours of U" and its gradient. The derivatives of U" will not be continuous at interelement boundaries, because continuity of the derivatives is not imposed during the assembly procedure. The weak form of the equations suggests that the primary variable is u, which is to be carried as the nodal variable. If additional variables, such as higher-order derivatives of the dependent unknown, are carried as nodal variables in the interest of making them continuous across interelement boundaries, the degree of interpolation (or order of the element) increases. In addition, the continuity of higher-order derivatives that are not identified as the primary variables may violate the physical features of the problem. For example, making au/ax continuous will violate the requirement that qx (= all au/ax) be continuous at the interface of two dissimilar materials, because a11 is different for the two materials at the interface. For Linear triangular elements, the derivatives are constants within each element:
'tJ!J = ~ e (aj + j3jX + YjY) (8.57)
ave
ave
~ 1l~{3.
- - = LJ-l.......1
ax
j=1
2A e
-= '
ay
n
ll~Y'
2:--Ll
j=12A e
SINOLENARIA8LE PR08LEMS
For linear rectangular elements, x [see (831b)]:
a1jJ'j = _~ ax a a~e = _~
aUe I ax is linear
(1 _Y +bYi). '
in
y, and aUelay is linear in
(1 _x +a Xi) a~e = _~ i u'j(1- X+Xi) ay b
aljJ'j = _ ~ ay b
i
U'j(1- Y + Yi), ai=1 b
323
(8.58)
ax a i=l x and yare the local coordinates (see Fig. 8.7a). Although aUe/ax and aUelay are linear functions of y and x, respectively, in each element, they are
where
discontinuous at interelement boundaries. Consequently, quantities computed using derivatives of the finite element solution U" are discontinuous there. For example, if one computes q~ = a11 aUeI ax at a node shared by three different elements, three different values of q~ are expected. The differences between the three values will diminish as the mesh is refined. Some commercial finite element softwares give a single value of qx at the node by averaging the values obtained from various elements connected at the node.
8.2.9 Axisymmetric Problems In studying problems involving cylindrical geometries, it is convenient to use the cylindrical coordinate system (r, 8, z) to formulate the problem. If the geometry, material properties, boundary conditions, and loading (or source) of the problem are independent of the angular coordinate 8, the problem solution will also be independent of 8. Consequently, a three-dimensional problem is reduced to a two-dimensional one in (r, z) coordinates. Here we consider a model axisymmetric problem, develop its weak form, and formulate the finite element model. MODEL EQUATION. Consider the partial differential equation
au) - -a (a ~ au) A - -1rar -a (A ra 11 ~ (8.59) ar az 22 az + a 00 u = I (r , z) where aoo, a111 an, and I are given functions of rand z. This equation arises in the study of heat transfer in cylindrical geometries, as well as in other fields of engineering and applied science. OUf objective is to develop the finite element model of the equation based on the weak form of (8.59). WEAK FORM. Following the three-step procedure, we write the weak form of
(8.59): (i)
0=
(ii)
0=
(au) an az i aw[ araau(Arall awau)ar - azaau. Q<
W
-
~1
rllll ar + -a ra.n i (-a(au au Q<
r
~
z
+ aoou -I ]rdr dz
~a + wraoou z
- wrl ) dr dz
j ) -YP w rau ar n; + razz az nz ds (iii)
aw au aw au ) j ( au ar ar + an az az + aoowu wI r dr dz Jp wq" ds L A
0=
Q<
(8.60)
324
FINITE ELEMENT ANALYSIS OF 'IWO·DlMENSIONAL PROBLEMS
where w is the weight function and q" is the normal flux, (8.61) Note that the weak form (8.60) does not differ significantly from that developed for the model equation (8.1) when a12 = aZI = O. The only difference is the presence of r in the integrand. Consequently, (8.60) can be obtained as a special case of (8.10) for aoo=aooX, aI1=allx, a22=a2Zx, and f=lx; the coordinates rand z are treated like x and y, respectively. FINITE ELEMENf MODEL. Let us assume that u(r, z) is approximated by the
finite element interpolation U' over the element Qe: u = veer, z) =
2:" uJ1jJJ(r, z)
/
(8.62)
j=l
The interpolation functions 1jJj(r, z) are the same as those developed in (8.25) and (8.31a) for linear triangular and rectangular elements, with x = rand y = z. Substitution of (8.62) for u and 1jJ1 for w into the weak form gives the ith equation of the finite element model:
~ O-- LJ j=l
[1 Q'
(~all-::;--::;-+an----+ 81jJf 81jJJ ~ 81jJf 81jJj a~ oo'l/J ei1jJje)r d r dz ] Uje or or OZ oz
- 1o. 1/111r dr dz -
t
1/11q" ds
(8.63)
or
o= 2:" Kijuj - ff -
Qi
(8.64a)
j=l
where
n=
i
(8.64b)
1fJ11r dr dz,
Q'
Exact evaluation of the integrals in Kij and f1 for polynomial forms of aij and J. is possible. However, we evaluate them numerically using the numerical integration methods discussed in Chapter 7 (see Section 7.1.5), and reviewed in Chapter 9. This completes the development of the finite element model of an axisymmetric problem.
8.2.10 An Example The model equation in (8.1) arises in many fields of engineering and applied sciences, and some examples are given in Table 8.1. The application of the
SINGLE·VARIABLE PROBLEMS
325
finite element model developed in Sections 8.2.2-8.2.8 to a problem is discussed here. This example will be particularly useful for readers who are interested in the mathematical aspects rather than the physical background of the problem. Example 8.3. Consider the Poisson equation 2
_(iYu2 + B 1t) = fo in Bx
By 2
Q
(8.65)
in a square region Q (see Fig. 8.12a). The boundary condition of the problem is It
= 0
on
r
(8.66)
We wish to solve the problem using the finite element method. A problem possesses symmetry of the solution about a line only when there is symmetry of (a) the geometry, (b) the material properties, (c) the source variation, and
y
f 1.0 r-------"------r
Line of symmetry
~=o
ax
14=0
Domain used for the triangular-element meshes
(a)
6
15 _~.---:...,14
x
2 au =0 ay (b)
4
11
(c)
FIGURE 8.12 Finite element analysis of the Poisson equation in a square region: (a) geometry and computational domain, and boundary conditions of the problem; (b) a coarse finite element mesh of linear triangular elements; (c) a refined mesh of linear triangular elements (Example 8.3).
326
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
(d) the boundary conditions about the line. Whenever a portion of the domain is modeled to exploit symmetries available in the problem, a portion of the boundary of the computational domain is a line of symmetry. On lines of symmetry, the normal derivative of the solution (i.e., the derivative with respect to the coordinate normal to the line of symmetry) is zero:
au au
au
q :=-=-n +-n =0
" an ax'< ay
(8.67)
Y
The problem at hand has symmetry about the x = 0 and y = 0 axes; it is also symmetric about the diagonal line x = y (see Fig. 8.12«). We can exploit such symmetries in modeling the problem. Thus, we can use a quadrant for meshes of rectangular elements and an octant for meshes of triangular elements of the domain to analyze the problem. Of course, it is possible to mix triangular and rectangular elements to represent the domain as well as the solution. • "Solution by linear triangular elements. Owing to the symmetry along the diagonal x = y, we model the triangular domain shown in Fig. 8.12(a). As a first choice, we use a uniform mesh of four linear triangular elements to represent the domain (see Fig. 8.12b), and then a refined mesh (see Fig. 8.12e) to compare the solutions. In the present case, there is no discretization error involved in the problem because the geometry is exactly represented. Elements 1,3, and 4 are identical in orientation as well as geometry. Element 2 is geometrically identical with element 1, except that it is oriented differently. If we number the local nodes of element 2 to match those of element 1 then all four elements have the same element matrices, and it is necessary to compute them only for element 1. When the element matrices are calculated on a computer l such considerations are not taken into account. In solving the problem by hand, we use the correspondence between a master element (element 1) and the other elements in the mesh to avoid unnecessary calculations. We consider element 1 as the typical element, with its local coordinate system (x, y). Suppose that the element dimensions, i.e., length and height, are a and b, respectively. The coordinates of the element nodes are
Hence, the parameters ai' al
f3/, and
=X2Y3 -X3Y2 = ab,
f3, =
)12- )13= -b,
YI = -(X 2-X3) =0,
YI are given by a'2
=X 3)11-XIY3= 0,
P2 = Y3 - Yl = b, Y2
=
a'3
133 = )II - Y2
-(X3 -Xl) = a, -r
=XIY2-xdl = 0
=0
(8.68)
Y3 = -(Xl - X2) ""a
(8.69a)
.The element matrix in (8.69a) is valid for the Laplace operator - V2 on any right-angled triangle with sides a and b in which the right-angle is at node 2, and the diagonal line of the triangle connects node 3 to node 1. Note that the off-diagonal coefficient associated with the nodes on the diagonal line is zero for a right-angled triangle. These observations can be used to write the element matrix associated with the
SINGLE-VARIABLE PROBLEMS
327
Laplace operator on any' right-angled triangle, i.e., for any element-node numbering system. For example, if the right-angled corner is numbered as node 1, and the diagonal-line nodes are numbered as 2 and 3 (following the counter-clockwise numbering scheme), we have (note that a denotes the length of side connecting nodes 1 and 2) . 2
[K
e]
a
=_1~
2ab [
+b
2
-a
2
•
0
(8.69b)
2
a
0
For the mesh shown in Fig. 8.12(b), we have
[K 1] = [K 2] = [K 3 ] = [K 4] ,
{r} = {F} = {fJ}
=
{r}
For a = b, the coefficient matrix in (8.69a) takes the form
[K e ] =
~ ~ ~ ~] [ _
-
o
(8.70)
_
-1
1
The assembled coefficient matrix for the finite element mesh is 6 x 6, because there are six global nodes, with one unknown per node. The assembled matrix can be obtained directly by using the correspondence between the global nodes and the local nodes, expressed through the connectivity matrix
[B] =
123] [ 5 3 2 245 356
(8.71)
The assembled system of equations is
21
~t:L~lj=LJJ-I~:l fol~l !~i.;-~!;-~Ll 0
o
o
-1 0: 2 -1 0 -2 :-1 4 0 0: 0 -1
0 -1 1
U4
=
Us
U6
24 1 3 1
+
Qi
(8.72)
Qi+Q~+Q~
Qj
The sums of the secondary variables at global nodes 2,3, and 5 are
Q~ + Qj + Q~ == 02 Q~
+ Q~ + Qi== 03
(8.73)
Qi+ Q~+ Qi==Os
Q:
At nodes 1, 4, and 6, we have == 01, Q~== 04' and Qj== 06' The specified boundary conditions on the primary degrees of freedom of the problem are U4 = U5 = U6=0
(8.74)
The specified secondary degrees of freedom are (all due to symmetry)
01 =0,
02 =0,
03= 0
Since U4 , Us, and U6 are known, the secondary variables at these nodes, i.e., and <26' are unknown, and can be obtained in the post-computation.
(8.75)
04. Os,
328
ANITE ELEMENT ANALYSIS OF nYO·DIMENSIONAL PROBLEMS
Since the only unknown primary variables are (Vt , V2 , and V 3 ) , and (V4 , Vs, and V6 ) are specified to be zero, the condensed equations for the primary unknowns can be obtained by deleting rows and columns 4, 5, and 6 from the system (8.72). In retrospect, it would have been sufficient to assemble the element coefficients associated
with the global nodes 1,2, and 3, i.e., writing out equations 1, 2 and 3: 3
K12 K1 Kll Kil K~2+Ki3+Kil Kb+Ki2 [ K~I Kj2 + Ki3 K~3 + K~ + Ktl
V2 V3
0
=
f~
+Ii + ft
0
~:} -{Ii +;1+ Ii} +[~ Ki3:1K~1 ~K~l] Jt ~:} f ° Kiz
=
Q6
(8.76)
Q4. Qs, and Q6 can be computed either from
The unknown secondary variables the equations (i.e., from equilibrium)
{
]{UI} {fi+fi+fi fl } + {OJ
K 31
0
3
(,g.77)
V3
or from their definitions (8.73) and (8.47). For example, we have, (8.78a)
where
3
(au
au)
(qn)2-3= -a n, +-a fly x y
au
2-3
(n; = 1,
=-a
lly
= 0)
X
Thus,
where
aulax from the finite element interpolation is au =
ax
We obtain (h 23= a,
f3i = -a,
2A 3
= a2 ,
±uJ Pi j~1
2A 3
V 4 = Us = 0) (8.78b)
Using the numerical values of the coefficients Kij and/7 (withfo == 1), we write the condensed equations for VI' Uz , and V3 as
0.5 -0.5 -0.5 2.0 [ o -1.0
-~.o]{~~} 2~{~} =
2.0
V3
3
(8.79)
S[NGLENARIABLE PROBLEMS
329
Solving (8.79) for U; (i = I, 2, 3), we obtain
{ ~~} =2~ [~. ~ ~:~ ]{~} =~{~:; }{~:~~~:~} =
U3
0.5
0.5
and, from (8.77), we have
Q~2} = ~~
{ Q~2 + Q~
3
{1} [0
24
Qj2
0.75
+
3 1
24
4.25
(8.80)
0.17708
-0.5 0 0
0 0
By interpolation, Qh, for example, is equal to ~0.5U2' and it differs from Qi2 computed from equilibrium by the amount I~ ( = il). Solution by linear rectangular elements. Note that we cannot exploit the symmetry along the diagonal x = y to our advantage when we use a mesh of rectangular elements. Therefore, we use a 2 x 2 uniform mesh of four linear rectangular elements (see Fig. 8.13) to discretize a quadrant of the domain. Once again, no discretization error is introduced in the present case. Since all elements in the mesh are identical, we Shall compute the element matrices for only one element, say element 1. We have
'l/J[
= (1- 2.\')(1- 2y),
'l/J2 = 2.\'(1- 2y),
1/13 = 4xy,
K~·
n
-y-; -y~/
=
f
["5
--y; -_Y/
u"" 0
9
8
7
OX
ou
6 II
-=0
""
0 11
""~""o oX 6
ell 2
23
24
25
@
V
CD
22
6
5
4
21
@)
®
~=o
(8.82)
/01/1; dx dy
U""O
1
'l/J4 = (1 - 2.\')2y
.51°·5(8'1' a,l, + aoh a'h) dx d= 0 " 1 o o ax ax ay 8y y 5
20 15 u
G)
® (j) ®
CD
@
>
0
10
3
2
ou
G) @) 3
4
5
-""0
or
or
Four-element mesh
Sixteen-element mesh
Qi3
Qh
Qi4$t=43
Q§2
Q'14
Qe22
10z
Qh
Qil
FIGURE 8.13 Finite element discretization of the domain of Example 8.3 by linear rectangular elements.
330
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
Evaluating these integrals, we obt~in {see (8.44): [Ke} = [Sll] 4
-1
-2 ~11 [K e ] =~ -1 4 -1 -2 4 -1 ' 6 [ -2 -1 -1 -2 -1 4
{P'}
+ [S22]}
=J..{~} {~i} 16
1
+ Q;
1
Q~
(8. 83a)
where
(8.83b) "-
and (xi , 5't) denote the local coordinates of the element nodes (and a ~ X2- X 1 = X3- X4 and b = 94 - 91 = 9J - 92)' The coefficient matrix of the condensed equations for the Pfimary unknowns can be directly assembled. There are four unknowns (at nodes 1, 2, 4, and 5). The condensed equations are
(8. 84a)
where K lJ and F/ are the global coefficients
KJl = K[l,
K I2= Kt2.
K22= K;2 + K~I' K4-I = K1 + K;t>
K t4 = Kl 4,
K 24 = KL,
K 45 = K13 + K;2'
K 15 = Kl 3
K~ = Kh +
Ki4 K 55= K~3 + KL + K{t + K~2
(8.84b).
1'2 = Ii +Ii + Qi + Qt, F, = f1 + f~ + Q1+ Q{ Fs = + f~ + f{ + + Qj + Q~ + Qi + Q~
1'; = fl + Ql,
n
n
The boundary conditions on the secondary variables are
Ql=o,
Qi+Qi=O,
Ql+Q;=o
(8.85a)
and the balance of secondary variables at global node 5 requires
Qj + Q~ + Q~ + Q{ = 0
(8.85b)
Thus, we have 4 -1 -1 1 -1 8 -2 6 [ -1 -2 8 -2 -2 -2 -2 16
=~l{~~}=2-{~} U4
U5
16 2 4
(8.86)
The solution of these equations is
U1=0.31071,
U2=0.24107,
U4=0.24107,
U5=0.19286
(8.87)
SINGLE-YARIABI.E PROBLEMS
331
The secondary variables 03' 06' and 09 at nodes 3, 6, and 9, respectively, can be 2 2 4 computed from the equations (Q3 = Q2. Q6 = Q3 + Q2' Q9 = Q3) ,
4~
A
A
(8. 88a)
where K 31 = 0,
K 32 = K~1> K 62 = K~I>
K 6 1 = 0,
K 91 = 0,
K 34 = 0,
= 0, K 94 = 0,
K 64
K n = 0,
K 3S = KJ: K 6S = KL + Kil
(8.88b)
K 95 = Kjl
We have Q3
1
1
1 0
1
1
0
2 +"6 [ 0 { q6A} =-6 {} Q9
-1 0 - 2 -2 0 -2 0 0 -2
U
0.16697
U:
0.12679
] { UUl}2 = -{0.26964}
(8.89)
The finite element solutions obtained using two different meshes of triangular elements and two different meshes of rectangular elements are compared in Table 8.2 with the 50-term series solution (at x = 0 for varying y) in (2.102) (set k = 1, qo =to = 1) and the one-parameter Ritz solution in (2.101); see also Fig. 8.14. The finite element solution obtained using 16 triangular elements (in an octant) is the most accurate one when compared with the series solution. The accuracy of the triangular element mesh is due to the large number of elements it has compared with the number of elements in the rectangular element mesh for the same size of domain. The solution u and its gradient can be computed at any interior point of the domain. For a point (x, y) in the element g', we have
U(x, y) =
2:" uj1J!j(x, y)
(8.90a)
J~1
au " a1J!r qix,y)=-a =2: u ' aY y 1-1
r-
au " a1J!~ qAx,y)=-a =2: u ;-a
(8.90b)
j
~
I~l
'X
TABLE 8.2
Comparison of the finite element solutions u(O, y) with the series solution and the Ritz solution of (8.65) (Example 8.3) Triangular elements
y
4 elements
16 elements 4 elements
Series Ritz solution 16 elements (2.101) (2.102)
0.0 0.25 0.50 0.75 1.0
0.3125 0.2709t 0.2292 O.l146t 0.0000
0.30t3 0.2805 0.2292 0.1393 0.0000
0.2984 0.2824 0.2322 0.1414 0.0000
t Interpolated values.
Rectangular elements
0.3107 0.2759t 0.2411 0.1205t 0.0000
0.3125 0.2930 0.2344 0.1367 0.0000
0.2947 0.2789 0.2293 0.1397 0.0000
332
FINITE ELEMENT ANALYSIS OF TWO·DIMENSIONAL PROBLEMS
u(x, 0)
0.35 , . . - - - - - - - - - - - - - - - - - ; u(x, 0) = u(O, y)
0.30
0.25
0.20
ax- x, iJu (
0.15
0.10
o 4 elements {FEM o 16 elements triangles
0.6 ,
i')
= q;c I
0.5
--- Ritz solution (2.101) 1 - Series solution (~)9.~L ...... j
0.4
r--------
16 elements i (rectangle~)..~ j 0.05 r---~-16 elements ...............J (triangles)
0.3
0.00 x 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
FIGURE 8.14 Comparison of the finite element solution with the two-parameter Ritz solution and the series solution (8.65) and (8.66) (Example 8.3).
Note that for a linear triangular element, q;c and qy are constants over an entire element, whereas q;c is linear in y and qy is linear in x for a linear rectangular element. For example, consider element 1. For triangular elements (4 elements),
(8.91a)
while for rectangular elements (4 elements), 4
a1jJ~
q; == 2: uJ - ' == -2U\(1- 2y) + 2U f~l ax
2(1-
2y) + 4yU5 - 4yU4
q;(0.25, 0.25) == -0.11785 q~ ==
a1J!\
,6 uJ ay' 4
q~(O.25,
== -2U1(1- 2x)
(8.91b)
+ 2U2(1- 2x) + 4xU5 - 4xU4
0.25) = -0.11785
Plots of q", obtained using the 16-element meshes of linear triangular and rectangular elements, as a function of x (for Y = 0.125) are also shown in Fig. 8.14.
SINGLE-VARIABLE PROBLEMS
333
The computation of isolines, i.e., lines of constant u, for linear finite elements is straightforward. Suppose that we wish to find the u = Uo (constant) isoline. On a side of a linear triangle or rectangular element, the solution u varies according to the equation
U'(, ) S
= Ule + u~ -h
u~
S
where s is the local coordinate with its origin at node 1 of the side, (u1, uD are the nodal values (see Fig. 8.15), and h is the length of the side. Then, if II == Uo lies on the line (i.e., u1 < Uo < ll3 or u] < Uo < uD, the point So at which Ve(so) = Uo is given by (8.92) Similar equations apply for other sides of the element. Since the solution varies linearly between any two points of linear elements, the isoline is determined by joining two points on any two sides of the element for which (8.92) gives a positive value (and So < h). For quadratic elements, isolines are determined by finding three points S; in the element at which Ve(Sj) = Uo (i = 1, 2, 3): So
-=
h
-b ± (b 2 - 4ac)ll2 >0 2a
(8.93a)
where
c = u1- uo,
b
= -3u1 + 4U2 -
u~,
a = 2(ui- 2U2 + u~)
(8.93b)
Equation (8.93a) is to be applied on any three lines in the element until three different values h > So > 0 are found. The computational problem considered here [i.e., (8.65)] has several physical interpretations (see Table 8.1). The problem can be viewed as one of finding the temperature u in a unit square with uniform internal heat generation, where the sides x = 0 and y = 0 are insulated and the other two sides are at zero temperature (see Section 8.4.1). Another interpretation of the equation is that it defines the torsion of a cylindrical bar of 2 in square cross-section (see Section 8.4.3). In this case, U denotes the stress function 'II,
FIGURE 8.15 Isolines for triangular and quadrilateral elements (linear elements).
334
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
and the components of the gradient of the solution are the stresses (which are of primary interest):
a
YZ
aw ax
=-G(J-
where G is the shear modulus and () is the angle of twist per unit length of the bar. A third interpretation of (8.65) is provided by groundwater (seepage) and potential flow problems. In this case, u is the piezometric head rjJ, stream function 1./J or velocity potential rjJ (see Section 8.4.2). The x and y components of the velocity for the groundwater flow are defined as
where all and an are the permeabilities of the soil along the x and y directions, respectively. ( Examples of each of these field problems will be considered in Section 8.4.
8.3 SOME COMMENTS ON MESH GENERATION AND IMPOSITION OF BOUNDARY CONDITIONS 8.3.1 Discretization of a Domain The representation of a given domain by a collection of finite elements requires engineering judgement on the part of the finite element practitioner. The number, type (e.g., linear or quadratic), shape (e.g., triangular or rectangular), and density (i.e., mesh refinement) of elements used in a given problem depend on a number of considerations. The first is to discretize the domain as closely as possible with elements that are admissible. As we shall see later, one can use one set of elements for the approximation of a domain and another set for the solution. In discretizing a domain, consideration must be given to an accurate representation of the domain, point sources, distributed sources with discontinuities (i.e., sudden change in the intensity of the source), and material and geometric discontinuities, including are-entrant corner. The discretization should include, for example, nodes at point sources (so that the point source is accurately lumped at the node), re-entrant corners, and element interfaces where abrupt changes in geometry and material properties occur. A second consideration, which requires some engineering judgement, is to discretize the body or portions of the body into sufficiently small elements so that steep gradients of the solution can be accurately calculated. The engineering judgement should come from both a qualitative understanding of the behavior of the solution and an estimate of the computational costs involved in the mesh refinement (i.e., reducing the size of the elements). For example, consider inviscid flow around a cylinder in a
J
SINGLE-VARIABLE PROBLEMS
335
Vo FIGURE 8.16 Flow of an inviscid fluid around a cylinder (streamlines).
channel. The flow entering the channel at the left goes around the cylinder and exits the channel at the right (see Fig. 8.16). Since the section at the cylinder is smaller than the inlet section, it is expected that the flow accelerates in the vicinity of the cylinder. On the other hand, the velocity field far from the cylinder (e.g., at the inlet) is essentially uniform. Such knowledge of the qualitative behavior of the flow allows us to employ a coarse mesh (i.e., elements that are relatively large in size) at sites sufficiently far from the cylinder, and a fine one at closer distances to the cylinder (see Fig. 8.17). Another purpose of using a refined mesh near the cylinder is to accurately represent the curved boundary of the domain there. In general, a refined mesh is required in places where acute changes in geometry, boundary conditions, loading, material properties or solution occur. A mesh refinement should meet three conditions: (1) all previous meshes should be contained in the refined mesh; (2) every point in the body can be included within an arbitrarily small element at any stage of the mesh refinement; and (3) the same order of approximation for the solution may be retained through all stages of the refinement process. The last requirement eliminates comparison of two different approximations in two different meshes. When a mesh is refined, care should be taken to avoid elements with very large aspect ratios (i.e., the ratio of the smallest to the largest side of the element)
Yt i--------,------,--------,-----,-----.
.. x FIGURE 8.17 Finite element mesh considerations for inviscid flow around a cylinder. A typical mesh for a quadrant of the domain.
336
FINITE ELEMENT ANALYSIS OF TWO·D1MENSIONAL PROBLEMS
or small angles. Recall from the element matrices (8.41) and (8.68) that the coefficient matrices depend on the ratios of a to band b to a. If the value of a/b or b/a is very large, the resulting coefficient matrices are ill-conditioned (i.e., numerically not invertible). Although the safe lower and upper limits on b/a are believed to be 0.1 and 10, respectively, the actual values are much more extreme (say, 1000), and they depend on the nature of the physical phenomenon being modeled. For example, in the inviscid flow problem discussed above, large aspect ratios are allowed at the entrance of the channel. The words "coarse" and "fine" are relative. In any given problem, one begins with a finite element mesh that is believed to be adequate (based on experience and engineering judgement) to solve the problem at hand. Then, as a second choice, one selects a mesh that consists of a larger number of elements (and includes the first one as a subset) to solve the problem once again. If there is a significant difference between the two solutions, on~ sees the benefit of mesh refinement, and further refinement may be warranted. If the difference is negligibly small, further refinements are ,not necessary. Such numerical experiments with mesh refinements are not always feasible in practice, mostly because of the computational costs involved. In cases where computational cost is the prime concern, one must depend on one's judgement concerning what is a reasonably good mesh, which is often dictated by the geometry and qualitative understanding of the variations of the solution and its gradient. Since most practical problems are approximated in their engineering formulations, one should not be overly concerned with the numerical accuracy of the solution. A feel for the relative proportions and directions of various errors introduced into the analysis helps the finite element practitioner to make a decision on when to stop refining a mesh. In summary, scientific (or engineering) knowledge and experience with a given class of problems is an essential part of any approximate analysis.
8.3.2
Generation of Finite Element Data
An important part of finite element modeling is mesh generation, which involves numbering the nodes and elements, and the generation of nodal coordinates and the connectivity matrix. While the task of generating such data is quite simple, the type of the data has an effect on the computational efficiency as well as on accuracy. More specifically, the numbering of the nodes directly affects the bandwidth of the final assembled equations, which in turn increases the storage requirement and computational cost if equation solvers with the Gauss elimination procedure are used. The elements can be numbered arbitrarily, because this has no effect on the half-bandwidth. In a general-purpose program with a preprocessor, options to minimize the baridwidth are included. The saving of computational cost due to a smaller bandwidth in the solution of equations can be substantial, especially in problems where a large number of nodes and degrees of freedom per node are involved. While element numbering does not affect the half-bandwidth, it may
SINGLE·VARIABLE PROBLEMS
337
affect the computer time required to assemble the global coefficient matrixusually, a very small percentage of the time required to solve the equations. The accuracy of the .finite element solution can also depend on the choice of the finite element mesh. For instance, if the selected mesh violates the symmetry of the problem, the resulting solution will be less accurate than one obtained using a mesh that agrees with the physical symmetry of the problem. Geometrically, a triangular element has fewer (or no) lines of symmetry compared with a rectangular element, and therefore one should use meshes of triangular elements with care (e.g., one should select a mesh that does not violate the mathematical symmetry present in the problem). The effect of the finite element meshes shown in Fig. 8.18 on the solution of the Poisson equation in Example 8.3 is investigated. The finite element solutions obtained by the three meshes are compared with the series solution in Table 8.3. Clearly, the solution obtained using mesh 3 is less accurate. This is to be expected, because mesh 3 is symmetric about the diagonal line connecting node 3 to node 7, whereas the mathematical symmetry is about the diagonal line connecting node 1 to node 9 (see Fig. 8.18). Mesh 1 is the most
7~
fY
8
0/0)/
7t
9
8
9
®
5
4
Y
%
6
4
@ (1) 3
L
0""""'-"" x
2
3
%
----x
(b)
(a)
4 %%1,-------"'i--------'l
(c)
FIGURE 8.18 Various types of triangular-element meshes for the domain of Example 8.3: (a) mesh 1; (b) mesh 2; (c) mesh 3.
338
ANITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
TABLE 8.3
Comparison of the finite element solutions obtained using various linear triangular-element meshest with the series solution of the problem in Example 8.3 Finite element solution Node
Mesh 1
Mesh 2
Mesh 3
Series solution
1 2 4 5
0.31250 0.22917 0.22917 0.17708
0.29167 0.20833 0.20833 0.18750
0.25000 0.20833 0.20833 0.16667
0.29469 0.22934 0.22934 0.18114
t See Fig. 8.18 for the finite element meshes.
/'
desirable of the three, because it does not violate the mathematical symmetry of the problem. Next, the effect of mesh refinement with rectangular elements is investigated. Four different meshes of rectangular elements are shown in Fig. 8.19. Each mesh contains the previous mesh as a subset. The mesh shown in Fig. 8.19(c) is nonuniform; it is obtained by subdividing the first two rows and columns of elements of the mesh shown in Fig. 8.19( b). The finite element solutions obtained by these meshes are compared in Table 8.4. The numerical
(a)
(b)
(c)
(d)
FIGURE 8.19 Mesh refinement; the meshes in (a), (b), and (d) are uniform; the mesh in (c) is nonuniform: (a) 2 x 2 mesh; (b) 4 x 4 mesh; (c) 6 x 6 mesh; (d) 8 x 8 mesh.
SINGLE·VARIABLE PROBLEMS
339
TABLE 8.4
Convergence of the finite element solution refinementt) of the problem in Example 8.3 Location
(with
mesh
Finite element solution
x
r
2X2
4x4
6x6
8X8
Series solution
0.0 0.125 0.250 0.375 0.50 0.625 0.750 0.875 0.125 0.250 0.375 0.50 0.625 0.750 0.875
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.125 0.250 0.375 0.50 0.625 0.750 0.875
0.31071
0.29839
0.23220
0.29641 0.29248 0.28055 0.26022 0.23081
0.14137
0.14064
0.29560 0.29167 0.27975 0.24943 0.23005 0.19067 0.14014 0.07709 0.28781 0.26498 0.22873 0.18179 0.12813 0.07332 0.02561
0.29469 0.29077 0.27888 0.25863 0.22934 0.19009 0.13973 0.07687 0.28692 0.26415 0.22799 0.18114 0.12757 0.07282 0.02510
0.28239 0.24107
0.18381
0.28862 0.26580 0.22960 0.18282
0.07506
0.07481
0.26752 0.19286
t See Fig. 8.19 for the finite-element meshes.
convergence of the finite element solution of the refined meshes to the series solution is apparent from the results presented.
8.3.3 Imposition of Boundary Conditions In most problems of interest, one encounters situations where the portion of the boundary on which natural boundary conditions are specified has points in common with the portion of the boundary on which the essential boundary conditions are specified. In other words, at a few nodal points of the mesh, both the primary and secondary degrees of freedom may be specified. Such points are called singular points. Obviously, one cannot impose boundary conditions on both the primary and secondary variables at the same point. As a general rule, one should impose the essential boundary condition (i.e., the boundary condition on the primary variables) at the singular points and disregard the natural boundary condition (i.e., the boundary condition on the secondary variables), because the essential boundary conditions are often maintained more strictly than the natural ones. Of course, if the true situation in a problem is that the natural boundary conditions are imposed and the essential boundary conditions are a result of this then consideration must be given to the former. Another type of singularity that one encounters in the solution of boundary value problems is the specification of two different values of a primary variable at the same boundary point. An example of such a case is provided by the problem in Fig. 8.20, where u is specified to be zero on the
340
FINITE ELEMENT ANALYSIS OF TWO·DlMENSIONAL PROBLEMS
US=Y 5
I 6
11
16
- - - -
-- -
21
6
4 x 4 mesh (mesh 1)
(a)
11
16
21
(b)
, - - -
1 10 ....
73 (c)
73
1 10 ....
8 x 8 mesh (mesh 2)
Cd)
FIGURE 8.20 Effect of specifying (either of the) two values of a primary variable at a boundary node [node 5 in (a) and (b) and node 9 in (c) and (d»).
boundary defined by the line x = 0 (for any y), and to be unity on the boundary defined by the line y = 1 (for any x). Consequently, at x = 0 and y = 1, u has two different values. In the finite element analysis, one must make a choice between the two values, or a weighted average of the two values can be used. When a choice is made between two values, often the larger one is imposed. In any case, the true boundary condition is replaced by an approximate condition. The closeness of the approximate boundary condition to the true one depends on the size of the element containing the point (see Fig. 8.20). A mesh refinement in the vicinity of the singular point often yields an acceptable solution.
8.4 APPLICATIONS 8.4.1 Heat Transfer In Chapter 3, Section 3.3.1, heat transfer (by conduction and convection) in one-dimensional (axial and radially symmetric) systems was considered. Here
SINGLE·VARIABLE PROBLEMS
341
we consider heat transfer in two-dimensional plane and axisymmetric systems. The derivation of two-dimensional heat transfer equations in plane and axisymmetric geometries follows the same procedure as in one dimension, but considers heat transfer in the two directions. Details of such derivations can be found in textbooks on heat transfer (see the references at the end of the chapter). Here we record the governing equations for various cases, construct their finite element models, and present typical applications. For heat conduction in plane or axisymmetric geometries, the finite element models developed in Sections 8.2 and 8.3 are immediately applicable with the following interpretation of the variables:
u = T == temperature (in "C) qn == negative of heat flux (in W m- 2 OC- 1) all, a22
== conductivities (in W m"
I)
of an orthotropic medium whose principal material axes coincide with the (x, y) axes OC-
1== internal heat generation (in W m ?
(8.94)
°C- 1)
aoo=O
For convective heat transfer, i.e., when heat is transferred from one medium to the surrounding medium (often a fluid) by convection, the finite element model developed earlier requires some modification. This is because, in two-dimensional problems, the convective boundary is a curve as opposed to a point in one-dimensional problems. Therefore, the contributions of the convection (or Newton-type) boundary condition to the coefficient matrix and source vector are to be computed by evaluating boundary integrals involving the interpolation functions of elements with convective boundaries. The model to be presented allows the computation of the additional contributions to the coefficient matrix and source vector whenever the element has the convection boundary condition. PLANE SYSTEMS. The governing equation for steady-state heat transfer in plane systems is a special case of (8.1), and is given by
- ~ax (k
x
all -~(k aT\ = I(x, y) a~) ay YayJ
(8.95)
where T is the temperature (in "C), k; and k y are the thermal conductivities (in W m" °C- 1) along the x and y directions, respectively, and I is the internal heat generation per unit volume (in W m- 3 ) . For a convective boundary, the natural boundary condition is a balance of energy transfer across the boundary due to conduction and/or convection (i.e., Newton's law of cooling): (8.96)
where
fJ is the convective conductance (or the convective heat transfer
342
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
coefficient) (in W m-2 "C- 1) , Too is the (ambient) temperature of the surrounding fluid medium, and qn is the specified heat flow. The first two terms account for heat transfer by conduction, the third for heat transfer by convection, while the term on the right-hand side accounts for the specified heat flux, if any. It is the presence of the term f3(T - Too) that requires some modification of (8.10). The weak form of (8.95) can be obtained from (8.8). The boundary integral should be modified to account for the convective heat transfer term in (8.96). Instead of replacing the coefficient of w in the boundary integral by qn, we use (8.96) (qn is replaced by qn> which is obtained on the element boundary):
0=
i( >.I'
aw sr aw-a T!) dx dy>- Tr w (aT aT) kx--+k -w kx-n +k n ds ax ax Y ay ay rax x y oy y
"
= B(w, T) -lew)
(8.97a)
where w is the weight function, and R(·, .) and 1(·) are the bilinear and linear forms aWaT owaj R(w, T)= kx--+k dxdy+ f3wTds y >.I' ax ax oy ay r(8. 97b) lew) = w] dx dy + 1. f3wToo ds + 1. wq" ds
i
1( 1
Jr<
>.I'
Jr.-e
The finite element model of (8.58) is obtained by substituting the finite element approximation of the form ~~,-/: l ~
,~ &-
n
T
= 2:
Tj1jJj(x, y)
(8.98)
;~l
for T and
1jJf for w into (8.97): n
2: (Kij + Hf;)Tj = Ff + r; ;=1
(8.99a)
where
ic:I; = L (kx a1jJi a1jJi a1jJ;) d d a a1jJ; a + kY::l a x y >.I'
Ff =
X
X
c,jy
Y
L f1jJi dx dy + Jr< 1. q~1jJi ds == If + Qf >.I'
(8.99b)
SINGLE-VARIABLE PROBLEMS
343
Note that by setting the heat transfer coefficient f3 equal to zero, we obtain the heat conduction model with no account taken of convection. The additional coefficients Hij and Pf due to the convective boundary conditions can be computed by evaluating boundary integrals. These coefficients must be computed only for those elements and boundaries that are subject to the convective boundary condition. The computation of the coefficients for the linear triangular and rectangular elements is presented in the following paragraphs. The coefficients H'f; and P'f for a linear triangular element are defined by "h Ih~1 Hij = f3~2 0 tp'f1jJ'j ds + f3~3 0 1jJ'f1jJ'j ds + f3jl 0 1jJ'ftp'j ds (8.100)
l
.
P'f = f3~2T~2
Ihh
l"h 0
1jJ'f ds
+ f3~ Tz; Jr"~) 1jJ'f ds + f3jl T~l 1"3 0 o
1
1jJ'f ds
where f3ij is the film coefficient (assumed to be constant) for the side connecting nodes i and j of the element g", T% is the ambient temperature on that side, and hij is the length of the side. For a rectangular element, the expressions in (8.100) must be modified to account for four line integrals on four sides of the element.
3
/~
f"\
/"
Boundary of the discretized domain
"-
"
....
l
\
l
FIGURE 8.21 Triangular and quadrilateral elements, with node numbers and local coordinates for the evaluation of the boundary integrals. Also shown are the boundary approximation and flux representation using linear and quadratic elements.
344
FINITE ELEMENT ANALYSTS OF TWO-DIMENSIONAL PROBLEMS
The boundary integrals are line integrals involving the interpolation functions. The local coordinate s is taken along the side, with its origin at the first node of the side (see Fig. 8.21). As noted earlier, the interpolation functions on any given side are the one-dimensional interpolation functions. Therefore, the evaluation of integrals is made easy. Indeed, the integrals hfj
L wiwi ds, o
have been evaluated in Chapter 3 in connection with mass matrix coefficients and source vector coefficients for linear and quadratic elements. We summarize the results here. For a linear triangular element, the matrices [He] and {P"] are given by
[2 10] +
[He] = f312 h12 1 2 0 6 0 0 0 e
e
f323 h 23 6 e
e
[0 00] + 0 2 1
0 1 2
[~
"
0
f331 h3; 0 0 6 1 0 e
e
(8.101a)
{P"l =
Ph~!.'hu
Ii} +Ph~'2hh G}
+p;,T
2;!h;,
G}
(8.101b)
For a quadratic triangular element, we have
4 2 -1 2 16 2 -1 2 4 [He] = f3hhh 0 0 0 30 0 0 0 0 0 0
+ f3S1 h Sl 30
4 0 0 0 -1 2
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 -1 0 0 0 0 0 0 0
1 4 f32~ T I3h e {pe} = 13 '" 13 1 0 6 0 0
0 0 0
0
0 0 0 + f335 h3S 0 30 0 0
0 0 0 0 0 0 0 0 0 4 2 -1 2 2 16 0 2 4 0 -1 O· 0 0 0
0 0 0 0 0 0
2 0
0 0 4 2 2 16
0 0
e f3e35 T 3sh ee 35 + 6
(8.102a)
0 0 1 4 1 0
+
W51 T 51heSl cc
6
1 0 0 0 1 4
(8.102b)
SINGLE-VARIABLE PROBLEMS
345
For a linear rectangular element, the matrix [He] is of the form 0] {He] = f:3hhh ·12 21 00 00] + f:3~3hb [0 0 20 10 a 6 [ 0000 60120 0000 0000
+ f:3~4h~4
0 a a 0] + [
0 0 0 0 60021 0012
f:3~lh41
[2 001]
6
0 0 0 0 000 0 1002
and {pel is given by
{P'}
~Ph~~hh
{;} +
PbT2~hb {J} + P~~~h~
(8.103a)
mP:,~~'h:,{~} +
(8.103b)
Similar expressions hold for a quadratic rectangular element. AXISYMMETRIC SYSTEMS. For symmetric heat transfer about the z axis
(i.e., independent of the circumferential coordinate), the governing equation is given by
- [!~ T\J = fer, z) ror (rk oT\ a-;}+~ az (k a'a-;} r
z
(8.104)
where r is the radial coordinate and z is the axial coordinate. The temperature gradient vector is defined by
, (oL
aL)
q = r k, or i + k, az j
and the normal derivative of T (i.e., the negative of the heat flux) across the surface is qn
=
r(kr
oT n; + k; aT n z )
ar
oz
(8.105)
where n, and nz are the direction cosines of the unit normal ft, ft = n)
+nzJ
The weak form of (8.104) is given by
L w{-[!~ a1\J - f}rdrdz ror (krr a1\ a-;) +~(kz Bz 0-; J OW et oW O T ) J: = 2n k, or or + k, oz oz wf r dr dz - 2JtYr< wq; ds ( L
0= 2n
Q'
Q'
(8.106)
346
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
where the factors of 2n come from the integration with respect to the circumferential coordinate over (0,2n), and qn is given by (8.105). The convective boundary condition is of the form
q" + rf3(T - To» = qll Substituting for q" = -rf3(T - To»
O=2n
oWoT
+ fill
in (8.106), we obtain
oIVoT)
rdrdz-2n L (k,--;-+kz---w[ or or OZ OZ Q'
i
w[-rf3(T-Too)+fi,,]ds
P'
(8.107) The finite element model of this equation is "-
(8.108a)
where K':. = 2n ( (k o1J1f 01J1; + k otJIf o1J1i)r dr dz IJ lQ<' or or z 8z 8z
H':·IJ = 2n ~ f3 e ,I,,:. I'''r ds ' 't'l 'YJ 1"
Qi = 2n J. qll1J1f ds,
Yr,
n = 2n L 1J1f[r dr dz
(8.108b)
Q<
Pf = 2n J. f3eT~1J1fr
Y
ds
P
Evaluation of the line integrals in [He] and {P"] once again follows along the lines of Example 8.3. The finite element models in (8.99) and (8.108) are valid for conductive and convective heat transfer boundary conditions. Radiative heat transfer boundary conditions are nonlinear, and therefore are not considered here. For problems with no convective boundary conditions, the convective contributions [He] and {P"} to the element coefficients are omitted. Indeed, these contributions have to be included only for those elements whose sides faU on the problem boundary with convective heat transfer specified. For example, if side 2-3- of the element Qe is on the boundary with convective boundary conditions then the only contribution to [He] and {p e} comes from the second integrals in (8.100). Next we consider a couple of examples of heat transfer. Example 8.4. Consider steady-state heat conduction in an isotropic rectangular region of dimensions 3a by 2a (see Fig. 8.22a). The origin of the x and y coordinates is taken at the lower left corner such that x is parallel to the side 3a and y is parallel to the side 2a. The boundaries x = a and y = 0 are insulated, the boundary x = 3a is maintained at zero temperature, and the boundary y = 2a is maintained at a temperature T = Tacos (:rrx(6a). We wish to determine the temperature distribution using the finite element method in the region and the heat required at the boundary x = 3a to maintain it at zero temperature.
SINGLE-VARIABLE PROBLEMS
yt
347
T = To cos .2!::.
/ 6a T--r---------------, Insulated ___ __ T= 0
(n)
10
11
3
2 (b)
10
9
6
5
@
0)
®
12
11
7
@
CD 2
8
® 3
(c)
4
FIGURE 8.22 Finite element analysis of a heat conduction problem over a rectangular domain: (a) domain; (b) mesh of linear triangular elements; (c) mesh of linear rectangular elements. .
To analyze the problem, we first note that it is governed by (8.95) with zero internal heat generation, f = 0, and no-convection boundary conditions: (8.109)
Hence, the finite element model of the problem is given by (8.99) with [He] and {pel omitted:
[Ke]{u<} = {Q<} where
u~
(U e} = {O})
(8.UDa)
is the temperature at node i of the element ge, and (8. 110b)
348
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
Suppose that we use a 3 x 2 mesh (i.e., 3 subdivisions along the x axis and 2 along the y axis) of linear triangular elements and then a 3 x 2 mesh of linear rectangular elements. Both meshes have the same number of global nodes (12) but differing numbers of elements. Triangular element mesh (12 elements). The global node numbers, element numbers, and element node numbers used are shown in Fig. 8.22(b). Of course, the global node numbering and element numbering are arbitrary (they do not have to follow any particular pattern), although the global node numbering dictates the size of the half-bandwidth of the assembled equations, which in turn affects the computational time of Gauss elimination methods used in the solution of algebraic equations on a computer. The element node numbering scheme should be that used in the development of element interpolation functions. In the present study, a counter-clockwise numbering system was adopted (see (8.19) and Fig. 8.4]. According to the element node numbering scheme used in Fig. 8.22(a), all elements in the mesh fall into one of two geometric shapes: one with its base at the bottom of the element ,and another'with its base at the top of the element. By renumbering the element nodes, as shown in Fig. 8.12(b), all elements can be made to have a common geometric shape, and thus the element coefficients need to be computed only for a single element'. Such considerations are important only when hand calculations are carried out. For a typical element of the mesh of triangles in Fig. 8.22(b), the element coefficient matrix is [see (8.69a) and (8.70)]
[K<]
=~ 2
0] 1-1 [ -1 0
2-1 -1 1
where k is the conductivity of the medium. Note that the element matrix is independent of the size of the element, as long as the latter is a right-angled triangle with base equal to height. The assembly of the elements (on a computer) follows the logic discussed earlier. The boundary conditions require that
U4 = Us = U12 = 0,
F;=f;=F;=Fs=O
o« =!To
UIO =!v'3 To,
U9 = To,
(zero heat flow due to insulated boundary)
(8.111)
We first write the six finite element equations for th~ six unknown primary variables. These equations come from nodes 1, 2, 3, 5, 6, and 7:
2 -1 k -
2
0
-1 0 0
-1 4 -1 0
-2
0 -1 4 0 0
0
-2
-1 0 0 4
-2 0
0
-2
0 0
0
-2
-2
o
8
-2 8
-2
U2 U3 Us U6 U7
k
0 0
f'J CJ =2
10
(8.112).
V3 To To
The solution of these equations is (in "C)
U1 = 0.636210, Us = 0.721410,
U2 = 0.551010, U6 = O.6248To,
U3 = 0.3181To U7 = 0.360710
(8.113)
The exact solution of (8.109) for the boundary conditions shown in Fig. 8.22(a) is _ 7: cosh (ny/6a) cos (nx{6a) T (x,y ) - II hl cos 3n
(8. 114a)
SINGLE-VARIABLE PROBLEMS
349
Evaluating the exact solution at the nodes, we have (in "C)
T2 = 0.5412TcJ, 16= 0.6171TcJ,
T1 = O.6249TcJ,
15 = 0.712510,
1;=0.312410
17 = 0.356310
(8.1l4b)
The heat at node 4, for example, can be compared from the fourth finite element equation: ~
= Q~ = K 4 1 VI + K 42U2 + K 4 3V3 + K 44V4 + K 4SUS + K 4 6U6 + K 47V7 + K 4SUS +. .. (8. 115a)
Noting that K 41 = K 42 = K 4S = ... = K 4 ( 12 ) = 0 and U4 = Us = 0, we obtain Q~ = -!k U3 = -0. 1591kTo (in W) (8. 115b) Rectangular element mesh (6 elements). For a 3 x 2 mesh of linear rectangular elements (see Fig. 8.22c), the element coefficient matrix is given by (8.34) and (8.44) with aoo = 0, au = a22 = k, a 12 = 0, and a = b = 1:
k
e
[K
]
=6 [
-11
4 -1 -2 -1 4 -1 -2 -2 -1 4 -1 '
-1
-2 -1
{r} = to}
(8.116)
4
The present mesh of rectangular elements is node-wise-equivalent to the triangular element mesh considered in Fig. 8.22(b). Hence the boundary conditions in (8.111) are valid for the present case. The six finite element equations for the unknowns V1> U2 , U3 , Us, U6 , and U7 have the same form as before. The equations for the unknown temperatures (i.e., the condensed equations for the unknown primary variables) are given by
k -
6
4 -1 0 -1
-2 0
-1 8 -1
0 -1
-2 -2 -2
0
-2 -2 -2 -2
-2 -2
-2
16
-2
0
-2
16
-1
-2
8
-2 -2
0 8
0
0
fl ! I U2
V3 Us V6 U7
k
=6
0 0 To+V3To 0 To+ To 2To+ V3 V3 To+ To
(8.117)
Their solution is UI = O.6128To,
Us = O.7030To,
U2 = 0.5307To, U6 = O.6088To,
U:,=O.30641Q
U7 = O.3515To
(8.118)
The value of the heat at node 4 is given by
We note that the results obtained using the 3 X 2 mesh of rectangular elements is not as accurate as that obtained with 3 X 2 mesh of triangular elements. This is due to the fact that there are only half as many elements in the former case as in t,he latter. Table 8.5 gives a comparison of the finite element solutions with the analytical solution (8.114a) for two different meshes of linear triangular and rectangular elements, and Fig. 8.23 shows plots of T(x, 0) and qxCx, O)/To, computed using various meshes of
350
ANITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
TABLE 8.5
Comparison of the nodal temperatures T(x, y)/To, obtained using various finite element meshes, t with the analytical solution of (8.109) (Example 8.4) Triangles
Rectangles
x
y
3x2
6x4
3X2
6x4
Analytical solution (8. 114a)
0.0 0.5 1.0 1.5 2.0 2.5 0.0 0.5 1.0
0.0 0.0 0.0 0.0 0.0 0.0 1.0 1.0 1.0 1.0 1.0 1.0
0.6362
0.6278 0.6064 0.5437 0.4439 0.3139 0.1625 0.7148 0.6904 0.6190 0.5054 0.3574 0.1850
0.6128
0.6219 0.6007 0.5386 0.4398 0.3110 0.1610 0.7102 0.6860 0.6150 0.5022 0.3551 0.1838
0.6249 0.6036 0.5412 0.4419 0.3124 0.1617 0.7125 0.6882/ 0.6171 0.5p38 0.3563 0.1844
1.5 2.0 2.5
0,5510 0.3181 0.7214 0.6248 0.3607
0.5307 0.3064 0.7030 0.6088 0.3515
t See Fig. 8.22 for the geometry and meshes.
triangular and rectangular elements. Note that Qf are heats (in W) whereas q" is the flux (in W m") in the x direction (qx = -k aT/ ax). Next we consider an example involving convective heat transfer.
Example 8.5. Consider heat transfer in a rectangular region of dimensions a by b, subject to the boundary conditions shown in Fig. 8.24. We wish to write the finite element algebraic equations for the unknown nodal temperatures and heats. For illustrative purposes, a 4 x 2 mesh of rectangular elements is chosen. We assume that the medium is orthotropic, with conductivities k, and k, in the x and y directions, respectively. It is assumed that there is no internal heat generation. The heat transfer in the region is governed by the equation
- ~ax (k
x
aT\ - ~ (k aT\ = 0 8~)
8y
Yay)
The finite element model of the equation is given by [Ke + He]{ue} = {Qe} + {P'} ({fe} = {O})
(8.119)
where uf denotes the temperature at node i of the element Qe. The element matrices are
[Ke]=kxr[-~ -~1 -:2 -2-:]+!s:[ -1~ -2~ 6 -1 6r
1 -1
[He] =
-2
{3~iJ
2
[n ! ~] o
0 0 0
-2
-1
(e = 4, 8)
-1
-2]
-2 -1 2 1
1 2
40
Analytical ••·A---- Triangles - -0- Rectangles
60 T(x,O)
To
I
I
--A--
30
- -r--
= 100
!
I
Analytical 3 X 2 mesh
To = 100 , k=~tr--+__ _..I ----..eo.
1-·--j2~1 l_Ll
qx (x, 0)
'40
I
20
I
Rectangular elements
1O<---,V=1
20
___ l
oI 0.0
,
I '
2.0
1.0
Distance x (a)
'Q 3.0
I
o0.0r
'
i '
, 2.0
1.0
1
I
3.0
Distance x (b)
FIGURE 8_23
Comparison of the finite element solution with the analytical solution of the heat conduction problem of Example 8.4; (a) T(x, 0) versus x; (b) 8Tj8xversusx.
352
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
T = To
y 11 Insulated
•
.
/a
12/
~
•
@
9
@
CD
aT k-+fJ(T- T",) = 0
®
(J)
----
I
15
14
13
Q)
10
@
<. Insulated
T
ax
b
L,
FIGURE 8.24 Domain and boundary conditions for convective heat transfer in a rectangular domain. A mesh of linear rectangular elements is also shown (Example 8.5). "" I'
(8.120)
where
r = !b/~a =2bla There are 10 nodal temperatures that are to be determined, and heats at all nodes except nodes 7, 8, 9 and 10 are to be computed. To illustrate the procedure, we write algebraic equations for only representative temperatures and heats. Node 10 (for temperatures)
K~I U4 + (K~z + H~Z)U5 + (K13 + K~I)U9
+ (Kj3 + Hj3 + K~z + H~Z)U10 + K~4 UI4 + (K~3 + H~3) UI5 = (Qj + pj) + (Q~ + P~) = p~ + p~ (known) Node 14 (for heal Q14)
QI4 == Q~ + Q~ = K~I U8 + (Kiz
+ K11)U9 + K~ZULO + K~U13 + (Ki3 + Kt)U14 + K1PI5
From the boundary conditions, we know the temperatures at nodes 11-15 (i.e., Ull , UIZ, ... , UI5 are known). Substituting the values of Kij, Hij, and Pf, we obtain explicit form of the algebraic equations. For example, the algebraic equation corresponding to node 10 is
SINGLE-VARIABLE PROBLEMS
353
8.4.2 Fluid Mechanics Recall from Section 3.3.2 that there are three basic differential equations of fluid motion. They are as follows [see (3.100), (3.103), and (3.108)}: Conservation of mass
ap at
~+
V· p(v)=O
(8.121)
Conservation of linear momentum
Dv p-=f-VP+V'T Dt
(8.122)
p Dt + P(V • v) = V • (k VT) +
(8.123)
Conservation of energy De
Here p is the density, v is the velocity vector, f is the body force vector, P is the pressure, T is the viscous stress tensor, e is the internal energy, k is the thermal conductivity, T is the temperature and
D
a
-=-+v'V Dt at Equations (8.121)-(8.123) are supplemented with constitutive equations. A fluid is said to be incompressible if the volume change is zero,
V'v=O
(8.124)
and it is termed inuiscid if the viscosity is zero, fJ. = O. A flow with negligible angular velocity is called irrotational,
VXv=O
(8.125)
The irrotational flow of an ideal fluid (i.e., p = constant and Il = 0) is called a . For an ideal fluid (T ~ 0), the continuity and momentum equations can be written as
potential flow.
V'v=O tpV(v' v) - p[v X (V X v)] = where
vI' = VP
(8.126a)
-vI'
(8. 126b )
- f. For irrotational flow, the velocity field v satisfies (8.125).
354
FINITE ELEMEt'IT ANALYSIS OF TWO-DIMENSIONAl PROBLEMS
For two-dimensional irrotational flows, these equations have the forms au av -+-=0 ax ay
(8. 126c)
(8.126d) au av ---=0 8y ax
(8. 126e)
Equations (8.132), (8.133) and (8.126d) are used to determine u, u, and P. The problem of determining u, v, and P is simplified by introducing a function 1jJ(x, y) such that the continuity equation is identically satisfied: " /
III =7l!,v -~ I =
(8.127)
Then the irrotational flow condition in terms of 'ljJ takes the form (8.128) This equation is used to determine 1jJ, and then the velocities u and v are determined from (8.127) and P from (8.126d). The function 1jJ has the physical significance that lines of constant 1jJ are lines across which there is no flow, i.e., they are streamlines of the flow. Hence, 1jJ(x, y) is called the stream function. In cylindrical coordinates, the continuity equation takes the form (8.129) where u and v are the radial and circumferential velocity components. The stream function 1jJ(r, e) is defined by 1 a1jJ
u=--
rae'
a'ljJ
v=--
ar
(8.130) .
and (8.128) takes the form (8.131)
There exists an alternative formulation of the potential flow equations (8.126). We introduce the function >(x, y), called the velocity potential, such
SINGLE·VARIABLE PROBLEMS
355
that the condition of irrotational flow is identically satisfied:
I u~-~. U~-* I
(8132)
Then the continuity equation (8.126c) in terms of the velocity potential takes the form (8.133) Comparing (8.127) with (8.132), we note that
_ a¢ atp ax By '
_ a¢ ay
atp ax
(8.134)
The velocity potential has the physical significance that lines of constant ¢ are lines along which there is no change in velocity. The equipotential lines and streamlines intersect at right-angles. Although both tp and 4> are governed by the Laplace equation, the boundary conditions on them are different in a flow problem, as should be evident from the definitions (8.127) and (8.132). In this section, we consider applications of the finite element method to potential flows, i.e., the solution of (8.128) and (8.133). We consider two examples of fluid flow. The first deals with a groundwater flow problem and the second with the flow around a cylindrical body. In discussing these problems, emphasis is placed on certain modeling aspects, data generation, and postprocessing of solutions. Evaluation of element matrices and assembly is amply illustrated in previous examples, and will not be discussed, since it takes substantial space to write the assembled equations even for the crude meshes used in these examples. Example 8.6 Groundwater flow or seepage. The governing differential equation for a homogeneous aquifer (i.e., one where material properties do not vary withrposition) of unit depth, with flow in the (x, y) plane, is given by
_.i. (a a4» ax 11 ax
.». (a ay
22
a¢) =[ ay
(8.135)
where alI and an are the coefficients of permeability (in m day-f) along the x and y directions, respectively, 4> is the piezometric head (in rn), measured from a reference level (usually the bottom of the aquifer), and [is the rate of pumping (in m3 day-l m"). We know from the previous discussions that the natural and essential boundary conditions associated with (8.135) are Natural
(8.136a)
356
FINITE ELEMENT ANALYSIS OF nVO,DlMENSIONAL PROBLEMS
Essential
(8. 136b)
where f t and f 2 are the portions of the boundaryT of Q such that I', + f 2 = r. Here we consider the following specific problem: find the lines of constant potential 4J (equipotential lines) in a 3000 m X 1500 m rectangular aquifer Q (see Fig. 8.25) bounded on the long sides by an impermeable material (i.e., acpj an = 0) and on the short sides by a constant head of 200 m (o/a = 200 m). In the way of sources, suppose that a river is passing through the aquifer, infiltrating it at a rate of 0.24 m3 day " m-2 , and that two pumps are located at (1000, 670) and (1900, 900), pumping at rates Ql = 1200 m3 day"! m- t and Q2 = 2400 m3 day" m- I , respectively. Pumping is considered as a negative point source. A mesh of 64 triangular elements and 45 nodes is used to model the domain (see Fig. 8.26a). The river forms the interelement boundary bet'-'een elements (33,35,37,39) and (26,28,30,32). In the mesh selected, neither pump is located at a node. This is done intentionally for the purpose of illustrating the calculation of the generalized forces due to a point source within an element. If the pumps are located at a node then the rate of pumping Qa is input as the specified secondary variable of the node. When a source (or sink) is located at a point other than a node, we must calculate its contribution to the nodes. Similarly, the source components due to the distributed line source (i.e., the river) should be computed. First, consider the line source. We can view the river as a line source of constant intensity, 0.24'm 3 day" m- 2 • Since the length of the river is equally divided by nodes 21-25 (into four parts), we can compute the contribution of the infiltration of the river at each of the nodes 21-25 by evaluating the integrals (see Fig. 8.26b): node 25: node 24:
a 8C'l II
..,;: '0
., '" .c::
...., '" s-,
"
E
'"<:::
1:;; 0
f (0.24)1jJ~ f +f ds
(0.24)1jJi ds
Impermeable boundary, i1> = 0 i1y
1000 m
I
Pump 2
•
(1900, 900)
E
:3
:cl
(O.24)lJ!: ds
Pump 1
River, 0.24 m3 day-l m"!
• (1000,670) all = 2a22 = 40 m day " !
U
~
-I
3000 m
Impermeable boundary,
~ oy
=
0
FIGURE 8.25 Geometry and boundary conditions for the groundwater flow problem of Example 8.6.
SINGLE-VARIABLE PROBLEMS
357
5o----1:):......--o--o--oQ-----,::t---"Q------I:;------,O
6
11 }'
(0,375)
qo = 0.24 1
25
CD
@
13
Q)
IDIIIIIl fL-h--j2
(375, 375) 2
18
@)
qO
-5
(b)
FIGURE 8.26. Finite element mesh, and computation of force components for the groundwater (seepage) flow: (a) finite element mesh of triangular elements (45 nodes and 64 elements); (b) computation of global forces due to the infiltration of the river; (c) computation of global forces for pump 1, located inside element 19 (Example 8.6).
node 23: node 22: node 21:
f (0.24)1/J~ + f (O.24)1/J~ f (O.24)1/J~ + f f (O.24)1/J~ ds
ds
ds
(O.24)1/Ji ds
ds
For constant intensity qo and the linear interpolation functions lJl~(s)=slh, the contribution of these integrals is well known:
f
Qo1/J, tis = !q~h,
h = H(lOOOf+ (1500)2]1/2,
1/J~(s)
== l-slh and
qo= 0.24
Hence, we have
F21 = !qoh,
Fn
= Fn = F24 = q-h,
F25 = !qoh.
Next, we consider the contribution of the point sources. Since these are located inside an element, we distribute them to the nodes of the element by interpolation (see
358
FINITE ELEMENT ANALYSIS OF 1WO·DIMENSIONAL PROBLEMS
Fig. 8.26c):
where the two-dimensional Dirac delta function is defined by
r~r~ F(x, y)o(x -Xo, Y-
Yo) dxdy =F(xo, Yo)
For example, the source at pump 1 (located at Xo = 1000 m, Yo = 670 m) can be expressed as Ql(X, y) The interpolation functions and y; see Fig. 8.26c)
'lJIr
=
-1200o(x - 1000, y - 670)
for element 19 are (in terms of the local coordinates /
'lJI,(x, y) A = H375r,
PI = 0,
0'\
P2 = 375,
=
1 2A (0'1 + PIX + yS)
= (375r,
P3 =
x
-375,
0'2
=
-375(125),
Yl = -375,
0'3
= 375(125)
¥2= 125,
Y3 = 250
We have x = x -750 and y = y - 375, and, therefore,
1J!1(250, 295) = 0.2133,
1J!2 = (250, 295) = 0.5956,
1J!3 = (250, 295) = 0.1911
Similar computations can be performed for pump 2. In summary, the primary variables and nonzero secondary variables are UI
= U2 =
1';1 = 54.08,
U3 = U4 = Us = U4 1 = U42 = U4 3 = U44
= U45 = 200.0
1';2 = Fn = F24 = 108.17,
1';2=-255.6,
1';3=-229.2,
F29 = -410.4,
F34 = -549.6
F2S = 54.08 1';8=-715.2, F28=-1440.0
The secondary variables at nodes 6~1l, 14-17, 19, 20, 26, 27, 30-33, and 35-40 are zero. This completes the data generation for the problem. . The assembled equations are solved, after imposing the specified boundary conditions, for the values of rp at the nodes. The equipotential lines can be determined using (8.92) or a postprocessor. The lines of constant rp are shown in Fig. 8.27(a) and the velocity vectors in Fig. 8.27(b). The greatest drawdown of water occurs at node 28, which has the largest portion of discharge from pump 2. The solution of the same problem by an alternative mesh that puts pumps 1 and 2 at nodal points is left as an exercise.
Next, we consider an example of irrotational flow of an ideal fluid (i.e., a nonviscous fluid). Examples of physical problems that can be approximated by such flows are provided by flow around bodies such as weirs, airfoils, buildings, and so on, and by flow of water through the earth and dams. The Laplace equations (8.128) and (8.133) governing these flows are special cases of (8.1), and therefore one can use the finite element equations developed earlier to model these problems.
SINGLE-VARIABLE PROBLEMS
,,
,, \
8
.
I
I
S
I
,
8M
359
I
~
,
II
II
./
./
~
~
/ ./
./
(a)
/\
,"
"7'
- - ' \ --' I -.J \ ~ , /
\
I
I
,
.........\
\ ~
I
I
I
J
\
C
-..\
I
t ... \
\1
\1
1\ \
1/
\
I \
I ,I
......
/ \
/
\
/
II, /" /' \..-I \ _ /o' \ /" \ .; JI \ /......\ ...... . / I"
-~-~---1---+----~-----X-----~-----X:---1\ }\ 1\ /'
1\
' \, - I /
~
-I
I
'
l""'r I
--.
/1\
\\,'' ,\ - I
;
v ,' t
......
/\
x P ump 2'-I
I
..... \
_..t-\/
I
I
I
/"
,I \ I
..-
\
,,-..
--- -1-i-----;*l'umJi~?\- - --1,- -/--,Y,--- - - -;'f - - - ;*- --~ -'
\
_
_'
./
/
o'o'
/
/
I
\ 1,.;#;
/
\
;
I
-
II
\
\;
I
l
1\ • \
I'
/
/'~'''''''
r>.
•
I
I
I
\1
/
r »; I
\
"
If
I'
\.0.-.-
I
;1
\
I
)....
\
\
-...,/
"..
./
/
....... l . l '
~
./,'
//
\
",// \
/
\./ \
\ ~
i
/
\
,/
\ \......
/ \
I
.....
\
I \
I \,..",
/
\
II
1\
'-- \
'J
\/
I
1--
1\
I .... \
I
I
"-
1\---
----~~----~x------'*I-----,'1..---1;- - -I - ......./ ,..
/
t+-
/
I
\
I~ I I
\
/
I / ....
(b)
FlGURE 8.27 Plots of constant piezometric head and velocity vector for the groundwater flow: (a) lines of constant .p; (b) plot of velocity vectors (Example 8_6).
\.
'I
8 cm
-----
r
4 em
~~l
FlGURE 8.28 Domain and boundary conditions for the stream function and velocity potential formulations of irrotational flow about a cylinder (Example 8.7).
360
FINITE ELEMENT ANALYSIS OF nVO-DIMENSIONAL PROBLEMS
Example 8.7 Confined flow around a circular cylinder. The irrotational flow of an ideal fluid about a circular cylinder, placed with its axis perpendicular to the plane of the flow between two long horizontal walls (see Fig. 8.28) is to be analyzed using the finite element method. The equation governing the flow is -V 2 u =0
in
Q
where u is either (1) the stream function tp or (2) the velocity potential cp. If it is the former, the velocity components u = (UI, u 2 ) of the flow field are given by
If U is the velocity potential
cp,
the velocity components can be computed from
In either case, the velocity field is not affected by a constant term-in the solution u. To determine the constant state of the solution, which does not affect the velocity field, we arbitrarily set the functions tp and cp equal to zero (or a constant) on appropriate boundary lines. We analyze the problem using both formulations. For both, symmetry exists about the horizontal and vertical centerlines; therefore, only a quadrant of the flow region is used as the computational domain. Stream function formulation, The boundary conditions on the stream function 1/' can be determined as follows. Streamlines have the property that flow perpendicular to them is zero. Therefore, the fixed walls correspond to streamlines. Note that, for inviscid flows, fluid does not stick to rigid walls. Because of the biaxial symmetry about the horizontal and vertical centerlines, only a quadrant (say, ABCDE in Fig. 8.29) of the domain need to be used in the analysis. The fact that the velocity component perpendicular to the horizontal line of symmetry is zero allows us to use that line as a streamline. Since the velocity field depends on the relative difference of two streamlines, we take the value of the stream function that coincides with the horizontal axis of symmetry (i.e., on ABC) to be zero, and then determine the value of 1/' on the upper wall from the condition 3tp 3y
- = Uo
where U« is the inlet horizontal velocity of the field. We determine the value of the stream function on the boundary x = 0 by integrating the above equation with respect
t{I = 2Uo
~=o aX -x
I/J
=
yll«
I/J=O
FIGURE 8.29 Computational domain and boundary conditions for the stream function formulation of inviscid flow around a cylinder (see Fig. 8.28).
S[NGLE~VAR[ABLE PROBLEMS
361
to y:
d1/1 = -dy n'dy
L 'Y
LUs dy +1J!A Y
=
o
UnY +0
(8.137)
because 1/1A = 0 from the previous discussion. This gives the boundary condition on AE. Since the line ED is a streamline and its value at the point E is 2Uo, it follows that 1/1 = 2Un on the line ED. Lastly, we assume that the vertical velocity is zero on the line CD (i.e., U2 = 0); hence a1J!/ ax = a on CD. The boundary conditions are shown on the computational domain in Fig. 8.29. In selecting a mesh, we should note that the velocity field is uniform (i.e., streamlines are horizontal) at the inlet, and that it has a parabolic profile at the exit (along CD). Therefore, the mesh at the inlet should be uniform, and the mesh close to the cylinder should be relatively more refined to be able to model the curved boundary and capture the rapid change in 1/1. Two coarse finite element meshes are used to discuss the boundary conditions, and results for refined meshes will be discussed subsequently. Mesh Tl consists of 32 triangular elements and mesh Ql consist of 16 quadrilateral elements. Both contain 25 nodes (see Fig. 8.30). The mesh with the solid Jines in Fig. 8.30 corresponds to mesh Ql, and that with both the solid and dashed lines corresponds to mesh T1. It should be noted that the discretization error is not zero for this case. The specified primary degrees of freedom (i.e., nodal values of 1/1) for meshes Tl and Ql are
U, = U2 = ...
= V5 = UIO = UI5 =
U6 = 1.0,
U11 = U16 =
= V25 = 0.0 U21 = 2.0 U20
(8.138)
There are no nonzero specified secondary variables; the secondary variables are specified to be zero at the nodes on the line CD: Fn = F23 = F24 = 0
Although the secondary variable is specified to be zero at nodes 21 and 25, where the primary variable is also specified, we choose to impose the boundary conditions on the primary variable instead of the secondary variables. Table 8.6 gives the values of the stream function and its derivative a1J!/ay (= u t ) at selected points/elements of the meshes. The finite element program FEM2DV2 (see Chapter 13 for details) is used in the analysis. The stream function values obtained with meshes Tl and Ql are very dose to each other. Recall that the derivative Cl1J!/ ay is constant in a linear triangular element, whereas it varies linearly with x in a linear 16
11~_-_--':::---""1'o:--,------~21 --.s~~
~~--~::;'122
.A"-'-~--=,"'I23
A<~::'J24
6
j25
I 2
FIGURE 8.30 Meshes Tl and QI (remove the dashed lines for the mesh of quadrilaterals) used for inviscid flow around a cylinder.
362
FINnE ELEMENT ANALYSIS OF nVO·DIMENSIONAL PROBLEMS
TABLE 8.6
Finite element results from the stream function formulation of inviscid flow around a cylinder (Example 8.7) Stream function
Velocity
III
=
o1jJ/8y
Velocity
111 =
-oifJl8x
x
y
Mesh T1 Mesh Ql Mesh T1
Mesh Ql
Mesh T1
Mesh Ql
1.3183 2.2705 2.8564 1.4112 2.4305 3.0577 2.6931 3.1937 3.5018
0.7354 0.5444 0.4268 1.4459 1.0457 0.7995 1.5388 1.2057 1.0007 1.5714 1.2619 1.0714
0.7092 0.4372 0.1667 1.4241 0.8730 0.3357 1.3758 0.7706 0.2520 1.2395 0.6191 0.1817
0.9852(1) 0.9002(2) 0.6432(3) 0.2679(4) 0.8746(8) 1.586(12) 2.4551(16)
0.9922(1) 0.9371(3) 0.7047(5) 0.2999(7) 0.6469(15) 1.873(24) 2.163(32)
0.9989(1) 0.9408(2) 0.7018(3) 0.3197(4) 0.8364(8) 1.453(12) 2.075(16)
4.ססOO 4.ססOO 4.ססOO
0.7095 0.4379 0.1650 1.4270 0.8823 0.3384 1.4010 0.7980 0.2658 1.2065 0.5796 0.1588
0.9643(1)t 0.8032(3) 0.3906(5) 0.ססOO(7)
0.4469(15) 1.636(24) 2. 544(32)
t Denotes element number; the derivatives of
t'
1jJ
and
"-
cP are evaluated at the center of this element.
rectangular element. Therefore, the results for meshes T1 and Q1 will not be the same. The velocities included in Table 8.6 correspond to elements closest to the symmetry line (i.e., the y = 0 line) and the surface of the cylinder. The tangential velocity u, on the cylinder surface can be computed from the relation /l/(e)
JtJ! . JtJ! = Ul SlO. (J + U2COS e =-SIO e --cos (J Jy
ax
(8.139)
e is the angular distance along the cylinder surface. Velocity potentialformulation. The boundary conditions on the velocity potential fjJ can be derived as follows (see Fig. 8.31). The fact that U2 = - Jlj:J/ay = 0 (no penetration) on the upper wall as well as on the horizontal line of symmetry gives the where
act>
-~-
ax
~=o = Uo
ay
D
ct>=o
C
B
~=o ay
FIGURE 8.31 Computational domain and boundary conditions for the velocity potential formulation of inviscid flow around a cylinder (see Fig. 8.28).
SINGLE-VARIABLE PROBLEMS
363
boundary conditions there. Along AE, the velocity III = -a4>/ax is specified to be Uo. On the surface of the cylinder, the normal velocity, Iln = - 84>/an is zero. Thus all boundary conditions, so far, are of the flux type. On the boundary CD, we must know either 4> or 84>/an = a4>/ax. It is clear that -84>/8x = III is not known on CD. Therefore, we assume that 4> is known, and we set it equal to 4>0 = constant. The constant 4>0 is arbitrary and does not contribute to the velocity field (because -84>/ax = III and -a4>/8y = lh are independent of 4>0)' It should be noted that specification of 4> at least one point of the mesh is necessary to determine the constant part in the solution for 4> (i.e., eliminate the rigid body motion), We take 4> = 4>0 = 0 on CD. The mathematical boundary conditions of the problem must be translated into finite element data. The boundary conditions on the primary variables are from the boundary CD. We have U2 1 = Un
= U23 = U24 = U25 = 0.0
The only nonzero boundary conditions on the secondary variables come from the boundary AE. There we must evaluate the boundary integral
( aa¢ 1/Ji ds = u;
Jr<
n
We obtain Ql = Uo
i
1/Jb) dy
AE
fl (1-:)
dy =
[I~dY + u; [2 (1- tJ
Q2= UO
1 hZ
Q3 = Uo
o
iu», =0.5Uo dy =
~Uo(Jll +h 2) = UO
Y dy = ~h2UO = 0.5Uo
h2
The finite element solutions for III = -a¢/ax obtained with meshes T1 and Q1 are listed in Table 8.6. Note that there is a difference between the velocities obtained with the two formulations (for either mesh). This is primarily due to the nature of the boundary value problems in the two formulations. In the stream function formulation, there are more boundary conditions on the primary variable than in the velocity potential formulation. Contour plots of streamlines, velocity potential, and horizontal velocity III = 8tp/ay obtained with mesh Ql (and a plotter routine) are shown in Figs 8.32(a-c). A plot of thevariation of the tangential velocity with the angular distance along the cylinder surface is shown in Fig. 8.33, along with the analytical potential solution
u, = Uo(1 + R 2 /r2 ) sin e
(8. 140a)
valid on the cylinder surface. The finite element solution of a refined mesh, mesh Q2, is also included in the figure. The angle e, radial distance r, and tangential velocity u, can be computed from the relations
e= tan "
(_Y_), 4-x
r = [(4-X)2+ y2
r
t2
,
u, =
III
sin e + 112COS e (8. 140b)
The finite element solution is in general agreement with the potential solution of the problem. However, the former is not expected to agree closely, because lit is evaluated at a radial distance r > R, whereas the potential solution is evaluated at r = R only.
364
fINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
2.00 1.60
1.4 1.20 0.80 0.40
0.9 0.4
0,O
4.00
(a)
1.20 -I
0.80
~
-I
0040
o.00
-1 l..l----l~___I....L_......L.L--J-_'__-L--'-----'------.-JL1-J
0.00 0.40 0.80
1.20 1.60 2.00 (b)
1.60 1.20 0.80
DAD
,, I
l
0.00 L-_'--_.l.....-o<~.L.-_J........<"--..I...-<_~--'---'-~. - L _ - __ - _ - J 0.00 0040 0.80 1.20 1.60 2.00 2040 2.80 3.20 3.60 4.00 (c) FIGURE 8.32 Contours of (a) stream function, (b) velocity potential, and (c) x component of velocity (with the stream function formulation), as obtained using mesh Q1.
. This completes the section on fluid mechanics problems that are cast in terms of a single dependent unknown, such as the stream function or velocity potential. We return to fluid mechanics later in this book to consider two-dimensional flows of viscous incompressible fluids. The governing equations of such problems consist of several dependent variables and as many differential equations (see Chapter 11). -
SINGLE·VARIABLE PROBLEMS
u, 2.0
365
I to q.0
o SF, Mesh T1 • PF, Mesh T1 ~ SF, Mesh Ql
....0 -
0/
C1:~O
" PF, Mesh Ql o SF, Mesh Q2 .;
»:
...-if "
--¢-
" •
" Potential solution
1.0
.......-o-,----,----.---,--r--,-----.---.----,lOC 20· 30° 40· 50° 60° 70· SOC 90" Angle
FIGURE 8.33 Variation of the tangential velocity along the cylinder surface: comparison of the finite element results with the potential theory solution (mesh Q2 contains 96 elements and 117 nodes).
8.4.3 Solid Mechanics In this section, we consider two-dimensional boundary value problems of solid mechanics that are cast in terms of a single dependent unknown. These problems include torsion of cylindrical members and transverse deflection of membranes. The discussion is restricted to small deformations. TORSION OF CYLINDRICAL BARS. Consider a cylindrical bar (i.e., a long
member of uniform cross-section), fixed at one end and twisted by a couple (i.e., a moment or torque) of magnitude M directed along the axis (z) of the bar (see Fig. 8.34a). Suppose that the bar is not subjected to any body forces and is free from external forces on the lateral surface. We wish to determine the amount of twist and the associated stress field in the bar. To this end, we first describe the deformation of the bar analytically, and then analyze the equation using the finite element method. In general, a member of noncircular cross-section subjected to a torsional moment experiences warping at any section. We assume that all cross-sections warp in the same way (which holds true for small twisting moments and deformation). This allows us to take the displacements (u, v, w) along the coordinates (x, y, z) to be of the form (see Fig: 8.34b)
u = -()zy,
v
= Bzx,
w = ()¢(x, y)
(8.141)
where ¢(x, y) is a function to be determined and () is the angle of twist per unit length ofthe bar. The displacement field in (8.141) can be used to compute the strains, and stresses are computed using an assumed constitutive law. The stresses thus
366
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
z
(a)
y
/
FIGURE 8.34 Torsion of cylindrical members: (a) a cylindrical member; (b) domain of analysis.
(b)
determined must satisfy the three-dimensional equations of stress equilibrium
(8.142)
oax z + oay z + oaz = O. ox oy oz and the stress boundary conditions on the lateral surface and at the ends of the cylindrical bar. Calculation of strains and then stresses using the generalized Hooke's law gives the expressions a
xz
=
G8(oep ax -y) '
a
yz
=
G8(aep oy + x)
(8.143)
and all other stresses are identically zero. Here G denotes the shear modulus of the material of the bar. Substitution of these stresses into (8.142) gives [the first two equations in (8.142) are identically satisfied, and the third leads to this
SfNGLE,VARIABLE PROBLEMS
367
result]
o (G (O¢) 0(G()O¢) = 0 ) - +~
~
ax
ax
ay
ay
(8.144)
throughout the cross-section Q of the cylinder. The boundary conditions on the lateral surfaces r require that
or
r
on
(8.145)
Here (lin ll y ) denote the direction cosines of the unit normal at a point on r. In summary, the torsion of a cylindrical bar is governed by (8.144) and (8.145). The function ¢(x, y) is called the torsion function or warping function. Since the boundary condition in (8.145) is of the flux type, this function can be determined to within an additive constant. The stresses in (8.143), however, are independent of this constant. The additive constant has the meaning of rigid-body movement of the cylinder as a whole in the z direction. For additional discussion of this topic, the reader is referred to Sokolnikoff (1956). The Laplace equation (8.144) and the Neumann boundary condition (8.145) governing ¢ are not convenient in the analysis because of the nature and form of the boundary condition, especially for members of irregular cross-section. The theory of analytic functions can be used to rewrite these equations in terms of the function W(x, y), called the stress function, which is related to ¢(x, y) by the equations
aw
a¢
ax
aX.'
aw B¢ ay = a.q - y
~=+--x
(8.146)
Eliminating ¢ from (8.144) and (8.145) gives, respectively, the results (8.147)
aw
aw
.
- n - - n =0
ay
x
ax
y
(8.148)
The left-hand side of (8.148) denotes the tangential derivative dWjds, and d'If! ds = 0 implies that
'If = constant on
r
368
FINITE ELEMENT ANALYSTS OF TWO-DIMENSIONAL PROBLEMS
Since the constant part of W does not contribute to the stress field,
oW
°xz=G(J-,
oy
O
oW
yz
=-G(J-
ox
(8.149)
we take 1Jl = 0 on the boundary. Now the torsion problem can be stated as one of determining the stress function W such that -V2 lJ! = 2
in
Q
(8.150)
1Jl = 0 on I'
Once qI has been determined, the stresses can be computed from (8.149) for a given angle of twist per unit length, (J, and shear modulus G. / " The finite element model of (8.150) follows immediately from that of (8.1): (8. 151a)
where
uf is the
value of 'II at the ith node of
Qe
and
s: = r (OtjJi O'ljJj + OWl OWj) dx dy J
if =
J
Q ,
Jr
ox
oX
2tjJj dx dy,
Q ,
oy oy
(8.151b)
Qi = 1. °olJ! Wi ds Jr< n
Next we consider an example of a torsion problem. Example 8.8 Torsion of a square cross-section bar. It should be recalled that (8.1) can also be interpreted as the equation associated with the torsion of a square cross-section cylindrical bar of cross-sectional dimensions a by b. Note that the actual problem is antisymmetric as far as the loading and stress distribution are concerned; however, the stress function, being a scalar function governed by the Poisson equation, is symmetric about the x and y axes as well as the diagonal lines. When using rectangular elements, one quadrant of the bar cross-section can be used in the finite element analysis. The biaxial symmetry about the x and y axes requires imposition of the following boundary conditions on W:
aw = ax aw
0 on the line x = 0
ay = 0
on the line y = 0
In addition, on the actual boundary we have the boundary condition W = 0 on the lines x
= a, y = b
SINGLE-VARIABLE PROBLEMS
369
The analytical solution of the problem is given by 'H( ) _! 2_ 2_ 8a ~ x -r x, Y - 4 a 3 LJ 2
-
i
n
(-1)" cosh k"Y cos k"x I cosh'ik"b
(8. 152a)
( 3 ,,~O Zn + 1)
__ 8aGO (-1)" sinh k"Y cos k"x au n 2 ,,~O (2n + If cosh ~knb ='"
°r
z
(8. 152b)
f
G6[2x _ 8a (-1)" cosh kny sin knX] n 2 ,,~o(2n + 1)2 cosh ~knb
(8. 152c)
where k; = !(2n + 1)n. The problem is analyzed here for shear stresses an and 0r z (see (8.149)]. Here we investigate the convergence of the finite element solutions using gradually refined meshes of linear and quadratic rectangular elements. The results of this study are summarized in Tables 8.7 and 8.8. The convergence of the finite element solutions for the stress function and stresses to the analytical solutions (8.152) can be seen from these results. The contour lines of the surface 'V(x, y) = constant, o., = constant, and 0r z = constant are shown in Fig. 8.35.
TRANSVERSE DEFLECTION OF MEMBRANES. Suppose that a membrane, with fixed edges, occupies a region Q in the (r, y) plane. Initially, the membrane is stretched so that the tension a in the membrane is uniform and that a is so large that it is not appreciably altered when the membrane is deflected by a distributed normal force f(x, y). The equation governing the transverse deflection u of the membrane is in
(8. 153a)
Q
TABLE 8.7
Convergence of the finite element solutions for '¥ using linear and quadratic rectangular elements (four-node and nine-node elements) in Example 8.8 Linear elements
Quadratic elements]
x
y
2X2
4X4
8X8
IX!
2X2
4X4
0.0000 0.0625 0.1250 0.1875 0.2500 0.3125 0.3750 0.4375 0.1250 0.2500 0.3750
0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.2500 0.2500 0.2500
0.15536
0.14920
0.14780 0.14583 0.13987 0.12972 0.11502 0.09534 0.07007 0.03854 0.10925 0.09090 0.05660
0.14744
0.14730
0.14734 0.14538 0.13944 0.12931 0.11467 0.09505 0.06986 0.03844 0.10890 0.09057 0.05636
0.14120 0.12054
0.11610 0.07069
0.09643
0.11031 0.09191 0.05729
0.13941 0.11378
0.11463 0.06983
0.09095
0.10887 0.09056 0.05626
t The 4 x 4 mesh of nine-node quadratic elements gives a solution that coincides with the analytical solution to five significant decimal places.
370
FINITE ELEMENT ANALYSIS OF lWO-DIMENSIONAL PROBLEMS
TABLE 8.8
Comparison of finite element solutions for the shear stress GyAx, y) [= -Gxz(Y, x)], computed using various meshes, with the analytical solution (Example 8.8) Mesh
x 0.03125 0.09375 0.15625 0.21875 0.28125 0.34375 0.40625 0.46875 0.06250 0.1875 0.3125 0.4375 0.1250 0.3750
2X2
y
4X4
0.0312 0.0946 0.1612 0.2332 0.3127 0.4015 0.5013 0.6135
r
0.03125
1 r
0.06175 0.1942 0.3529 0.5528
0.0625
t
0.1250 0.1250
8X8
0.1179 0,4339
Analytical solution 0.0312 0.0946 0.1611 0.2331 0.3124 0.4011 0.5008 0.6128 0.0618 { 0.1939 0.3516 0.5504 0.1193 0,4272
/
with
u = 0 on I' (8. 153b) Note that this equation and boundary conditions are of the same form as those for the torsion of cylindrical bars [see (8.150)]. The finite element model of the equation is obvious. In view of the close analogy between this problem and the torsion of cylindrical bars, we shall not consider any numerical examples here.
8.5 EIGENVALUE AND TIME·DEPENDENf PROBLEMS 8.5.1 Introduction This section deals with the finite element analysis of two-dimensional eigenvalue and time-dependent problems involving a single variable. We use the results of Section 6.2 to develop finite element algebraic equations from the semidiscrete finite element models of time-dependent problems. Since the weak form and temporal approximations have already been discussed in detail in Section 6.2, attention is focussed here first on the development of the semidiscrete finite element models and then on the associated eigenvalue and fully discretized models. The examples presented are very simple, because they are .designed to illustrate the procedure for eigenvalue and time-dependent problems; solution of two-dimensional problems with complicated geometries requires the use of numerical integration. Chapter 9 is devoted to the discussion of various two-dimensional elements and their interpolation functions and numerical integration methods.
M
0.5I"'~1
O.5L
0.01
0.0t: 0.0
0.0
,j
j
I
I \ \ I I 11111I1
0.25 (a)
::::>"
Y
7" 7 J jI'l J J' J II
4
0.25 (b)
0.5
0.25
0.5
(c)
FIGURE 8.35 Contour plots of the stress function and shear stresses obtained using the 8 x 8 mesh of linear rectangular elements in a quadrant of square cross-section in Example 8.8: (a) stress function; (b) stress CTx z ; (c) stress CTyz•
372
FINITE ELEMENT ANALYSIS OF nvO·DlMENSIONAL PROBLEMS
The development of finite element models of eigenvalue and timedependent problems involves, as described in Section 6.2, two main stages. The first, called semidiscretization, is to develop the weak form of the equations over an element and to seek spatial approximations of the dependent variables of the problem. The end result of this step is a set of ordinary differential equations in time among the nodal values of the dependent variables. For transient problems, the second stage consists in time approximation of the ordinary differential equations (i.e., numerical integration of the equations) by finite difference schemes. This step leads to a set of algebraic equations involving the nodal values at time ts + 1 [= (s + 1) D..t, where s is an integer and D..t is the time increment] in terms of known values from the previous time step(s). For eigenvalue problems, the second stage consists in seeking a solution of the form ult) = ~e-Io.t for nodal values and determining the eigenvalues A and eigenfunctions U/IPlx, y) (no sum on j)!The two-stage procedure was clearly illustrated for one-dimensional problems in Sections 6.1 and 6.2. It will be applied here to two-dimensional problems involving a single equation in a single variable. Since the emphasis in this section is on the time approximations, the development of the weak form and spatial finite element model will not be covered explicitly here, and the reader is referred to Sections 8.2 and 8.3 for details.
8.5.2 Parabolic Equations Consider the partial differential equation governing transient heat transfer and similar problems in a two-dimensional region g with total boundary I',
au a ( au) ax - aya (an au) ay + aa U =I (x, y, t)
cai- ax au
(8.154)
with the boundary conditions
u=
a or
qn = tin
on
r
(t ~ 0) .
(8. 155a)
where
q"
= au
au au ax n;< + an ay n y
(8.155b)
The initial conditions (i.e., at t = 0) are of the form
(8.156) u(x, y, 0) = ua(x, y) in g Here t denotes time, and c, an, a22, aa, a, Ua, I, and tI" are given functions of position and/or time. Equation (8.154) is a modification of (8.1) in that it contains a time-derivative term, which accounts for time variations of the physical process represented by (8.1). The weak form of (8.154) and (8.155) over an element ge is obtained by the standard procedure: multiply (8.154) with the weight function vex, y) and integrate over the element, integrate by parts (spatially) those terms that
SINGLE-VARIABLE PROBLEMS
373
involve higher-order derivatives using the gradient or divergence theorem, and replace the coefficient of the weight function in the boundary integral with the secondary variable [i.e., use (8.155b)]. We obtain
0=
Ll ( Q'
au ) . avau avau] v c--;-+aou-f +atl-a -;-+a22-dxdyvf x ox ay ay
f. q"vds P'
(8.157) Note that the procedure for obtaining the weak form for time-dependent problems is not very different from that used for steady-state problems in Section 8.2.3. The difference is that all terms of the equations may be functions of time. Also, there is no integration by parts with respect to time, and the weight function v is not a function of time. The semidiscrete finite element model is obtained from (8.157) by substituting a finite element approximation for the dependent variable u. In selecting the approximation for u, once again we assume that the time dependence can be separated from the spatial variation:
u(x, y, f) =
2:" uj(t)1/Jj(x, y)
(8.158)
j=l
where Uj denotes the value of u(x, y, t) at the spatial location (Xj' Yj) at time f. The ith differential equation (in time) of the finite element model is obtained by substituting v = 1/Jf(x, y) and replacing u by (8.158) in (8.157):
n ( eduj e e) -f/-Q· e e 0=" !-J M··-+K-·u· IJdt IlJ I
(8. 159a)
1=1
or, in matrix form,
(8. 159b) where a superposed dot on u denotes the time derivative (u = auf at), and
This completes the semidiscretization step. EIGENVALUE ANALYSIS. The problem of finding uj(t) = Uje-)..I such that (8.159) holds for homogeneous boundary and initial conditions and f = 0 is called an eigenvalue problem, Substituting for ui(t) in (8.159b), we obtain
I (-A[M e] + [Ke]){ue} = {Qe} I
(8.160)
Upon assembly of the element equations (8.160), the right-hand-side column vector of the condensed equations is zero (because of the homogeneous
374
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
boundary conditions), giving rise to the global eigenvalue problem ([K] - A[M]) { U}
= to}
(8.161)
The order of the matrix equations is N X N, where N is the number of nodes at which the solution is not known. A nontrivial solution to (8.161) exists only if the determinant of the coefficient matrix is zero:
I[K] - A[M]\ = 0 which when expanded, results in an Nth-degree polynomial in A. The N roots Aj (j = 1, 2, ... ,N) of this polynomial give the first N eigenvalues of the discretized system (the continuous system, in general, has an infinite number of eigenvalues). There exist standard eigenvalue routines for solving (8.161), I' '" which give the N eigenvalues and eigenvectors. TRANSIENT ANALYSIS. Note that the form of (8.159) is the same as the parabolic equation discussed in Section 6.2. The spatial dimension does not appear in (8.159a,b) because it is taken into account in the spatial approximation. Thus, irrespective of the spatial dimension, the finite element model of all problems with a first time derivative is the same. Therefore, the time approximation schemes discussed in Section 6.2.3 for parabolic equations can be readily applied. Using the a-family of approximation (6.39), (8.162) we can transform the ordinary differential equations (8.159) into a set of algebraic equations at time ts +1 : (8. 163a)
where
[1(]S+l = [M] + a1[K]s+1
{F} = M (a{FL+l + (1- a){F}s) + ([M] - a2[K]s){uL a1 = a tJ.t,
(8. 163b)
a2 = (1- a) tJ.t
Equation (8.163a), after assembly and imposition of boundary conditions, is solved at each time step for the nodal values Uj at time ts = (s + 1) M. At time t = 0 (i.e., s = 0), the right-hand side is computed using the initial values {u }o; the vector {F}, which is the sum of the source vector {f} and the internal flux vector {Q}, is always known, for both times t, and ts + 1> at all nodes at which the solution is unknown [because [(x, t) is a known function of time, and the sum of QJ at these nodes is zero]. It should be recalled from Section 6.2.3 that, for different values of a, we obtain different well-known approximation schemes, with given order of
SINGLE-VARIABLE PROBLEMS
375
accuracy:
1' «= {1, 2,
2
3,
the the the the
forward difference scheme (conditionally stable); OeM) Crank-Nicolson scheme (unconditionally stable); OeM? Galerkin scheme (unconditionally stable); O(M)2 backward difference scheme (unconditionally stable); O(~t)
For the forward difference scheme, the stability requirement is (8.164)
where Amax is the largest eigenvalue of the finite element equations (8.161). We next consider examples of eigenvalue and time-dependent problems. Example 8.9 Eigenvalue analysis. Consider the differential equation
au _ (cfu + cfu) =[ at ax ay 2
(8. 165a)
2
in a square region, subject to the boundary conditions
au ax (0, y, t) = 0,
au (x, 0, t) = 0,
-
ay
u(x, 1, t)
=
0,
u(I, y, t)
=
0
(8. 165b)
and initial condition (8. 165c)
u(x, y, 0) =0
As a first choice, we take a 1 X 1 mesh of triangular (2 elements) and rectangular elements. Alternatively, for the choice of triangles, we can use the diagonal symmetry and model the domain with one triangular element. The triangular element matrices are
[K'] =
~[
1 -1 -1 2 o -1
-:}
[Me]
=~ [: ~ ~] 24 1 1 2
The eigenvalue problem becomes
The boundary conditions require U2 = UJ = O. Hence, we have
(-nA + ~)Ul = 0,
or
A= 6
The eigenfunction becomes
U(x, y) =!JII(X, y) = 1- x which is defined over the octant of the domain. For a quadrant of the domain, by symmetry, it becomes Utx, y) = (1- x)(I- y).
376
FINITE ELEMENT ANALYSIS OF nVO·DIMENSIONAL PROBLEMS
For one rectangular element, we have
[KO]
-ll
-1 -2 4 -1 -2 -1 4 -1 ' -2 -1 4
=!6 [-: -2 ~1
4 2 1 A
(
2
4
2
2l
4 2 1 1 2 4 2 1 [MO] = 36 1 2 4 2 [
2 124
2l1 +61 [ -14 - 14
36 1 2 4 2 [ 212 4
-2 -1
-1-2
Using the boundary conditions Uz = U3 = U4 = 0, we obtain (-k)..x4+~)Ul=0,
or
}'=6
The eigenfunction over the quadrant of the domain is given by U(x, Y) = 1J!,(x, y) = (1- x)(l- y)
For this problem, the one-element mesh of triangles in an octant of the domain gives the same solution as the one-element mesh of rectangular elements in a quadrant of the domain. Table 8.9 gives eigenvalues obtained with various meshes of triangular and rectangular elements, along with the analytical solution of the problem. It is clear that the convergence of the minimum eigenvalue obtained using the finite element method to the analytical value is rapid compared with the convergence of the higher eigenvalues; i.e., the errors in the higher eigenvalues are always larger than that in the minimum eigenvalue. Also, the minimum eigenvalue converges faster with mesh refinements. The mesh used must be such that the required eigenmodes are represented accurately. Example 8.10. We wish to solve the transient heat conduction equation (8.1600)
TABLE 8.9
Comparison of finite element solutions for eigenvalues, obtained using various meshes, with the analytical solution (Example 8.9) Triangles
Rectangles Analyticalt
lXl
A
Al (An) 6.000 ~ (A'13) A3(~I)
A4 (A33) A4 (AI5) A5 (A51)
txt
4x4
8x8
lxl
tx2
4x4
8X8
Am rt
5.415 32.000 38.200 76.390
5.068 27.250 28.920 58.220 85.350 86.790
4.969 25.340 25.730 48.080 69.780 69.830
6.000
5.193 34.290 34.290 63.380
4.999 27.370 27.370 49.740 84.570 84.570
4.951 25.330 25.330 45.710 69.260 69.260
4.935 24.674 24.674 44.413 64.152 64.152
t The analytical solution is
I
Am n =1.11"\111 2 + 112)
(m, 11 = 1,3, 5, ... ).
SINGLE-VARIABLE PROBLEMS
377
subject to the boundary conditions, for t "" 0,
aT
aT ay (x, 0, t) = 0
ax (0, y, t) = 0,
(8.l66b)
T(x, 1, t) =0
T(l, y, t) = 0,
and the initial condition
T(x, y, 0) = 0 for all (x, y) in
(8.166c)
Q
We choose a 4 x 4 mesh of linear triangular elements (see Fig. 8.36) to model the domain, and investigate the stability and accuracy of the Crank-Nicolson method (i.e., a = 0.5) and the forward difference scheme (a = 0.0) for the temporal approximation. Since the Crank-Nicolson method is unconditionally stable, one can choose any value of !!t. However, for large values of !!t, the solution may not be accurate. The forward difference scheme is conditionally stable; it is stable if !!t < Men where
2
2
M or = Am•• = 386.4 = 0.00518
where the maximum eigenvalue of (8.166a) for the 4 x 4 mesh of triangles is 386.4. The element equations are given by (8.163), with [Me], [Ke], and {fe} defined by (8.159c), wherein c = 1, all = 1, an = 1, ao = 0, and f = 1. The boundary conditions of the problem for the 4 x 4 mesh are given by Us = Uw = U I5 = U20
= U2 1 = U» = Un =
U24 = U25
= 0.0
Beginning with the initial conditions U, = 0 (i = I, 2, ... ,25), we solve the assembled set of equations associated with (8.163). The forward difference scheme would be unstable for !!t > 0.00518. To illustrate this point, the equations are solved using a = 0, M = 0.01 and a = 0.5, M = 0.01. The Crank-Nicolson method gives a stable and accurate solution, while the forward difference scheme yields an unstable solution (i.e., the solution error grows unboundedly with time), as can be seen from Fig. 8.37. For !!t = 0.005, the forward difference scheme yields a stable solution.
r
T=O
5-
1.0.-:
Insulated, aT =0 aX
aT
- - -'iPT= 1
T= 0
at
aT Insulated, - ay
=0
---x " 1.0
r
10
15
20
25
4
24
3
23
2
22
I 6
11
16
FIGURE 8.36 Domain, boundary conditions, and finite element mesh for the transient heat conduction problem of Example 8.10.
378
FINITE ELEMEl'IT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
0.14 0.12
-
-c0
0.10
···O",Ci.
~
=
0.5, t:.t
=
0.01
= 0.0, t:.t = 0.005
,, , \
= 0.0, lit = 0.01
-4 x 4 mesh of linear triangles Mer = 0.00518
E::;'
.,...
Ci.
- - Ci.
0.08
~
B ~ ....
8-
.,E
f-4
-0.119
0.06 0.04
/
0.02 0.00 0.00
0.04
0.02
0.06
0.10
0.08
Time t FIGURE 8.37 Stability of the transient solutions of the heat conduction problem in Example 8.10 analyzed using a 4 x 4 mesh of linear triangular elements and the Crank-Nicolson (a = 0.5) and forward difference (a = 0.0) time integration schemes.
TeO,O.t)
0.3j-------:;:.,..,..COO""()__------i
0.2
2.0 Time (b)
0.0
0.25
0.5
x(aty=O)or
0.75
1.0
y(atx=O)
(0)
FIGURE 8.38 Variation of the temperature as a function of position x and time t for the transient heat conduction problem of Example 8.10.
SINGLE·VARIABLE PROBLEMS
379
TABLE 8.10'
Comparison of finite difference and finite element solutions with the exact solution of the heat conduction problem in Example 8.10
Node 1
2 3 4 5 7
8 9 10 13 14 15 19 20 25
Exact solution
Finile difference solution Error
Finite element solution (steady)
0.2947 0.2789 0.2293 0.1397 0.0000 0.2642 0.2178 0.1333 0.0000 0.1811 0.1127 0.0000 0.0728 0.0000 0.0000
0.2911 0.2755 0.2266 0.1381 0.0000 0.2609 0.2151 0.1317 0.0000 0.1787 0.1110 0.0000 0.0711 0.0000 0.0000
0.3013 0.2805 0.2292 0.1392 0.0000 0.2645 0.2172 0.1327 0.0000 0.1801 0.1117 0.0000 0.0715 0.0000 0.0000
0.0036 0.0034 0.0027 0.0016 0.0000 0.0033 0.0027 0.0016 0.0000 0.0024 0.0017 0.0000 0.0017 0.0000 0.0000
Error -0.0066 -0.0016 0.0001 0.0005 0.0000 -0.0003 0.0006 . 0.0006 0.0000 0.0010 0.0010 0.0000 0.0013 0.0000
0.0000
Finite element solution (unsteady) at t= 1.0 0.2993 0.2786 0.2278 0.1385 0.0000 0.2628 0.2159 0.1320 0.0000 0.1791 0.1111 0.0000 0.0712 0.0000 0.0000
The Crank-Nicolson method gives a stable and accurate solution even for t!>.t = 0.05. The temperature T(x, 0, t) is plotted versus x for various values of the time in Fig. 8.38(a). The steady state is reached at time t = 1.0. The temperature T(O, 0, t)
predicted by the Crank-Nicolson method is plotted versus time in Fig. 8.38(b), which indicates the evolution of the temperature from zero to the steady state. Table 8.10 gives a comparison of the transient solution at t = 1.0 with the steady-state finite element, the finite difference, and the analytical solutions. Table 8.11 gives the finite element solutions for temperature predicted by 4 x 4 meshes of triangles and rectangles and various values of t!>.t and IX = 0.5.
8.5.3 Hyperbolic Equations The transverse motion of a membrane, for example, is governed by a partial differential equation of the form
c
8"u a ( au) a ( 22 au) at2 - ax all ax - ay a ay . + aou = f(x, y, t)
(8. 167a)
where u(x, y, t) denotes the transverse deflection, c is the material density of the membrane, a11 and a22 are the tensions in the x and y directions of the membrane, ao is the modulus of the elastic foundation on which the membrane is stretched (often ao = 0, i.e., there is no foundation), and f(x, y, t) is the transversely distributed force. Equation (8.167a) is known as the wave equation, and is classified mathematically as a hyperbolic equation. The function u must be determined such that it satisfies (8.167a) in a region Q,
380
FINITE ELEMENT ANALYSIS OF nVO·D1MENSIONAL PROBLEMS
TABLE 8.11
Comparison of the transient solutions of (8.166) obtained using a mesh of triangular and rectangular elements (a' = 0.5) (Example 8.10) Temperature along the line y =0: Tix, 0, I) Time t
X
10
Element] x=O.O
x =0.25 x=O.5
x =0.75
0.1
T1 Rl 1"2 R2
0.9758 0.9684 0.9928 0.9841
0.9610 0.9556 0.9798 0.9718
0.9063 0.8956 0.9168 0.9020
0.7104 0.6887 0.6415 0.6323
0.2
T1 Rl 1"2 R2
1.8003 1.7723 1.7979 1.7681
1.7238 1.7216 1.7060 1.6990
1.4891 1.4829 1.4644 1.4626
0.9321 0.9367 0.9462 0.9469
T1 R1 T2 R2
2.3130 2.2747 2.2829 2.2479
2.1671 2.1650 2.1448 2.1432
1.7961 1.8084 1.7943 1.8018
1.1469 1.1499 1.1249 1.1319
T1 R1 1"2 R2
2.9960 2.9648 2.9925 2.9621
2.7871 2.8053 2.7862 2.8037
2.2804 2.3090 2.2776 2.3065
1.3843 1.4059 1.3849 1.4053
0.3
1.0
I'
-1
tTl, triangular element mesh with tit =0.1; 1"2, triangular clement mesh with tJ.1 = 0.05; RI, rectangular clement mesh with tit = 0.1; Rl, rectangular element mesh with tJ.1 = O. os.
together with the following boundary and initial conditions:
u=
u(x, y,
a
or qn =
0) = uo(x, y),
q" on au
I' (t;;o 0)
(8. 167b)
ai(x, y, 0) = vo(x, y)
(8. 167c)
where a and qn are specified boundary values of u and qn [see (8.155b)], and Uo and Vo are specified initial values of u and its time derivative, respectively. The weak form of (8.167a,b) over a typical element Qe is similar to that of (8.154) [see (8.157)], except that here we have the second time derivative of u:
0=
1[ ( a2uat Q'
av au av au] dx dy>v c -2+aou-!) +aU-;--+a22-;-ox ax oy ay
i
qnvds
P'
(8.168)
where v = vex, y) is the weight function. The semidiscrete finite element model of (8.167a) is obtained by substituting the finite element approximation (8.158) for u and v = Wj into
SINGLE-VARIABLE PROBLeMS
381
(8.168): (8. 169a)
or, in matrix form, (8. 169b)
The coefficients Mij, Kij, and
Ii are
the same as those in (8.159c).
EIGENVALUE ANALYSIS. The problem of finding uit) = ~e~io)l (i = v=I) such that (8.169) holds for homogeneous boundary and initial conditions and I:=: 0 is called an eigenvalue problem of (8.167). We obtain
I (_w2[Me]+[Ke]){ue}:=:{Qe} I
(8.170)
The eigenvalues (j)2 and eigenfunctions L:j=l U/li'j(x, y) are determined from the assembled equations associated with (8.170), after imposing the homogeneous boundary conditions. For a membrane problem, (j) denotes the frequency of natural vibration. The number of eigenvalues of the discrete system (8.170) of the problem is equal to the number of unknown nodal values of U in the mesh. Example 8.11. Consider the free vibrations of a rectangular membrane of homogeneous material, of dimensions a by b (in ft), material density p (in slugs ft-2), and fixed on all its edges, i.e., u:::: 0 on T. Although the problem has symmetry about the horizontal centerline and vertical centerlines of the domain (see Fig. 8.39), use of any symmetry in the finite element analysis will eliminate the unsymmetric modes of vibration of the membrane. For example, if we consider a quadrant of the domain in the finite element analysis, the frequencies W mn (m, 11 :f= 1,3,5, ... ) and associated eigenfunctions will be missed in the results [i.e., we can only obtain Wm" (m,lI = 1,3,5, ... )]. By considering the full domain, the first N frequencies allowed by the mesh can be computed, where N is the number of unknown nodal values in the mesh. -
u=o
T 2 It
u= o
1
."
~=o iJy ,q" =0 (a)
(b)
FIGURE 8.39 Geometry, computational domain, finite element mesh, and boundary conditions for the transient analysis of a rectangular membrane with initial deflection: (a) actual geometry; (b) computational domain, finite element mesh of rectangular elements, and boundary conditions (4 x 4 mesh of linear elements or 2 x 2 mesh of nine-node quadratic elements).
382
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
TABLE 8.12
Comparison of natural frequencies computed using various meshes of linear triangular and rectangular elements with the analytical solution of a rectangular membrane fixed on aU its sides (au = an = 12.5, P = T = 2.5) Triangular (linear)
Rectangular (linear)
Wm"
2X2
4x4
8x8
2X2
4X4
8X8
WlI
5.0000
4.2266 5.9083 8.2392 8.3578 10.0618 12.1021 13.2011 14.6942 15.8117
4.0025 5.2068 6.8788 7.5271 8.4565 8.8856 9.9280 11.1193 11.4425
4.3303
4.0285 5.2899 7.2522 7.9527 8.6603 9.9805 12.7157 13.1700 14.0734
3.9522 3.9270 5.0478 4.9673 6.6026 6.3321 7.4200 7.2410 8.0571 7.8540 8.5145 7.85~0 9.1117 8.7810 10.5797 9.4574 10.7280 8.9346
wll W 31
W 12 W 22 W41 W 32 W S1 W 42
Analytical
If only the first eigenvalue W n is of interest or only symmetric frequencies are required, one can use a quadrant of the domain in the analysis. Indeed the results of Example 8.9 are applicable here, with Am n = w~. The results presented in Table 8.9 can be interpreted as the squares of the symmetric natural frequencies of a square a = b = 2) membrane with p = 1 and all = an == T = 1. The exact natural frequencies of a rectangular membrane of dimensions a by b, with tensions all = an = T and density p are
T\ Irl. (m2 n2)1rl.
Wm"
= n"pJ (
7 + b2
(m, n = 1, 2, ... )
To obtain all frequencies, the full domain must be modeled. Table 8.12 contains the first nine frequencies of a rectangular membrane of 4 ft by 2 ft, tension T = 12. 51b fC I, and density p = 2.5 slugs ft- 2 , computed using various meshes of linear triangular and rectangular elements. The convergence of the finite element results to the analytical solution is clear. The mesh of linear rectangular element yields more accurate results than the mesh of linear triangular elements.
TRANSIENT ANALYSIS. The hyperbolic equation (8.169b) can be reduced to
a system of algebraic equations by approximating the second time derivative. As discussed in Section 6.2, the Newmark time integration scheme is the most commonly used method, and therefore it is used here. Since the mathematical form of (8.169b) is exactly the same as that in (6.44), the results in (6.47) and (6.49) are immediately applicable to the former. For the sake of convenience, the results are repeated here. The Newmark scheme is
{u ls+l = {u L + M{u}s + ~(At)2{iiL+y
+ M{ii}s+Cl' {ii}sH = (1- 8){ii}s + B{ii}s+l {u }s+l = {u}s
(8. 171a)
SINGLE-VARIABLE PROBLEMS
383
where, for example, £1'-1 -z,
y=t
the constant-average acceleration method (stable)
£1'_1 - 2,
y=~,
the linear acceleration method (conditionally stable)
a-I -2,
.y= 0,
the central difference method (conditionally stable)
(8.171b) The stability criterion is
I ~t<~lcr=HOJ~ax(a-y)r]f2,
a~t
y
I
(8.172)
where OJ~ax is the maximum eigenvalue of the corresponding discrete eigenvalue problem (8.170) (i.e., the same mesh and element type used in the transient analysis must be used in the eigenvalue analysis). Note that a more refined mesh will yield a lower maximum eigenvalue and a higher ~tcr'
Time marching scheme (8. 173a) where (the superscript e is omitted for brevity in the following)
[K]S+l = [K]S+1 + a3[M],+l {Ft,s+l
= {Ft+l + [M]s+l(a3{u}s + a4{ll}s + a5{iiL) 2
a3 = y(M)Z'
a4 = ~ta3'
1
a5
(8. 173b)
=y-l
Once {U}s+l has been calculated from (8.173a), the velocities and accelerations at time ts + 1 = M (s + 1) are calculated from (6.49):
{iils+ 1 = a3({u }S+1 - {u L) - a4{u}s - a5{iiL {U}S+l
=
{Ii}s + az{ii}s+ atfii}S+1 al
= a St,
(8.174)
a2 = (1- a) M
Note that (8.173a) is valid for an element. Therefore, the operations indicated in (8.173b) are carried out for an element, and [Ke] = {Fe} are assembled as in a static analysis. For the first time step, the initial conditions on u and au/at are used to compute {u}o and {uh for each element of the entire mesh. The acceleration vector {ii}o is computed from (8.169b) at t = 0: (8.175)
It is often assumed that {F}o = {OJ. If the initial conditions are zero, {u h = {O}, and the applied force is assumed to be zero at t = 0, we then take {ii}o = {OJ.
384
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
Example 8.12. Consider a homogeneous rectangular membrane of sides a = 4 ft and b = 2 ft, fixed on all its four edges. Assume that the tension in the membrane is 12.51b ft- l (i.e., all = an = 12.5) and the density is p = c = 2.5 slugs ft-2. The initial deflection of the membrane is assumed to be (8.176) and the initial velocity is Uo = O. We wish to determine the deflection u(x, Y, t) of the membrane as a function of time using the finite element method. The analytical solution of this problem is [see Kreyszig (1988), p. 684], It (x,y,
1 . I . I 409.6 'V t) =--6- LJ 3:icOsWmntslfi4mnxsIll2n:n:y :n: m.n=I.3•... m n CU mn
= !:n;[5(m
2
+ 4n2 ) f12
(8.177a) (8. 177b)
where the origin of the (x, y) coordinate system is located at the lo\'~er corner of-the domain (see Fig. 8.39a). In the finite element analysis, we can utilize the biaxial symmetry of the problem and model one quadrant of the domain (see Fig. 8.39b). We set up a new coordinate system (x, y) for the computational domain. The inital displacement in the new coordinates is given by (8.176), with x and y replaced in terms of x and y:
x = _i + 2,
Y = Y+ 1
The initial values of if are calculated using (8.175), with {Flo = {O} and {ulo as given in (8.176) by uo(x, y). At x = 2 and y = 1, all nodal values for the function It and its time derivatives are zero. As for the critical time step, we calculate -'-max from the solution of (8.170) using the same mesh as that used for the transient analysis, and then use (8.172) to compute 6.t cr • Of course, for (k' = ~ and r = t there is no restriction on the time step for a stable solution. For a 4 x 4 mesh of linear rectangular elements, -'-max = (14.0734y (see Table 8.12), and Mer = 0.246 for the linear acceleration scheme (cr = 0.5, y = !). Figure 8.40 shows plots of the center deflection u(O, 0, t) versus time t, and Fig. 8.41 shows the stability of the solutions computed using the constant-average acceleration (cr = 0.5, r = 0.5) and linear acceleration (cr = 0.5, y = D schemes for 6.1 = 0.25 > 6.t cr ' Figure 8.40 also shows a comparison of the finite element solutions with the analytical solution (8.177). The finite element solutions are in good agreement with the analytical one.
8.6 SUMMARY A step-by-step procedure for finite element formulation of second-order differential equations in two dimensions with a single dependent variable has been presented. The Poisson equation in two dimensions has been used to illustrate the steps involved. These include weak formulation of the equation, development of the finite element model, derivation of the interpolation functions for linear triangular and rectangular elements, evaluation of element matrices and vectors, assembly of element equations, solution of equations, and post-computation of the gradient of the solution. A number of illustrative problems of heat transfer (conduction and convection), fluid mechanics and solid mechanics have been discussed. Finally, the eigenvalue and time-
SINGLE-VARIABLE PROBLEMS
385
0.5,....----'------------------, - - - Analytical •••••0- ••• RL4 ,--.1,-- RL2 _._-<)-_.. RQ2
0.4..,..,..-._
11(0, 0, t) 0.3
6.1 = 0.025 Constant -average acceleration scheme is used
0.2 0.1 0.0
-0.1 - 0.2 +----...-.....---r---,..--........---r-....---,-.----T----.---i 0.0 0.1 0.5 0.6 0.2 0.3 0.4 Time t
FIGURE s.ao Comparison of the center deflection obtained using various meshes with the analytical solution of a rectangular membrane with initial deflection: RL4, 4 X 4 mesh of linear rectangular elements; RL2, 2 X 2 mesh of linear rectangular elements; RQ2, 2 X 2 mesh of nine-node quadratic elements."
10 a = 0.25, )' = 0.5 a = 0.25, )'= 0.3333 4 mesh; 6.1 = 0.25
-----<>---
---0--'
5
4
X
/\
11(0, 0, I)
. .-
0
-
-"';;;;iJ
'
\
-5
\ \
\
-10
\c.
-15 0.0
0.5
1.0
1.5
2.0
2.5
3.0
Time t
FIGURE 8.41 Stability characteristics of the constant-average acceleration and linear acceleration schemes (a 4 x 4 mesh of linear rectangular elements is used in a quadrant of the domain).
< 386
FINITE ELEMENT ANALYSIS OF TWO·DIMENSIONAL PROBLEMS
dependent problems associated with the model equation have also been discussed. This chapter constitutes the heart of the finite element analysis of two-dimensional problems to be discussed in Chapters 10-12.
PROBLEMS Note that most of the problems given here require hand calculations only. When four or more simultaneous algebraic equations are to be solved, they should be left in matrix form. New problems can be created just by changing data and meshes. Section 8.2 8.1. The electrostatic potential ¢(x, y) of electrical charges in a region g is governed by the Poisson equation /
where f is the distributed electric charge. (a) Develop the finite element model of the equation. r (b) Identify the element coefficient matrices for linear triangular and rectangular elements from those available in this book. (c) Write the specified primary and secondary variables at all boundary nodes and their specified values for the problem shown in Fig. P8.1.
YI
16....---4t:.....J,.-...;r::....--?f--71 2o lllL-----..,""'=,----.---:~~-*"--:7l15
~=O-
6
10
~=O
<%> 1
FIGURE P8.1
8.2. Consider the partial differential equation
au + ku = 0
with -
an
on
r-
Develop the weak form and finite element model of the equation over an element ge.
8.3. Assuming that c and k are constant in Problem 8.2, write the element coefficient matrix and source vector for (a) a linear rectangular element and (b) a linear triangular element. 8.4. Develop the finite element model of the following differential equation governing an axisymmetric problem,
_l[~ (r au) +~(r au)] = fer, z)
r or or
oz
OZ
and compute the coefficients Kij and f; for a linear triangular element in terms of I m n of (8.36).
387
SINGLE-VARIABLE PROBLEMS
8.5. Calculate the linear interpolation functions for the linear triangular and rectangular elements shown in Fig. P8.5. y
y
+11 (1,3.5) 3
4
(1,.1)
'------------_x
L..----------t~x
(b)
(a)
FIGURE P8.5
Answer: WI = (12.25 - 2.5x -1.5y)j8.25. 8.6. For the linear triangular element shown in Fig. P8.6, show that the element coefficient matrix associated with the Laplace operator - VZ,
is
-a o , a -f3]
o
b a'
a =-
f3
f3 =!!. b
yt
y
r
I
4
3
b
b
1
1
I·
a
·1
-...x
1
1
2
).
FIGURE P8.6
FIGURE P8.7
8.7. For the linear rectangular element shown in Fig. P8.7, show that the element coefficient matrix associated with the Laplace operator is
2(a+ (3)
-2a+ f3
- ( ex + (3)
-2a+f3 2(a+f3) 6 [ - (a + (3) a - 2f3 a - 2f3 - (a + (3)
a - 2f3 2(a+f3) -2a + f3
[K e]=!
a - 2f3 ] -(a + (3) -2a+f3 ' 2(a + (3)
b
a =-, a
f3 =~ b
388
ANITE ELEMENT ANALYSIS OF TWO·DlMENSIONAL PROBLEMS
8.8. Find the coefficient matrix associated with the Laplace operator when the rectangular element in Fig. P8.7 is divided into two triangles by joining node 1 to node 3. 8.9. The nodal values of an element in the finite element analysis of a field problem - Vzu = to are UIO = 389.79, U11 = 337.19, and VIZ = 395.08 (see Fig. P8.9). Find the gradient of the solution in the element. Also determine where the 392 isoline intersects the boundary of the element in Fig. P8.9. Answer: VT = 10.76e l - 105.02e z. y
11
Node 10: (3.5, 1)
~ rode 11: (3.5, 1.5) ~NOd' 12, (4. 1) /
10
12
l.-
~
.~
FIGURE P8.9 '
8.10. If the nodal values of the elements shown in Fig. P8.1O are UI = 0.2645, Uz = 0.2172, U3 = 0.1800 for the triangular element and 111=0.2173, U3 = 0.1870, U z "" 114 = 0.2232 for the rectangular element, compute u, aul ax, and Bu] ay at the point (x, y) "" (0.375,0.375). y
3', 0.5
1
I
2
~':'-_---Gl· 4-x
f------ 0.5 - - 1 (0)
(b)
FIGURE P8.10
8.11. Compute the element matrices S IIOl
_
-
a d Jro Jro 1/JI d1/J dx i d X y,
S7! =
ai
I
{}
0
b
d1/JJ dx dy 1/Ji _ dy
where 1/JI are the linear interpolation functions of a rectangular element with sides a and b. 8.12. Give the assembled coefficient matrix for the finite element meshes shown in Fig. P8.12. Assume one degree of freedom per node and let [K e ] denote the element coefficient matrix for the eth element. Your answer should be in terms of element matrices Kij.
SINGLE·VARIABLE PROBLEMS
6
0) 2
I
8
9
6
8
10
39----0..
3
CD
8) 5
I
7
389
1
QJ
2
@ I I
2
O:----~4
7
4
(a)
(b)
FIGURE P8.12
8.13. Compute the global source vector corresponding to the nonzero specified boundary flux for the finite element meshes of linear elements shown in Fig. P8.n. lem lern lern
f----+----+-~-t----1 l~
2ern
".1·
2ern
I'2 ern. I-2 ern'I
11.5 11.5
em em FIGURE P8.13
8.14. Repeat Problem 8.13 for the finite element mesh of quadratic elements shown in Fig: P8.14.
FIGURE P8.14
8.15. A point source of magnitude Qo is located at the point (x, y) == (1.25, 2.5) inside the triangular element shown in Fig. P8.5(a). Determine the contribution of the point source to the element source vector. 8.16. Repeat Problem 8.15 for the rectangular element in Fig. P8.5(b). 8.17. A line source of intensity qo is located across the triangular element shown in Fig. 8.17. Compute the element source vector.
390
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
y
(4,5) (5. 4) Line source
5
(3,3L 1 (2,1)
2
(7,2)
FIGURE P8.17
8.18. Repeat Problem 8.17 When the line source has varying intensity q(s) = qaSlL, where s is the coordinate along the line source. 8.19. When all and a22 in (8.1) are bilinear functions of the global coordinates x and y, aij = aZ + a&x + aty, and a12 = a 2 1 = aDO = 0, determine the explicit form of the coefficient matrix [Ke] in (8.14b) for the linear triangular element. Express the result in terms of the integrals defined in (8.36). / 8.20. Repeat Problem 8.19 for the linear rectangular element with local coordinate system (x, y). Use (8.42) and (8.43) to evaluate the integrals. You may also use the coefficient matrices in (8.44). 8.21. Determine the source vector
8.22.
8.23. 8.24.
8.25. 8.26.
for linear rectangular elements when 1 is a function of the form 1 = ao + a IX + a2 y, where X and yare the global coordinates. Evaluate the coefficient matrix Kij and source vector 11 in (8.64b) for a linear triangular element when an, a22' and 1 are constant, and aDO = O. Note that the results of Problem 8.19 are useful here. Repeat Problem 8.22 for a linear rectangular element. For the mesh of linear triangular elements shown in Fig. P8.1, give the condensed set of equations for the unknown nodal values when 1 = to = constant. Use the symmetry of the problem. Write algebraic equations for the secondary variables Ql and Qi (from equilibrium). Repeat Problem 8.24 with the equivalent mesh of linear rectangular elements. Solve the Laplace equation
_(~u2 + ~u) =
ax
ay2
0 in Q
on a rectangle, when u(O, y) = u(a, y) = u(x, 0) = 0 and u(x, b) = uo(x). Use the symmetry and (a) a mesh of 2 x 2 triangular elements and (b) a mesh of 2 X 2 rectangular elements (see Fig. P8.26). Compare the finite element solution with the exact solution ~ A . nnx . h mry u (x, y ) = L. n Slll-Slll n~l
a
b
where 2 A n = a sin . h( b/) nst a
La uo(x)sm-dx . nstx 0
a
SINGLE·VARTABLE PROBLEMS
Take a = b = 1,' and uo(x) solution becomes
=
391
sin nx in the computations. For this case, the exact
II (x"
_ sin nx sinh ny Y) . h Sin
n
Answer: for a 2 X 2 mesh of triangles, U4 = 0.23025 and Us U4 = 0.15202 and Us = 0.10750.
? X 2 mesh of rectangles,
=
0.16281; for a
Yf -1-
j-------<;:---Qo:---O
u=o
11=0 I
b
I
a=b=l
I
- '_l.--:"---C,,:,,,,_~_-j
--·1
3
x
FIGURE P8.26
8.27. Solve Problem 8.26 when uo(x) = 1. The analytical solution is given by 4
~
u (x y ) =~ LJ , x n=O
sin (2n + 1)nx sin (2n + 1)ny (2n + 1) sinh (2n + 1)n
Answer: (a) U4 = 0.26471 and Us = 0.20588. 8.28. Solve Problem 8.26 when lIo(x) = 4(x - x 2). Answer: U4 = 0.23529 and Us = 0.16912. 8.29. Solve the Laplace equation for the unit square domain and boundary conditions given in Fig. P8.29. Use one rectangular element.
~+1I=2 ay
~=o
~=o
ax
ax
0---------....;)_ x II
= 1
FIGURE P8.29
392
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
8.30. Use two triangular elements to solve the problem in Fig. P8.29. Use the mesh obtained by joining points (1,0) and (0, 1). 8.31. Solve the Poisson equation -V 2 u = 2\ in the square whose vertices are at (0,0), (1,0), (1,1), and (0,1). The boundary conditions are u(O, y) = y2, u(x, 0) = x 2, u(l, y) = 1- Y and u(x, 1) = 1- x. Use four linear rectangular elements (a 2 X 2 mesh). 8.32. Solve Problem 8.31 using four triangular elements in the upper half of the triangle because of the symmetry about the x = y lines; join node 2 to 5 in Fig. P8.32. AllSwer: U3 = 0.5. y 1.0
4+-
......
_ I'
2 ....- - - . . . . . , . .
¥----------l--.._x 1.0
FIGURE P8.32
8.33. Solve Problem 8.31 using the mesh of a rectangle and two triangles, as shown in Fig. P8.32. AllSwer: U3 = 0.675. 8.34. Solve the Poisson equation - ,\J2u = 2 in Q, with boundary conditions u = 0 on I'1 and au/on = on r 2, where Q is the first quadrant bounded by the parabola y = 1- x 2 and the coordinate axes (see Fig. P8.34), and T, and r 2 are the boundaries shown in Fig. P8.34.
°
y
-r,
°t-7'"--~--+=--------~X
a
FIGURE P8.34
8.35. Show that a variable approximated by the quadratic interpolation functions of a rectangular element is continuous along interelement boundaries.
SINGI.E·VARIABLE PROBLEMS
393
8.36. Solve the axisymmetric field problem shown in Fig. P8.36 for the mesh shown there. Note that the problem has symmetry about any line z = constant. Hence, the problem is essentially one-dimensional. Compare the finite element solution with the exact one.
z
z
I
Insulated
k, = k, = constant, k
T= To go, internal heat ,..,-
•
\
generation = constant
-- .........
r
Ro Insulated
To = loo oe, R o = 0.02 rn go = 107 X 21T W rn- 3 k = 20 W rn- I °C- l
..........
~-Io_r
1 2 3 4 5
FIGURE P8.36
8.37. Formulate the axisymmetric field problem shown in Fig. P8.37 for the mesh shown. Compute the secondary variable at r = ~R using (a) equilibrium and (b) the definition. Use the element at the left of the node.
z
T= To
7
4 r
8 5
9
6 T= To
»: 1\ 2
3-R
T= To
FIGURE P8.37
Section 8.4 8.38. A series of heating cables have been placed in a conducting medium, as shown in Fig. P8.38. The medium has conductivities of kx = 10 W cm" °C- I and k, =
394
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
T
8 em
2 +crn
,-- _--..-. _---1........ _-... I r4 em
J
--1 kx
~
__
---+- __
"-
Qo = 250 Wem- 1 =
10 W em- 1 °C- 1
k; = 15 W ern"! °C- 1
Insulating material FIGURE P8.38 /
"
15W cm- 1 0C- I , the upper surface is exposed to a temperature of - 5 DC, and the lower surface is bounded by an insulating medium. Assume that each cable is a point source of 250 W em -I. Take the convection coefficient between the medium and the upper surface to be j3 = 5 W em- 2 oC- I. Use a 7 x 8 mesh of linear rectangular (or triangular) elements in the computational domain (use the symmetry available in the problem), and formulate the problem (i.e., give element matrices for a typical element, give boundary conditions on primary and secondary variables, and compute convective boundary contributions). 8.39. Formulate the finite element analysis information to determine the temperature distribution in the molded asbestos insulation shown in Fig. P8.39. Use the symmetry to identify a computational domain and identify the specified boundary conditions at the nodes of the mesh. What is the size of the assembled coefficient matrix?
T i
\ 6 in
---L '--_ _~_ _+-.J:_
-'¥
5 FIGURE P8.39
8.40. Consider steady-state heat conduction in a square region of side 20. Assume that the medium has conductivity k (in W m" DC-I) and uniform heat (energy) generation in (in W m- 3 ) . For the boundary conditions and mesh shown in Fig. P8AO, write the finite element algebraic equations for nodes 1, 3, and 7. 8.41. Repeat Problem 8.40 for nodes 4, 5, and 9. 8.42. For the convective heat transfer problem shown in Fig. P8.42, write the four finite element equations for the unknown temperatures. Assume that the thermal conductivity of the material is k = 5 W m- l DC-I, the convective heat transfer
SINGLE-VARIABLE PROBLEMS
395
y
Convection T""
1//3,
2a
8
7
9
Heat su pply Q) qo (Wm -2) 4 5
<:
1
@
Q)
k = 30 W m -1 °C- 1 = 60 W m- 2 °c- 1
~
f3
2
3 Insulated ./ 20
= 0.0
T""
6 Pres cribed temp erature T(}
T(} = 100°C qa = 2 x lOs W m-2 f(} = 107 W m- 3 0=
x
1 em
FIGURE P8.40
coefficient on the left surface is f3 = 30 W m- 2 DC-I, and the internal heat generation is zero. Compute the heats at nodes 2, 4, and 9 using (a) element equations (i.e., equilibrium) and (b) the definition (use the temperature field of elements 1 and 2). 8.43. Write the finite element equations for the unknown temperatures of the problem shown in Fig. P8.43.
/
Insulated
@
/3= 28
1
°Ck = 5 Wm- 1 °C- 1
-
J
® 5
4
Wm- 2
9
8
7 T"" = OOC
6
m
I
@
CD
11 2 3[ f--- 30 em --l T3 = T6 = T9 = 40°C T( = T2 = HYC
..I
FIGURE P8.42
y ~T=
13
T
1 m T = 1500
(j)
g
t
@) (i)
14
®
O°C 15
10
11
6
7-
l3 @
16 k = 10 W m- I OC- 1 = 0.0
0) 12
T= 50
@
8/
~.
®
2 3 1 '-. T = 250°C
x 4
f---l~ ~ FIGURE P8.43
fo
396
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
8.44. Write the finite element equations for the heats at nodes 1 and 13 of Problem 8.43. The answer should be in terms of the nodal temperatures Tt, T2 , ••• , T16 • 8.45. Write the finite element equations associated with nodes 13, 16, and 19 for the problem shown in Fig. P8.45. T = To eos~
22 (23 21.--...-'---.........-
24 2L .......-_25
T
16t--+---+---+--t20
'9' \.ZI T= 4Ia~t-----1.---+----+---t~
Insulated
®
@
1
00C
6 +-----+---+-----4>------.. 10
01
2
\3
4
I'
5
T= O°C
I·
FIGURE P8.45
8.46. The fin shown in Fig. P8.46 has its base maintained at 300°C and is exposed to ambient temperature on its remaining boundary. Write the finite element equations at nodes 7 and 10.
IJ = 11 300°C
6
40 W m~2 °C- I To>
~
CD
12 7
2
~
@ ~
13
8
= 20°C (J)
Q)
k
=
5 W
14
® 9
@
m- I
°C- I
1
0 0m
10 1.0
em
~2 em -+-2 em--f
8cm
FIGURE P8.46
8.47. Compute the heat loss at nodes 10 and 13 of Problem 8.46. 8.48. Consider the problem of groundwater flow beneath a coffer dam. Formulate it using the velocity potential for finite element analysis. The geometry and boundary conditions are shown in Fig. P8.48. 8.49. Formulate the groundwater flow problem for the domain shown in Fig. P8.49 for . finite element analysis. The pump is located at (826~, 400). 8.50. Repeat Problem 8.49 for the domain shown in Fig. P8.50. 8.51. Consider steady confined flow through the foundation soil of a dam (see Fig. P8.51). Assuming that the soil is isotropic (k x = ky ) , formulate the problem for
,I
"" '- - - 8m ,I. 8m 1 _4>-2m' . G ,..-----=-''--=-''"'"'"IF Impermeable sheet pile
~iJ,p
'E
~=o~
.T 2m L D
iJll
an-=Y--4> =
0
a,p
=
T
2m
ct
0""- 4 m
all
FIGURE P8.48
f.-- 450 m ~
all
T
600m
3
! I
1
= an = 15 m
• (675, 450) Pump (200 m3 day"!
200 m
all =
= 100 m
,I
FIGURE P8.49
1.75 m day"!
iJ,p
;5~:--"J-----------,.-------------t171a;;- = 0 a22
-iJll- =
4>
2 m-3 )
I·
a.p
day"?
1
-,p
= 200 m
= 1 m day"!
"'" Stream3 (0.5 m m"? day-I)
!
I'
<,
m
1 I
~=o all
FIGURE P8.50
k=3m/day
k= 1m/day
j5m
!
Impermeable Element 59
r'":
80
72 54
55 y
1
1
2
2 x 3
3
• 4 Element 5
""-~= 0
95 76 36 57 18 33 19
FIGURE P8.51
398
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
finite element analysis (identify the specified primary and secondary variables and their contribution to the nodes). In particular, write the finite element equations at nodes 8 and 11. Write the finite element equations for the horizontal velocity component in the fifth and tenth elements. 8.52. Formulate the problem of flow about an elliptical cylinder using (a) the stream function and (b) the velocity potential. The geometry and boundary conditions are shown in Fig. P8.52. 8.53. Repeat Problem 8.52 for the domain shown in Fig. P8.53.
FIGURE P8.S2
u = 1
~~~~~.:;
FIGURE P8.53
8.54. The Prandtl theory of torsion of a cylindrical member leads to - V2u = 20 e in Q;
u = 0 on
r
where Q is the cross-section of the cylindrical member being twisted, r is the boundary of n, G is the shear modulus of the material of the member, e is the angle of twist, and u is the stress function. Solve the equation for the case in which Q is a circular section (see Fig. P8.54) using the mesh of linear triangular elements. Compare the finite element solution with the exact one (valid for y
FIGURE P8.54
SINGLE-VARIABLE PROBLEMS
399
elliptical sections with axes a and b) U
2 (1x _ y2) a + b? a b
= COa
2b2
2
2
2
Use a = 1, b = 1, and 2CO = 10. 8.55. Repeat Problem 8.54 for a member with elliptical section. Use a = 1 and b = 1.5. 8.56. Repeat Problem 8.54 for the case in which Q is an equilateral triangle (see Fig. P8.56). The exact solution is It
= -
CO[Hx 2 + y2) - !a(x 3 - 3xy 2 )
-
ira2 ]
Take a = 1 and 2CO = 10.
11
y
FIGURE P8.56
8.57. Consider the torsion of a hollow member with square cross-section. The stress function \If is required to satisfy the Poisson equation (8.150) and the following boundary conditions: W = 0 on the outer boundary;
\If = 2r 2
on the inner boundary
where r = ale is the ratio of outside to inside dimensions. Formulate the problem for finite element analysis using the mesh shown in Fig. P8.57. y
r-,
T
-,
-. f-2a~ . T
.LL"
6a -
2a
/ /
1/
Do main
.....- e.-modeled
'.
x
/"-
I
-,
k-~~-6a------....
(a)
(b)
FIGURE P8,57
8.58. Repeat Problem 8.57 with the mesh of linear triangles (join nodes 1 and 5, 2 and 6, and 5 and 8 in Fig. P8.57b).
400
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
8.59. The membrane shown in Fig. P8.59 is subjected to a uniformly distributed load of intensity 10 (in N m- 2 ) . Formulate the problem for finite element analysis. -
/ 8
7
Q) / 4
./
'u =
6
5
CD /
9
@
o
·n-
,
,
x
FIGURE P8.59 I'
8.60. Repeat Problem 8.59 for the membrane shown in Fig. P8.60. Section 8.5 y
FIGURE P8.60
8.61. Determine the time step for the transient analysis (with a
au _ 'ij2u = 1 in
at
Q.
'
E;
nof the problem
u = 0 in Q. at t = 0
by determining the minimum eigenvalue of the problem _'ij2 U = ).U
in Q;
u=o on r
The geometry of the domain and mesh are shown in Fig. P8.26. Answer: ). = 24 for a 1 x 1 mesh. 8.62. Set up the condensed equations for the transient problem in Problem 8.61 for the a family of approximation. Use the finite element mesh shown in Fig. P8.26. 8.63. Set up the condensed equations for the time-dependent analysis of the membrane - in Problem 8.60. 8.64. (Central difference method) Consider the following matrix differential equation in time:
[MHO} + [CHiT} + [K]{U}
= {F}
SINGLE-VARIABLE PROBLEMS
401
where the superposed dots indicate differentiation with respect to time. Assume
and derive the algebraic equations for the solution of {U},,+I in the form [Al{ U}"+l
=
{F}" - [Bl{ U}" - [DHU}n-l
Define [A], [B], and [D] in terms of [M], [C], and [K]. 8.65. Repeat Problem 8.64 using the Newmark time approximation scheme. 8.66. Consider the first-order differential equation in time du
a dt
+ bu
Using linear approximation, u(t) = U,1f.'I(t) + u2wit), WI = 1- tiM, and 1/'2 = t] At, derive the associated algebraic equation and compare it with that obtained using the ll' family of approximation. 8.67. (Space-time element) Consider the differential equation a ( aau) =f for O<x
ax
ax
o,;:;,t~T
with Il(O, t) = u(L, t) = 0
for 0..;; t « T;
where c = c(x), a = a(x), f = f(x, t), and rectangular domain defined by
u(x, 0) = uo(x) Uo
for 0 <x < L
are given functions. Consider the
Q={(x,t):O<x
A finite element discretization of Q by rectangles requires a space-time rectangular element (with y replaced by t). Give a finite element formulation of the equation over a space-time element, and discuss the mathematical and practical limitations of such a formulation. Compute the element matrices for a linear element. . 8.68. (Space-time finite elements) Consider the time-dependent problem
£Yu au
ax2= at
for O<xO all at (1, r) = 1,
u(O, t) = 0,
!l(x, 0) =X
Use linear rectangular elements in the (x, t) plane to model the problem. Note that the finite element model is given by [Ke]{u e} = {Qe}, where
«; = 1'" f"B (aw~ awj ~ WI aWl) dx dt o ax ax at XA
Q~=
( 1'" ax I au ) -dt
-
o
X~XA
,Q;=
(L'" -dt au ) I ax o
X-XB
8.69. For the heat transfer problem in Problem 8.45, set up the equations (for nodes 13, 16, and 19) for the transient case (see Fig. P8.45).
402
FINITE ELEMEi'IT ANALYSIS OF nVO-DlMENSIONAL PROBLEMS
8.70. The collocation time approximation methods [see Hughes (1987), p. 530] are defined by the following relations:
{ii}s+<>:::: (1- a'){u}s + a'{u}S+l {Ii
L+a =
{u}s
+a
St [(1- y){ii}s + y{ii}s+a]
{u }s+a:::: [a}, + a'M {li}s + ~a'(t.t)2 [(1- 2J3){ii}, + 2J3{ii}s+a] The collocation scheme contains two of the well-known schemes: a' = 1 gives the Newmark scheme; J3 = t y = 1 gives the Wilson scheme. The collocation scheme is unconditionally stable and second-order-accurate for the following values of the parameters:
a';=> 1,
Y = ~,
a' 2l1-1 2(1 + a') ;=> J3 ;=> 4(2ll'3 -1) "'-
Formulate the algebraic equations associated with the matrix diff6r-ential equation
[M]{ii} + [CHu} + [K]{u} = {F} using the collocation scheme.
REFERENCES FOR ADDITIONAL READING Bird, R. B., W. E. Stewart, and E. N. Lightfoot: Transport Phenomena, John Wiley, New York, 1960. Budynas, R. G.: Advanced Strength and Applied Stress Analysis, McGraw-Hill, New York, 1977. Carslaw, H. S., and J. C. Jaeger: Conduction of Heat in Solids, 2d ed., Oxford University Press, Fairlawn, NJ, 1959. Clough, R. W., and J. Penzien, Dynamics of Structures, McGraw-Hill, New York, 1975. Eskinazi, S.: Principles of Fluid Mechanics, Allyn and Bacon, Boston, 1962. Holman, J. P.: Heat Transfer, 6th ed., McGraw-Hili, New York, 1986. Hughes, J. T. R.: The Finite Element Method (Linear, Static and Dynamic Finite Element Analysis), Prentice-Hall, Englewood Cliffs, NJ, 1987. Kohler, W., and J. Pittr: "Calculation of Transient Temperature Fields with Finite Elements in Space and Time Dimensions," International Journal for Numerical Methods in Engineering, vol. 8, pp. 625-631, 1974. Kreyszig. E.: Advanced Engineering Mathematics, 6th ed., John Wiley, New York, 1988. Myers, G. E.: Analytical Methods in Conduction Heat Transfer, McGraw-Hill, New York, 1971. Mikhlin, S. G.: Variational Methods in Mathematical Physics (translated from the Russian by T. Boddington), Pergamon Press, Oxford, 1964. - - : The Numerical Performance of Variational Methods (translated from the Russian by R. S. Anderssen), Wolters-Noordhoff, The Netherlands, 1971. Oden, J. T., and J. N. Reddy: Variational Methods in Theoretical Mechanics, 2d ed., Springer-Verlag, Berlin, 1983. Ozisik, M. N.: Heat Transfer: A Basic Approach, McGraw-Hill, New York, 1985. Reddy, J. N.: Energy and Variational Methods in Applied Mechanics, John Wiley, New York, 1984. - - : Applied Functional Analysis and Variational Methods ill Engineering, McGraw-Hill, New York, 1986; Krieger, Melbourne, FL, 1991. - - and M. L. Rasmussen: Advanced Engineering Analysis, John Wiley, New York, 1982; Krieger, Melbourne, FL, 1990. Rektorys, K.: Variational Methods in Mathematics, Science and Engineering, D. Reidel, Boston, MA,1980. - - : The Method of Discretization in Time, D. Reidel, Boston, MA, 1982.
SINGLE-VARIABLE PROBLEMS
403
Schlichting, H.: Boundary-Layer Theory (translated by J. Kestin), 7th ed., McGraw-Hili, New York,1979. Sabey, R. J.: "Hermitian Space-Time Finite Elements for Estuarine Mass Transport." International Journal for Numerical Methods ill Fluids, vol. 2, pp. 277-297, 1982. Sokolnikoff, I. S.: Mathematical Theory of Elasticity, McGraw-Hili, New York, 1956. Timoshenko, S. P., and J. N. Goodier: Theory of Elasticity, 3d ed., McGraw-Hili, New York, 1970. Ugural, A. C., and S. K. Fenster: Advallced Strength. and Applied Elasticity, Elsevier, New York, 1975. Volterra, E., and J. H. Gaines: Advallced Strength of Materials, Prentice-Hall, Englewood Cliffs, NJ,1971.
CHAPTER
9 INTERPOLATION FUNCTIONS, NUMERICAL INTEGRATION, AND MODELING CONSIDERATIONS
9.1 LIBRARY OF ELEMENfS AND INTERPOLATION FUNCTIONS 9.1.1 Introduction In the previous chapter, we studied the finite element analysis of a model second-order equation and its analogues in the fields of heat transfer, fluid mechanics, and solid mechanics. During this study, we developed the interpolation functions for the basic elements, namely, the linear triangular and rectangular elements. These elements, which were developed in connection with the finite element analysis of a second-order partial differential equation in a single variable, are useful in all finite element models that admit Lagrange interpolation of the primary variables of the weak formulation. The objective of this chapter is to develop a library of two-dimensional triangular and rectangular elements of the Lagrange family, i.e., elements over which only the function-not its derivatives-is interpolated. Once we have elements of different shapes and order at our disposal, we can choose appropriate elements and associated interpolation functions for a given problem. The regularly shaped elements, called master elements, for which interpolation functions are developed here, can be used for numerical 404
405
INTERPOLATION FUNcnONS, NUMERICAL llITEGRATION AND MODELING
evaluation of integrals defined on irregular elements. Of course, this requires a transformation of the geometry from the actual element shape to an associated master element. Section 9.2 deals with the transformation and numerical integration. With these" preliminary comments, we now proceed to the discussion of interpolation functions for triangular and rectangular master elements.
9.1.2 Triangular Elements The linear (three-node) triangular element was developed in Section 8.2.5. Higher-order triangular elements (i.e., those with interpolation functions of higher degree) can be systematically developed with the help of the so-called Pascal's triangle, which contains the terms of polynomials of various degrees in the two coordinates x and y, as shown in Fig. 9.1. Here x and y denote some local coordinates-they do not, in general, represent the global coordinates of the problem. One can view the position of the terms as the nodes of the triangle, with the constant term and the first and last terms of a given row being the vertices of the triangle. Of course, the shape of the triangle is arbitrary-it is not necessarily an equilateral triangle, as might appear from the position of the terms in Pascal's triangle. For example, a triangular element of order 2 (i.e., one for which the degree of the polynomial is 2) contains six nodes, as can be seen from the top three rows of Pascal's triangle. The position of the six nodes in the triangle is at the three vertices and at the midpoints of the three sides. The polynomial involves six constants, which can be expressed in terms of the nodal values of the variable being interpolated: 6
U=
2: UilJJi(X, y)
(9.1)
1=1
Pascals triangle
Number of terms in the polynomial
Element with nodes
:=--&L~~)(!\8 ~ Ll 6
10
0
•
15 21
28
FIGURE 9.1 Pascal's triangle for the generation of the Lagrange family of triangular elements.
406
FlNIIE ELEMENT ANALYSIS OF TWO·D1MENSIONAL PROBLEMS
where 'IjJ; are the quadratic interpolation functions obtained following the same procedure as used for the linear element in Section 8.2.5. In general, a pth-order triangular element has n nodes, with n = !(p
+ 1)(p + 2)
(9.2)
and a complete polynomial of the pth degree is given by II
/I
u(x, y) = 2j a;xY = 2j ;=1
UjtjJj,
r + s ~p
(9.3)
j=1
The location of the entries in Pascal's triangle gives a symmetric location of nodal points in elements that will produce exactly the right number of nodes to define a Lagrange interpolation of any degree. It should be noted that the Lagrange family of triangular elements (of order greater thanzero) should be used for second-order problems that require only the dependent variables (not their derivatives) of the problem to be continuous at interelement boundaries. It can easily be seen that the pth-degree polynomial associated with the pth-order Lagrange element, when evaluated on the boundary of the latter, yields a pth-degree polynomial in the boundary coordinate. For example, the quadratic polynomial associated with the quadratic (six-node) triangular element shown in Fig. 9.2 is u'(», y)
= al + azx + a3Y + a4xy + asx z + a6Y z
(9.4)
The derivatives of u" are (9.5) The element shown in Fig. 9.2(a) is an arbitrary quadratic triangular element. By rotating and translating the (x, y) coordinate system, we obtain the (s, t) coordinate system. Since the transformation from the (x, y) system to the (s, t) system involves only rotation (which is linear) and translation, a kth-degree polynomial in the (x, y) coordinate system is still a kth-degree polynomial in the (s, t) system: (9.6) where Ilt (i = 1, 2, ... ,6) are constants depending on a, and the angle of rotation a. Now, by setting t = 0, we obtain the restriction of u to side 1-2-3 of the element ge: (9.7) which is a quadratic polynomial in s. If a neighboring element gf has its side 5-4-3 in common with side 1-2-3 of the element ge then the function u on side 5-4-3 of the element gf is also a quadratic polynomial:
uf (s, 0) =
61 + 6zs + 6ss2
(9.8)
INTERPOLATION AJNCTIONS, NUMERICAL INTEGRATION AND MODELING
407
y
'----------------x (a)
~
IW~ I-Delement 4
6
CD
3
3
(b)
FIGURE 9.2 Variation of a function along the interelernent boundaries of Lagrange (triangular) elements: (a) a typical higher-order element; (b) interelement continuity of a quadratic function.
Since the polynomials are uniquely defined by the same nodal values U1 = ui = u~J Uz = u~ = u~, and U3 = u~ = u~, we have ue(s, 0) = I i (s, 0), and hence the function u is uniquely defined on the interelement boundary of the elements Qe and Q!. The above ideas can easily be extended to three dimensions, in which case Pascal's triangle takes the form of a Christmas tree and the elements are of a pyramidal shape, called tetrahedral elements. We shall not elaborate on this any further, because the scope of the present study is limited to two-dimensional elements only. An introduction to 3-D elements is presented in Chapter 14. Recall from (8.19)-(8.25) that the procedure for deriving the interpolation functions involves the inversion of an n X n matrix, where n is the number of terms in the polynomial used to represent a function. When n > 3, this procedure is algebraically very tedious, and therefore one should devise an alternative way of developing the interpolation functions, as was discussed for one-dimensional elements in Chapter 3. The alternative derivation of the interpolation functions for the higherorder Lagrange family of triangular elements is simplified by use of the area
408
FINITE ELEMENT ANALYSIS OF TWO·DlMENSIONAL PROBLEMS
3
L,
= ~j
(A
= JM, Al = ~bs,
LI
= AlIA
=
slh, etc.)
FIGURE 9.3 Definition of the natural coordinates of a triangular element. /
coordinates L i . For triangular elements, it is possible to construct three nondimensionalized coordinates L; (i = 1, 2, 3), which relate respectively to the sides directly opposite nodes 1,2, and 3, such that (see Fig. 9.3)
AL;= A"
3
A=,L:A;
(9.9)
;=1
where Ai is the area of the triangle formed by nodes j and k and an arbitrary point P in the element, and A is the total area of the element. For example Al is the area of the shaded triangle, which is formed by nodes 2 and 3 and point P. The point P is at a perpendicular distance s from the side connecting nodes 2 and 3. We have Al = !bs and A = !bh. Hence,
L 1 =A 1/A =s/h Clearly, L 1 is zero on side 2-3 (and hence zero at nodes 2 and 3), and has a value of unity at node 1. Thus, L 1 is the interpolation function associated with node 1. Similarly, ~ and L 3 are the interpolation functions associated with nodes 2 and 3, respectively. In summary, we have 1JJi = L,
(9.10)
for a linear triangular element. We shall use L, to construct interpolation functions for higher-order triangular elements. Consider a higher-order element with k nodes (equally spaced) per side (see Fig. 9.4a). Then the total number of nodes in the element is k-1
n = ,L: (k - i) = k + (k -1) + ... + 1 = M(k + 1)
(9.11)
j=O
and the degree of the interpolation functions is k - 1. For example, for the quadratic element, we have k -1 = 2 and n = 6. Let the corner (i.e., vortex) nodes be denoted by 1, J, and K, and let hI be the perpendicular distance of node 1 from the side connecting J and K. Then the distance sp to the pth row
INTERPOLATION FUNCTIONS, NUMERICAL INTEGRATION AND MODELING
409
"L 1= 1
$1
=
$k-]
= 1. $p =
P
k _ 1
(0)
$
=1
s=o (b)
FIGURE 9.4 Construction of the element interpolation functions of the Lagrange triangular elements: (0) an arbitrary (k -l)th-order element; (b) linear, quadratic, and cubic elements.
parallel to side J-K (under the assumption that the nodes are equally spaced along the sides and the rows) is given in nondimensional form by p
sp
= k _ t:
So
= 0,
Sr
= Sk-l ::::: 1
(9.12)
The interpolation function WI should be zero at the nodes on the lines L, ::::: 0, 1/(k -1), ... ,pl(k -1) (p = 0,1, ... ,k - 2), and Wr should be unity at L/ = Sj. Thus we have the necessary information for constructing the interpolation function 1J'/:
Similar expressions can be derived for nodes located other than at the vertices. In general, t/J; for node i is given by (9.14)
410
FINITE ELEMENT ANALYSrS OF lWO·DIMENSIONAL PROBLEMS
where f are functions of L 4 , ~, and L 3 J and j] is the value oft at node i. The functions jj are derived from the equations of k - 1 lines that pass through all the nodes except node i. The procedure is illustrated below via an example. Example 9.1. First consider the triangular element that has two nodes per side (i.e., k = 2). This is the linear triangular element with total number of nodes equal to 3 (n = 3). For node 1 (see Fig. 9Ab), we have k - 2 = 0 and So
=0,
SI
(9. 15a)
= 1,
Similarly, for 1/12 and 'tJ!3' we obtain
1/12 = L 2,
'tJ!3 = L 3
(9. 15b)
Next, consider the triangular element with three nodes per side (k = 3). The total number of nodes is 6. For node 1, we have /
(9.16a) The function 'tJ!2 (see Fig. 9Ab) should vanish at nodes 1, 3, 4, 5, and 6, and should be unity at node 2. Equivalently, 1/12 should vanish along the lines connecting nodes 1 and 5, and 3 and 5. These two lines are given in terms of L 1 , ~, and L 3 (note that the subscripts on L refer to the nodes in the three-node triangular element) by L 2 = 0 and L 1 = O. Hence, (9. 16b)
Similarly,
'tJ!3 = L2(2~ -1),
'tJ!4 = 4~L3'
1/Is = L 3(2L3 - 1),
1/16 = 4L 1L3 (9.16c)
As a last example, consider the cubic element (i.e., k -1 = 3). For 1/11> we note that it must vanish along the lines L 1 = 0, L 1 = t and L 1 = ~. Therefore,
L 1 - 0 L 1 -1 L 1 - j 1 • 1/11 = 1- 0 1- ~ 1 _ j = 2 L l(3L 1 -1)(3L 1 - 2) Similarly,
and so on. We have
'tJ!3 = ~L1L2(3L-z -1), 'tJ!s = ~~L3(3~ -1), 'tJ!7 = !L3(3L3 - 1)(3L 3 - 2), 'tJ!g = ~L1L3(3L[ -1),
'tJ!4 = tL-z(3L-z - 1) (3L 2- 2) 'tJ!6 = ~L-z~(3L3 -1)
1/18 = ~L3Ll(3~ -1) 'tJ!1O = 27L 1L2L3
(9.17)
In closing this section, it should be pointed out that the area coordinates L, facilitate not only the construction of the interpolation functions for the
INTERPOLATION FUNCTIONS, NUMERICAL INTEGRATION AND MODELING
411
higher-order elements but also the integration of functions of L i over line paths and areas. The following exact integration formulae prove to be useful: b
I a
Ii
m
11
_
I , m.n. 1)1 (b - a) m+n+ .
(9. 18a)
m! n!p! 2A (m+n+p+2)!
(9. 18b)
L 1 L 2 ,ds - (
Ll'L2L~ dA
=
area
where m, n, and p are arbitrary (positive) integers, A is the area of the domain of integration, and m! denotes the factorial of m. Of course, one should transform the integrals from the x and Y coordinates to L, coordinates using n
X=
L: xjL
11
j,
1=1
Y=
L: YiLI
(9.19)
i=1
where (x;, Yj) are the global coordinates of the ith node of the element.
9.1.3 Rectangular Elements Analogous to the Lagrange family of triangular elements, the Lagrange family of rectangular elements can be developed from Pascal's triangle in Fig. 9.1 or the rectangular array shown in Fig. 9.5. Since a linear rectangular element has four corners (and hence four nodes), the polynomial should have the first four terms 1, x, Y, and xY (which form a parallelogram in Pascal's triangle and a rectangle in the array given in Fig. 9.5). The coordinates (x, y) are usually taken to be the element (i.e., local) coordinates. In general, a pth-order Lagrange rectangular element has n. nodes, with n=(p+1)2
(p=O,1, ... )
and the associated polynomial contains the terms from the pth parallelogram or the pth rectangle in Fig. 9.5. When p = 0, it is understood (as in triangular elements) that the node is at the center of the element (i.e., the variable is a constant on the entire element). The Lagrange quadratic rectangular element has nine nodes, and the associated polynomial is given by u(x, y) = at + azx + a3Y + a4xy + a5x2 + a6y2
+ a7x 2y + agxy2 + a9x2y2
au ax = a2 + a4Y +2a5x + 2a7xy + agy
(9.20a) 2
z
+ 2a9xy
Bu .2 2 - = a3 + a4X + 2a6Y + a7x + 2agxy + 2a9x y By
(9.20b)
The polynomial contains the complete polynomial of the second degree plus the third-degree terms xZy and xy2 and also an X2y2 term. Four of the nine nodes are placed at the four corners, four at the midpoints of the sides, and one at the center of the element. The polynomial is 'uniquely determined by
Pascal's triangle
Q}x-J?-?
1'
x ~y fY
/\
1\/'\ X
/x\ 2
y
xy
x 3y
x4
/
x
/\ X
x5
x4y J?l
\J
/ 6
x
j\ 4
X'YI x y2
/
\
\
-===_.
2y2
\
'
?l
•
0
~
_~
.ITil y4
y\ \ xy4/ \i
m
Terms un~e: this cone are not included in the serendipity elements
\I
1\ rl I
•
xy5
'/
y6
\
...
FIGURE 9.5 Lagrange and serendipity families of rectangular elements. (
L ....
Serendipity elements
G
•
...
I
x2?
/
_
xl
x4
4 J y xy . ...------------y2_ x 2 J?y 2 ?y2 x4y2... 2 3 ._'x: 3y 3 X 4Y3... Y13 y.3ry
y-
/: v:
Lagrange family of rectangular elements
Rectangular array
o
o
J
INTERPOLATION FUNCTIONS. NUMERICAL INTEGRATION AND MODELING
413
specifying its values at each of the nine nodes. Moreover, along the sides of the element, the polynomial is quadratic (with three terms-as can be seen by setting y = 0), and is determined by its values at the three nodes on that side. If two rectangularelements share a side, and the polynomial is required to have the same values from both elements at the three nodes of the elements, then u is uniquely defined along the entire side (shared by the two elements). Note that the normal derivative of u approximated by the quadratic Lagrange polynomials is quadratic in the tangential direction and linear in the normal direction (i.e., au/ax is quadratic in y and linear in x, and ou/oy is quadratic in x and linear in y). Plots of 1J!1, 1J!2' and 1J!s (the node numbers correspond to those in Fig. 9.6) of the nine-node rectangular element are shown in Fig. 9.7. The pth-order Lagrange rectangular element has the pth-degree polynomial n
u(x, y) =
2: a;xiyk
(j + k ~p + 1; i, j~p)
;=1
" u;1J!; = 2:
(9.21)
;=1
and 1J!; are called the pth-order Lagrange interpolation functions. The Lagrange interpolation functions associated with rectangular elements can be obtained from corresponding one-dimensional Lagrange inter-
(-1, 1) <;)-3---+----<>4 (1, 1) L . -_ _+ - _ ~
2
(-1, -1)
tltl = j(1 - ~)(1 - lJ) = j(1 + t')(1 - lJ) = j(1 - t)(1 + lJ) = 1(1 + t)(1 + lJ)
t/J2 I/J3 tlt4
(1, -1)
tltl =
l(e i(e
t)(lJ2 - 1]),
= + t')(1]2 - n), 1/15 = (1 - e)(1 - 1)2),
ifJJ
t/J2 tlt4
= = !/J6 =
j(1 - e)(lJ2 t')(1 lee + t)(1 j(1 - (2)(1)2+
Ke -
lh = j(e - g)(1]2 + 1). !/J8 = tf.s9 = i(e + g)(1)2 + 1]),
1) 1]2) 1]2) 1])
Use (9.25)-(9.27) to develop the interpolation functions.
FIGURE 9.6 Node numbers and interpolation functions for the rectangular elements of the Lagrange family.
1/11
1.0 0.5 0.0 -0.5 -1.0 -1.0
-0.5
! 0.5
//-0.5 1.0 -1.0
1.0
'rJ: 4LJ 1
2
0.5~ ...•••..'. •. . . . :,", ':
0.0 -0.5
'i
;':;
-',=, ""'.
:"> ,'.::>.-'
'.'., )"':.'...'. ';';'~.•..........
.-,.,.. '__
0,"".-'
;'.,;
-1.0 -1.0 , -0.5
3 I
05........... ~
! /-0.5
~'j
1.0 -1.0
"-
FIGURE 9.7 Geometric variation of the Lagrange interpolation functions at nodes 1, 2, and 5 (see Fig. 9.6) of the nine-node quadratic element. (
L_
INTERPOLATION FUNCTIONS, NUMERICAL INTEGRATION AND MODELING
415
polation functions' by taking the tensor product of the x-direction (onedimensional) interpolation functions with the y-direction (one-dimensional) interpolation functions. Let the x and y coordinates be taken along element sides, with the origin of the coordinate system at the lower left corner of the rectangle. Then for an element with dimensions a and b along the x and y directions, respectively, the interpolation functions are given as follows:
Linear (p = 1)
(9.22)
Quadratic (p = 2)
(X-1a)(x-a) (-4u)( -u)
(Y-1b)(y-b) 1hZ
x(x-a) 4a(4u - u)
y(y-b)
x(x -1a) a(4a)
y(y - b12)
~ {f}{g}T
lgl
~
T
_~bz
1hZ fIgZ fIg3]
= fzgl f2gz fzg3
(9.23)
3gI f3gZ !3g3
where /;(x) and gj(Y) are the one-dimensional interpolation functions along the x and y directions, respectively. We obtain
v, = (1- ~)(1-~)(1- i)(1-~) lfz =
~ (1-~)(1- i)( 1-~),
VJ4=(1-~)(1-~)i(1-~)J lf6 = ~
1fs = ~ T
i
(~ -1) (1-~),
(1 -~) t (i-1),
lf3 =~
(~ -1)(1- i)( 1-~)
1f5= ~(1-~)i(1-~)
(1- ~)(1-~) ~ (i -1) 1f9 = ~ (~' - 1)~ (i-1) VJ7 =
(9.24)
416
FINITE ELEMENT ANALYSIS OF nVO·D1MENSIONAL PROBLEMS
At pth order
Wp+ 2
WI
Wk
WZ Wp VJp +1
W2p+2 k
Wn
= (p + l)p + 1,
C1CT
~ :~. n
g::.
(9.25)
= (p + 1?
where hex) and g;(y) are the pth-order interpolants in For example, the polynomial
x and
y, respectively.
,
(where ;; is the ; coordinate of node i) is the pth-degree interpolation polynomial in ~ that vanishes at the points ~l' ;z,... , ;;-lJ ~;+1" •• , ~p+1' We recall that (x, y) are the element coordinates. It is convenient (for numerical integration purposes) to express the interpolation functions in (9.25) in terms of the natural coordinates; and 1]:
; = 2(x -
XI) -
a,
(9.27)
a where Xl and Yl are the global coordinates. For a coordinate coordinates parallel to the sides case, the quadratic interpolation ; and 11 as
coordinates of node 1 in the local x and y system with origin fixed at node 1 and of the element, we have Xl = Yl = O. In this functions in (9.24) can be written in terms of
WI = 1(1 - ';)(1- 11 )';1], W2 = -!(1- ;2)(1- 11)11, W3 = -!(1 + ;)(1 - 11);1], 2
W4 = -1(1 - ;)(1 - 11 ) ; , W9 = 1(1 + ;)(1 + 11);1]
lJ1s = (1 - ;2)(1 -11 2) lJ16 = H1 + ';)(1- 71 2); lJ17 = -1(1- ';)(1 + 17);11 v« = 1(1- ;2)(1 + 11)1]
(9.28)
The reader should be cautioned that the subscripts of lJ1j refer to the node numbering used in Fig. 9.6. For any renumbering of the nodes, the subscripts of the interpolation functions should be changed accordingly.
9.1.4' The Serendipity Elements Since the internal nodes of the higher-order elements of the Lagrange family do not contribute to the interelement connectivity, they can be condensed out at the element level so that the size of the element matrices is reduced. The
j
417
INTERPOLATION FUNCTIONS, NUMERICAL INTEGRATION AND MODELING
serendipity elements are those rectangular elements that have no interior nodes. In other words, all the node points are on the boundary of the element. The interpolation functions for serendipity elements cannot be obtained using tensor products of one-dimensional interpolation functions. Instead, an alternative procedure that employs the interpolation properties in (8.26) is used. Here we show how to construct the interpolation functions for the eight-node (quadratic) element using the natural coordinates (~, 7]). The interpolation function for node 1 should be zero at nodes 2,3, ... ,8, and unity at node 1. Equivalently, 'l/Jr should vanish on the sides defined by the equations 1 ~ ~ = 0, 1 -1] = 0, and 1 + ~ + 1] = 0 (see Fig. 9.8). Therefore, 1J!1 is of the form 1J!r(l;, 1]) = c(l- ~)(l- 7])(1 + ~ + 7])
(9.29a)
where c is a constant that should be determined so as to yield 'l/Jl( -1, -1) = 1. We obtain c = and therefore
-t
1J!l(~' rJ) = -l(l- ~)(1-1])(1 + ~ + 1])
(9.29b)
Similarly, we obtain
'l/J2 = !(1- ~2)(1_ rJ),
'l/J3 = t(l + ~)(1 - rJ)( -1 + ~ - 1])
'l/J4 = !(1 - ~)(1 - 1]2),
'l/Js = !(l + ~)(1 - 7]2)
1J!6 = t(l- ~)(1 + 1])(-1- ~ -+- 7]),
1J!7 = !(l- ~2)(1 + rl)
(9.30)
v« = ~(1 + ~)(1 + 7])(-1 + ~ + 7]) TJ "'1 = ~(l -
l/Jz
rh =
"'4
= "'5 = %= ljry = t/>s =
1+§ = 0
§) (1 - 1])(-1 - e)(1 - TJ) ~(l + §)(1 - 11)(-1 l(1 - §)(1 - 1]2) l(1 + §)(1 - ,]2) j(1 - §)(1 + 1])(-1 l(l - e)(1 + 1]) j(1 + !?)(1 + 1])(-1
= l(1
- § - 11)
+ § - ']) - § + '])
+ § + 11)
TJ 10
11
12 .8
See (9.32) for the interpolation functions
b
4
FIGURE 9.8 Node numbers and interpolation functions for the serendipity family of elements.
418
FINITE ELEMENT ANALYSIS OF TWO·DlMENSIONAL PROBLEMS
1.0
_---+--_8
0.5
0.0 I
-0.5 -1.0 -1.0 -0.5
I
1.0 0.5 0.0
-0.5
I'
1.0 0.5
0.0
-0.5 -1.0 -1.0
1.0 O.S
-0.5
~ =
-1
0.0 J
I J
-0.5
1.0 -1.0 FIGURE 9.9 Geometric variation of the interpolation functions associated with nodes 1 and 2 of the eight-node serendipity element (see Fig. 9.8).
Note that all the 'lJ1j for the eight-node element have the form (9.31a)
The derivatives of 1/Ji with respect to ;- and '7 are of the form
(9.31b)
Plotsof 'ljJl and 'ljJ2 (the node numbers correspond to those in Fig. 9.8) for the eight-node serendipity element are shown in Fig. 9.9. It should be noted that 'ljJ2 of the nine-node element is zero at the element center, whereas lJ12 of the eight-node element is nonzero there.
INTERPOLATION FUNcnONS, NUMERICAL INTEGRATION AND MODELING
419
The interpolation functions for the cubic serendipity element, which has 12 nodes, are
1J!1 = tz(1 - ~)(1 - t])[--10 + 9(~2 + t]2)],
1J!2 = 31(1 - 1/)(1 - ~2)(1 - 3~)
1J!3 = 31(1 - 1/ )(1 - ~2)(1 + 3~),
1J!4 = tz(1 + ~)(1- 1/)[-10 + 9(;2 + t]2)]
1J!5 = 31(1- ;)(1 - 1/2)(1 - 31/), 1J!7 = 31(1- ~)(1 - 1/2)(1 + 31/),
1J!6 = 31(1 + ~)(1 - 1/2)(1- 31/) 1J!s = 31(1 + ~)(1 - t]2)(1 + 317)
1J!9 = tz(l- ~)(1 + 17)[-10 + 9( ~2 + 1/2»), 1J!n = 31(1 + 1/)(1- ~2)(1 + 3~),
1jJIO = 31(1 + 17 )(1- ~2)(1- 3~)
1jJ12 = tz(1 + ~)(1
+ 17)[-10 + 9(~2 + 1/2)] (9.32)
The interpolation functions 1jJj for the 12-node element are of the form 1jJj = terms of the form in (9.31a)
+ C9~3 +- ClOry) + Cll~317 + CI2~1/3
(9.33)
TABLE 9.1
Interpolation functions for the linear and quadratic Langrange rectangular elements, quadratic serendipity element and Hermite cubic rectangular elementt Element type
Interpolation functions
Lagrange elements: Linear
w+ ~si)(l + rJrJi)
Quadratic
Remarks
Nodei(i= 1, ... ,4)
~ss,(1
+ ss,)rJrJil + rJrJ;) ~rJl)i(1 + l'/l'/I)(1 - S2) ~sSI(1 + ss/)(1 - 1)2)
(1 - s2)(1 - rJ2) Seredipityelement: Quadratic
Corner node Side node, t = 0 Side node, rJl = 0 Interior node Corner node Side node, Si = 0 Side nodevn, = 0
Hermite cubic element: Interpolation functions for variable u derivative au/a~ derivative ou/arJ derivative ~u/as (1)
For node i (i = 1, ... ,4)
Interpolation functions for 2)} variable u !<SO + 1)(l'/0. + 1)(2 + So+ 110 - S2_ 11 derivative au/as ~Mso + Il(so - 1)(1)0 + 1) derivative au{al'/ h,(so + l)(rJo + 1)2(1)0 - 1)] -
s= (x -xc){a, So=
SSt,
=
11 (y -yJ{b 1)0 = 1)111
For node i (i= 1, ... ,4) (2a and 2b are the sides of the rectangular element)
t See Fig. 9.10 for the coordinate system; (~I' 1/,) denote the natural coordinates of the ith node of the element; (xc. yJ are the global coordinates of the center of the element.
420
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
In the above discussion, we developed only the Lagrange interpolation functions for triangular and rectangular elements. The Hermite family of interpolation functions (which interpolate the function and its derivatives) were not discussed. We recall that such functions are required in the finite element formulation of fourth-order (or higher-order) differential equations (e.g., the Euler-Bernoulli beam theory of Chapter 4 and the classical or Kirchhoff plate theory of Chapter 12). For the sake of completeness, while not presenting the details of the derivation, the Hermite cubic interpolation functions for two rectangular elements are summarized in Table 9.1. The first is based on the interpolation of (u, au/ax, all/ay, <:?u/ax ay) at each node, and the second is based on the interpolation of (u, au/ax, au/ay) at each node. The node numbering system in Table 9.1 refers to that used in Fig. 9.10. The notation used in Table 9.1 and Fig. 9.10 is also followed in the computer / " program FEM2DV2, which will be discussed in Chapter 13.
(0)
1/
1/
4
4
3
~ 1
8
2
1
7
1)
3
9
6
5
2
4 ~
7
8 1
3 6
5
(
2
(b)
1/
T
4
3 ~
2b
1
2
r- (c)
la ----j
FIGURE 9.10 Triangular and rectangular elements: (a) linear and quadratic triangular elements; (b) linear and quadratic Lagrange elements; (c) Hermite cubic element.
INTERPOLATION FUNCTIONS, NUMERICAL INTEGRATION AND MODELING
421
9.2 NUMERICAL INTEGRATION 9.2.1 Preliminary Comments An accurate representation of domains with curved boundaries can be accomplished by the use of refined meshes and/or curvilinear elements. For example, a nonrectangular region cannot be represented using rectangular elements; however, it can be represented by quadrilateral elements. Since the interpolation functions are easily derivable for a rectangular element, and it is easier to evaluate integrals over rectangular geometries, we transform the finite element integral statements defined over quadrilaterals to a rectangle. The transformation results in complicated expressions in terms of the coordinates used for the rectangular element. Therefore, numerical integration is used to evaluate such expressions. Numerical integration schemes, such as the Gauss-Legendre scheme, require that the integral be evaluated on a specfic domain or with respect to a specific coordinate system. Gauss quadrature, for example, requires that the integral be expressed over a square region Q of dimension 2 by 2 and that the coordinate system (s, YJ) be such that -1 ~ (s, YJ) ~ 1. The transformation of the geometry and the variable coefficients of the differential equation from the problem coordinates (x, y) to the coordinates (s, 77) results in algebraically complex expressions, and this precludes analytical (i.e., exact) evaluation of the integrals. Thus, the transformation of a given integral expression, defined over the element ge, to one on the domain Q must be such as to facilitate numerical integration. Each element of the finite element mesh is transformed to Q, only for the purpose of numerically evaluating the integrals. The element Q is called a master element. For example, every quadrilateral element can be transformed to a square element with side 2 that facilitates the use of Gauss-Legendre quadrature to evaluate integrals defined over the quadrilateral element. The transformation between ge and Q [or, equivalently, between (x, y) and (s, YJ)] is accomplished by a coordinate transformation of the form m
X
=
2: xJ~J(s,
j=l
m
f/),
y = 2: YJ~J(;,
YJ)
(9.34)
j=l
where -$1 denote the finite element interpolation functions of the master element Q. Although the Lagrange interpolation of the geometry is implied by (9.34), one can also use Hermite interpolation. Consider, as an example, the master element shown in Fig. 9.11. The coordinates in the master element are chosen to be the natural coordinates (s, 77) such that -1 ~ (s, 77) ~ 1. This choice is dictated by the limits of integration in the Gauss quadrature rule that is used to evaluate the integrals. For this case, the -$J denote the interpolation functions of the four-node rectangular element shown in Fig. 9.11 (i.e., m == 4). The transformation (9.34) maps a point (s, 11) in the master element Q onto a point (x, y) in the element ge, and vice versa if the Jacobian of the transformation is positive definite. The transformation maps the line; = 1 in Q to the line defined parametrically by x = x(l, 77) and ,y == y(l, YJ) in the (x, y)
422
FINITE ELEMENT ANALYSIS OF lWO·DlMENSIONAL PROBLEMS
y
1J~_111 \ g
= )(;d1J
it
(;
~
X = X(g, 1/) y = y(g, 11)
L-..-~"""--~_~_~_~_~
\
X
g= 1)
g(x, y) = 1)(X, y)
\
11
~
X
= x((;, 1)
y =
ya,
1)
dxdy = Idgd1) ~-----(;
X =
x(l,
Y
y(l, 1))
=
1))
FIGURE 9.11 Generation of a finite element mesh from a master element.
plane. For instance, consider the line ~ = 1 in the master element Q. We have 4
x(l, lJ) =
2: x;'$;(l, lJ) =
X1
0 + 1x2(1- lJ) + 1x3(1 + lJ) + X4 0
/=1
= ~(X2 + xJ) +
!eX 3 -
X2)lJ
(9.35)
4
y(l, lJ) =
2: y/'$/(l, lJ) = !(Y2 + YJ) + !(Y3 - Y2) lJ
;=1
Clearly, x and yare linear functions on n. Therefore, they define a straight line. Similarly, the lines ~ = -1 and lJ = ±l are mapped into straight lines in the element ge. In other words, the master element Q IS transformed, under the linear transformation, into a quadrilateral element (i.e., a four-sided element whose sides are not parallel) in the (x, y) plane. Conversely, every quadrilateral element of a mesh can be transformed to the same four-noded square (master) element Q in the (~, 1]) plane (see Fig. 9.6). In general, the dependent variable(s) of the problem are approximated by expressions of the form n
u(x, y) =
2: uj1jJj(x, y)
(9.36)
j=1
The .interpolation functions 1J!j used for the approximation of the dependent variable are, in general, different from the '$j used in the approximation of the geometry. Depending on the relative degree of approximations used for the geometry [see (9.34)} and the dependent variable(s) [see (9.36)], the finite element formulations are classified into three categories.
- .r
INTERPOLATION FUNCTIONS, NUMERICAL INTEGRATION AND MODELING
423
1. Superparametric (m > n): the approximation used for the geometry is of higher order than that used for the dependent variable. 2. Isoparametric (m = n): equal degree of approximation is used for both geometry and dependent variables. 3. Subparametric (m < n): higher-order approximation of the dependent variable is used. (9.37) For example, in the finite element analysis of the Euler-Bernoulli beams, we used linear Lagrange interpolation of the geometry, (9.38) whereas Hermite cubic interpolation was used to approximate the transverse deflection. Such a formulation falls into the subparametric category. Since the axial displacement is approximated by the linear Lagrange interpolation functions, it can be said that the isoparametric formulation is used for the axial displacement. Superparametric formulations are rarely used. Also, the approximation of geometry by the Hermite family of interpolation functions is not common.
9.2.2
Coordinate Transformations
It should be noted that the transformation of a quadrilateral element of a finite element mesh to the master element Q is solely for the purpose of numerically evaluating the integrals. No tranif!!l't!lafipn.of the physical domainor elements ~jnJ1.2lue41!!)hefinit~elemenl analySis. The-resulting algebraic equations of the finite element formulation are always among the nodal values of the physical domain. Different elements of the finite element mesh can be generated from the same master element by assigning the global coordinates of the elements (see Fig. 9.11). Master elements of different order define different transformations and hence different collections of finite element meshes. For example, a cubic-order master rectangular element can be used to generate a mesh of cubic curvilinear quadrilateral elements. Thus, with the help of an appropriate master element, any arbitrary element of a mesh can be generated. However, the transformations of a master element should be such that there are no spurious gaps between elements and no element overlaps. The elements in Figs. 9.6 and 9.8 can be used as master elements. When a typical element of the finite element mesh is transformed to its master element for the purpose of numerically evaluating integrals, the integrand must also be expressed in terms of the coordinates (s, 1]) of the master element. For example, consider the element coefficients
(9.39)
424
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
The integrand (i.e., the expression in the square brackets under the integral) is a function of the global coordinates x and y. We must rewrite it in terms of ; and T/ using the transformation (9.34). Note that the integrand contains not only functions but also derivatives with respect to the global coordinates (x, y). Therefore, we must relate a1jJ1! ax and aw/ay to a1/J1/a; and a1/JUaT/ using the transformation (9.34). The functions 1/J1(x, y) can be expressed in terms of the local coordinates ; and T/ by means of (9.34). Hence, by the chain rule of partial differentiation, we have
a1jJ1 81/11 ax 81/118y a; ax a; ay a; a1/J1 81/J1 ax a1/J1 8y -=--+-at] ax aT/ ay a77 -=--+--
(9.40a)
"
or, in matrix notation,
ay]e{ a1/J1} a; ax a1/11 -ay -a77 ay
(9.40b)
which gives the relation between the derivatives of 1jJ1 with respect to the global and local coordinates. The matrix in (9.40b) is called the Jacobian matrix of the transformation (9.34):
l
ax ay]e
[j] =
a; a;
ax ay a77 811
(9.41)
Note from the expression given for Kij in (9.39) that we must relate
a1/Jf!ax and CJ1jJ1! CJy to a1jJ1/a; and a1jJ1/a11, whereas (9.40) provides the inverse relations. Therefore, (9.40b) must be inverted by inverting the Jacobian matrix: -
I
(J1/J1} ax -1 (J1/J1 ~Ij] { oy
-
l
81/11} a; 81/11 077 -
(9.42)
This requires that the Jacobian matrix [j] be nonsingular. Although it is possible to write the relationship (9.42) directly by means
INTERPOLATION FUNcnONS. NUMERICAL INTEGRATION AND MODELING
425
of the chain rule,
atjJf atjJ'f ag atjJ'f aT} -=--+-ax ag ax aT} ax atjJ'f .atjJi ag a1jJ'f aTJ -=--+--
(9.43)
ay a~ ay aT} ay it is not possible to evaluate a1;/ax, a~/ ay, aT}1 ax, and aT}1 ay directly from the transformation equation (9.34). The transformation equation (9.34) allows direct evaluation ofax/a1;, ax/aT}, ay/a1; and ay/a11; and therefore L1]. Using the transformation (9.34), we can write
ax
ay m a;P~ a1;= ~/j a{ ay m a;P~ -=2':Yj_J aT} j=1 a1]
a;PJ
m
a~= ~Xj a1;; ax m a'l/J~ -=2':x j_J, aT} j=1
a17
(9.44a)
and
[)J] =
=
-aX -ay]
a1; ax [aT}
a1;
ay
-
a1/
=
[m2':Xi~ a'l/Ji 2':y;m a'l/Ji] a~
i=1
i~1
a~
atjJ; m atjJ; 2':x.- 2':y.;=1 a11 ;=1 aTJ m
I
I
[:j: :1:::. :1~][~: ;;] aT]
ary
aT]
(9.44b)
x", Ym
Thus, given the global coordinates (Xj' Yj) of element nodes and the interpolation functions 'l/JJ used for geometry, the Jacobian matrix can be evaluated using (9.44b). Note that the ;PJ are different, in general, from the 1jJJ used in the approximation of the dependent variables. In order to compute the global derivatives of 1jJ'f (i.e., derivatives of 1jJ'f with respect to x and y) from (9.42), it is necessary to invert the Jacobian matrix. A necessary and sufficient condition for [$]-1 to exist is that the determinant $, called the Jacobian, be non-negative at every point (1;, 1J) in Q:
ax ay
ax ay
$ "'" det [)J] = a~ a1J - aT} a~ > 0
(9.45)
From this it is clear that the functions 1; = 1;(x, y) and TJ = TJ(x, y) must be continuous, differentiable,' and invertible. Moreover, the transformation should be algebraically simple so that the Jacobian matrix can be easily evaluated. Transformations of the form (9.34) satisfy these requirements and the requirement that no spurious gaps between elements or overlapping of elements occur. We consider an example to illustrate the invertibility requirements.
426
FlNITE ELEMEl'IT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
~ 4
3
A
.'" I fiR ..~2
t t-
'l'/ - 1
=0
1/11 = ~(1 - t)(1 - 7)),
=
t/':l = j(1 + t)(l + 7)) j{l + t)(l - 'l'/), 1/14 = j(l - t)(l + 7))
4
2
O-----o---X
(>---..::(f---'------'---x
FIGURE 9.U Examples of transformations of the master rectangular element QR'
Example 9.2. Consider the three-element mesh of quadrilaterals shown in Fig. 9.12. The master element is the four-node square. Elements 1 and 2 have counter-clockwise element node numbering consistent with the node numbering in the master element, and element 3 has node numbering opposite to that of the master element. Elements 1 and 3 are convex domains in the sense that the line segment connecting any two arbitrary points of a convex domain lies entirely in the element. Clearly, element 2 is not convex, because, for example, the line segment joining nodes 1 and 3 is not entirely inside the element. In the following paragraphs, we investigate the effect of node numbering and element convexity on the transformations from the master element to each of the three elements. First, we compute the elements of the Jacobian matrix (the interpolation functions are given in Fig. 9.12):
ax 4 a{jJ1 a~ = ~ xl--af = U-x t (l - 1]) + x2(1- 1]) + x3(1 + 1]) - x4(1 + 1])] ax a{jJi a= ~ x/a = U-Xt(l -~) - x2(1 + ~) + x3(1 + 5") + x4(1- 5)] 1] 1] 4
,~t
(9.46)
INTERPOLATION FUNGl1oNS, NUMERICAL INTEGRATION AND MODELING
427
Next, we evaluate the Jacobian for each of the elements. Element 1. We have X I=X4=0, x z=x3=2, YI=Y2=O, Y3=3, and Y4=5. The transformation and Jacobian are given by (9.47a) (9.47b)
Clearly, the Jacobian is linear in ;, and, for all values of ; in -1 ~ ; ~ 1, it is positive. Therefore, the transformation (9.47a) is invertible. Element 2. Here we have Xl = X4 = 2, X2 = 3, X3 = 5, YI = 0, Y2 = 2, and Y3 = Y4 = 3. The transformation and Jacobian are given by (9.48a)
(9048b) The Jacobian is not nonzero everywhere in the master element. It is zero along the line ; = 1 + '1 shown by the shaded area in the master element in Fig. 9.12. Moreover, this area is mapped into the shaded area outside element 2. Thus,elem~.Qts__with .any, i~teri?r angle greater than Jr should not be use_
,1
= 3-
!; + 2'1 + Hf],
=I-;(~~5'1) ~ 1=
Y= 4+;
-(2 + !;) <0
(9A9a)
(9049b)
The negative Jacobian indicates that a right-hand coordinate system is mapped into a left-hand coordinate 'system. Such coordinate transformations should be avoided.
The above example illustrates, for the four-node master element, that nonconvex elements are not admissible in finite element meshes. In general, any interior angle () (see Fig. 9.13) should not be too small or too large, because the Jacobian J = (ldrllldr21 sin ()/dl; dry will be very small. Similar restrictions hold for higher-order master elements. Additional restrictions also exist for higher-order elements. For example, for higher-order triangular and rectangular elements, the placing of the side and interior nodes is restricted. For the eight-node rectangular element, it can be shown that the side nodes should be placed at a distance greater than a quarter of the length of the side from either corner node (see Fig. 9.13).
428
FlNITE ELEMENT ANALYSIS OF TWO·DlMENSIONAL PROBLEMS
~
y
-.
= constant
a .--
dr2
/
/
11
drt
L-
d~
, dA = J d'f[ J = \drtlldr21 sin
B/d~ d"l
= constant x
y 1) =
x = ~
1
y
= 1)
+ 4~(a + 4~1)(b
-
1-0.25
n
n
I
] = 1 + 2(2b - 1)~ + 2(2a - 1)1) > 0 (a. b) . a> 0.25
L. ._L
b > 0.;5
0.25
~
O-~~----C>---r-X
=1
y 1);= 1 o-----<~_o
e--o----<>--- ~
FIGURE 9.13 Some restrictions on element transformations.
Returning to numerical evaluation of integrals, we have, from (9.42),
aWi} ax _
{aa~f
- [11
-1
{aw~} a~ _ * {aw~} a~' ~~f ~ [j 1 ~~1
(9.50)
where:tlj is the element in position (i, j) of the inverse of the Jacobian matrix,
[j]~l == [j*] =
[:t!1 :t!z] :t21 :fzz
The elemental area dA = dx dy in the element
Qe
d.Av- dx dy =jdl;d1]
(9.51)
is transformed to (9.52)
in the master element Q. Equations (9.42), (9.44), (9.51), and (9.52) provide the necessary relations to transform integral expressions on any element Qe to an associated master element Q. For instance, consider the integral expression in (9.39)
INTERPOLATION FUNCTIONS, NUMERICAL INTEGRATION AND MODELING
429
where a = a(x, y), b =: b(x, y), and c = c(x, y) are functions of x and y. Suppose that the mesh of finite elements is generated by a master element Q. Under the transformation (9.34), we can write
otp. otp. otp. C3tp. ) a-' + b -0' '" + Ctpitpj dx dy ( L oX ox Y oy = L [a( Otpi + Otpi) (0;* otpj + otpi) oS oS 0 7]
Kij =
_1
1
Q'
a;*
Q
+
s(
;:r
0;*
<1'21
0;*
<1'12
atpi 0;* 8f +
<1'22
07]
0;* <1'12
Otpi) (a;* otpj 07]
<1'21
a;* otpj) oS + <1'22 07] + ctpitpj A
F(S, 7]) ds dn
]
0; df: d 1]
(9.53)
where:lij are the elements of the inverse of the Jacobian matrix in (9.51), and a= a(s, 7]), and so on. Equations (9A2), (9.44), and (9.51)-(9.53) are valid for master elements of both rectangular and triangular geometry. The master triangular and rectangular elements for linear and quadratic triangular and quadrilateral elements are shown in Fig. 9.14.
9.2.3 Integration over a Master Rectangular Element Quadrature formulae for integrals defined over a rectangular master element Q R (such as that shown in Fig. 9.14) can be derived from the one-dimensional quadrature formulae presented in Section 7.1.5. We have
LR F(s, 11) ds d11 =
fl [f1 M
=
N
F(;, 7]) d7]] d; =
2: 2: F(s]} 7]J)W!w,
f1L~
F(;, 7]J)w,] ds (9.54)
1=IJ=1
where M and N denote the number of quadrature points in the ; and 7] directions, (Sf' 7]J) denote the Gauss points, and WI and W, denote the corresponding Gauss weights (see Table 7.2). The selection 'of the number of Gauss points is based on the same formula as that given in Section 7.1.5: a polynomial of degree p is integrated exactly employing N = int [-!(p + 1)]; that is, the smallest integer greater than !(p + 1). In most cases, the interpolation functions are of the same degree in both sand 7], and therefore one has M = N. When the integrand is of different degree in ; and 7], the number of Gauss points is selected on the basis of the largest-degree polynomial. The minimum allowable 1 quadrature rule is one that computes the mass of the element exactly when the density is constant. Tables 9.2 and 9.3 give information on the selection of the integration order and the location of the Gauss points for linear, quadratic, and cubic elements. The maximum degree of the polynomial refers to the degree of the highest polynomial in .; or 7J that is present in the integrands F(';, 11) of the
430
RNITE ELEMENT ANALYSIS OF TWO·D1MENSIONAL PROBLEMS
Master elements
r-f-1,
U-4
8
7
3
9
6
5
Actual elements
'-----I--f
2
~,
.. 3
6 5
I
4 2
f
FIGURE 9.14 Linear and quadratic master elements and their transformations.
element matrices of the type in (9.53). Note that the polynomial degree of coefficients as well as Jij and J should be accounted for in determining the total polynomial degree of the integrand. Of course, the coefficients a, b, and c, and Jij in general, may not be polynomials. In those cases, their functional variations must be approximated by a suitable polynomial (for example, via a binomial series) in order to determine the polynomial degree of the integrand. The N x N Gauss point locations are given by the tensor product of one-dimensional Gauss points Sf:
. {S1} [(S1, S1) (S1' S2) (S1, SN)] ~2 {Sv S2, ... , SN} == (S2,: SI) . . SN (SN, SI) (SN, SN) The values of SI (1 = L 2, ... , N) are presented in Table 7.2.
(9.55)
INfERPOLATION FUNCTIONS, NUMERICAL INTEGRATION AND MODELING
431
TABLE 9.2
Selection of the integration order and location of the Gauss points for linear, quadratic, and cubic qua~rilateral elements (nodes not shown) Maximum Order Order or Element polynomial of the type integration residual ~ee (r X r)
Location or Integration points' in master element
g=
n = yi ~~-Linear (r = 2)
2x2
2
O(h
4
n
-Vi-----j
+-
-
I I
11 =-yi----
11 = 3 x 3
Quadratic 4 (r = 3)
O(h
6
7/ = 0
l'
---~
I
11
.-I
7/=- , - - - -
I
I
4x 4
g
-4--~ I
(lJ
6
-
I
~g =0.861 ...
J
Cubic (r = 4)
f = y~
--,,
~-I
g -
I
r
)
-
I
-VH
y1 -----
I
, -- .--e-
~I
g=
..,I
I
)
f = yi
O(h 8 )
~
'See Table 7.2 for the integration points and weights for each coordinate direction.
The following examples illustrate the evaluation of the Jacobian and element matrices on rectangular elements.
Example 9.3. Consider the quadrilateral element QI shown in Fig. 9.12. We wish to evaluate 81jJd8x and 81jJi/8y at (~) 1]) = (0,0) and G, D using the isoparametric formulation (i.e., tP; = 1jJ;). From (9.44b), we have
~(1-t 1])] [~:~ 1- ~
=[1 -1<1+1])]
o
H4-~)
0,0] 0.0
2.0 3.0 0.0 5.0
432
FINITE ELEMENT ANALYSIS OF nVO·DIMENSIONAL PROBLEMS
The inverse of the Jacobian matrix is given by
4-s ~] 2
4-; "
2
a1J!, = a;j
41/i
Ji2= 4- 5 From (9.42), we have a'tJ!, 81jJi 1 + 1/ o1J!, =-+----
Os
ax
4-
5 (1) ,
where 1 f:)( 1 + 1)1)1' ) 'tJ!, = 4(1 + !os,
(Si'
1),)
a1/J,
f: (
~ = 4!oi 1 + 171/,), 1
1
(I' f:f:) 1 + ':J!ol
(9.56 )
being the coordinates of the ith node in the master element (see Fig. 9.12):
Node
~i
I)i
1
-1 1 1 -1
-1 -1 1 1
2 3 4
Then we have B1jJi 1 1 + TJ a; = "4Si(1 + 17TJ,) + 44 _ ; TJ,(1 + SSi) 1
a1J!i 1 2 ay = 44 _ ; 171(1 +
(s, 1])--> (0, 0)
l;s
i)
(1" 1,)
Example 9.4. Consider the quadrilateral element in Fig. 9.15. We wish to compute the following element matrices using Gauss quadrature and' the isoparametric formulation:
s, = S?? = II
L
V'i1/Jj dx dy,
i Q
81jJj 81jJj dx dy 8y By ,
Sl.l
=
'J
La1jJi B'tJ!j dx dy ax ax Q
S].Z = I
f a1J!, o1jJj dx dy J ax oy Q
(9.57)
INTERPOLATION FUNCl10NS. NUMERICAL INTEGRATION AND MODELING
433
~--+---f
e.-=---"t----x
FIGURE 9.15 Geometry of the bilinear element used in Example 9.4
(5, -1)
We have
1[8-2; -211
211
[JP]="4
J=
Sjj =
(4-lJ)(5 + ;)+;'1] = 20+4; -5'1]
L dx L II L8'lj1/ dx 8x ax 'ljIj'ljlj
dy = (
g
SII = 1/
1
a'ljlj
g
=
J
10+2;
'ljI/'ljIJ d; d11
_I
d y
(9.58)
t (q,* a1J!i 11',* 8'lj1/) (11',* a'ljlJ a» 81J!/) q, de d Lt IL1 0"Ilar+0"12a;] 0"1l8f+0"12a;] 0" ':i 11
and so on, where 8'lj1il at; and a1J!J 811 are given by (9.56). Note that the integrand of Sf} is a polynomial of order p = 3 in each coordinate. Hence, N = M = 2 will evaluate SiJ exactly. Evaluating the integrals in (9.57) using the 2 X 2 quadrative rule, we obtain
[SIl] =
[S22] =
[S12] =
[S} =
9.2.4
0.40995 -0.36892 -0.20479 0,16376] -0.36892 0.34516 0.25014 -0.22639 -0.20479 0.25014 0.43155 -0.47690 0.16376 -0.22639 -0.47690 0.53953
l l l l
0.26237 0.16389 -0.13107 -0.29520] 0.16389 0.22090 -0.23991 -0.14489 -0.13107 -0.23991 0.27619 0.09478 -0.29520 -0.14489 0.09478 0.34530 0.24731 0.25156 -0.25297 -0.24589] -0.24844 -0.25090 0.25172 0.24762 -0.25297 -0.24828 0.24671 0.25454 0.25411 0.24762 -0.24546 -0.25627
2.27780 1.25000 0.55556 1.00000
1.25000 2.72220 1.22220 0.55556
0.55556 1.22220 2.16670' 0.97222
1.ססoo0]
0.55556 0.97222 1.72222
Integration over a Master Triangular Element
In the preceding section, we discussed numerical integration on quadrilateral elements, which. can be used to represent very general geometries as well as
434
ANITE ELEMENT ANALYSIS OF TWO·DlMENSIONAL PROBLEMS
field variables in a variety of problems. Here we discuss numerical integration on triangular elements. Since quadrilateral elements can be geometrically distorted, it is possible to distort a quadrilateral element to obtain a required triangular element by moving the position of the corner node to one of the neighboring nodes. In actual computation, this is achieved by assigning the same global node number to two corner nodes of the quadrilateral element. Thus, master triangular elements can be obtained in a natural way from associated master rectangular elements. Here we discuss the transformations from an arbitrary triangular element to a master triangular element. We choose the unit right isosceles triangle (see Fig. 9.16a) as the master element. An arbitrary triangular element Qe can be generated from the master triangular element QT by a transformation of the form (9.34). The coordinate lines ~ = 0 and 1] = 0 in QT correspond to the skew curvilinear coordinateJines 1-3 and 1-2 in Qe. For the three-node triangular element, the' transformation (9.34) is taken to be 3
X=
3
L Xi'$i(~' 1]),
Y=
i=l
L YiijJi(~' 1])
(9.59)
i=l
where 'ljJi(~' 1]) are the interpolation functions of the master three-node triangular element (see Fig. 9 .16b), (9.60) 1]
k{
y
x = x(O, 7/)
Y(O'D7/)x = x(g, 0)
5= =
J
1
(0, 0) lo.l_ _...=...;l.....,-_g
n'
2
[y
= y({,
0)
'-----------x (a)
Y
'----------x (b)
FIGURE 9.16 Triangular master element and its transformations: (a) general transformation; (b) linear transformation of a master element to a triangular element.
INTERPOLATION FUNcnONS, NUMeRICAL INTEGRATION AND MODeLING
The inverse transformation from the element (9.59):
Qe
435
to QT is given by inverting
1 .
5 = 2A [(x 1'] =
Xl)(Y3 - Yl) - (y - Yl)(X3 - Xl)] (9.61)
1
2A [(x - XI)(YI - Y2) + (y - Yl)(X 2- Xl)]
where A is the area of ge. With the help of (9,61), one can show that the interpolation functions in (8,25) are equivalent to the 1jJ; in (9.60). Moreover, the area coordinates L; in (9.9) are also equivalent to ;Pi' The interpolation functions for the linear and higher-order triangular elements can be obtained from the area coordinates, as described in Section 9.1. The Jacobian matrix for the linear triangular element is
[J"] = [X2 - Xl Y2 - YI] X3- XI
Y3-Yl
=[
Y3 -Y2
-fJ3] fJ2
(9.62)
where fJi and Yi are the constants defined in (8.23b). The inverse of the Jacobian matrix is given by
[J"]-l =.!. [/32 fJ3], J" Y2 Y3
J" = fJ2Y3 - Y2fJ3 = 2A
(9.63)
The relations (9.42) for the isoparametric formulation with linear triangular elements have the explicit form \
alJll fJ2 + fJ3 \ fJI ax = - 2A =2A' alJl2 fJ2 ax = 2A'
alJl2 = Y2 ay 2A'
a1/JI ay
Y2 + Y3 2A
YI 2A
-=----=-
a1/J3 ax
fJ3 = 2A '
aW3 Y3 ay = 2A
(9.64)
In a general case, the derivatives of lJli with respect to the global coordinates can be computed from (9.43), which take the form aWi ax
aw; aLl ei.. ax
OlJli aL 2 aL 2 ax alJl; 0lf.!i aLl . 0lf.!i a~ -=--+-ay si., ay o~ ay ~=--+--
(9.65a)
or
(9.65b)
Note that only L, and ~ are treated as linearly independent coordinates, because L 3 = 1- L] -~.
436
FINITE ELEMENT ANALYSIS OF TWO·DIMENSIONAL PROBLEMS
After transformation, integrals on Q T have the form (9.66)
which can be approximated by the quadrature formula (9.67)
TABLE 9.3
Quadrature points and weights for triangular elements ~
Number of integration points
Degree or polynomial and order of the residual
Location or integration points
LJ~
W
1
,
Geometric locations
a
o
a
o
3
b
o
c 21
3
-iii
0.6 0.2 0.2
4
0.2 0.6 0.2
~l
5
a
0.2 B b 0.2 ~~ ~c 0.6 ~'.~7 d
a b
i~
7
g
= 0.797 426 985 353 ~l = 0.101 286 507 323 W2=O.125 939180544
<Xl
0:2 =
0.059 715 871 789
132 = 0.470 142 064 105 W3=0.132 394 152788
.
INTERPOLATION FUNCTIONS, NUMERICAL INTEGRATION AND MODELING
437
where lVz and Sf denote the weights and integration points of the quadrature rule, Table 9,3 gives the location of integration points and weights for one-, three-, and four-point quadrature rules over triangular elements, For the evaluation of integrals whose integrands are polynomials of degree higher than five (in any of the area coordinates), the reader should consult books on numerical integration. Example 9.5. Consider the quadratic triangular element shown in Fig, 9,17. We wish to calculate o1J!d ox, o1J!t/oy, 01J!4/0X, and 01J!4/ay at the point (x, y) = (2,4) and evaluate the integral of the product (01J!1/ ax)(01/14/ ax). Since the element has straight edges, its geometry is defined by the interpolation functions of the corner nodes (i.e., a subparametric formulation can be used). Note that if the element is curvilinear, we cannot use only three corner nodes to describe the geometry exactly (hence an isoparametric formulation must be used). For the element at hand, we have J
X =
2: Xi L / = 74
:t .2 L 3= Z- ZL] +5~
/~l
3
Y=
2: y.L, = ZL + 6L 2
J
=6-
6L] - 4L2
(9.68a)
i=1
l.1J =
[-Z-6) 5 -4'
The 1J!/ for the quadratic triangular element are given by (9.16), with 1/12 in (9.16c) being equal to 1/14 here (compare the node numbering in Figs. 9.17 and 9.4b). The global derivatives of 1J!i are given by (9.65):
-J
{-4( I)}
01/11}
6
{
aLl Otpl aL 2
=
4L] 38 -5(4L] -1) 38
(9.68b)
y
O""'-------_x
(0,0)
FIGURE 9.17 A quadratic triangular element in the global (x, y) and local coordinate systems (Example 9.5).
438 where
FINITE ELEMENT ANALYSIS OF lWO·DlMENSIONAL PROBLEMS
WI
= L I(2L I -1) and
W4
= 4LI~ [see (9.16) and Fig. 9Ab], so that
OWI=O
OWl=4L -1 aLII'
a~
aW4=4L aLz 1
,
For the point (2,4), the area coordinates L 1 can be calculated from (9.680):
2=7Lz+2L3 ,
4=2L2+6L3
Once Lz and L3 have been computed from the above relations, L 1 is found from the relation L 1 = 1 - ~ - L 3 • We obtain
Evaluating aW4/ ax and OW4/ay at the point (2,4), we obtain
aa~1 = - 1~ G~
-1)
aa~1 = - 3~ ( 4 X 1
= -
3~1
59 - 1) = -
aW4 -16 ax (19)2
60 (19f
44 361
a1/J4
-20
-40
;'
7~Z
(9.69)
-=--+--=-
oy
-ZO
= (19f + (lW = 361
The integral of the product (a1/JtI ax)(a1/J4/ax) over the quadratic element is
Since the integrand is quadratic in L 1 and bilinear in L 1 and Lz, we use the three-point quadrature (see Table 9.3) to evaluate the integral exactly: .
4:111il-~ (4L
361
0
0
1-
1)(6L 1 - 4~) dL I d~
1 (-4) X 38 1 4 6 4 6 4 4 361 3[(2 -1)b - 0) + (2 -1)(2 - 2) + (0 -1)(0 - 2)]
= 2
8 19
(9.70)
=--
·In
The result can be verified using the exact integration formula in (9:s1): / '.
r
OljJl aW4 dx dy
l~T ax ax
=--±[6 X.!--4X .!--24 x ~ + 16 X-'!']2A 361 31 31 4! 41 8 19
The area A of the triangle is equal to 19, and therfore we obtain the same result as above.
INTERPOLATION FUNCTIONS, NUMERICAL INtEGRATION AND MODELING
439
9.3 MODELING CONSIDERATIONS 9.3.1 Preliminary Comments Numerical simulation of a physical process or a system requires (i) a mathematical model that describes the process and (ii) a numerical method to analyze the mathematical model. In the development of a mathematical model, we often make a set of assumptions about the process (e.g., constitutive behavior, loads, and boundary conditions) to derive the mathematical relationships governing the system. The mathematical model is used to gain an understanding of how the corresponding process works. If the relationships are simple, it is possible to obtain exact information on quantities of interest. This is known as the analytical solution. However, most practical problems are too complicated to allow analytical solutions of the models. Hence, these mathematical models must be studied by numerical methods, such as the finite element method. We use a computer to evaluate a mathematical model numerically to estimate the quantities that characterize the system. Finite element analysis is a numerical simulation of a physical process. Therefore, finite element modeling involves assumptions concerning the representation of the system and/or its behavior. Valid assumptions can be made only if one has a qualitative understanding of how the process or system works. A good knowledge of the basic principles governing the process and the finite element theory enable the development of a good numerical model of the actual process. Here we discuss several aspects of the development of finite element models. Guidelines concerning element geometries, mesh refinements, and load representations are given.
9.3.2 Element Geometries Recall from Section 9.2 that the numerical evaluation of integrals over actual elements involves a coordinate transformation from the actual element to a master element. The transformation is acceptable if and only if every point in the actual element is mapped uniquely to a point in the master element, and vice versa. Such mappings are termed one-to-one. This requirement can be expressed as [see (9.45)]
,r== det Lr] > 0
everywhere in the element Qe
(9.71)
where [je] is the Jacobian matrix in (9.44b). Geometrically, the Jacobian je represents the ratio of an area element in the real element to the correspond. ing area element in the mas~er element: dA ==dxdy = je d~d7] If je is zero then a nonzero area element in the real element is mapped into
zero area in the master element, which is unacceptable. Also, if :r < 0, a right-handed coordinate system is mapped into a left-handed coordinate system.
440
FINITE ELEMElIT ANALYSIS OF TWO·DlMENSIONAL PROBLEMS
In general, the Jacobian is a function of £ and 77, implying that the real element is nonuniformly mapped into the master element, i.e., the element is distorted. Excessive distortion of elements is not good, because a nonzero area element can be mapped into a zero or nearly zero area. To ensure :r > 0 and keep within the extreme limits of acceptable distortion, certain geometric shapes of elements must be avoided. For example, the interior angle at each vertex of a triangular element should not be equal to either 00 or 1800 • Indeed, in practice the angle should reasonably be larger than 0 and less than 180 to avoid numerical ill-conditioning of element matrices. Although the acceptable range depends on the problem, the 0
0
(a)
(b)
(c)
FIGURE 9.18 Finite elements with unacceptable vertex angles; (a) linear quadrilateral elements; (b) linear triangular elements; (c) quadratic quadrilateral and triangular elements. The angles marked are either too small compared with 00 or too large compared with 1800.
INTERPOLATION FUNCTIONS.) NU!l-iERICAL INTEGRATION AND MODELING
7
1
I
I-E----
I
..( hl
441
2
--------1 (a)
4
7
3
T
l~
6
1~ lh] ~
h]
2
----i
(b)
FIGURE 9.19 Range of acceptable locations of the midside nodes for quadratic elements: (a) eight-node quadratic element and six-node quadratic triangular element; (b) the quarter-point quadrilateral element.
range 15°-165° can be used as a guide. Figure 9.18 shows elements with unacceptable vertex angles for straight- and curved-sided elements. For higher-order Lagrange elements (also called CO elements), the location of the interior nodes contributes to the element distortion, and therefore they are constrained to lie within a certain distance from the vertex nodes. For example, in the case of a quadratic element, the midside node should be at a distance not less than one-quarter of the length of the side from the vertex nodes (see Fig. 9.19). When the midside node is located exactly at a distance of one-quarter of the side length from a vertex, the element exhibits special properties (see Problem 9.20). Such elements, called quarter-point elements, are used in fracture mechanics problems to represent an inverse square-root singularity in the gradient of the solution at the nearest vertex n o d e . , , . II'})
9.3.3 Mesh Generation
· .•'O)f/ \':.
Generation of a finite element mesh for a given problem should follow the guidelines listed below:
442
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
1. The mesh should represent the geometry of the computational domain and load accurately.' 2. It should be such that large gradients in the solution are adequately represented. 3. It should not contain elements with unacceptable geometries, especially in regions of large gradients. Within the above guidelines, the mesh used can be coarse (i.e., have few elements) or refined (i.e., have many elements), and may consist of one or more orders and types of elements (e.g., linear and quadratic, triangular and quadrilateral). A judicious choice of element order and type could save computational cost while giving accurate results. It should be noted that the choice of elements and mesh is problem-dependent. What works well for one problem may not for another. An analyst with physical insight into the process being simulated can make a better choice of elements and mesh for the problem at hand. One should start with a coarse mesh that meets the three requirements listed above, exploit symmetries available in the problem, and evaluate the results thus obtained in the light of physical understanding and approximate analytical and/or experimental information. These results can be used to guide subsequent mesh refinements and analyses. Generation of meshes of a single element type is easy because elements of the same degree are compatible with each other (see Fig. 9.20). Mesh refinements involve several options. The mesh can be refined by subdividing existing elements into two or more elements of the same type (see Fig. 9.21a). This is caned h-uersion mesh refinement. Alternatively, existing elements can be replaced by elements of higher order (see Fig. 9.21b). This is called p-version mesh refinement. There is also It, p-uersion mesh refinement, in which elements are subdivided into two or more elements in some places and replaced with higher-order elements in other places. Generally, local mesh refinements should be such that elements of very small size are not placed adjacent to those of very large size (see Fig. 9.22). Combining elements of different kinds naturally arises in solid and structural mechanics problems. For example, plate bending elements (2-D) can be connected to a beam element (l-D). If the plate element is based on classical plate theory (see Chapter 12), the beam element should be based on the Euler-Bernoulli beam theory so that they have the same degrees of freedom at the connecting node. When a plane elasticity element (see Chapter 10) is connected to a beam element, which is not compatible with the former in terms of the degrees of freedom at the nodes, one must construct a special element that makes the transition from the 2-D plane elasticity element to the 1-D beam element (see Problem 10.8). Such an element is called a transition element. Combining elements of different order, say a linear to a quadratic element, may be necessary to accomplish local mesh refinements. There are two ways to do this. One way is to use a transition element that has a different number of nodes on different sides (see- Fig. 9.23a). The other way is to
INTERPOLATION FUNCTIONS. NUMERICAL INTEGRATION AND MODELING
443
(a)
(b) FIGURE 9.20 Connecting elements of the same order. The C' elements of the same order ensure the C' continuity along the element interfaces: (a) linear elements; (b) quadratic elements.
!
-1r
....!, , r
-t--
r
-{J
,I -~-
, I
I
-;-
I
r
I
I
I
(a)
•
(b)
FIGURE 9.21 The h-version (a) and p-version (b) mesh refinements.
,.-:- r .I
r
I
I
:
I
f- f-II
r r
I
I
i--iI
:
r
I
-tI I
-'Tr
!
--
-
444
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
(b)
(a)
/
,
•
• (c)
(d)
FIGURE 9.22 Finite element mesh refinements. Meshes shown in (a) and (c) are acceptable, and those shown in (b) and (d) are unacceptable. The typical element of the mesh is shown in each case.
/
I
/
Linear element
/
Transition element
/
/
Quadratic element
(a)
/ I
/
I
Lin ear elements
/
I
Constraint condition (b)
!.
I Quadratic element
FIGURE 9.23 Combining different order elements: (a) use of a transition element that has three sides linear and one side quadratic; (b) use of a linear constraint equation to connect a linear side to a quadratic side.
INTERPOLATION FUNCTIONS, NUMERICAL JNfEGRATION AND MODELING
445
impose a conditionthat constrains the midside node to have the same value as that experienced at the node by the lower-order element (see Fig. 9.23b). However, such combinations do not enforce interelement continuity of the solution. Figure 9.24 snows element connections that do not satisfy CO continuity along the connecting 'sides. Use of transition elements and constraint conditions in local mesh refinements is a common practice. Figure 9.25 shows a few examples of such refinements. Vex)
T
T
ut = III ...l.
'---_'---_,I-L
Vex)
----
,
3
U(x)
T
ul = uI
,
ul,=
uj
lS==~~=~-s 3
(c)
FIGURE 9.24 Various types of incompatible connections of finite elements. In all cases the interelement continuity of the function is violated along the connecting side.
446
FlNITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
9.3.4
Load Representation
Computation of the nodal contributions of a distributed boundary source was discussed in Chapter 8 [see (8.45)]. The accuracy of the result depends on the element and mesh used to represent the domain. For example, in heat transfer problems, the boundary source is the heat flux across (i.e., normal to) the boundary. Use of linear elements, for example, to represent the boundary will change the actual distribution (see Fig. 9.26). Of course, h-version or p-version mesh refinements will improve the representation of the boundary flux. Another situation where boundary forces are subject to different approximations is the force due to contact between two bodies. For example, a solid plate in contact with a circular disk generates a reactive force that can be represented either as a point load or a locally distributed force. Representation of the contact force between deformable bodies as a point load is. an approximation of the true distribution. A sine distribution might be a more realistic representation of the actual force (see Fig. 9.27).
~/ 1\/ \/
/
<,
<,
<,
(0)
H- ftH- f+
(b)
(c)
FIGURE 9.25 Some examples of local mesh refinements: (a) with compatible (CO.continuous) elements; (b) with transition elements (or constraint conditions are imposed) between linear elements; (c) with transition elements between quadratic elements. In (b) and (c), the transition elements can be between linear and quadratic, and quadratic and cubic elements, respectively.
INTERPOLATION FUNcnONS, NUMERICAL INTEGRATION AND MODELING
(a)
(b)
447
(c)
FIGURE 9.26 Approximation of the boundary fluxes in the finite element method: (a) actual geometry of the domain and distribution of flux; (b) approximation of the domain by linear finite elements and associated representation of the boundary flux; (c) approximation of the domain by quadratic finite elements and associated representation of the boundary flux.
f- . --+--+-++H-++H+-+-+-~
(a)
(b)
J
(c)
FIGURE 9.27 .Representation of contact pressure developed between two bodies: (a) geometry of the bodies in contact; (b) representation of the contact pressure as a point load; (c) representation of the contact pressure as a distributed surface load. In the laller case. often the surface area of the distributed force is unknown.
448
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLRMS
9.4 SUMMARY In this chapter three major topics have been discussed: (i) Lagrange interpolation functions for triangular and rectangular elements; (ii) numerical integration to evaluate integral expressions over triangular and rectangular elements; (iii) some modeling guidelines. Interpolation functions for linear, quadratic, and cubic triangular elements have been developed using the area coordinates. Linear, quadratic, and cubic interpolation functions for the Lagrange and serendipity families of rectangular elements have also been developed. A systematic description of the numerical evaluation of integral expressions involving interpolation functions and their derivatives with respect to global coordinates has been presented. This development is suitable for computer implementation, as will be seen in Chapter 13. Modeling is an art that can be improved by experience and understanding of the physical interactions involved in the process. It is necessary to critically evaluate the computed results before using them. The guidelines given are to encourage good modeling practice, and they should be followed to determine the actual "working" model.
PROBLEMS 9.1. Show that the bilinear interpolation functions for the four-node triangular element in Fig. P9.1 are of the form Wi = a, + bis
+ Ci1] + d;51]
(i
= 1, ... , 4)
where
Cl
b3=b4=0 a[=1, a2=a3=a4=O, -b 1=b2=1/a, 6ab-a 2 - 2 b 2 2b(a+b) a+b -9b c4 = = c2 = C3= ac(a-2b) ' ac(a-2b)' c(a-2b)' c(a - 2b) d, =d2=d3 =
I----a--~ I'
1
-3d4=
3
---c(a -2b)
FIGURE P9.1
9.2. Show that the interpolation functions involving the term rectangular element shown in Fig. P9.2 are
52 + 1/2 for
Wi = O.25(-; - 1] + S1]) + 0.125(;2 + t}2) W2 = 0.25(s - 1] - ;7]) + 0.125(;2 + 1]2) W3 = 0.25(; + 7] + ;7]) + 0.125(;2 + t}2) 1J!4 = 0.25( - ; + 7] - 57]) + 0.125(;2 + t}2) W5 = 1- 0.5(;2 + 1]~)
the five-node
INTERPOLATION FUNCTIONS, NUMERICAL INTEGRATION AND MODELING
449
y
t7J 3 I0 - - -
T
4
2
1r----
f-
__ [
5
la...=--------\----x 2
I
2 (15, -3)
2- - - j
FIGURE P9.2
FIGURE P9.3
9.3. Calculate the interpolation functions for the quadratic triangular element shown in Fig. P9.3. 9.4. Determine the interpolation function t}J14 for the quartic triangular element shown in Fig. P9.4.
Answer: 32L1L2Ll4Lz -1).
5
FIGURE P9.4
9.5. Derive the interpolation function of a corner node in a cubic serendipity element. 9.6. Consider the five-node element shown in Fig. P9.6. Using the basic linear and quadratic interpolations along the coordinate directions ~ and 'I}, derive the interpolation functions for the element. Note that the element can be used as a transition element connecting four-node elements to eight- or nine-node elements.
4
5
3
2
FIGURE P9.6
450
FINITE ELEMENT ANALYSIS OF nYO-DlMENSIONAL PROBLEMS
9.7. (Nodeless variables) Consider the four-node rectangular element with interpolation of the form U=
4
4
i=l
1=1
2: u;1/J; + L C
i1>1
where U; are the nodal values and c; are arbitrary constants. Determine the form of 1/J; and 1>/ for the element. 9.8-9.10. Determine the Jacobian matrix and the transformation equations for the elements shown in Figs. P9.8-P9.10.
r
y
(6.5,7)
T4
4
5cm
11f--
2
f+----10 in -----;
FIGURE P9.8
r -x
5 em
---1 /
FIGURE P9.9
T
3cm
+
3cm
1..
.X
FIGURE P9.10
9.11. Using Gauss quadrature, determine the contribution of. a constant distributed source to nodal points of the four-node finite element shown in Fig. P9.9. Answer: 10(7.7083, 8.5417, 9.1667, 8.3333). 9.12. Show that the side nodes in the eight-node rectangular element of Fig. 9.13 should be located such that 0.25 < a' < 0.75.
2.0
l
20 - .
~b-------1
-x,t FIGURE 1'9.13
INTERPOLATION FUNCfIONS, NUMERICAL INTEGRATION AND MODELING
451
9.13. For a 12-node serendipity (cubic) element, as illustrated in Fig. P9.13, show that the determinant :J is
:J =
~(2 -10~
+ 9£2)a + ~(-1 + 8~ -
9~2)b
+ !(2 -18~ + 27~2)
What can you conclude from the requirement :J> O? 9.14. Determine the conditions on the location of node 3 of the quadrilateral element shown in Fig. P9.14. Show that the transformation equations are
(a, b)
4
2.0
~.1-
""";':)---_ ..
.r,
~
FIGURE P9.14
9.15. Determine the global derivatives of the interpolation functions for node 3 of the element shown in Fig. P9.9. 9.16. Let the transformation between the global coordinates (x, y) and local normalized coordinates (~, 1]) in a Lagrange element ge be m
m
X = LXltPl(~' 77), i=l
Y = LYI~I(~' YJ) 1=1
where (x~, yD denote the global coordinates of the element nodes. The differential lengths in the two coordinate systems are related by
or
In the finite element literature the transpose of [5] is called the Jacobian matrix, [:J]. Show that the derivatives of the interpolation function 'lj1~(~, 77) with respect to the global coordinates (x, y) are related to their derivatives with respect to the local coordinates (s, 1") by
{81/J1} 8'aXlj11} a~ { a8~7 = [JJ ~~~ _I
452
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
and
(~~r (~r (:~r (;;r aXe aXe 8l; 81]
8'"1/1: 8x8y
aye aYe 81; 8t}
2 8xeaYe
a1] 81] aXe aye 81] 81;
aXe aye a1; 81]
--+--
81]2
(f-1/1: 81; 81]
8'"xe (f-Ye 8t; 811 8t; 81]
at;2
(f-1/I:
X
al; 81;
(f-x e (f-Ye 8t;2 at;2 (f-x e 8'"Ye 81]2 a1]2
8'"1/1:
-1
2 aXe aYe
r~] 81/1:
8y
9.17. (Continuation of Problem 9.16) Show that the Jacobian can be computed from the equation
[J]
81/1~ 81/1~ 81;
=
[ 81/1~ 811
a1; 81/1;
aI'}
'"
81/11 [X~ Y~J a1; ~~ ~~
a1/1~::
all
x~
y~
9.18. Consider the quadrilateral element shown in Fig. P9.18. Using the linear interpolation functions of a rectangular element, transform the element to the local coordinate system and sketch the transformed element. y
"'x (5, -1)
9.19. For the quadrilateral element in the local coordinates:
s; = ~
FIGURE P9.18
~y
in Problem 9.18, express the following integral
L [a(81/1: 81/1i + 81/1: a1/li) + b1/l:1/I~] dx dy 8x 8x 8y ay Q'
J
9.20. Find the Jacobian matrix for the nine-node rectangular element shown in Fig. P9.20. What is the determinant of the Jacobian matrix'?
INTERPOLATION RJNCTIONS. NUMERICAL INTEGRATION AND MODELING
r
453
I~
1----6
I"
/"
t'8
O.75a
O.25a I --L .
5
2
~t
.
y
. ------... X
Ha4--~aFIGURE P9.20
FIGURE P9.21
9.21. For the eight-node element shown in Fig. P9.21, show that the x coordinate along side 1-2 is related to the [; coordinate by x = -![;(1 - [;)x~
+ ~[;(1 + [;)x~ + (1- [;2)X~
and that the relations
ax= -
a;
(xa)1f2
hold. Also, show that u.(x, 0) = -
[2(~Yfl - 1J[1- (~)1I2]U~
+[ au,(x, 0)
ax
-1 + 2(~) 1I2J GY'2U~ + 4[ (~)
(xa\ltl
+
tzz -
~]u~
H[3 - 4(~)1f2]u~ + ~ [ -1 + 4G) lfl]ll~
2[1- 2(~rflJu~}
Thus, au,lox grows at a rate of (xa)-lfl as x approaches zero along side 1-2. In other words, we have X-Itl singularity at node L Such elements are used in fracture mechanics problems. 9.22. Using the tensor product of the one-dimensional Hermite cubic interpolation functions, obtain the Hermite cubic interpolation functions (16 of them) for the four-node rectangular element.
a
REFERENCES FOR ADDITIONAL READING Burnett, D. S.; Finite Element Analysis from Concepts /0 Applications, Addison-Wesley, Reading, MA,1987. Carnahan, B., H. A. Luther, and J. O. Wilkes; Applied Numerical Methods, John Wiley, New York,1969.
454
FINITE ELEMENT ANALYSIS OF nVO·DlMENSIONAL PROBLEMS
Cowper, G. R.: "Gaussian Quadrature Formulas for Triangles," International Journal for Numerical Methods in Engineering, vol. 7, pp. 405-408, 1973. Fellippa, C. A.: "Refined Finite Element Analysis of Linear and Non-linear Two-Dimensional Structures," Structures Materials Research Report no. 66-22, University of California, Berkeley, October 1966. Froberg, C. E.: Introduction to Numerical Analysis, Addison-Wesley, Reading, MA, 1969. Hammer, P. C., O. P. Marlowe, and A. H. Stroud: "Numerical Integration over Simplexes and Cones," Mathematics Tables and Aids to Computation, National Research Coullcil (Washingtoll), vol. 10, pp. 130-137 ,1956. Irons, B. M.: "Quadrature Rules for Brick-Based Finite Elements," Intemationol Journal for Numerical Methods in Engineering, vol. 3, pp. 293-294, 1971. Loxan, A. N., N. Davids, and A. Levenson: "Table of the Zeros of the Legendre Polynomials of Order 1-16 and the Weight Coefficients for Gauss' Mechanical Quadrature Formula," Bulletin of the American Mathematical Society, vol. 48, pp. 739-743, 1942. Reddy, C. T., and D. J. Shippy: "Alternative Integration Formulae for Triangular Finite Elements," International Iournal for Numerical Methods in Engineering, vol. 17,"-pp. 133-139, 1981. Segerlind, L. J.: Applied Finite Element Analysis, John Wiley, New York, 1977. Silvester, P.: "Newton-Cotes Quadrature Formulae for N-Dimensional Simplexes," Proceedings of 2d Canadian Congress of Applied Mechanics, Waterloo, Ontario, 1969, University of Waterloo, Waterloo, Ontario, 1969. Stroud, A. H., and D. Secrest: Gaussian Quadrature Formulas, Prentice-Hall, Englewood Cliffs, NJ,1966. Zienkiewicz, O. C., and R. L. Taylor: The Finite Element Method, vol. 1: Linear Problems, McGraw-Hili, New York, 1989.
CHAPTER
10 PLANE ELASTICITY·
10.1 INTRODUCTION In Section 8.4.3, we considered the finite element analysis of second-order problems of solid mechanics that are described by only one dependent unknown. These include the torsion of a cylindrical bar and the deflection of a membrane. The governing equation in each case is the Laplace or Poisson equation for the dependent variable (e.g., stress function or deflection). Here we consider plane elasticity problems described by a pair of coupled partial differential equations expressed in terms of two dependent variables representing the two components of the displacement vector. The word "coupled" is used -to imply that the same dependent variables appear in more than one equation of the set, and therefore no equation can be solved independent of the other(s) in the set. . The primary objective of this chapter is twofold: first, to describe the weak form and associated finite element model of the plane elasticity equations; and second, to describe how the linear Lagrange elements developed in Section 8.2 can be used in the solution of plane elasticity problems in two dimensions. The treatment of both these subjects proceeds along the same lines as in the one-dimensional problems. 455
456
FINITE ELEMEl'IT ANALYSIS OF TWO·DlMENSIONAL PROBLEMS
10.2 GOVERNING EQUATIONS 10.2.1 Assumptions of Plane Elasticity Consider a linear elastic solid Q of uniform thickness h bounded by two parallel planes (say, by planes z = -111 and z = 4h) and any closed boundary r. If the thickness h is very large compared with the size of Q then the problem is considered to be a plane strain problem, and if the thickness is small compared with the size of Q then the problem is considered to be a plane stress problem. Both of these problems are simplifications of three-dimensional elasticity problems under the following assumptions on loading: the body forces, if any exist, cannot vary in the thickness direction and cannot have components in the z direction; the applied boundary forces must be uniformly distributed across the thickness (i.e., constant in the z direction); and no lQads can be applied on the parallel planes bounding the top and bottom surfaces. The assumption that the forces are zero on the parallel planes implies that for plane stress problems the stresses in the z direction are negligibly small (see Fig. 10.1): Oxz
=0,
Oyz
(10.1)
=0,
For plane strain problems, where the body is very thick in the z direction, the assumption is that the strains in the z direction are zero (see Fig. 10.2): Ex z
= 0,
E yz =
0,
(10.2)
An example illustrating the, difference between plane stress and plane strain problems is provided by the bending of a beam of rectangular cross-section. If the beam is narrow then the problem is a plane stress problem, and if it is very wide then the problem is a plane strain problem. The reader should consult the references on advanced strength of materials and elasticity listed at the end of the chapter. z
Fixed support points Distributed force Po Support conditions:
~ u
=u=
FIGURE 10.1 Plane stress problems in two-dimensional elasticity.
U0 u
= 0, tI f
0
PLANE ELASTICJTY
457
y
Fixed smooth wall
----!7...-..-z
'----+--x
I ! I
I I
I
I""
I
:-
l-l
" .: "".•::.lt h
FIGURE 10.2 Plane strain problems in two-dimensional elasticity.
10.2.2 Basic Equations The governing equations for the two types of plane elasticity problems discussed above are summarized below. The equations of the two classes of problems differ from each other only in the constitutive relations. EQUATIONS OF MOTION
oax + OOXy + L> cPu ax oy x P ot2 oaxy oay OZv ox + oy + J;, :::: P ot2
(10.3)
where Ix and J;, denote the body forces per unit volume along the x and y directions; respectively, and p is the density of the material. STRAIN-DISPLACEMENT RELATIONS
2E
xy
au oU oy ax
::::-+-
(lOA)
STRESS-STRAIN (OR CONSTITUTIVE) RELATIONS
{
ax} :::: [Ctl Oy C 12 0xy
0
12 C
O]{ EX}
C22
0
Ey
0
C66
2Exy
(10.5)
where Cij (Cji:::: Ci) are the elasticity (material) constants for an orthotropic medium with the material principal directions coinciding with the coordinate axes (x, y, z) used to describe the problem. The cil can be expressed in terms
458
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
of the engineering constants (E 1 , E z , V12, and G IZ) for an orthotropic material, for plane stress and plane strain given below (VIZEZ = VZIEl): Plane stress
(10.6)
Plane strain
(VZ3
ell =
c lZ =
= V12)
E I(1 1-
VIZ)
,
V12 - 2v12v21
v 12 E z
1- VIZ -
(to.7) ,
2v 1ZvZl
For an isotropic material, E
G=--~
2(1 + v)
(10.8)
BOUNDARY CONDITIONS
Natural (10.9)
Essential
u = u,
v
=D
on I',
(10.10)
where (n.", ny) are the components (or direction cosines) of the unit normal vector il. on the boundary I', r 1 and r z are (disjoint) portions of the boundary (I', and r z do not overlap except for a small number of discrete pointssingular points), tx and ty are specified boundary stresses (or tractions), and u and D are specified displacements. Only one element of each pair, («, tx) and (u, ty ) , may be specified at a boundary point. Equations (10.3) can be expressed in terms of just the displacements u and v by substituting (10.4) into (10.5), and the result into (10.3):
(10.11)
the boundary stress components (or tractions) can also be expressed in terms
PLANE ELASTICITY
459
of the displacements:
(Cll au ax + Cl2 au) ay n, + C66 (au ay + au) ax ny au au) (au au) ty = C66 ( ay + ax nx + Cl ax + C2l oy ny
(. =
(10.12)
l
This completes the review of the governing equations of a plane elastic body undergoing small deformations (i.e., with strains small compared with unity) in the (x y) plane. The material of the body will be assumed in the present study to be linearly orthotropic. J
10.3 WEAK FORMULATIONS 10.3.1 Preliminary Comments Here we study two different ways of constructing the weak form and associated finite element model of the plane elasticity equations (10.11) and (10.12). The first uses the principle of virtual displacements (or the total potential energy principle), expressed in terms of matrices relating displacements to strains, and strains to stresses. This approach is used in most finite element texts on solid mechanics. The second follows a procedure consistent with the previous sections and employs the weak formulation of (10.11) and (10.12) to construct the finite element model. Of course, both methods give, mathematically, the same finite element model, but differ in their algebraic forms.
10.3.2 Principle of Virtual Displacements in Matrix Form First, we rewrite (10.3)-(10.5) in matrix form:
_a/ox
[ o
0
a/ay] .. __ { ax} a + {f,x} = p {~} y
a/ay a/ax
«,
(IO.13a)
h
or [T*]{a}
+ {f} =p{~}
(lO.13b)
and
(10. 14a) or
(10.14b)
460
FINITE ElEMENT ANALYSIS OF TWO·DlMENSIONAL PROBLEMS
and {a}
= [C]{E}
(10.15)
where [T] and [T*] are matrices of differential operators. Note that [T] is the transpose of [T*]:
[T] = [T*f =
[a~ax a/nay]
(10.16)
a/ay a/ax Next, we use the (dynamic version of the) principle of virtual displacements [see Reddy (1984)] applied to a plane elastic body:
0=
J.v- (O;j fJE;i + pili fJu;) dV _1r~ f; bu, dV _1J.se ti fJUi;fs
(10."17)
where V e denotes the volume of element e [Ve = ge X (-~h, !h)], S" is the boundary of ge, he is the thickness of the element, 0 denotes the variational operator, a;; and Eij are the components of stress and strain tensors, respectively, and f; and ii are the components of the body force and boundary stress vectors, respectively: all = ax>
/1 = ix,
012 = 0xy,
/2 =h'
022 = 0y,
t 1 = tx,
etc.
t2 = ty
The first term in (10.17) corresponds to the virtual strain energy stored in the body, the second represents the virtual work done by the body forces, and the third represents the virtual work done by the surface tractions. For plane stress problems with thickness he' we assume that all quantities are independent of the thickness coordinate z. Hence, 0= he
1
(ax
be; + Oy
OEy
+ 20xy fJExy + pii fJu + pv ov) dx dy
Q<
- hel (fx ou + /y ov) dx dy - he1 (r, fJu + ty fJv) ds Q< j~
(10.18)
ix
where and /y are now body forces per unit area, and tx and ty are boundary forces per unit length. When the stresses are expressed in terms of strains through (10.5), and strains in terms of displacements by (lOA), (10.18) takes the form of the principle of total minimum potential energy. Equation (10.18) can be rewritten using the notation introduced in (10.13)-(10.16): 0= he
L< ({
~:: }T{::} + p{~:r{~})
20Exy
- heJ. Q<
dxdy
Oxy
{OU}T{ix} dx dy - hJ {cSU}T{tx} ds cSv /y _ r~ cSv ty
(10.19)
PLANE ELASTICITY
461
10.3.3 Weak Form of the Governing Differential Equations Here we present an alternative procedure for the weak form of the plane elasticity equations (10.11)-(10.12). The present approach does not assume knowledge of the principles of virtual displacements or the total minimum potential energy (10.17). It is based on the three-step procedure used throughout this book. We begin with the governing differential equations (10.11) of plane elasticity. We use the three-step procedure for each of the two differential equations, multiplying the first equation with a weight function Wi and integrating by parts to trade the differentiation equally between the weight function and the dependent variables. We have
L, [~:i (c
Cn :;) + ~:I CM(:; + :~) - w.t: + P~Vlii] dx dy I[(CII :; + n :;)nx + CM(~; + :~)ny] ds - he£~ W (1O.20a)
0= he
ll : :
+
C
Similarly, for the second equation, we have
LJ ~;2CM(:; + :~)
0= he
+ ~;2
(Ci2:;+ e22 :;) -
W2[y+
-hef~ W2[CM(:; + ~~)nx + (Cl2 :; + C22 :;)ny] ds
PW2V] dx dy
(1O.20b)
The last step of the development is to identify the primary and secondary variables of the formulation and rewrite the boundary integrals in terms of the secondary variables. Examination of the boundary integrals in (10.20) reveals that the expressions in the square brackets constitute the secondary variables. By comparing these expressions with those in (10.12), it follows that the boundary forces tx and ty are the secondary variables. The weight functions WI and W2 are like the first variations of it and v, respectively. Thus, the final weak form is given by (10.20), with the boundary integrals replaced by
hi-
j~
Witx
lis,
Jr- W2ty ds
hi-
(10.21)
respectively. This completes the development of the weak formulation of the plane elasticity equations (10.11) and (10.12). The alternative formulation in (10.20) is exactly the same as that in (10.19); one is in matrix form and the other is in the form of explicit expressions. Therefore, the finite element models developed using the weak forms (10.19) and (10.20) would be the same.
10.4 FINITE ELEMENT MODEL 10.4.1 Matrix Form of the Model First we develop the finite element model of the plane elasticity equations using the matrix form in (10.19). An examination of.the weak form (10.19) or
462
FINITE ELEMENf ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
(10.20) reveals that (i) u and v are the primary variables, which must be carried as the primary nodal degrees of freedom; and (ii) only first derivatives of u and v with respect to x and y appear. Therefore, u and v must be approximated by the Lagrange family of interpolation functions, and at least bilinear [i.e., linear in x and y) interpolation should be used. The simplest elements that satisfy those requirements are the linear triangular and rectangular elements. Although u and v are independent of each other, they are the components of the displacement vector. Therefore, both components should be approximated using the same interpolation. Let u and v be approximated over g" by the finite element interpolations n
U
=
2: uj1jJj(x, y),
n
V
=
j=l
2: vj1jJj(x, y)
(10.22)
j=l \,.
For the moment, we shall not restrict 1jJ; to any specific element, so that the finite element formulation to be developed is valid for any admissible element. For example, for a linear triangular element (n = 3), there are two (uJ, vi) degrees of freedom per node and a total of six nodal displacements per element (see Fig. 10.3a). For a linear quadrilateral element, there are a total of eight nodal displacements per element (see Fig. 103b). Since the first derivatives of 1jJ'f for a triangular element are element-wise-constant, all strains (Ex, Ey> E..y) computed for the triangular element are element-wise-constant. Therefore, the linear triangular element for plane elasticity is known as the constant-strain triangular (CST) element. For a quadrilateral element, the first derivatives of 1/J~ are not constant: 81jJ'f/ 8~ is linear in 71 and constant in ~, and 81jJi/81} is linear in ~ and constant in 1} [see Barlow (1976,1989)].
y
y
U4,~
-~ t
{lJ,F'(,
t
U4'
4
3
1'3
--u~,
F3
ne
uL Pi
2
-+-
u'i, F;
u~, ~
x (a)
_u~,
x (b)
FIGURE 10.3 Linear triangular and rectangular elements for plane elasticity problems: (a) triangular element; (b) rectangular element.
I
---"
PLANE ELASllCITY
463
The displacements and strains are (the element label e is omitted in the following)
U2
1JIn
'l/J2 •••
0
0 ... 0 V2
Un UI VI
=
[~t
0
'l/J2
'!jJi
0
O... '!jJ1l 'l/J2 .•• 0
~J
U2 U2
== [W]{il}
(10.23)
Un Vn
{~} = [W]{li}
(10.24)
and {E} = [BJ{L\} J
{a} = [C][B]{il}
(10. 25a)
where
[B]
= [T]['P]
(10. 25b)
and [T] is the matrix of differential operators defined in (10.16). We have
{~~} = ['P]{ bil},
{bE}
=
[B]{ bil}
(10.26)
Substituting these expressions for the displacements and strains into (10.19), we obtain 0= he
L. {b~}T([B]T[CJ[B]{~} +
p[wjT[wJ{li}) dx dy
f
- he • {bilV[W]T{~} dx dy - he£- {bil} n
= {CiL\V([K]{il} + [M]{Li} - {f} -
{Q})
Tppvt:} ds (10.27)
464
FINITE ELEMENT ANALYSIS OF ,WO-DIMENSIONAL PROBLEMS
Since this equation holds for any arbitrary variations {D ~}, it follows that the expression in parentheses should be identically zero, giving the result
I [Me]{Xe} + [Ke]{~e} = {r} + {Qe}
/
(10.28a)
where
[W] = he ( [wV[ee][W] dx dy, JQ~
{te} = hei [WeV{fx} dx dy, w
t
[Me]
=
ph, ( [WeVp.v e] dx dy
JQe
{Qe} = hi- [wer{("} ds
~
~
I'
The element mass matrix [Me] and stiffness matrix [K e ] are of order 2n and the element force vector {Fe} = {te} + {Qe} is of orderf 2n X 1.
X
2n
10.4.2 Weak Form Model Next we use the weak form (10.20) to construct the finite element model. Substituting (10.22) for u and v, and WI = 1jJ1 and Wz = 1jJ1 [to obtain the ith algebraic equation associated with each of the weak statements in (10.20)], and writing the resulting algebraic equations in matrix form, we obtain
(10.29a) where M ij =
KF = J
Ja C1.jJi1.Jij dx dy,
i
ar
h (Cll a1.jJi a1.Jij + C66 a1jJi a1jJj) dx dy ax ax ay ay
K~~ = K~·l = IJ Jt
Kt~ = ( J
Fj
c = ph
r
Jar
=(
J~
i
Qe
h (C
a1.jJi a1.jJJ + C a1.jJi a1.jJj) dx dy ~ 66 a ~ dX oy y ax
(10.29b)
11 ~
h (C66 a1.jJi a1.jJj + CZl a1.jJi a1J!/) dx dy aX ax ay ay h1J!J" dx dy +,( h1jJ;tx ds,
~
Ft =
(
J~
h1J!it dx dy +,( h1.jJity ds
~
The coefficient matrix [KIll, for example, corresponds to the coefficient of v in the first equation, i.e., the first superscript corresponds to the equation number and the second to the variable number. By expanding (10.28a), one can show that they yield the same equations as (10.29a).
PLANE ELASTICITY
46S
10.4.3 Eigenvalue and Transient Problems For natural vibration study of plane elastic bodies, (1O.28a) or (10.29a) is reduced to an eigenvalue problem by replacing {.6.} by
We obtain [cf. (8.170)]
I (-w [M"]+ [KeJ) {.&e} = {Qe} I 2
(10.30)
For transient analysis, following the discussions of Section 8.5.3, (1O.28a) or (1O.29a) can be reduced to a system of algebraic equations by using the Newmark integration scheme (8.171). We have [see Eq. (8.173)] (1O.31a)
where
e
[K ]S+ l = [Ke]S+1
+ a3[M e]s+1
{ft"ls,S+1 = {r}s+l + [Me]s+t(a3{.6.e}S + a4{Aels + as{Lie}s) 1 as=--1 y (1O.31b)
For additional details, see Sections 6.2.3 and 8.5.3.
10.5 EVALUATION OF INTEGRALS For the linear triangular (i.e., CST) element, 'l/Jf has the form 1
'l/Ji= 2A (ai + mx + yfy) e
where A" is the area of the triangular element, and [Be] = [T][W e] [see (10.23)-(10.25)] is constant. Since [W] and [eel are independent of x and y, the element stiffness matrix for the CST element is given by (10.32)
For the case in which the body force components Ix and /y are element-wiseconstant (say, equal to f~o andf~o, respectively), the force vector {r} has the
466
FINITE ELEMENT ANALYSIS OF TWO·DlMENSIONAL PROBLEMS
form f~o
f;o f~o
(lO.33)
f;o f~o
f;o
For a general quadrilateral element, it is not easy to compute the coefficients of the stiffness matrix by exact means. In such cases, we use the numerical integration discussed in Section 9.2. However, for a linear rectangular element of sides a and b, the element coefficient matrices-in (8.35) 'and (8.44) can be used to obtain the stiffness matrix. The load vector for a linear rectangular element is given by
(10.34)
The vector {Qe} is computed only when the element Qe falls on the boundary of the domain on which tractions are specified (i.e., known). Computation of {Qe} involves the evaluation of line integrals (for any type of element), as explained in Section 8.2.6; see also Example 8.2. For plane elasticity problems, the surface tractions t, and ty take the place of qll in single-variable problems [see (8.45)]. Often, in practice, it is convenient to express the surface tractions tx and ty in the element coordinates. In that case, {Qe} can be evaluated in the element coordinates and then transformed to the global coordinates for assembly. If {Qe} denotes the element traction vector referred to the element coordinates then [see (4.58b)] the corresponding global vector is given by (lO.35a)
where cos
sin £Y
£Y
:
,I
-sin £Y cos a i ___________________
o o
o o
~ ~ . ~ . ~ . f t . . ~ ~ -
o
[W]=
·
o
0 i cos £Y sin a ; 0 :(-----------------r--·A. -sin a cos a : I
~_~
I
,
I
I
I
I
I
I
I
and a is the angle between the global x axis and
til'
•
(lO.35b)
PLANE ELASTICITY
467
(b)
FIGURE 10.4· Computation of boundary force components for plane elasticity problems; (a) the constant strain triangle (CST); (b) a typical plane elasticity problem; (c) computation of the boundary forces.
As a specific example, consider the structure shown in Fig. lOA(a). Side 2-3 of element 7 is subjected to a linearly varying normal force: tn *0,
ts = 0
where the subscripts nand s refer to normal and tangential directions, respectively. We have for (e =7)
The first and third integrals cannot be evaluated, because we do not know tn and ts on these sides of the element. However, by internal stress equilibrium, those portions cancel with like contributions from the neighboring elements (elements 4 and 5) in the assembled force vector of the structure. Thus, we must compute the integral over side 2-3 of the element. We have (for e = 7)
e
{Q h_3=
LLn ['Pef{~} ds, tn= -po(1- ~)
(10.36b)
where the minus sign in front of Po is added to account for the direction of the applied traction, which acts toward the body in the present case. The local coordinate system s used in the above expression is chosen along the side connecting node 2 to node 3, with its original at node 2 (see Fig. 10Ab). One is not restricted to this ehcice.Tf it is considered to be convenient to choose the local coordinate system S, which is taken along side 3-2, with its origin at node 3 of element 7, we can write (10.36c)
4
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
where [we] is now expressed in terms of the local coordinate
s.
We have
o o
- h_3= fLu
{Q
e
0
'l/Jitn ds= _ Lnpo 0
(10. 37a)
6
'l/J~tn
o The global components of this force vector are [set
(l'
= 90° - 8 in (1O.35b)]
o o
/
T P 2 sin e = __ LJ2_3_0
{Qe} 2-3
6
(10. 37b)
2 cos e
sin
e
cos 8 The same procedure applies to linear quadrilateral elements. In general, the loads due to specified boundary stresses can be computed using an appropriate local coordinate system and one-dimensional interpolation functions. When higher-order elements are involved, the same order one-dimensional interpolation functions must be used.
10.6 ASSEMBLY AND BOUNDARY AND INITIAL CONDITIONS The assembly procedure for problems with many degrees of freedom is the same as that used when there is a single degree of freedom (see Section 8.2), except that the procedure should be applied to all degrees of freedom at each node. For example, consider the plane elastic structure shown in Fig. 10.4(a). There are eight nodes in the mesh; hence, the total size of the assembled stiffness matrix will be 16 X 16, and the force vector will be 16 x 1. The first two rows and columns of the global stiffness matrix correspond to global node 1, which has contributions from node 1 of elements 1 and 2. For instance, we have
+ Kil' K 22 = Kh + K'b, K 12 = K~2 + Kiz, K 33 = K~3 + Kit + Kit> K 34 = K54 + Ki2 + K12'
K ll = Kit
etc.
(10.38)
Note ,that K l 2 , for example, denotes the coupling stiffness coefficient between the first and second global degrees of freedom, both of which are at global node 1. Similar arguments apply for the assembly of the force vector. With regard to the boundary conditions, the primary degrees of freedom are the displacements and the secondary degrees of freedom are the forces. At
PLANE ELASTICITY
469
any node on the boundary of the domain of a plane elasticity problem, one has the following four distinct possibilities: Case 1 Case 2 Case 3 Case 4
u and v are specified (and t; and ty are unknown) u and ty are specified (and tx and v are unknown)
tx and v are specified (and u and ty are unknown) tx and ty are specified (and u and v are unknown)
(10.39)
In general, only one of the quantities of each of the pairs (u, tJ and (v, ty) must be specified at a point on the boundary. For time-dependent problems, the initial displacement and velocity must be specified: (10.40)
10.7 EXAMPLES Here we consider a couple of examples of plane elasticity problems to illustrate the load computation and imposition of boundary conditions. The stresses are evaluated at reduced Gauss points of the elements [see Barlow (1976, 1989)]. These examples are actually analyzed using the program FEM2DV2, which is discussed in Chapter 13. Example 10.1. Consider a thin elastic plate subjected to a uniformly distributed edge load, as shown in Fig. 10.5(a). We wish to determine the equilibrium (i.e., static) solution. First we consider a two-element discretization of the plate by triangular elements, and then we perform all the algebra to obtain the nodal displacements. The assembly of element matrices for elements with two degrees of freedom (DOF) is described in Section 10.6. For the finite element mesh at hand, the correspondence between the global and local nodes and stiffness is as follows:
Nodal correspondence Global (DOF)
Local (DOF)
Stiffness correspondence Global
Local
K ll
1 of element 2 (1,2)
K 12
K1I+K~1 Kh+Kh Kl 2+ K~2
2 (3, 4)
2 of element 1 (3,4)
K 33 K 44 K 34
1 K 44 K~4
3 (5, 6)
3 of element 1 (5,6) 2 of element 2 (3,4)
4 (7,8)
3 of element 2 (5, 6)
1 of element 1 (1,2)
Kn
1 (1,2)
Kj3
K 55 K 66 K 56
K~5+K~3
Kn
K~5
K ss K7 8
K~+K1 K~6+K~ K 266
K~6
(10.41)
470
FINITE ELEMENT ANALYSIS OF lWO·D1MENSIONAL PROBLEMS
CD I
I
2
/l- a = 120 in - ...j2 (a)
y
y
160 in
160 in 0:-----:--0
/
o------+--x 120 in
(b)
120 in
(c)
FIGURE 10.5 Geometry and finite element mesh of a plane elasticity problem by the CST elements: (a) a plane elasticity problem; (b) element I; (c) elemenl2.
If two global nodes correspond to two (local) nodes of the same element then the
corresponding stiffness coefficient is nonzero; otherwise it is zero. The specified (primary) degrees of freedom are (10.42)
The known secondary degrees of freedom (forces) are already included in {PI} and {p2}. Equilibrium of forces requires that (note that Po is the force per unit length) (10.43)
The first two rows and columns and the last two rows and columns of the assembled [K] can be deleted (since the specified boundary conditions are homogeneous) to obtain the condensed form of the matrix equation:
(10.44)
or (using a = 120 in, b
= 160 in, h = 0.036 in, v = 0.25,
E = 30 X 106lb in ", and Po =
PLANE ELASTICITY
93.0 -36.0 -16.2 72.0 21.6 -36.0 -16.2 21.6 -43.2 0.0
104
114.4
·93.0
14.4]{ U2} Y2 = {800' 0.00}
-43.2 0.0 72.0
U3
V;
471
(10.45)
800.0 0.0
Inverting the matrix, we obtain
U2} V; = 10{
U3 V3
6
l4.07 2.8.6534 2.34
3
=
1O-4 {
0.17 0.59
0.17 -1.6 3.63 -1.6 4.72 -0.99
1~:~~}
10.10 -1.09
0'59]{800'0.00} 8.00 6.88 0.0
4.72 -0.99
in
(10.46)
Note that the solution is not symmetric (i.e., U2 =I- U3 , Y2 =I- - V3) about the horizontal centerline. The exact solution should be symmetric about the centerline. This is due to the asymmetry in the finite element discretization. Table 10.1 gives the finite element solutions (obtained using FEM2DV2) for the displacements at the points (120,0) and (120, 160) of isotropic and orthotropic plates
TABLE 10.1
Finite element results for a thin plate (plane stress assumption) using various meshes of triangular and rectangular elements and material propertiest Mesh
Material
U2
V2
(x 10- 4)
U3 (x 10- 4 )
V3 (X
11.291 10.853
1.9637 2.3256
10.113 10.853
-2.3256
1.6662 2.6758
10.650 10.728
-1.579 -2.6758
2.157 2.002
10.821 10.778
-2.157
(x 10- 4)
[zJ
Isotropic: E = 30 x 111' Ib in- 2 v = 0.25 G = E/2(l + v)
0
Orthotropic: E I = 31 x uti Ib in- 2 E 2 = 2.7 x 111' Ib in- 2 10.767 G 12 = 0.75 x Hf Ib in- 2 10.728 Vl2 = 0.28
1
1
~1.08
2
2
~ 1
10- 4)
Orthotropic: . same as above
10.821 10.778
-HlO2
2
For each mesh, the firstrow corresponds to triangular elements and the second row to one rectangular element.
472
FINITE ELEMENT ANALYSIS OF TWO·DlMENSIONAL PROBLEMS
TABLE 10.2
Deflections and stresses in an isotropic plate subjected to uniform edge load (Example 10.1) u(120,0) (x 10- 4 )
u(120,0) (x 10- 4 )
1x t
11.291
1.9637
2x2
11.372
2.1745
4x4
11.284
2.1255
1x 1
10.853
2.3256
2x2
11.078
2.0212
4x4
11.150
2.0094
Mesh
Triangular
Rectangular
a..
ay
a xy
285.9 (80, 53.33)t 279.7 (80,53.33) 280.0 (80,53.33)
14.40 (80,53.33) 69.36 (20,53.33) 69.59 (10,26.67)
10.80 (80,53.33) 23.20 (40,26.67) 35.93 (20,13.33)
277.8 (60,80) 277.8 (30,40) 280.4 (75,60)
25.84 (60,80) 37.46 (30,40) , 49.74 (15,60)
0.0 / (60,80) 13.23 (30,40) 27.73 (15,20)
t Location of the stress. y
'f
= 150 psi
r '1 !.
a = 10 in
»
~xDEC~2i" -.j
b (a)
75
,/".111 12 __ 13 ___14 __ ~. i i 6E::--I==--:E~~----t=:-»>
10
1
~
2
3
4
(b)
FIGURE 10.6 Finite-element meshes for an end-loaded cantilever beam.
5
= 1 in
"-c
PLANE ELASTICITY
473
for the meshes shown. Table 10.2 gives the deflections and stresses obtained with refined meshes of triangular and rectangular elements. Example 10.2. Consider the' cantilever beam (E = 30 x 106 psi, v = 0.25, a = 10 in, b = c = 1 in) shown in Fig. 10.6(a). 'We wish to determine, using the elasticity equations, the maximum deflection and bending stress in the beam when it is subjected to a uniformly distributed shear stress l' = 150 psi. The boundary conditions of the problem are uta, y) = 0,
t,
(" = 0,
= ty = 0 f y = -1' ty
=
v(a, c)
=
0
= 0, 2c for any x x = 0 for any y
at y at
0 at x = a and for any y
(10.47)
*' c
We shall solve the problem using the plane stress assumption. The elastic coefficients clj for the plane stress case are defined (assuming that steel is isotropic) by E Cll =CI2=1_
y'
C12 =
Ev 1- v2>
C 66
E = 2(1 + v) (= G)
(10.48)
Three different finite element meshes, increasingly refined, are shown in Fig. 1O.6(b). These meshes are those consisting of linear rectangular elements. Equivalent triangular element meshes are obtained by joining node 1 to node 3 of each rectangular element (see the dashed lines). Equivalent meshes of nine-node quadratic Lagrange elements are obtained by considering a 2 x 2 mesh of linear Lagrange elements as a quadratic element. For the finite element model, the boundary conditions on the primary and secondary variables, e.g., for the IS-node mesh, are given by U5 = UIO = Vw = U15 = 0.0 F{= -75.0,
F~=
-150.0,
F{1 = -75.0
(10.49)
and all other forces are zero on the boundary. Table 10.3 gives a comparison of the finite element solutions with the elasticity solutions for the tip deflection (i.e., the deflection at the center node of the left end) and bending stress 0", obtained using two-dimensional elasticity theory [see Reddy (1984)J. The linear triangular element mesh has the slowest convergence compared with the linear and quadratic rectangular elements.
The final example in this chapter deals with free vibration and transient analysis of a plane elasticity problem. We consider the cantilever beam of Example 10.2. Example 10.3. Consider the cantilever beam shown in Fig. 10.6a. We wish to determine the natural frequencies and transient response using the plane elasticity elements. We use the finite element meshes of linear triangular and rectangular elements shown in Fig. 1O.6(b) and their nodal equivalent meshes of quadratic elements to analyze the problem. Table lOA gives a comparison of the first 10 natural frequencies obtained with various meshes. The convergence of the natural frequencies with mesh refinement is clear.
474
FINITE ELEMENT ANALYSIS OF TWO·DlMENSIONAL PROBLEMS
TABLE 10.3
Comparison of the finite element solution with the elasticity solution for a cantilever beam subjected to a uniform shear load at the free end Tip deflection, -u
X
10- 2
Normal stress ax Linear rectangles
Number of nodes
Linear triangles
Linear rectangles
Quadratic rectangles
Linear triangles
15
0.16112
0.31335
0.50310
27
0.26623
0.43884
0.51288
51
0.316459
0.48779
0.51374
1196 1209 (8.75,1.5):1: (15)t 2270 1793 (31) (9.375, 1.5) 2829 2056 (63) (9.6875,1.5) 2876 2180 (9.583, 1.667) (9.6875,1.5)
Elasticityj
0.51875 (0.0. 1.0)
t Element number.
Quadratic rectangles 2196 (8.943. 1.577) 2439 (9.471, 1.577) 2526 (9.736,1.577) 2528 "(9.736, 1.577)
,
:j:Quadrature points. 3 2 2 § From Reddy (1984), p. 53: u(O, 1) = -(PL /3£/)[1 + 3(1 + v)/ L ]; ax = Px(1 - y)/l, 1=3'
For transient analysis with the linear acceleration scheme (a = 0.5, Y = time step /1t is given by the inequality At
12
)112
n, the (10.50)
Ama~
For the 4 X 1 mesh of rectangular elements, for example, we have Ater = 1.617 X 10- 5 • Figure 10.7 contains plots of the tip deflection v(O, 1, t) versus time, as predicted using the 4 x 1 mesh of linear rectangular elements and the following two time integration schemes: (1) a = y = ! and (2) a = t y = !. The time step used in these computations, TABLE 10.4
Comparison of first ten frequencies of the cantilever beam of Example 10.3 as computed using various meshes of linear and quadratic triangular and rectangular elements Triangular elements
w
1 2 3 4 5 6 7 8 9 10
Linear element
Rectangular elements
Quadratic element
Linear element
Quadratic element
4x2
8x2
2xl
4xl
4x2
8x2
2xl
4xl
2,019.4 9,207.4 10,449.6 25,339.2 2.9,193.2 42,363.4 52,937.0 67,964.6 76,833.2 79,443.0
1,583.0 8,264.0 9,177.7 19,540.5 27,843.9 32,727.8 46,840.4 48,014.4 61,560.4 68,257.4
1,186.4 7,896.6 9,158.2 18,369.1 27,805.3 40,399.2 50,469.6 66,260.9 74,582.1 79,241.8
1,156.7 6,496.5 9,156.0 16,219.9 27,441.7 28.696.9 39,762.6 45,815.6 57,429.5 64,867.4
1,465.5 8,457.9 9,218.4 22,334.0 29,113.3 40,309.7 52,991.9 66,842.5 74,523.3 76,515.5
1,242.3 6,845.8 9,171.7 16,887.7 27,836.8 29,433.6 44,231.1 47,441.0 60,078.3 67,813.3
1,169.9 7,179.7 9,158.2 17,890.8 27,869.8 39,583.7 50,964.4 67,015.3 74,064.6 80,029.3
1,151.8 6,341.4 9,156.0 15,572.7 27,266.3 27,442.2 39,302.3 45,839.9 56,949.9 64,636.0
J
PLANE ELASTICIlY
100
475
.,.-----=----------------,
X
.Q u
a=
05 tJ.I
2.5 x'10- 4 -100 Tip deflection v(O, 1, t)
----0-••••• Q- •••
!\ '.
'ti
= 1
f3 = 2 /3 =! 3
-200
b - 300 +-___._______.-~----.----,~.---___._______.-_.______r_____.___J 2 3 4 5 6 o Time t x lW FIGURE 10.7 Stability of the finite element solutions predicted by two different time integration schemes (Example 10.3). The 4 x 1 mesh of linear rectangular elements is used.
/it = 2.5 X 10- 4 > /itm makes the second scheme yield unstable solutions. It should be noted that if /it is close to Mer but M> Me< then the solution predicted by the linear acceleration scheme may be stable for the first several time steps, but it will eventually become unstable. Figures 10.8 and 10.9 show the relative accuracies of solutions predicted by triangular and rectangular elements. It should be noted that the linear triangular element yields a less accurate solution than the linear rectangular element. 2,....---------------~
o -2 -4 Tip -6 deflection v(O, 1, t)
-8
-10
• L4 OLB • Q2 o 04
a
= 0.5
f3
= 0.5
61 = 2.5 X 10- 4
2
3 Time t x
5
6
io'
FIGURE 10.8 Tip deflection v(O, 1, t) versus time, as predicted by various meshes of linear (L) and quadratic (Q) triangular elements: U, 4 x 2 mesh of linear elements; LB, 8 x 2 mesh of linear elements; Q2, 2 x 1 mesh of quadratic elements; Q4, 4 x 1 mesh of quadratic elements.
476
FINITE ELEMENT ANALYSIS OF nVO·DlMENSIONAL PROBLEMS
---.
2~--------
o -2
-4 Tip deflection u(O, 1, t) -6 -8
-10
•
L4
aU
a = 0.5 = 0.5 tJ.t = 2.5 X 10- 4
• 02
f3
o 04
1
234 Time t x 103
5
/
6
FIGURE 10.9 Tip deflection versus time, as predicted by various meshes of rectangular elements: L4, 4 X 2 mesh of linear elements; U, 8 x 2 mesh of linear elements; Q2, 2 x 1 mesh of nine- node quadratic elements; 04, 4 x 1 mesh of nine-node quadratic elements.
10.8 SUMMARY In this chapter an introduction to the equations of plane elasticity (i.e., two-dimensional problems of elasticity) has been presented, and their finite element models have been formulated. The plane strain and plane stress problems, which differ only in the use of constitutive relations, have been discussed. The governing equations have been expressed in terms of the displacements, and their weak form and finite element model developed in two alternative ways: (i) the matrix formulation, which is standard in most finite element textbooks on solid mechanics; and (ii) the three-step procedure, which is used throughout the book. The eigenvalue and time-dependent problems of plane elasticity have also been discussed. Some numerical examples have been presented to illustrate the evaluation of element stiffness matrices and force vectors.
PROBLEMS 10.1-10.3. Compute the contribution of the surface forces to the global force degrees of freedom in the plane elasticity problems given in Figs. PlO.I-PIO.3. 10.4-10.6. Give the connectivity matrices and the specified primary degrees of freedom for the plane elasticity problems shown in Figs. PlO.I-PIO.3. Give only 'the first three rows of the connectivity matrix. 10.7. Consider a cantilevered beam of length 6 em, width 2 em, thickness 1 em, and material properties E = 3 X 107 N cm ? and v = 0.3, and subjected to a bending moment of 600 N em at the free end (see Fig. P.lO.?). Replace the moment by
PLANE ELASTICITY
Plane stress E; = £2 = 204 GPa G = 79 GPa, v= 0.29, h
y
h 3
14
1000 lb
= 5 em
3 m ----JPof-15
16
T~~
Quadratic curve
I~ FIGURE PIO,l
FIGURE PIO.2
T 3
f-a-f--a--j a = 1 m, Po = 600 kN m- 2 (plane strain) £1 = £2 = 40 GPa, G = 17 GPa, v = 0.15
FIGURE PlO.3
E = 3 X 107 N cm- 2 v = 0.3 M o = 600 N em
Plane stress V
'=0
FIGURE PIO.7
Ix =
a
477
478
FINITE ELEMENT ANALYSIS OF TWO· DIMENSIONAL PROBLEMS
an equivalent distributed force at x = 6 em, and model the domain by (a) a 4 x 2 mesh of linear rectangular elements and (b) quadratic rectangular elements. Identify the specified displacements and global forces. Answer: F~= -300 and F~5=300. 10.8. Consider the ("transition") element shown in Fig. PlO.8. Define the generalized displacement vector of the element by
and represent the displacement components u and v by u = 1JI,u, + 'r/hu2+ 1JI3U3+~hTJ1JII(Jh
v = 1J! l v \ + 1JI2V2+
l/!JV 3
v,
where is the interpolation function for the beam, and 1J12 and l/J3 are the interpolation functions for nodes 2 and 3:
Derive the stiffness matrix for the element.
Tr-----
'(\---1:....\___ _ b
~v3 L- U3
1)
3
I
Beam element
_
------r' I
2
f;.
U
Plane stress
r element
~ 2
)
1---1I------j
/
Transition
FIGURE PI0.8
element
10.9. Consider the square, isotropic, elastic body of thickness h shown in Fig. PlO.9. Suppose that the displacements are approximated by u(x, y) = (1- x)YUj
+ x(l- y)u 2 ,
vex, y)
=0
Assuming that the body is in a state of plane stress, derive the 2 X 2 stiffness matrix for the unit square:
OH l----1 0--1 .....I l• 11
FIGURE PI0.9
10.10":10.16. For the plane elasticity problems shown in Figs. PI0.1G-PlO.16, give the boundary degrees of freedom and compute the contribution of the specified forces to the nodes, Answer: (Problem 10.10) F~ = 200/6, F{I = 800/6, and F{s = g.
PLANE ELASTICITY
r
E 1 = E 2 = 69 OPa; v = 0.333, G = 26 OPa thickness = 1 em 2 emS
13 •
14
15
19 :
16 17 flO:
is PI
1111 3 ,~~e ::~~s
u 2 J 4.15 6_17 14 em-r-4 em---r--4 em, FIGURE PlO.lO
6cm diameter Plane strain
u = 0 ty = 0
eto.n
FIGURE
-:
Lines of symmetry '<,
.t \ L 0.21 n ~..1 0.8
48 =: 36 -:::::: 100 Ib in- 1 24
In
T
Plane stress h = 0.25 in
64
==
<,
h~" .---J 6,_ 7
~
11 9 1O,-----=---=;1?r----tx = ty = 0 4 in l
8
1.6 1n;;4 in
FIGURE PlO.12
ffrf 33
100kN m-2 u = tx
=
0 40
3;-t
I: t -
25 = ty = It
= 0
0 0
9 1
2 3 4 5
6
7
8
1 '.1 m r- u =S u=o m - - - -.1 FIGURE PIO.I3
I
04m
/Q
Plane strain E = 40 GPa, G = 17.4 GPa v = 0.15, thickness = 1 em
479
480
FINITE ELEMENT ANALYSIS OF nVO·DIMENSIONAL PROBLEMS
y
2b Hole diameter 2d 1-o----f----2a~-------../
Plane stress FIGURE PI0.14
Plane strain
FIGURE PIO.IS
qt ~+--+--+Ll..ItU,.I.tJ'*'1
9
........+-.-+-----+.........,~__t_'+__17 ..1.---+__..-.-+---+-+-15 "'+-.t-+--t--+'-b--l3 - ..................-............~:-l1 f--3h--m,
Plane stress
FIGURE PI0.16
REFERENCES FOR ADDITIONAL READING Barlow, J.: "Optimal Stress Locations in Finite Element Models," International Journal for Numerical Met/rods in Engineering, vol. 10, pp. 243-251, 1976. --~: "More on Optimal Stress Points-Reduced Integration, Element Distortions and Error Estimation," International Journal for Numerical Methods in Engineering, vol. 28, pp. 1487-1504, 1989. Budynas, R. G.: Advanced Strength and Applied Stress Analysis, McGraw-Hili, New York, 1977. Dym, C. L., and I. H. Shames: Solid Mechanics: A Variational Approach, McGraw-Hill, New York,I973. Ugural, A. c., and S. K. Fenster: Advanced Strength and Applied Elasticity, Elsevier, New York, 1975.
PLANE ELASTICITY
481
Volterra, E., and J. H. Gaines: Advanced Strength of Materials, Prentice-Hall, Englewood Cliffs, NJ, 1971. Reddy, J. N.: Energy and Variational Methods in Applied Mechanics, John Wiley, New York, 1984. - - - and M. L. Rasmussen: Advanced Engineering Analysis, John Wiley, New York, 1982. Rektorys, K.: Variational Methods in Mathematics, Science and Engineering, D. Reidel, Boston, MA,1980. - - - : The Method of Discretization in Time, D. Reidel, Boston, MA, 1982. Timoshenko, S. P., and J. N. Goodier: Theory of Elasticity, 3d ed., McGraw-Hili, New York, 1970.
CHAPTER
11 FLOWS OF VISCOUS INCOMPRESSIBLE FLUIDS
11.1 PRELIMINARY COMMENTS An introduction to fluids and their governing equations was given in Section 3.3.2. The finite element analysis of fluid flow problems .that can be described as one-dimensional systems was also discussed there. Two-dimensional flows of inviscid incompressible fluids (i.e., potential flows) were considered in Section 8.4.2. Potential flow problems were cast in terms of either the stream function or the velocity potential, and the governing equation in each case was the Laplace equation (i.e., a second-order partial differential equation in a single variable; see Chapter 8). In this section, we consider the finite element analysis of two-dimensional flows of viscous incompressible fluids. These problems are governed by a set of coupled partial differential equations in terms of the velocity components and pressure. When the speed of the flow is low, the nonlinear terms due to inertial effects can be neglected. Such a flow is called Stokes flow, and the resulting equations are termed the Stokes equations. Here we describe two different finite element models of Stokes flow. We begin with a review of the pertinent equations governing slow, laminar flows of viscous incompressible fluids (see Section 3.3.2). 482
FLOWS OF VlSCOUS INCOMPRESSmLE FLUIDS
483
11.2 GOVERNiNG EQUATIONS Consider the slow flow of a viscous incompressible fluid in a closed domain Q:
a
a
Dt at
at
D
-=-+v·v=-
(slow: inertial effects are negligible) (viscous)
WFO
Dp = 0
Dt
(p
= constant)
(incompressible)
Suppose that the domain is very long in one direction-say, the z direction. Then, if there is no flow along this direction and the velocity components in the other two directions are independent of z, the flow can be approximated by a two-dimensional model. The governing equations are summarized below [see (3.102)-(3.106)]: Conservation of linear momentum
au- - a- (2f.lau) - a [f.l (au au)] +--fx=O ap p -+at ax ax ay ay ax ax au- - a [(au+au)] a ( au) +-ap p - -at ax f.l ay ax ay 2f.lay ay t.Y =0
(11.1)
Conservation of mass
au au ax ay
-+-=0
(11.2)
Here u and v are the velocity components along the x and y directions, respectively, P is the pressure, fx and /y are the components of the body force, f.l is the viscosity, and p is the density of the fluid. The boundary and initial conditions are of the form
(11.3a)
= v. u(x, y, 0) = uo(x, y),
u=u,
u
vex, y, 0) = vo(x, y)
(11.3b)
The same four possibilities as given in (10.39) exist for the specification of the boundary conditions in fluid flow problems; i.e. only one element of each of the pairs (u, tx ) and (v, ty) can be specified at any point on the boundary. The
484
FINITE ELEMENT ANALYSIS OF TWO·DIMENSIONAL PROBLEMS
boundary stresses are
au- P )nx + f.l(au (. = (2f.l- + -av) n
ax ay ax Y au au) nx + (av t =f.l (-+2f.l--P )n Y ay ax ay Y
(11.3c)
There are three partial differential equations (11.1), (11.2) in three unknowns (u, v and P). It is possible to reduce the number of equations and unknowns by the introduction of the stream function 'lJI and/or the vorticity ~:
a'lJl ax
-=-u L.-
'
a'lJl
-=u ay ,
au av oy ax
~=---=V
2
'lJI ----II'
(11.4) -,
If both functions are used, the three equations can be reduced to two second-order equations [because the continuity equation (11.2) is identically satisfied by the stream function]. If f; is not used, the three equations can be reduced to a single fourth-order equation in 'lJI. Since these alternative formulations are not as physically clear as the original equations (especially for the imposition of boundary conditions), or require higher-order elements (for the fourth-order equation for 'lJI), we shall confine our attention here to the development of finite element models of (11.1) and (11.2) in terms of the primitive variables («, u, and P). In the present study, we shall consider two different finite element models of (11.1) and (11.2). The first is a natural and direct formulation in which the three equations in u, v, P are used in their original form. This formulation is known as the velocity-pressure formulation. The other is based on the interpretation that the continuity equation (11.2) is an additional relation among the velocity components (i.e., a constraint on u and v), and this constraint is satisfied in a least-squares (i.e., approximate) sense. This particular method of including the constraint in the formulation is known as the penalty function method, and the model is termed as the penalty finite element model. It is informative to'note that the velocity-pressure formulation is the same as the Lagrange multiplier formulation, wherein the constraint is included by means of the Lagrange multiplier" The Lagrange multiplier turns out to be the negative of the pressure.
11.3 VELOCITY-PRESSURE FINITE ELEMENT MODEL The weak forms of (11.1) and (11.2) over an element Q€ can be obtained using the three-step procedure discussed in Chapter 8 and revisited in Chapter 10 for plane elasticity problems. We multiply the three equations in (11.1) and (11.2), with three different weight functions Wj, W2' and IV), and integrate over the
FLOWS OF VlSCOUS INCOMPRESSIBLE FLUIDS
485
element:
0=
1 { auat i { avat WI
Q'
0=
Q'
0=
IV 2
a (2pau) - a [(au av)] +ap p--P -+- - ! x } dxdy
ax ax. ay ay ax ax a [ (au av)] a (2p.av) +--1. ap }dx dy p--- -oy ax P -ay+ax ay ay au av) dx dy -+ax ay Y
(11.5)
1( W3
Q'
where WI' W2, and IV3 are the weight functions. The latter can be interpreted physically as follows, Since the first equation is the momentum equation and Ix dx dy denotes the force, WI must be like the x component of velocity (u), so that the product !xWI gives the power. Similarly, 1V2 must be like the y component of velocity (v). The third equation represents the volume change in an element of dimensions dx and dy. Therefore, IV3 must be like a force that causes the volume change. Volume changes occur under the action of hydrostatic pressure; hence, IV3 is like - P:
I WI~U,
IV2-V,
w3 - - P
I
(11.6)
This interpretation is useful in developing the finite element model, because WI> for example, will be replaced by the ith interpolation function used in the approximation of u. Similarly, W 3 will be replaced by the ith interpolation function used in the approximation of P. When different interpolations are used for (u, v) and P, this interpretation becomes necessary. The second step of the weak formulation for the present case needs some comments. The integration by parts to distribute differentiation equally among the variables (u, v, P) and weight functions (WI> IV2, IV3) helps relax the continuity requirements on the finite element approximation functions used for u, v, and P. However, in any problem, such trading of differentiability is subject to the restriction that the resulting boundary expressions must be physically meaningful. Otherwise, the secondary variables of the formulation may not be the quantities the physical problem admits as boundary conditions. Examination of the boundary stress components t, and ty shows that the pressure term is a part of them [see (11.3c)]. For example, tx is the x component of the total boundary stress, which is the sum of the viscous boundary stress, 2jl(au/ax)nx + jl(aujay + av/ox)ny , and the hydrostatic boundary stress, - Pn.. Therefore, it is necessary that each term, except the body force term, must be integrated by parts in the two momentum equations. By trading the differentiation from Ponto' WI and W2 in the two momentum equations, we gain both physically meaningful natural boundary conditions and the symmetry of the finite element equations, as we shall see shortly. No integration by parts is used in the continuity equation, because no relaxation of continuity on u and v can be accomplished; further, the resulting boundary conditions are not physically justifiable.
486
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
Keeping the above comments in mind, we carry out the remaining two steps of the weak formulation. The result is 0=
au
OWl au
aWl (au OV)
at ax ax ay -+ay ax L [pWI-+2jl--+f.lQ'
- aWl ax P-wdx ] dxdy - 1. Wl tx ds
X
0=
av awz (au au) au - + 2awz fl-at ax oy+ax oy ay L [PWz-+fl-
(11.7)
Q'
- awz ay P - wzh ] dx dy - 1JI" wzty ds 0= -
au av) L (-ax+oy- dx dy W3
Q'
Note that there is no boundary integral involving W3, because no integration by parts is used. This implies that P is not a primary variable; it is part of the secondary variables (tx and ty ) . This in turn requires that P not be made continuous across interelement boundaries. If P by itself is not specified in a problem (but Lx and ty are specified) then P is arbitrarily set equal to a value at some node to determine the constant part of the pressure. Thus, P can be determined only to within an arbitrary constant. The minus sign in the third statement is inserted because P ~ - W3, which makes the resulting finite element model symmetric. An examination of the weak form reveals that u and v are the primary variables that should be made continuous at interelement boundaries, while P is a nodal variable that is not t~be made continuous across the interelement boundaries. Therefore, the Lagrange family of finite elements can be used for (u, v, P). The weak form shows that the minimum continuity requirements on (u, v, P) are
(u, v) linear in x and y P constant
Thus, there are different continuity requirements on the interpolation of the velocity field and pressure: n
U=
2: Uj1J.!'j, j=1
n
m
V = 2: Vj1/JJ, j=1
P = ~ Ej
(11.8)
/=1
where 1/J'j and
m
[ [~] [0]
[~] ~~~]{~~t} + [~~:~~ ~~:~ ~~:~]{~:i} = {' ~;:i} [0]
[0]
{P}
[K 3 1]
[K3Z ]
[K 33]
{P}
{OJ (1l.9a)
FLOWS OF VISCOUS INCOMPRESSIBLE FLUIDS
487
where (i, j = 1, 2, ... , n; J = 1, 2, ... , m)
[K 12] = fl[SlZf,
[K l l] = 2fl[Sll] + p[S22],
[K 22] = fl[Sll] + 2.u[SZZ],
S~·l = '1
[K ZI ] = [K 12f
[KH] = [0] (zero matrix)
L O'l/Ji dx dy aX ax ' oljJj
Q'
K iJ13 = -
L -a O'l/Ji Q'
X
A. '1'/
dx dy,
K 23 u = -
L Q'
-3tjJi epJ dx dy oy
We note that [K33 ] = [0], because the continuity equation does not contain P. Therefore, the assembled equations will also have zeros in diagonal elements corresponding to the nodal values of P. Both triangular and rectangular elements for the velocity-pressure model are shown in Fig. 11.1. Since the pressure does not appear at all nodes and it is not made continuous between elements (i.e., a discontinuous pressure approximation is used), the assembly procedure is applicable to only the velocity degrees of freedom. Thus, a finite element mesh with N global nodes will have a total of 2N + M unknowns, where N is the total number of nodes in the mesh and M is the number of pressure degrees of freedom. 3
3
2
o Nodes with Ii, u, P o Nodes with II. U • Nodes with P (constant) 40-------03
• 10-------<)2 FIGURE 11.1
7
4·0 - - - - 0 - - - - 0 . 3
8
o
9
10'----(:>----0· 2
5
Linear and quadratic triangular and rectangular finite elements for the pressure-velocity model of incompressible fluid flow.
488
FINITE ELEMENT ANALYSIS OF nVO·DIMENSIONAL PROBLEMS
11.4 PENALTY-FINITE ELEMENT MODEL 11.4.1 Penalty Function Method The penalty function method, like the Lagrange multiplier method, allows us to reformulate a problem with constraints as one without constraints. The basic idea of the method can be described by considering a constrained algebraic problem:
f (z, y)
minimize the function
subject to the constraint G(x, y) = 0
In the Lagrange multiplier method, the problem is reformulated as one of determining the stationary (or critical) points of the modified function FL(x, y),
FL(x, y) = I(x, y)
+ AG(X, y)
,
(11.10) ~
subject to no constraints. Here A denotes the Lagrange multiplier. The solution to the problem is obtained by setting partial derivatives of FL with respect to x, y, and A equal to zero:
aFL
-=0
ax
(11.11)
'
which gives three equations in the three unknowns (x, y, A). In the penalty function method, the problem is reformulated as one of finding the minimum of the modified function Fp , Fp(x, y) = I (x, y)
+ h[G(x, y))2
(11.12)
where y is a preassigned weight parameter, called the penalty parameter. The factor! in (11.12) is used for convenience: when Fp is differentiated with respect to its arguments, the factor will be cancelled by the power on G(x, y). The solution to the modified problem is given by the following two equations: BFp=O
ax
'
BFp -=0 By
(11. 13a)
The solution (x y, yy) of these will be a function of the penalty parameter y. The larger the value of y, the more exactly is the constraint satisfied (in a least-squares sense), and (x y, y.() approaches the actual solution (x, y) as y~ 00. An approximation to the Lagrange multiplier is computed from the equation (by comparing DFL with DFp ) Ay = yG(x y , yy)
(l1.13b)
We consider a specific example to illustrate the above ideas. Example 11.1. Minimize the quadratic function
[(x, y)
=
4x 2 - 3y 2 + 2xy + 6x - 3y + 5
(1L14a)
subject to the constraint
G(x, y) = 2x + 3y = 0
(1l.14b)
J
FLOWS OF VISCOUS INCOMPRESSIBLE FLUIDS
489
Geometrically, we see that the inflection point of the surface [(x, y) that is on the line 2. + 3y = 0 is the solution. We solve the problem using the Lagrange multiplier method and the penalty function method. Lagrange multipliermethod. The modified functional is
Fl..(x, y)
=
f(x, y) + J..(2t + 3y)
(11.15)
and we have
aFL
ax = 8x + 2y + 6 + 2J.. = 0
-
aFL = -6y + a - 3 + 3), = 0 ay aFL
-
(11.16)
- = a +3y =0 a).
Solving the three algebraic equations, we obtain
x=-3, y=2, },,=7 Penalty function method. The modified functional is Fp(x, y) = [(x, y) + h(2x + 3yy
(11.17) (11.18)
and we have
aF a;= 8x +2y + 6+ 2y(a + 3y)=O p
aFp -6y + 2x -3 + 3y(2x + 3y)= 0 ay
(11.19)
-=
The solution of these equations is
x
15 -36y
y
= -26+ 12y'
18 + 24y YY=-26+12Y
(11.20a)
The Lagrange multiplier is given by
(11.20b) Clearly, in the limit y~ 00, the penalty function solution approaches the exact solution: limx y=-3,
limyy=2
limA y = 7
y------J'tJ:l
'(--"'eo
)"'-+~
An approximate solution (11.20) to the problem can be obtained, to within a desired accuracy, by selecting a finite value of the penalty parameter (see Table 11.1).
11.4.2 Formulation of the Flow Problem as a Constrained Problem The continuum problem at hand, namely, the flow of a viscous incompressible fluid, can be stated as one of minimizing a functional subjected to a constraint. From the weak form in (11.7), we have the followillg linear and bilinear forms,
490
FINITE ELEMElIT ANALYSIS OF TWO·DlMENSIONAL PROBLEMS
TABLE 11.1
Convergence of the penalty function solution with increasing penalty parameter
Ay
y
Xy
Yy
0 1 10 100 1,000 10,000
-0.5769 1.5000 -3.6702 -3.0537 -3.0053 -3.0005
-0.6923
0.ססOO
-3.ססOO
-6.ססOO
-s.eoeo
2.7447 2.0596 2.0058 2.0006
8.9362 7.1550 7:0152 7.0015
0.8936 0.0716 0.0068 0.0008
00
-3.ססOO
2.ססOO
7.ססOO
0.ססOO
E; = 2.xy
+ 3yy
-3.2308
for the steady-state case, when the velocity field satisfiea-the consfraint au/ ax + au/oy = 0:
l(wI' wz) =
L (fxWl + /ywz) dxdy + 1Y1" (txWr + t;wz) ds
(11.21a)
Q'
B«WI' Wz), (u, u)) = J1.
aWl ou
OWz au)
L r2( ax ox + oy ay Q'
aWl+awz)(Ou + (- - +au)] - dx dY oy ax oy ox
. (ll.21b)
The pressure term does not appear in the bilinear form, and the third equation in (11.7) is not used, because the continuity equation is identically satisfied by the velocity field (u, u); Le., (u, u) are subject to the constraint ou/ox + ou/oy = O. From the discussion in Chapter 2 [see (2.40)-(2.44)], the quadratic functional is given by
[«u, v)) = -!B«u, v), (u, v)) -l«u, v)) = J1. {
Jo '
[(au)Z + (OU)2 +! (OU + aU)2] dx d ax ay 2 oy ax y
- L (ixu + /yv) dx dy _1Y1" (txu + tyv) ds
(11.22)
Q'
where the velocity components (u, v) satisfy the continuity equation (11.2). Now we state that (11.1) and (11.2) governing the steady flow of viscous incompressible fluids are equivalent to minimizing leu, v) of (11.22) subject to the contsraint
au au
Giu, v)=-+-=o ax ay
(11.23)
The constrained problem can be reformulated as an unconstrained problem using the Lagrange multiplier or penalty function methods. These are discussed next.
FLOWS OF VISCOUS INCOMPRESSIBLE FLUIDS
491
11.4.3 Lagrange Multiplier Formulation In the Lagrange multiplier method, the constrained problem is reformulated as one of finding the stationary points of the modified functional
h(u, v, A) ::l(u, v) +
L AG(U, v) dx dy
(11.24)
Q<
The necessary condition for IL to have a stationary point is that
OIL = OJL + o"IL + O)..1L = 0 or
(11.25)
OulL = 0,
o"h = 0,
O).h = 0
where 0u, 0", and lh denote the partial variations (see Section 2.2.4) with respect to u, v, and A, respectively. The three equations in (11.25) are exactly the same as the weak forms in (11.7), with A = -P, DU = WI' Ov = W2, and oJ" = -W3' Therefore, the velocity-pressure finite element model can also be termed the Lagrange multiplier finite element model.
11.4.4 Penalty Function Formulation In the penalty function method, the constrained problem is reformulated as an unconstrained problem as follows: minimize the modified functional
lp(u, v)::l(u, v)+heL [G(u, v)]2dxdy
(11.26)
Q<
where the penalty parameter Ye can be chosen element-wise. The necessary conditions for the minimum of lp are (11.27)
We have
s.i; = ou l
+ Ye L G(u, v) o"G(u, v) dx dy Q<
=
Bou au
ss« (au - +-av)] dx dy -
lax -ax + 1 By L [21l-
ay ax
1ss«ax (au-ax+av) By
dxdy=O
Q<
+Ye
-
Q'
at5v -a av Bov (au Ov)] dx dy.o,Jp = L [21l- + -8 ay y + r s: x By X Q<
+Ye
1eso (au-ax+av)-
g<
ay
ay
dxdy =0
L ou Ix dx dy - f.r- ou
t~
tis
Q<
(11.28a)
L ov h dx dy - f. Q<
r-
ov ty tis (l1.28b)
These two statements provide the weak forms for the penalty finite element model. We note that the pressure, which is the Lagrange multiplier, does not
492
FINITE ELEMENT ANALYSIS OF TWO·DIMENSIONAL PROBLEMS "-<.
appear explicitly in the weak form (11.28), although it is a part of the boundary stresses t, and tyo The time-derivative terms can be added to (11.28) without affecting the above discussion:
i
au at
i
p tJu-dx dy,
Q'
av at
p t5v-dxdy
Q'
(11.29)
The penalty finite element model is obtained from (11.28a, b) with the inertia terms (11.29) added, by substituting (11.8) for the velocity field, and t5u,,: 1/J; and t5v = 1J1;: (11.30)
where F; and
F1 are as defined in (11.9b), and [Kl l ]
= [K ll]
"
[K12] = [K 12] + y[S12],
+ y[Sl1],
[K22J = [K22] + y[S22]
(11.31)
r
The matrices [KaP] and [Sap] are defined in (l1.9b). For the unsteady case, (11.9a) or (11.30) are further approximated using a time approximation scheme. First, let us write (11.30) in the concise form [M]{A} + [K]{~} = {F}
(11.32)
where {~} denotes the vector of nodal velocities. Using the a family of approximation [see (8.162)-(8.164)], we reduce (11.32) to [K]S+l{~L+l
= {F}S.S+l
(11.33a)
where
[KJS+l = [M] + al[K]s+1 {F}s+l = (a{F}S+l + (1- «){F}s) M s+t + ([M] - a2[K]s){~). at = « M,
(11.33b)
a2 = (1 - «) M
The Lagrange multiplier (i.e., the negative of the pressure) for any t > 0 is computed from the equation ).y
= -p~= yG(u y ,
v y)
= y(~+~)
(11.34)
where (u,; v y) is the finite element solution of (11.33).
11.4.5 Computational Aspects Some comments are in order on the numerical evaluation of the integrals and pressure computation in the penalty model. Note that the penalty finite element model for the steady case is of the form (11.35)
/
FLOWS OF VISCOUS INCOMPRESSIBLE FLUIDS
493
where [K 1 ] is the contribution from the viscous terms and [K 2 ] is from the penalty terms, which come from the incompressibility constraint (11.2). In theory, as we increase the value of y, the mass conservation constraint is satisfied more exactly. However, in practice, for some large value of y, the contribution from the viscous terms would be negligibly small compared with the penalty terms in the computer. Thus, in the limit as y tends to a large number, we have
(11.36a) or
(11.36b) 2
Thus, if [K ] is a nonsingular (i.e. , invertible) matrix, the solution of (11.36b) for large y is trivial: {Ll} = {O}. While this solution satisfies the continuity equation, it does not satisfy the momentum equations. In this case, the discrete problem (11.35) is said to be overconstrained or "locked." If [K 2 ] is singular then the sum ,u[K1 ] + y[K 2 ] is nonsingular (because [K 1 ] is nonsingular), and a nontrivial solution to the problem can be obtained. The numerical problem described above is eliminated by proper evaluation of the integrals in [K 1 ] and [K 2 ] . It is found that if the coefficients of [K 2 ] (i.e., the penalty terms) are evaluated using a numerical integration rule (see Section 9.2) of an order less than that required to integrate them exactly, the finite element equations (11.35) give acceptable solutions for the velocity field. This technique of under-integrating the penalty terms is known in the literature as reduced integration. For a linear rectangular element, for example, the coefficients Kt are evaluated using 2 X 2 Gauss quadrature, and K~ are evaluated using 1 X 1 Gauss quadrature. One-point quadrature yields a singular [K 2 ]. Therefore, (1l.36b) cannot be inverted, whereas lte[KIJ + Ye[K 2 ] is nonsingular and can be inverted (after assembly and imposition of boundary conditions) to obtain a good finite element solution of the original problem. For linear and quadratic triangular elements, it is found that a good solution for the velocity field is obtained without using reduced integration on penalty terms. For example, the four-point integration (i.e., full integration) of [K 1] and [K 2 ] for the linear triangular element gives exactly the same velocity field as when four-point (2 X 2) integration is used to evaluate [K 1] and either three- or one-point integration is used for [K 2 J. Similarly, seven-point integration of [K1J and [K 2 J for the quadratic triangular element gives the same velocity field as that obtained using seven-point integration of [K1J and threeor four-point integration of [K 2 ]. Since reduced integration saves computational time, it is used to evaluate [K 2 ] in the present study. Concerning the post-computation of pressure in the penalty model, in general, the pressure computed from (11.34) at the integration points is not always reliable and accurate. Various techniques have been proposed in the literature to obtain accurate pressure fields. It is found that for both triangular and rectangular elements, the pressure computed at the reduced Gauss
494
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
•
• •
•
• Velocities
Pressure
•
•
•
•
•
•
•
•
•
•
•
•
•
FIGURE 1l.2 Finite elements for the approximation of velocities and the post-computation of the pressure (open circles denote nodes and dark circles integration points) in the penalty finite element model. A three-point evaluation of pressure is also suggested when velocities are approximated by quadratic polynomials.
quadrature points (the same integration points that are used to evaluate the penalty terms [K 2 ]) is better than that obtained with full integration points. Thus, pressure should be computed from (11.34) at the Gauss points of the reduced integration. The pressures predicted using the linear elements, especially for coarse meshes, are seldom acceptable. Quadratic elements are known to yield more reliable results. In general, triangular elements do not yield stable solutions for pressures. A mathematical study of the penalty elements (mostly rectangular ones) can be found in the work of Oden (1982). Figure 11.2 shows linear and quadratic finite elements with integration points for the viscous and penalty terms. Other elements and their convergence and stability characteristics can be found in Oden and Carey (1983). Of these elements, only rectangular ones give stable solutions for pressures; and for uniform meshes and problems with smooth solutions, all elements give good velocity fields. The reader should be cautioned that pressures produced by the penalty elements can be unstable for some problems and coarse meshes, especially when triangular elements are used. The choice of penalty parameter is largely dictated by the ratio of the magnitude of penalty terms to the viscous terms, the mesh, and the word length in the computer. Generally, a value of y= 104Jl-10121l gives good results. It is found that the pressure is more sensitive to the value of y than the velocity field, and triangular elements permit a smaller range of y (1041l-lOs Jl) than. the rectangular elements for good pressures.
11.5 EXAMPLES Example 11.2. Consider the flow of a viscous incompressible material squeezed between two long parallel plates (see Fig. 11.3a). When the length of the plates is very
y
y
t
T 1
1111111~ \i
2b
I"'iI
1-
,.,-
(a)
I
I
I
I
V • x
.!
u
=0
Iy
=0
/.<=0, v=-vo=-l
---1--- --:- I \r >- ___ J. ___ )-- -9- -- >--}-- -r- .,T , I
1--- -.}---
I
I
I
i
---'"t---
_ ..... _...J_ ...........
I
-;-
I
I
Ix =
0
ty = 0
r f-I- _ _ x
U=lx=O
i o."
-e
(b)
FIGURE 11.3 Boundary conditions and finite element meshes for the problem of an incompressible viscous fluid squeezed between plates: (a) geometry of the flow domain; (b) finite element mesh of a quadrant.
8c '"
§ ;g"" ~
63 r-
rrJ
E 6 '"
~
496
FINITE ELEMENT ANALYSIS OF TWO· DIMENSIONAL PROBLEMS
large compared with both their width and the distance between them, we have a case of plane flow (in the plane formed by the plate width and the distance between them). Assurnining that a state of plane flow exists, we determine the velocity and pressure fields. Let "Va be the velocity with which the two plates are moving toward each other (i.e., squeezing out the fluid), and let 2b and 2a denote, respectively, the distance between and the width of the plates (see Fig. 11.3a). An approximate analytical solution to this two-dimensional problem is provided by Nadai (1963): 3 VoX ( y2) u=---v;1- b2
v = _ Voy 2b
J
(3 _b"y2)
3~Voa2
PO=2j;3
ax == 2tt -au - P = -Po2 (x 2 - 3y 2 - a2 + 2 b2)
ax
av
a == 2~ -
ay -
y
r xy
(ll.37)
a
2 2 2 2) P = -Po( 2 x + y - a - 2b
a
av)
== ~(aU + ay ax
= -
2PoXY 2 a
Owing to the biaxial symmetry of the problem, it suffices to model only a quadrant of the domain. A 5 X 3 nonuniform mesh of nine-node quadratic elements is used in the velocity-pressure model, and a 10 x 6 mesh of four-node linear elements and a 5 x 3 mesh of quadratic elements is used in the penalty model (see Fig. 11.3b). The nonuniform mesh, with smaller elements near the free surface (i.e., at x = a), is used to accurately approximate the singularity in the shear stress at the point (a, b) = (6, 2). The mesh used for the penalty model has exactly the same number of nodes as the mesh used for the velocity-pressure model. There are no specified TABLE 11.2
Comparison of the horizontal velocity u(x, 0) obtained using the penalty modelt and the mixed (velocity-pressure) model with the analytical solution
x
4·node
9·node 4·node
Mixed Mixed model model 9-node 4·node 9·node 8·node 9·node
1 2 3 4 4.5 5.0 5.25 5.? 5.75 6.0
0.0303 0.0677 0.1213 0.2040 0.2611 0.3297 0.3674 0.4060 0.4438 0.4793
0.0310 0.0691 0.1233 0.2061 0.2631 0.3310 0.3684 0.4064 0.4443 0.4797
0.6513 1.3062 1.9769 2.6730 3.0463 3.3956 3.5732 3.6874 3.7924 3.7862
Y= 1.0
Y= 100
0.6563 1.3165 1.9911 2.6960 3.0718 3.4347 3.6120 3.7388 3.8316 3.8362
y=lOS
0.7576 1.5135 2.2756 3.0541 3.4648 3.8517 4.0441 4.1712 4.2654 4.2549
0.7505 1.4992 2.2557 3.0238 3.4307 3.8029 3.9944 4.1085 4.2160 4.1937
0.7496 1.5038 2.2563 3.0213 3.4331 3.8249 4.0074 4.1450 4.2188 4.2659
0.7497 1.5031 2.2561 3.0203 3.4292 3.8165 3.9893 4.1204 4.2058 4.2364
Analytical solution 0.7500 1.5000 2.2500 3.0000 3.3750 3.7500 3.9375 4.1250 4.3125 4.5000
t The three-point Gauss rule for nonpenalty terms and the two-point Gauss rule for penalty terms are used for quadratic elements.
•
FLOWS OF VISCOUS INCOMPRESSIBLE FLUIDS
497
nonzero secondary variables in the problem. The velocities u(x, 0) obtained using the two models are compared with the analytical solution in Table 11.2. The influence of the penalty parameter on the accuracy of the solution is clear from the results. Next, a 12 X 8 mesh of linear elements and a 6 X 4 mesh of quadratic elements are used to evaluate the relative accuracies of the rectangular and triangular elements. The 12 X 8 mesh of linear triangular elements with full integration of [K 1] and [r] [see (11.35)] and selective integration (i.c., full integration of [K 1] and reduced integration of [K 2 ]) both give the same results for the velocity field. However, in both cases, erroneous results for pressure and stresses are obtained. The 6 X 4 mesh of quadratic triangular elements with full and selective integrations gives the same velocity fields, while the stresses and pressure are predicted to be the same at the same quadrature points. Both the 12 X 8 mesh of linear rectangular elements and the 6 X 4 mesh of nine-node rectangular elements give good results for velocities, pressure, and stresses. Figure 11.4 shows plots of the velocity u(x, y) for x = 4 and 6, and Fig. 11.5 shows plots of pressure Pix, y), for y = constant, computed using the quadratic triangular and nine-node rectangular elements. The pressure in the penalty model was computed using (11.34) with the 2 X 2 Gauss rule for the quadratic rectangular element and the one-point formula for the quadratic triangular element. If the pressure in the penalty model were computed using the full quadrature rule for rectangular elements, we should obtain erroneous values. The linear triangular element with full as well as reduced integrations gives unstable pressures, while the quadratic triangular element with one- or two-point rules yields good results. In general, the same quadrature rule as that used for the evaluation of the penalty terms in the coefficient matrix must be used to evaluate the pressure, and one should avoid using the linear triangular element.
The next example deals with the finite element analysis of a lubrication problem. Example 11.3 Flow of a viscous lubricant in a slider bearing. The slider (or slipper) bearing consists of a short sliding pad moving at a velocity u = Un relative to a stationary pad inclined at a small angle with respect to the stationary pad, and the small gap between the two pads is filled with a lubricant (see Fig. 11.6a). Since the ends of the bearing are generally open, the pressure Pothere is atmospheric. If the upper pad is parallel to the base plate, the pressure everywhere in the gap must be atmospheric y
y
2
2
01--.--,---,-.----.---0---
o
1
2
Velocity u(4, y)
2
3
4
5
Velocity u( 6, y)
FIGURE 11.4 Horizontal velocity distributions at x = 3 and 6 for the problem of a viscous incompressible fluid squeezed between parallel plates (the solid lines represent the analytical solutions and the circles finite element results with all elements for the meshes used). .
~
00
:!l
:z
~
m
8-1 0 -.-0....
8
0--0,
"t:J...
""
;:;
~ 6
o
\,
""'" ~,,-o.. ....... ~ \ '-0\
<.>
o
~
,
Analytical o FEM (R9) (y '" 0.1057)\
~
OJ
~
2
o
- - Analytical -0-- FEM (R9) (y
!
o
I
=;
1.8943)
I
~
'f.
~
I
2
3 Distance x
(a)
\ -
~
\
~ 2
~
Analytical FEM (T6) (y '" ~ )
o
O.l
.\ , i ' 6 5 4
I
~ \,
d I:l..
I
,
C;;
o"rl
-,
>:::4
I
\\~' \,: ,
~
::l
\.
~
:
~
'-',
o'\.. '<\
8=
I
~--'Q o \
~
~\
"
6
'"
:
\
"<,,
0 ..........
1;;
,,
\
4
""
~
!
'\\.
~
>:::
-.:£ ~
............ "
h
c
o
~
<,
I
\0\
;;:l
oz > t"""
\
- - Analytical --0-- FEM (T6)
~
~~"-~
."
:
\
(y '" ~)
o
= ~
\
~
'\
.
oI o
I
1
1
2
I
~
(
I
3 4 5 Distance x
...
~
I
.....
6
(b)
FIGURE 11.5 Comparison of the pressure variations computed using the finite element model and Nadai's analytical solution for a viscous fluid squeezed between two parallel plates (Example 1l.2). ('
fLOWS OF VISCOUS INCOMPRESSIBLE FLUIDS
499
y Slide block,
U
=
U
=0
(a) y
',~
0
-:-r-r<;:.
II = U =
0
I---r-_I----~r-
0)+
ty = 0
(P =
T
r_,..
h2
:-~~~I-~~~~=E:~~:r-r-
---I- r-I-I1-1-
r-r-t--
I
I
-I
L
<, U =
30,
U =
0
(b)
FIGURE 11.6 Finite element analysis of a slider bearing; (a) geometry and boundary conditions; (b) finite element mesh of linear quadrilateral elements.
(because dP/dx is a constant for flow between parallel plates), and the bearing cannot support any transverse load. If the upper pad is inclined to the base pad, a pressure distribution (in general, a function of x and y) is set up in the gap. For large values of Uo, the pressure generated can be of sufficient magnitude to support heavy loads normal to the base pad. Analytical solution. Since the width of the gap and the angle of inclination are in generai small, it can be assumed with good accuracy that the pressure is not a function of y. Assuming a two-dimensional flow and a small angle of inclination, and neglecting the normal stress gradient (in comparison with the shear stress gradient), the equations governing the motion of the lubricant between the pads can be written as dP (flu dx =-/1 a 2 ' y
u = u(x, y),
v=o
(11.38a)
with the boundary conditions
u = Uo at y =0 u =0,
for y =h(x)
(11.3gb)
500
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
j:
I'
where (11.3&)
\1
I;
The solution (u, P) of (11.38) is i,1
(11.39)
.. ,'
The shear stress is given by
au
ox>,
dP
1
= Il By = dx (y - "2h ) - Il
o;
h'
(11.40)
In our computations, we choose
h« = 2h, = 8 X 10- 4 ft, 4lbfs
Il = 8 x 1O-
fC
2
,
L= 0.36ft, U(l=30fts- 1
(11.41)
Finite element solution. It should be pointed out that the assumption concerning the pressure not being a function of y is not necessary in the finite element analysis. First, we use a mesh (mesh 1) of 18 x 6 linear quadrilateral elements to analyze the problem. The boundary conditions are given in Fig. 11.6(b). Figure 11.7 shows plots of the pressure distributions along the length of the bearing for various values of the penalty parameter. The converged pressure is slightly higher than the analytical solution. To obtain more accurate solutions, a - graded mesh (mesh 2) of 128 linear quadrilateral elements (153 nodes) (equivalently, 32 nine-node quadrilateral elements or 64 six-node triangular elements) is used. For this problem, the mesh of quadratic triangular elements gives unstable pressures (see Fig. 11.8), whereas both linear and quadratic elements give excellent results for velocities, pressure, and shear stress.
y
16,0 Analytical solution +
S
102
_
M
12,0
x
-6·1lY e •
~
1O~
}
(penalty) FEM 18 x 6 mesh
105 -IOU
.;)
.... 8.0
:;
:::'"'"
;... 1,
I:
4.0
1'1 , I
I! I
0.0 0,16 0.24 0.32 FIGURE 11.7 Influence of the penalty parameter on the variation of the pressure along the length of the slider bearing. A mesh of linear quadrilateral elements is used.
501
FLOWS OF VISCOUS INCOMPRESSIBLE FLUIDS
30.,.....-~--------------,
20
- - - Analytical solution
o
04 } FEM ('I = lOs) Mesh 2 - - T6 Y = fixed ---0--
-<>-- 09
~
10+--........---r--~----.--....----,--..------i 0.4 0.3 0.1 0.2 0.0 x
FIGURE 11.8 Variation of pressure P(x, Yo) along the length of the bearing (yo is the y coordinate of the first integration point of the first element): 04, four-node quadrilateral elements; 09, nine-node quadrilateral elements; T6; six-node triangular element.
Figures 11.9 and 11.10 give a comparison of the finite element solutions (for y =:: 108) with the analytical solutions for the horizontal velocity, pressure, and shear stress.
The last example of this section is devoted to the transient analysis of the problem of Example 11.2. Example 11.4 Time-dependent analysis of fluid squeezed between plates. Consider the unsteady flow of a viscous fluid squeezed between two parallel plates (see Fig. 40
4{)
--0--
Analytical FEM (09)
Analytical FEM (09)
30
30
u(O. y)
u(L. y)
20
20
10
10
0
0
2
4
y
(a)
6
8
10
0
0
2
Y
3
4
(b)
FIGURE 11.9 Comparison of the finite element solution u(xo, y) with the analytical solution of the slider bearing problem in Example 11.3 (the finite element solutionis obtained using 32 nine-node rectangular elements). , L-
5
502
FINITE ELEMENT ANALYSIS OF 1WO·DIMENSIONAL PROBLEMS
20
60 a-""""O"-()._~
-~ ---0--
'"0I 15
--0-
Analytical' Q4 Q9
50
M
X I:l."
... ., '" ... <)
~
...'"
10
0;
~
p.,
40
<)
b
30
<)
.c
VJ
20
5
..----------()---
10 0.2
x (a)
0.3
0.4
0 0.0
0.1
Analytical Q4 Q9
0.2
x (b) I'
0.4
0.3
....
FIGURE U.10 Comparison of the finite element solutions for pressure and shear stress with.the analytical solution of the slider bearing problem of Example 11.3: Q4, four-node quadrilateral element; Q9, nine-node quadrilaterial element. The pressure and shear stress are computed at the Gauss points closest to the bottom wall.
11.3a). The flow is induced by the uniform motion of the plates toward each other. The boundary conditions of the model are the same as shown in Fig. 1l.3(b). The initial boundary conditions are assumed to be zero. We use the 6 x 4 mesh of nine-node quadratic elements, employed in Example 11.2, to model the problem. Figure 1l.11(a) shows plots of the horizontal velocity u(6, y) as a function of y for various times and for two different time steps, and Fig. ll.ll(b) shows the evolution of the velocity u(6, 0) with time. The transient solution becomes steady around t = 1.5 (for a difference of 10- 3 between the solutions at two consecutive time steps).
11.6 SUMMARY Finite element models of the equations governing two-dimensional flows of viscous incompressible fluids have been developed. Two different types of finite element models have been presented: (i) the velocity-pressure finite element model, with (u, v, P) as the primary nodal degrees of freedom; and (ii) the penalty finite element model, with (u, v) as the primary nodal degrees of freedom. In the penalty function method, the pressure is calculated from the velocity field in the post-computation. The coefficient matrix in the penalty finite element model is evaluated using mixed integration: full integration for the viscous terms and reduced integration for the penalty terms (i.e., terms associated with the incompressibility or divergence-free condition on the velocity field). Both triangular and rectangular elements have been discussed. In general, triangular elements do not yield accurate pressure fields. The linear and quadratic quadrilateral elements are more reliable for pressure as well as for velocity fields in the penalty finite element model.
FLOWS OF VISCOUS INCOMPRESSIBLE FLUIDS
503
y
2.()..
1.5 o
1.0
•
o 0.5
•
oL--r--.-----.--.---~1.0
1/(6, O)A
4.0
o
2.0
I'lt = 0.1
at
= 0.01
0.0 L--.--.--.-----r---,---.------.---r-~ 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 Time t (b) FIGURE 11.11 Transient analysis of a viscous fluid squeezed between parallel plates: (a) velocity u(6, y) versus y; (b) velocity u(6, 0) versus t.
PROBLEMS 11.1. Consider (11.1) and (11.2) in cylindrical coordinates (r, (J, z). For axisymmetric viscous incompressible flows (i.e., where the flow field is independent of (J), we have
au 1 a p - = - - (ra r )
at r Br aw 1 a - = - - (ro
P at
r ar
a8 so., --+-+ f,
r
8z
aazz
re
)+_+-r az
1 a 8w --(ru)+-=o r Br
az
)z
(i)
(ii)
(iii)
504
ANITE ELEMENT ANALYSIS OF TWO·DlMENSIONAL PROBLEMS
where
au
u r
ar = -P+211,.. ar'
ao=-P+2p-,
aT< = P
au aw) ( az + ar
Develop the semidiscrete finite element model of the equations using the pressure-velocity formulation. 11.2. Develop the semidiscrete finite element model of the equations in Problem 11.1 using the penalty function formulation. 11.3. Write the fully discretized finite element equations of the finite element models in Problems 11.1 and 11.2. Use the (l' family of approximation. 11.4. The equations governing unsteady slow flow of viscous incompressible fluids in the (x, y) plane can be expressed in terms of the vorticity ~ and stream function
'I/J:
rz: a~
pV2~ =0,
{; - V2 1J! = 0
I'
Develop the semidiscrete finite element model of these equations, Discuss the meaning of the secondary variables. Use the ll' family of approximation to reduce the ordinary differential equations to algebraic equations. r »:
/
/
/
//
/
/
11=1 r----"
f------
v=O =0
~
t,
1----+ Iy =
0
f------
~?';:~!77
I : _7 8 r------. 1 2
v
IA/'
9
lI=v=O
3 4 51
= Ix =
0
6
FIGURE PH.S
/
u
= 0, v = -1
T Ix
u=O Iy
=
°
= '» = 0
0.6 8 1 r/ / /
2
3
5
4
r/ / / . ' // / / / / / / / / /
1.2 II -
FIGURE Pll.6
V -
0
6 '/ / / ~
1 7
FLOWS OF VISCOUS INCOMPRESSIBLE FLUIDS
I
505
Fixed wall
"
Uniform flow
.1...= 1 L
No boundary stress
--r-~ '" 20 ~ L -'---
~
Line of symmetry
FIGURE PH.7
11.5-11.7. For the viscous flow problems given in Figs. Pll.5-PIL7, give the specified primary and secondary degrees of freedom and their values. 11.8. Consider the flow "Of a viscous incompressible fluid in a square cavity (Fig. PIl.S). The flow is induced by the movement of the top wan (or lid) with a constant velocity It = 1.0. For a 4 X 4 mesh of linear elements, identify the primary and secondary degrees of freedom. 1/=1,V=O ~
~
~
~
;..- [/ = 0
11=0 U
=
u=o
~
0 6 /
1
3
2
4
~ ~ 5/
'//// '/// c/////////
FIGURE Pl1.8
I/=U=O
O.
Iy =
II
0
=
T'\
I
8m
y
1/
I· II
= 1
U
=0 f---
= U
II
I:
.
10 in
= O\-r--
6in
i--
~ I
\.
V
=
I
I IL
I
0, Ix = 0 8'III .
•
I I I
-., I I
II
I I I L..--.~_-.L
I FIGURE Pll.9
= V =
0
506
FINITE ELEMENT ANALYSIS OF TWO· DIMENSIONAL PROBLEMS
11.9. Consider the flow of a viscous incompressible fluid in a 900 plane tee. Using the symmetry and the mesh shown in Fig. Pl1.9, write the specified primary and secondary variables for the computational domain. 11.10. Repeat Problem 11.9 for the geometry shown in Fig. PH.IO. y
t Ii
,/
u =
11 --
°
11 =
T Lx
11=0
t, =
= 1
°
10 em
~~2~:~o
H12cm
Ii
=
11
°
= o_f-
101m
I
f-o--14cm,f--l u
= 11 = 0
FIGURE Pll.10
REFERENCES FOR ADDITIONAL READING (For references on fluid mechanics, see References for Additional Reading in Chapter 8.) Babuska, I.: "The Finite Element Method with Lagrange Multipliers," Numerical Mathematics, vol. 20, pp. 179-192, 1973a. ~~-: "The Finite Element Method with Penalty," Mathematics of Computation, vol. 27, pp. 221-228, 1973b. Bird, R. B., W. E. Stewart, and E. N. Lightfoot: Transport Phenomena, John Wiley, New York, 1960. Ciariet, P. G.: The Finite Element Method for Elliptic Problems, North-Holland, Amsterdam, 1978. Courant, R: "Variational Methods for the Solution of Problems of Equilibrium and Vibrations," Bulletln of the American Mathematical Society, vol. 49, pp. 1-23, 1943. Hestenes, M. R.: Calculus of Variations and Optimal Control, John Wiley, New York, 1966. ~~-: Optimization Theory: The Finite Dimensional Case, John Wiley, New York, 1975. Hughes, J. T. R.: The Finite Element Method (Linear, Static and Dynamic Finite Element Analysis), Prentice-Hall, Englewood Cliffs, NJ, 1987). Ladyzhenskaya, O. A.: The Mathematical Theory of Viscous Incompressible Flow, 2d ed, (translated from the Russian by R. A. Silverman), Gordon and Breach, New York, 1969. Nadai, A.: Theory of Flow and Fracture of Solids, vol. II, McGraw-Hili, New York, 1963. Oden, J. T.: "RIP methods for Stokesian flows," in FInite Element Method ill Flow Problems, vol, IV, eds. R. H. Gallagher, O. Co Zienkiewicz, J. T. Oden, and D. Norrie, John Wiley, London, 1982. ~-- and G. F. Carey: Finite Elements, Mathematical Aspects, vol. IV, Prentice-Hall, Englewood Cliffs, NJ, 1983. Polyak, B. T.: "The Convergence Rate of the Penalty Function Method," USSR Computational Mathematics and Mathematical Physics, vol. 11, pp. 1-12, 1971). Reddy, J. N.: "On the Accuracy and Existence of Solutions to Primitive Variable Models of Viscous Incompressible Fluids, International Journal of Engineering Science, vol, 16, pp. 921-929, 1978.
FLOWS OF VISCOUS INCOMPRESSIBLE FLUIDS
507
- - : "On the Finite Element Method with Penalty for Incompressible Fluid Flow Problems," in The Mathematics of Finite Elements and Applications Ill, ed. J. R. Whiteman, Academic Press, New York, 1979a. - - : Applied Functional Analysis and Variational Methods in Engineering, McGraw·HilI, New York, 1986; Krieger, Melbourne, FL, 1991. Schlichting, H.: Boundary-Layer Theory ·(translated by J. Kestin), 7th ed., McGraw-Hili, New York, 1979.
CHAPTER
12 BENDING OF ELASTIC PLATES I'
12.1 INTRODUCfION The word "plate" refers to solid bodies that are bounded by two parallel planes whose lateral dimensions are large compared with the separation between them. Geometrically, plates are similar to the plane elastic bodies considered in Chapter 10; however, plates are subjected to transverse loads (i.e., loads perpendicular to the plane of the plate). A plate is a twodimensional analog of a beam. Therefore, the deformation of a plate can be described by classical plate theory or by first-order shear deformation theory. Classical plate theory is an extension of the Euler-Bernoulli beam theory to plates, and is known as the Kirchhoff plate theory. First-order shear deformation theory is an extension of the Tirnoshenko beam theory, and is known as the Hencky-Mindlin plate theory. A review of these plate theories and other refined theories can be found in Reddy (1984, 1990a, b). Classical plate theory is based on the assumptions that a straight line perpendicular to the plane of the plate is (1) inextensible, (2) remains straight, and (3) rotates such that it remains perpendicular to the tangent to the deformed surface (see Fig. 12.1a). These assumptions are equivalent to specifying Ez
508
= 0,
Ey z
= 0,
Ex z
=0
(12.1)
!lENDING OF ELASTIC PLATES
u
509
I
a
\ ~W
C
(a)
-Qj
~~-w CWr x z (-w",)
(b)
Undeformed cross-section
Deformed cross-section
FIGURE 12.1 Geometry of the undeformed and deformed (r, z) plane for (a) classical plate theory (CPT) and (b) first-order shear deformation plate theory (FSDT).
In the first-order shear deformation theory, the normality condition, assumption (3), is removed (see Fig. 12.1b), resulting in a constant state of transverse shear strains through the thickness and zero transverse normal strain: Ex z
= Exz(X, y)
(12.2)
In this section, we briefly review the governing equations of these two theories and develop their finite element models. Let us consider a plate made up of several finite elements. The volume of a typical element is v e = Qe X (-!he, .4he), where Qe denotes the midplane of the element and he is its thickness. The boundary of Qe is denoted by P. A plate of nonuniform thickness can be approximated by elements of uniform thickness. We assume that the midplanes of all elements are in the same plane Q, the midplane of the plate.
510
FINITE ElEMENT ANALYSIS OF nVO-D1MENSIONAL PROBLEMS
12.2 CLASSICAL PLATE MODEL 12.2.1 Displacement Field The classical theory of plates is based on the displacement field (see Fig. 12.1a)
aw
Ul(X,
y, z, t)
U3(X,
y, z, t) = w(x, y, t)
= u- z
ax'
aw
uix, y, z, t) = v - z ay
(12.3)
where (Ul' U2' U3) denote the displacements of the point (x, y, z) along the x, y and z directions, and (u, v, w) represent displacements of a point on the midplane (x, y, 0) at time t. The equations of motion of the plate can be derived using the principle of virtual displacements [see Reddy (1984»), which also provides the weak form for the finite element model. For e linear thiory based on infinitesimal strains and orthotropic materials, the in-plane displacements (u, v) are uncoupled from the transverse deflection. The in-plane displacements (u, v) are governed by the plane elasticity equations discussed in Chapter 10. Hence, we discuss only the equations governing the (bending) deflection wand the associated finite element model. The linear strains due to the displacement win (12.3) are
{
:: } = - z _ 2E.ty
~:
(12.4)
a2 w
2-axay
and
E.tz
= 0,
Ey z
= 0, and
Ez
= O.
12.2.2 Virtual Work Statement The principle of virtual displacements for the time-dependent case is 0=
f [ Z2(CYOW &3w + aow &3w ) + v- P
ax ax at2
ay ay at2
+ OE.t ax + OEy ay + 2 OExy aXY ]
-L
Q'
!Owdxdy-J
Yr<
2w Ow a P at 2
dV
(-M aow +VnchV)ds an n
(12.5)
Here the first three terms represent the virtual work done by the inertial forces in the three coordinate directions, while the remaining terms in the volume integral represent the virtual strain energy stored in the plate. The last two integrals, one defined on the midplane Qe and the other on the boundary I"',
\
BENDING OF ELASTIC PLA YES
511
I Use the right-hand- rule convention to determine the moment direction (shown with double arrow)
f, z Boundary conditions for plates Clamped
lV=O
rps =
(}
rp" =
(}
Simply supported 1
lV=O Mns =(} M,,=O
Simply supported 2
Free
w=O
rps =
Qn =(}
Mns=O Mn=O
(}
M,,=O
FIGURE U.2 Geometry, moment, and shear force resultants, and various boundary conditions for a plate element.
denote the virtual work done by the transversely distributed load f and edge loads M" and Y" (see Fig. 12.2). Since y e = ge X (-!he> !h e ) , and the displacements, strains, and stresses are separable into functions of x and y alone and functions of z, F(x, y, z) = g(x, y)f(z)
(12.6a)
we can write the volume integral as
(.) dz dx dy 1.v< (.) dY = L Jhl2 -hl2
(12.6b)
Q<
Substitution of (12.3) and (12.4) for virtual displacements and strains into
512
FINITE ELEMENT ANALYSIS OF nvO·DlMENSIONAL PROBLEMS
(12.5) and integrating with respect to z, we obtain
O=
i(
C?-W
s:
<J3w
oDw ox
BDw oy
<J3w
uwlo-+-~12--+--12--
Q'
of c?-ow
ox
of
oy
c?-ow
o2<5w
of )
-M - -2- M ---2M - - - f o w dxdy "ox y oy2 "y ox oy
-f, (-M o:~v + ~ n
<5w)
ds
(12.7)
where (M", My, M"y) are the bending moments (see Fig. 12.2), ll l2
My =
f
ll l2
ayzdz,
-1112
M"y =
f
a"yzdz
-1112 /
and 10 and 12 are the mass moments of inertia, 1lt2
10=
1
h l2
12 =
pdz=ph,
-1It2
f
(12.8)
""
,
pZ2 dz = -b.ph 3
(12.9)
-1It2
Note that M; and Mns denote the normal and twisting moments on an edge, and Vn is the shear force. It can be shown that, for a linear orthotropic material, the bending moments are related to the derivatives of the transverse deflection w: Mx = - ( D n
c?-w +D -c?-w) - ' I2 ox 2 oy 2
-
(12.10)
C?-W
M =-2D66 - xy ax oy
where D jj are the plate rigidities, _ D 11_ D 12 -
E lk 3 , 12(1 - VI2 V2I) V12
12(1 -
E2h 3
(12.11)
,
V12V21)
The boundary forces M; and Vn can be related to MX J My, and M"y by
(12.12)
BENDING OF ELASTIC PLATES
513
where (nx , ny) are the direction cosines of the unit normal on the boundary reo Substituting (12.10) into (12.7) yields the weak form of the problem:
0=
1[
ac5w ctw ac5w aJw ~-+-l~Q' ax 2 ax at2 ay 2 ay at2 2 2c5w 2 a2w D a a (a w OZW) a2c5w + ( D 11 ax2 + 12 ay2 ax2 + D 12 ax2 + D 22 ay2 ay2 a2w OZc5w - ow] ] dxdy +4D66 - - - ax ayax ay -a2W 0 at2
bw L - + - 1
w)
-fp (-M a:~v + ~ c5w) n
(12.13)
ds
It is informative to note that the differential equation governing w is
(12.14) Note that the expressions in parentheses in the first three terms are the bending moments -M.." -My, and -Mxy, respectively [see (12.10)]. Of course, we can construct the weak form of (12.14) using the three-step procedure. We obtain
(12.15) where v denotes the weight function, which can be interpreted as the first variation, c5w = u. Next, we convert the derivatives with respect to the rectangular coordinates (x, y) to those with respect to the local, normal and tangential, coordinates (n, s), We use the identities
au ax
au an
au Yas'
-=n - - n x
au
au
av
as
Yan
-=n - + n -
ay
x
(12.16)
514
FINITE ELEMENT ANALYSIS OF T\VO~DlMENSIONAL PROBLEMS
in the boundary integrals of (12.15). The boundary integrals become
-frv -o, ds + frv (:~ M + ~~ M n
m)
ds
(12.17)
where Oil' M", and M ns are the quantities defined in (12.12). The second term in the second integral is integrated by parts to yield the final expression
J [ V(~QIl +~ oMm )
~lr.
~
ov Mil ] ds on
(12.18)
The expression in parentheses is denoted by V"' and its specification is known as the Kirchhoff free-edge condition. We assumed that [vMmJs = O.
n.2.3 Finite Element Model An examination of the boundary terms in the weak form (112.13) suggests that the essential boundary conditions involve specifying the transverse deflection w and the normal derivative of w, which constitute the primary variables of the problem (cf. the Euler-Bernoulli beam model). Hence, the finite element interpolation of w must be such that w, ow/an, and ow/os are continuous across the interelement boundaries. Note that a/an and 0/ os are related to the global derivatives a/ax and a/ay by the relations [the inverses of those in (12.16)]
a
a
a
-an =n:c~+nY-a oX y'
'a a 0 -=n as :c oy- n Yax
(12.19)
Thus, the primary variables at the nodes should be [this also follows directly from (12.15)] w,
aw aw ax' oy
Finite elements that require continuity of wand its first derivatives are called CI elements. Suppose that IV is interpolated by expressions of the form w=
L"
tllP;(x, y)
(12.20)
;=1
where tl; denote the nodal values of wand its derivatives, and cfJ;(x, y) are the Hermite interpolation functions. A rectangular element with four nodes, with (iv, aw/ax, aw/oy) at each node, requires the 12-term (n = 12) polynomial approximation of w to obtain expressions for cfJ;: w = al + a2x + a3Y + a4XY + asx 2 + a6y2
+ a7x2y + a8xy2 + a9x3 + alOy3 + allx 3y + a12xy3
(12.21)
BENDING OF ELASTIC PLATES
515
The polynomial is 'not a complete fourth-order polynomial; it is a complete third-order polynomial. For a three-node triangular element, the nine-term (n = 9) polynomial is selected to obtain tPj:
w = Ul + a2X + a3Y + U4XY
+ Qsx2 + U6y2 + a7(x 2y + xy2) + a8x3 + U9y3
(12.22) This is an incomplete third-order polynomial, because x 2 y and y 2 x do not vary independently. Some comments are in order on the interelement continuity of wand aw/ an for the four-node rectangular element (n = 12) and three-node triangular element (n = 9). First let us consider the rectangular element. We note from (12.21) that w varies as a cubic along any line x = constant or y = constant. Along a given side, there are two nodes and two values (wand its normal derivative) per node to define the cubic variation uniquely. Hence, w is uniquely defined along the element boundary and is continuous along interelement boundaries. The normal derivative, say, aw/ax on a line x = constant, also varies as a cubic function of y along the side. Since only two values of Jw/Jx are available on the line, the cubic variation cannot be uniquely defined, and the normal slope continuity is not satisfied. In addition, ~w / ax By is not single-valued at the corner points of the element. Elements that violate any of the continuity conditions are known as nonconforming elements. Thus the four-node rectangular element with w represented by (12.21) is a nonconforming element. We denote it as CPT(N). Despite this deficiency, the element is known to give good results. A similar discussion leads to the conclusion that the three-node triangular element is nonconforming. In addition, the triangular element is found to have convergence problems and singular behavior for certain meshes. The triangular plate bending elements will not be discussed in this study. The four-node element with (w, aw/ax, Jw/Jy, ~w/ax By) as nodal degrees of freedom requires a complete quartic polynomial (obtained from the tensor products of the 1-D Hermite cubic polynomials). This element is a conforming element, and it is denoted as CPT(C). The conforming and nonconforming rectangular plate elements are shown in Fig. 12.3(a). The interpolation functions for the two rectangular elements are listed in Table 9.1. For further discussion on various plate bending elements, the'reader is referred to Zienkiewicz and Taylor (1991) and references therein. Substitution of (12.20) for wand <5w = tPi (i = 1, 2, ... ,n) into (12.13) gives the finite element model [M"]{.&"} + [K"]{d"} = {!"} + {Q"} (12.23a) where
(12.23b)
, I
L
516
FlNITE ELEMENT ANALYSIS OF nvO·DIMENSIONAL PROBLEMS
4
3
3 Hermite cubic element
(Conforming)
(Nonconforming)
1
2
2
2
(
4
Hermite cubic element
w)
aw aw _ a_ w,_._, a.t ay ax ay
IV,
(a)
(
~,
alV
ax
)
ay
at each node
Lagrange bilinear element
(w, >,n 9y) at each node
Lagrange biquadratic element
o FIGURE 12.3 Finite elements for Ca) displacement and (b) shear deformation models of plates.
(b)
M!'.= 'I
f [I. cj>.cj>. + I (acj>j acj>j + acj>j acj>j)] dx dy Jge 0 ' I 2 aX ax oy ay
n = L/cj>j dx dy, o: = £J -M
n
~~i + ~lcj>j) ds
The rotatory inertia, 12 = Uph 3 , where h is the plate thickness, is neglected in most books. This completes the development of the classical plate bending finite element.
12.3 SHEAR DEFORMABLE PLATE MODEL 12.3.1 Displacement Field Of all the shear deformation plate theories available in the literature [see Reddy (1989, 1990a, b) for reviews], first-order shear deformation theory (FSDT) is the one most commonly used in the modeling of thick plates. The first-order theory is based on the displacement field (see Fig. 12.1b)
!
Ul
= U + zcj>n
U2
=
V
+ zcj>y,
U3
= HI
I
(12.24)
where (u, v, w) are the displacements of a point (x, y, 0), and cj>:c and cj>y are the rotations of the transverse normal about the y and -x axes, respectively. Once again, we develop the equations governing the bending deflections (w, ¢:c, cj>y) only, because the in-plane displacements (u, v) are uncoupled from (w, ¢:c, ¢y).
BENDING OF ELASTIC PLATES
517
The bending strains associated with (12.24) are
Ex Ey 2Exy 2Exz 2Eyz
::=
z O¢x/OX ZO¢y/OY Z(a¢x/ay + a¢y/aX) lfJx + aW / ax ¢y + aw/ay
(12.25)
Note that the transverse shear strains are nonzero and e, = O.
12.3.2
Virtual Work Statement
Substituting the displacement field (12.24) and strains (12.25) into the statement of the principle of virtual displacements, we obtain
f ( Z~¢x Z~lfJy J2w 0::= lv. c5¢x pz otZ + 6¢y pz aP + 6w p at2 + 6Ex ax + 6Ey ay + 2 6Exy o.; + 2 6Exz o., + 2 6Eyz ayz) dV -
-£. =
(6ifJ" M" + 6lfJs Mns + 6w Qn) ds
i[ Q<
fa. c5w f dx dy
2¢x (a aZifJy) c)c5¢x a6¢y 10 OW-a Z +12 OifJx-a z + Opy-Z- +Mx--+My - t t at ax oy
J2w
+ u; (a:: + a~:y) + Qx( ()¢x + a:xw) x
+ Qy( c5¢y +
-£.
a:;v) - {)w f] dx dy
(OifJ" M" + 6¢s Mns + c5w Q,,) ds
(12.26)
where Mm Mns , and Qn are defined by (12.12), and
(12.27)
518
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
Here k denotes the shear correction coefficient (k = ~). This coefficient is introduced to account for the discrepancy between the distribution of transverse shear stresses of the first-order theory and the actual distribution (see Section 4.4 on the Timoshenko beam element). Equation (12.26) contains three weak forms for the three displacements (w, CPx>
0=
1( fl'
0=
a2w+ Qr--+Qy---jow aow aow ) dx dy>at ax ay
/OOW~2
iPtPr t
L(
aocpx
aocpx
ax
ay
.
-f
)
(12.28)
6cpx (Mnllx - M,..,ll y) ds ~
P'
1( fl'
owQnds
P'
/20
fl'
0=
t
OZCPy
'"
aocpy
a6
The governing differential equations of first-order shear deformation theory are
aQr+ aQY+j=L OZw
ax
oy
0
ot2
aMx + aMxy _ Q = I ci<pr ax ay x 2 at2
(12.29)
aMxy + aMy_ Q = 1 OZ¢;y 2 ax ay y at2 where (Qx, Qy, u; u.; My) are defined in (12.27). The three-step procedure of developing weak forms can be used to develop the weak forms of (12.29), which will be equivalent to those listed in (12.28). To see the equivalence, the following identities must be used:
Mn Mnlly + Mnsllr = Mxyllr + Mylly "" Mm Mnnr - Mnslly = Mrnr + Mxyny ~=~~-~~,
i'2
(12.30)
~=~~+~~
12.3.3 Finite Element Model We note from the boundary integrals that the primary variables of the theory are (w, CPr, ¢y) and the secondary variables are (Qn, Mn> Mns ) [or a linear combination of QrJ Qy, u., My and Mry; see (12.12)]. Therefore, the Lagrange interpolation of w, CPx and
BENDING OF ELASTIC PLATES
We assume finite element interpolation of w,
tPx,
and
form
111
111
tPx = 2: SJ1jJJ, ,
tPy in the
519
tPy = 2: Sf1jJJ
J=I
(12.31)
j~1
where 'ljJJ and 'ljJJ are interpolation functions used for wand (tPx, tPy), respectively. In general, 1jJJ and 'ljJJ are polynomials of different degree. However, in the present study, we take 1jJf = 1jJJ= 'ljJj' This choice, as discussed for the Timoshenko beam element, requires the use of reduced integration for the evaluation of stiffness coefficients associated with the transverse shear strains. Substituting (12.31) into (12.28), we obtain the finite element model
[Mll ]
[0] [M
22
[ symmetric
]
]{{W}} [[KllJ [K 12l [K 13]]{ {W}} {{F I}}
[OJ [0] [M 33 ]
{SX} {sy}
+
[K 22 ] [K 23 ]
{SX}
[K33 ]
{SY}
symmetric
=
{F 2 }
{F 3 }
(12.32a) where
M~I = IoMij ,
Mf! = M~3 = 12Mij ,
Mij
= r 1jJi'ljJj dx dy lQ'
K!1 = f (Ass o'ljJj o1jJj + A« 01jJi o'ljJj) dx dy ij lQ' ox ox oy oy
Kij12 =
i
Q'
22 Kij =
A 55 01jJi - 'ljJj dX dy, 0X
Kij13 =
oX ox
Y
Q'
L(D uo1jJj o'ljJj --+D Q'
L A «-0 01jJi 1jJj dx dY
o'ljJj o1/Jj oy oy
66--+A
) ss1/Ji1jJj dxdy
(12.32b)
K?-! = ( (D o1/Jj o'ljJj + D o'ljJj O1jJj) dx dy II 33 _
K jj -
In-
12
ox oy
r (D
66
CJ1/Jj o1jJj o'ljJj a'ljJj ) ox ax + D n oy oy + A«1/Ji1jJj dx dy
In'
Fj = ( ftJIi dx dy
In·
66
oy ox
+ 1 Qn 1jJi dx, Yr..
F~ = 1
Tr<
£In tJli dx,
The element stiffness and mass matrices in (12.32a) are of order 3n X 3n, where n is the number of nodes per element. When the four-node rectangular element is used, the element matrices are of order 12 X 12, while they are 27 X 27 for the nine-node element (see Fig. 12.3b).
12.3.4 Shear Locking and Reduced Integration It should be noted that the inclusion of the transverse shear strains (i.e., terms
involving A« and Ass) in the equations presents computational difficulties when the side-to-thickness ratio of the plate is large (i.e., when the plate
L
520
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
becomes thin). For thin plates, the transverse shear strains 2E.rz = CP.r + aw/ax and 2Ey z = CPy + aw/oy are negligible, and consequently the element stiffness matrix becomes stiff and yields erroneous results for the generalized displacements (w;, S;, Sr). This phenomenon is known as shear locking, and it can be interpreted as being caused by the inclusion of the following constraints into the variational form [see Reddy (1979, 1980) and Averill ,and Reddy (1990, 1992)]: A-. '/'.r+
oW = 0, ox
ow
cPy +-=0 oy
(12.33)
The energy due to transverse shear strains (i.e., the penalty term) in the total potential energy of the shear deformable plate is given by (12.34)
The locking observed in the displacement finite element model of the first-order theory is the result of the fact that the discrete form of (12.33) is not satisfied when the plate is very thin. Of course, when the plate is thick, the relations (12.33) do not have to be satisfied, and the locking does not occur (at least, it is not severe enough to give completely wrong results). However, for thin plates, the constraints (12.33) are valid but not satisfied in the numerical model, and we therefore face the same problem as in the Timoshenko beam model. Therefore, we use the same remedy as before: reduced integration to evaluate stiffness coefficients involving the transverse shear terms. For example, when a four-node rectangular element is used, the one-point Gauss rule should be used to evaluate the shear energy terms (Le., terms involving A 44 and Ass), while the two-point Gauss rule should be used for all other terms. When an eight- or nine-node rectangular element is used, the two- and three-point Gauss rules should be used to evaluate the shear and bending terms, respectively. For the triangular elements, we use one- and three-point integrations for transverse shear stiffnesses in the linear and quadratic elements, respectively. However, in the present study, we shall not consider triangular plate bending elements.
12.4 EIGENVALUE AND TIME-DEPENDENT PROBLEMS Equations (12.23a) and (12.32a) can be reduced to appropriate forms depending on the type of analysis. For static analysis, we set the inertia term {Li.} equal to zero and solve the problem
[K]{il} = {F} For natural vibration problems, we replace the inertia term by {X} = -w 2{il } (or_ {il} = {ilo}e-;W~
(12.35)
BENDING OF ELASTIC PLATES
521
Then (12.23a) or (12.32a) takes the form of an eigenvalue problem: .([ K e ]
-
w 2 [M e ]) { Llo} = {OJ
(12.36)
For buckling analysis (i.e., to determine the value of the in-plane compressive force at which the plate buckles), we replace the mass matrix in (12.36) with the stability matrix [G], and w 2 with the buckling load A. This expression comes from the in-plane force due to the nonlinear inplane strains (underlined):
e x
2 ax
=! (aw)2 _ z a w2' 2
ax
2 ay2'
=! (aw)2 _ z a w
£ y
2
ay
awaw a:lw 2£ =---2z~xy ax ay ax ay
(12.37)
For classical plate theory, [0] is given by G; = if
L [Nx a1>; a1>j + ill a1>i a1>j + Nx (a1>; a1>j + a
(12.38)
Y
g<
where fix, Ny, and N xy are the applied in-plane force resultants. The eigenvalue A represents the ratio of the actual buckling load to the applied in-plane forces: A=
s.t Nx = Ny/Ny = Nxy/Nxy
(12.39)
For first-order shear deformation theory, only [MlI ] in (12.32a) is replaced by [G] (with 1>i = 1/',), and [M 22] and [M 33] are set equal to zero. Hence, the stability matrix is not positive definite, requiring special eigenvalue solvers for the first-order theory. To solve a time-dependent problem, one must approximate the time derivatives in (12.23a) or (12.32a) to obtain algebraic equations relating {Ll} at time t + M to {A} at time t, where /1t is the time step. In the Newmark integration scheme, the vectors {Li} and {.1.} at time t = (s + 1) Llt are approximated by the expressions
{A}S+l
= {A}s +
«1- cx){Li}s + CX{4}S+1) M
{Ll}s+l = {A}, + {.1.}s M
+ H(l- y){Li}s + y{LiL+l)(At?
(12.40)
where a' and yare parameters that control the accuracy and stability of the scheme, and the subscript s indicates that the vectors are evaluated at the sth time step (i.e., at time t = sAt). Rearranging (12.23a) and (12.40), or (12.32a) and (12.40), we obtian [see (8.171)-(8.174)] (12.41a) where {AL+l denotes the value of {A} at time t = (s + 1) M, s being the time
522
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
step number, and
[K]s+l = [K]s+1 + a)[M]s+l {F}s.S+l = {F},+l + [M]s+1(a3{Li.}s + a4{A}s + as{tl}s) 2 1 a3 = y (Li.t?' a4 = a3 Li.t, as =;= 1
(12.41b)
y-
Once the solution {Li.} is known at time ts+l = (s + 1) /1..(, the first and second derivatives of {A} (velocity and acceleration) at ts + 1 can be computed from
{L\}S+l = aJC{Li.}S+l - {/I..},) - a4{A}s - asUi}s, {A}s+l = {A}s + a2{tl}s + a1{L\}s+1 where aj = ex Li.t and a2 = (1- ex) Li.t.
(12.42)
12.5 EXAMPLES Here we consider several numerical examples of plate bending, involving plates with different boundary conditions. Figure 12.2 shows various types of boundary conditions on an edge of a plate element. When the edge is parallel to the x or y axis, the normal and tangential components of a variable become the y and x (or x and y) components, respectively, of the variable. For classical plate theory, tPn and 4>s in Fig. 12.2 must be replaced with -aw/an and -aw /as, respectively. In all cases, the stresses are computed at the reduced Gauss points [see Barlow (1976, 1989)]. The first example deals with the effect of reduced integration on the deflections and stresses of a simply supported plate as computed using the shear deformable plate element. Example 12.1. Consider a simply supported, isotropic, square plate subjected to a uniformly distributed transverse load to. We shall solve the problem using the classical and shear deformable plate bending elements. Owing to the biaxial symmetry, we need model only a quadrant of the plate. The essential boundary conditions at simply supported edges (x =!a and y = !a), for the first-order theory, are (see Fig. 12.4) IV = IV =
tPy = 0 0, tPx = 0 0,
at
x = !a
at y =
1a
(12.43)
The essential (or geometric) boundary conditions along the symmetry lines (x = 0 and y = 0) are
tPxCO, y) = tPy(x, 0) =
(12.44)
0
The natural or force boundary conditions, which enter the finite element equations through the forces {F1 } , are Qn = 0
along x
=0
along y
M
I
My = 0 along
=0 =0
x =:0
and y
=0 !a
and x = and y
= 1a
(12.45)
--"
BENDING OF ELASTIC PLATES
523
y
y
r a
1
x
4>/= y
w..
=
0
4>" 4>;
= =
0
a
0
aw'
=0
ax ay
ax
w'=
a
~=o
ax
aw'
=
a
=0 aw*
ay
ax ay
= 0
FIGURE 12.4 Geometry and coordinate system used for a square plate: CPT, classical plate theory; FSDT, first-order shear deformation theory. Boundary conditions for simply supported (quantities with an asterisk only) and clamped edges are shown for both theories. Boundary conditions along the lines of symmetry are also shown.
The essential boundary conditions for a quadrant, when using the classical plate element, are shown in Fig. 12.4. For a linear (four-node) rectangular element of shear deformation theory, the contribution of a uniformly distributed load fa is given by (12.46) where h" and hy are the plane-form dimensions of the element. This contribution goes to the first, fourth, seventh, and tenth nodal degrees of freedom of the element (corresponding to w). For classical plate theory, the nodal forces are computed using the definition (12.47) Except for the nodal forces given by (12.46) and (12.47), all other specified nodal forces of the problem are zero. The effect of reduced integration, thickness, and mesh on the center deflection and stress is investigated, and the results are presented .in Table 12.1. The nondimen-
524
I
I
FINITE ELEMENT ANALYSIS Of TWO·DlMENSIONAL PROBLEMS
I
I
TABLE 12.1
The effect of reduced integration, thickness, and mesh refinement on the center deflection and stresst of a simply supported, isotropic (v = 0.25), square plate under a uniform transverse load to (Example U.l) tX1
2X2 linear
linear
a/h
Integration
10 20
40 50 100 CPT(N) CPT(C)
F M F M F M F M F M
iv
4x4
2x2
linear
quadratic
Exact];
II'
0.964 3.950 0.270 3.669 0.0695 3.599 0.0045 3.590 0.011 3.579 5.643 4.638
0.0182 0.0953 0.0053 0.0954 0.0014 0.0953 0.0001 0.0953 0.0002 0.0953 0.2599 0.2616
2.474 4.712 0.957 4.524 0.279 4.375 0.182 4.472 0.047 4.465 4.857 4.574
0.1185 0.2350 0.0476 0.2350 0.0140 0.2349 0.0092 0.2350 0.0024 0.235 0.2738 0.2714
3.883 4.773 2.363 4.603 0.9443 4.560 0.6515 4.555 0.182 4.548 4.643 4.570
0.216 0.2661 0.1375 0.2660 0.0558 0.2661 0.0386 0.2660 0.0108 0.2661 0.2758 0.2750
4.770 4.799 4.570 4.633 4.505 4.592 4.496 4.587 4.482 4.580
0.2899 4.791 0.2762 0.2715 0.2683 0.2715 4.625 0.2762 0.2699 4 584 0.27141 .
0.27~2
0.2667 4579 0.2762 0.2714 . 0.2664 4 572 0.2762 0.2715 . 4.570 0.2762 4.570 0.2762
w~ wEh3 xl02/foa4, iT, ~ a,(A, A, ±4li)li2/foa', A ~ ~a (1 x 1 linear), ia (2 x 2 linear), fta (4 x 4 linear), O.05283a (2 x 2 quadratic). t From Reddy (1984). t
sionaIized center displacement and stress are defined as
I"
w(O, 0)E,h
-r 4 loa
y
3
X10'
- = (~)2 ~ (A A I; ) -r 0, , '±2 I a 10
00<
(12.48)
where A is the Gauss-point location with respect to the (x, y) system located at the center of the plate:
A
2x2Q4
4X4Q4
2x2Q9 .
O.l25a
O.0625a
0.05283a
where Q4 denotes the four-node rectangular element and Q9 the nine-node rectangular element. In Table 12.1, F denotes full integration for all terms, and M denotes mixed integration: full integration for bending terms and reduced integration for the shear terms. The following observations can be made from the results of Table 12.1: 1. The nine-node element gives virtually the same results for full (3 X 3 Gauss rule) and mixed (3 X 3 and 2 x 2 Gauss rules) integrations. However, the results obtained using the mixed integration are closest to the exact solution. 2. Full integration gives less accurate results than mixed integration, and the error increases with an increase in side-to-thickness ratio. This implies that mixed integration is essential for thin plates, especially when modeled by lower-order elements.
BENOING OF ELASTIC PLATES
525
3. Full integration results in smaller errors for quadratic elements and refined meshes than for linear elements and/or coarse meshes. 4. The conforming plate finite element CPT(C) gives accurate results when compared with the nonconforming plate element CPT(N).
Table 12.2 gives the natural frequencies of the simply supported plate, obtained using various elements and meshes. Note that classical plate theory overpredicts the natural frequencies.
The next example deals with a clamped square plate under a distributed transverse load. The mixed integration rule is used in the evaluation of stiffness coefficients of the FSDT model.
Example 12.2. Consider an isotropic (v = 0.3) square plate under a uniform load of intensity 10. We shall consider clamped boundary conditions (see Fig. 12.4). Note that, for the case of the conforming displacement model based on CPT, we must also specify the boundary conditions on the cross-derivative cfw/ax By. Once again, we exploit the biaxial symmetry and model only a quadrant of the plate. Table 12.3 gives the center deflection IV = w(O, O)D X l02/foa4 [D = Eh 3/12(10)J and center normal stress a~ = ox(A, A) x 10/10 as obtained using uniform meshes of the two types of elements: CPT(N) and CPT(C). In both models, the point TABLE 12.2
The first three symmetric vibrational frequencies ((j) X 10- 2 ) of an isotropic simply supported square plate obtained using classical and shear deformation theories (a/h = 10) Theory
Mesh
Wll
wl3
W3 3
1 X 1 04 2x204 4x404
0.0746 0.0608 0.0579
0.4473 0.2913
0.4810 0.4654
1 x 1 09 2x209
0.0575 0.0570 0.0569
0.4030 0.2651 0.2552
0.5476 0.4342 0.4217
0.3118 (0.2912) 0.2762 (0.4842) 0.2792 (0.2821) 0.2829
0.3565 (0.3360) 0.4406 (0.4842) 0.4665 (0.4900) 0.4943
FSDT
Exact 1 x 104 2X204
CPTt 4x4 Q4
Exact
0.0535 (0.0597) 0.0567 (0.0584) . 0.0579 (0.0584) 0.0584
t Numbers without parentheses are computed using the noncomforming element and those in parentheses are computed using the confonning , element [cD = w(p/E)lI2 a2/ h J.
526
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
TABLE 12.3
Comparison of the center deflection and normal stress of a clamped square plate under a uniformly distributed load as obtained using various finite element meshes (Example 12.2)
Mesh
Displacement model (CPT)
Displacement model (FSDT; a/h = 10) Linear
Quadratic
Center deflection IV lx1 4x4
0.1943 0.1265 0.1266
Exact
0.1266
1x I 2x2 4x4
2.443 1.415 1.381
lxl
0.0357 0.1459 0.1495
Center stress
0.1757 0.1586
I'
ax
0.000 1.142 1.333
1.321 1.345
(x, y) = (A, A) is defined as follows: Location A Element type
lxl
CPT model
0.05635a
0.02817a
FSDT model{linear . quadratic
O.25a
O.125a O.1057a
0.01409a O.0625a O.0528a
O.03125a
O.03125a 0.02642a
The distance is measured from the center of the plate. The numbers in parentheses above denote the mesh of quadratic Q9 (i.e., nine-node) elements. Clearly, both finite element models exhibit good convergence characteristics. The difference between the CPT and FSDT is attributed to the inclusion of transverse shear strains in FSDT.
The next example deals with a simply supported orthotropic plate under a uniformly distributed transverse load. Example 12.3. Here we consider an orthotropic plate with the following (graphiteepoxy) material properties (Y21 = Y1 2 E 2/ E 1) :
E1 = 31.8 X 106 psi,
E 2 = 1.02 X 106 psi,
Y12
= 0.31,
G12 = GZ3 = C n = 0.96 psi (12.49)
The nondimensionalized center deflection wand normal stress ax obtained using the conforming CPT(C) element and the F~DT element are compared in Table 12.4.
BENDING OF ELASTIC PLATES
527
TABLE 12.4
Comparison of the center deflection (w = wH X 1Q3/foa 4) and normal stress (ax = ax X lOh 2 /foa2 ) of a graphiteepoxy, simply supported square plate under a uniform transverse load (Example 12.3)
Mesh
Displacement model (CPT)
Displacement model (FSDT; a/h = 10) Linear
Quadratic
Center deflection IV 2x2 4x4 8x8
0.9220 0.9224 0.9224
1.2545 1.2186 1.2152 1.215
Exactf 0.9225 Center stress 2x2 4x4 8X8
7.678 7.616 7.600
1.2715 1.2147 1.2147
ax
6.277 7.256 7.449
7.192 7.399 7,478 7.512
Exact] 7.595 t From Reddy (1984); H = D 12 + 2D6(i.
The final example deals with the transient response of an isotropic plate subjected to a sudden uniform patch loading. Example 12.4. Consider an isotropic (v = 0.3, p = 1.0), simply supported, rectangular plate (alb = 0, hlb = 0.2) under a suddenly applied uniformly distributed load on a square (clb = 0.4) area at the center:
alb =0,
f = fo(x, y)H(t),
M=O.01
I for 0<x,y~0.2 where fo(x, y) = { 0 f 0 or x,y > .2
(12.50)
and H(t) is the Heaviside unit step function. The geometry and boundary conditions are shown in Fig. 12.5. A nonuniform mesh of 4 X 4 nine-node shear deformation elements is used in a quadrant of the plate. The center deflection and bending moments of the present linear analysis are compared with the analytical thick- and thin-plate solutions of Reismann and Lee (1969) in Fig. 12.6. We note significant difference between the solutions of the two theories. The present finite element solutions for the center deflection and bending moment are in excellent agreement with the thick-plate solution of Reismann and Lee. Since the bending moment in the finite element method is calculated at the Gauss points, it is not expected to match exactly with the analytical solution at the center of the plate.
528
FINITE ELEMENT ANALYSIS OF TWO·DIMENSIONAL PROBLEMS
y My =
I
b =
r------- - M yx = 0
: I
W
.
=
1
J I
I I
,
.tki['
load
Mx = 0 4>,,= 0
I
~ 0.2 F'.. 1 r-----.--t--- ". I," I I ; 4>y = 0, .-V r- 0.2 I U'f mormL __ JM_O :
0
=
--
l
v=O x
I
FIGURE U,S Domain, boundary conditions, and finite element mesh for the bending of a rectangular plate under a suddenly applied pulse loading at the central square area.
~c--+t
c 'y - =04 'b .
I
I
L
I L
.JI
I.
2.0
wEha w=--3
b qu
I = t(Elb~p)1fl
At = 0.1
5.0
6.0
7.0
Nondimensionalized time f
M
12Ma
=
qoh~h~
"0
.~
10
g o
.~ 'U
E :0
s
z
o
2
5
Nondimensionalized time I
7
8
FIGURE U.6 Comparison of the finite element solution with the analytical solution for a simply supported rectangular isotropic plate under a suddenly applied pulse loading at the central square area.
529
BENDING OF ELASTIC PLATES
12.6 SUMMARY Finite element models of the classical (i.e., Kirchhoff) and first-order shear deformation plate theories have been developed in this chapter. The classical plate theory requires C 1 continuity of the transverse deflection w (i.e., the deflection and its derivatives are continuous between elements), whereas first-order shear deformation theory requires CO continuity (i.e., only the variables are continuous between elements) of the generalized displacements (w, ¢x, ¢y). Triangular and rectangular elements with C 1 continuity have been discussed. Two four-node rectangular elements, one with (w, aw/ ax, aw/ ay) and another with (w, aw/ax, aw/ay, fi2w/ax ay) as degrees of freedom, have been presented, The first does not satisfy continuity of the normal derivative along element sides, and is called a nonconforming element. The second is a conforming element. Linear and quadratic rectangular elements of first-order shear deformation theory have been developed. They require selective evaluation of the stiffness coefficients. The bending stiffness coefficients are evaluated using full integration and the transverse shear stiffness coefficients are evaluated using reduced integration to avoid the shear locking that occurs when these elements are applied to thin plates. Finite element models of vibration, stability, and static and dynamic response have been developed for the two theories.
PROBLEMS U.I-U.9. For the plate bending problems (CPT and FSDT) given in Figs. P12.1-
P12.9, give the specified primary and secondary degrees of freedom and their values for the 4 x 4 meshes shown. The dashed lines in the figures indicate simply supported boundary conditions: those of types "simply supported 1" and "simply supported 2" (see Fig. 12.2) are indicated by 88-1 and SS-2, respectively. Use E, v, h, a, and b in formulating the data. E = 104k in- 1 l' = 0.3 h = 0,2 in
z
tD = 600 lb
in- 1 density = 0.284 Ib in- J
y
f---a
a--o-j
:Tb
[
I
J'
t
I
u niform 10 ad
I
x I
I
)
I
I
I:
x FIGURE Pil.t
55-2
I
b
:1
FIGURE P12.2
530
FINITE ELEMENT ANALYSIS OF nvO·DIMENSIONAL PROBLEMS
y
t Tb f(x, y) = fr,ta
~
SS-l
:+.-----l.. x
. -- .
Radius a
---I~--1" X
b
Line load along the inner edge
"J.-=-.ooo==-=-==-=-=.:J1.
fa FIGURE P12.3
FIGURE P12.4
y
y
f---- a
a----1
:-----r-~S~2- T
Uniformly distributed I a load fa
-:
I I
I
I
I
I
I
f
I
I I I
I I I
l_R~~~ ~
Uniformly distribute d load fi,
x II
J1
.x
FIGURE P12.S
FIGURE P12.6
E = 30 X ]/ = 0.29 h = 1
20 in
~: ~10Ibin-l Simply supported 1
FIGURE P12.7
BENDING OF ELASTIC PLATES
531
Simply supported 2 ~
T
Clamped
b
J
E[ = 30 X 10° lb in- 2 E 2 = 0.75 X !00 Ib in- 2
..L
= 0.25 G l 2 = 0.375 X 10° Ib in- 2 h = D.1a a = 20 in, b = 15 in 1'12
FIGURE P12.8 6
Free
E = 30 X 10 N ern"? '~-,-..,.,....,,,-:....,...,...,
v = 0.3 h=lem
Clamped a = 40 em b = 24 em c = 10 em
(eO:d) f.<-I·~~a
1~ 1 bfo
I
-I
d = 12 em
FIGURE P12.9
12.10. Give an algebraic form for the elements of the stiffness matrix (in a local coordinate system) for a thin plane elastic body subjected to both in-plane and transverse loads. Hint: Combine the element matrices of the plane stress element with the plate bending element-analogous to the construction of a frame element from bar and beam elements. 12.11. Consider an isotropic annular plate (E = 30 x Hf lb in-2 , v = 0.29) with the outer edges clamped and subjected to uniform loading (see Fig. P12.7). Formulate the necessary data for the problem. 12.12. Repeat Problem 12.11 for the case in which the plate is subjected to a load varying linearly with radial distance.
REFERENCES FOR ADDITIONAL READING Averill, R. C., and J. N. Reddy: "On the Behavior of Plate Elements Based on the First-Order Shear Deformation Theory," Engineering Computations, vol, 7, pt. 1, pp. 57-74,1990. ' - - and - - : "An Assessment of Four-Noded Plate Finite Elements Based on a Generalized Third-Order Theory," International clournal for Numerical Methods in Engineering, vol. 33, pp. 1553-1572, 1992. Barlow, J.: "Optimal Stress Locations in Finite Element Models," International Journal for Numerical Methods in Engineering, vol. 10, pp. 243-251, 1976. - - : "More on Optimal Stress Points-Reduced Integration Element Distortions and Error Estimation," International Journal for Numerical Methods in Engineering, vol. 28, pp. 1487-1504, 1989. Dym, C. L., and I. H. Shames: Solid Mechanics: A Variational Approach, McGraw-Hill, New York,1973.
532
FINITE ELEMENT ANALYSIS OF TWO·DlMENSIONAL PROBLEMS
Goudreau, G. L., and R L. Taylor: "Evaluation of Numerical Integration Methods in Elastodynamics,' Journal of Computer Methods in Aplied Mechanics and Engineering, vol, 2, pp. 69-97, 1973. Hughes, T. J. R, and W. K. Liu: "Implicit-Explicit Finite Elements in Transient Analysis: Stability Theory, and Implementation and Numerical Examples," Journal of Applied Mechanics, vol. 45, pp. 371-378, 1978. Jounson, D. E.: "A Proof of the Stability of the Hubolt Method," Journal of the American Institute for Aeronautics and Astronautics, vol. 4, pp. 1450--1451, 1966. Krieg, R D.: "Unconditional Stability in Numerical Time Integration Methods," Journal of Applied Mechanics, vol, 40, pp. 417-421, 1973. Lax, P. D., and R. D. Richtmyer: "Survey of the Stability of Finite Difference Equations," Communications in Pure and Applied Mathematics, vol. 9, pp. 267-293, 1956. Leech, J. W.: "Stability of Finite-Difference Equations for the Transient Response of a Flat Plate," Journal of the American Institute for Aeronautics and Astronautics, vol. 3, pp. 1172-11731965. Levy, S., and W. D. Kroll: "Errors Introduced by Finite Space and Time Increments in Dynamic Response Computation," Journal of Research, National Bureau of Sta:;dards, vol. 51, pp. 57-68, 1953. Nickell, R. E.: "On the Stability of Approximation Operators in ,Problems of Structural Dynamics," International Journal for Solids and Structures, vol. 7, pp. 301-319, 1971. - - - : "Direct Integration in Structural Dynamics," Journal of Engineering Mechanics Division, ASCE, vol. 99, pp. 303-317, 1973. Reddy, J. N.: "Simple Finite Elements with Relaxed Continuity for Nonlinear Analysis of Plates," in Finite Element Methods in Engineering, eds. A. P. Kabaila and V. A. Pulmano, pp. 265-281, The University of New South Wales, Sydney, 1979. - - - : "A Penalty Plate Bending Element for the Analysis of Laminated Anisotropic Composite Plates," International Journal for Numerical Methods in Engineering, vol. 15, pp. 1187-1206, 1980. - - - : "On the Solutions to Forced Motions of Rectangular Composite Plates," Journal of Applied Mechanics, vol. 49, pp. 403-408, 1982. - - - : Energy and Varlatlonal Methods in Applied Mechanics, John Wiley, New York, 1984. - - - : "A Review of Refined Theories of Laminated Composite Plates," Shock and Vibration Digest, vol. 22, pt. 7, pp. 3-17, 1990a. - - - : "A General Non-Linear Third-Order Theory of Plates with Moderate Thickness," Journal of Non-Linear Mechanics, vol. 25, pp. 677-686, 1990b. Reismann, H., and Y. Lee: "Forced Motions of Rectangular Plates," in Developments in Theoretical and Applied Mechanics, vol. 4, ed. D. Frederick, pp. 3-18, Pergamon Press, New York, 1969. . Szilard, R: Theory and Analysis of Plates, Prentice-Hall, Englewood Cliffs, NJ, 1974. Tirnoshenko, S., and S. Woinowsky-Krieger: Theory of Plates and Shells, 2d ed., McGraw-Hill, New York, 1959. Tsay, C. S., and J. N. Reddy: "Bending, Stability, and Free Vibration of Thin Orthotropic Plates by Simplified Mixed Finite Elements," Journal of Sound and Vibration, vol. 59, pp. 307-311, 1978. Tsui, T. Y., and P. Tong: "Stability of Transient Solution of Moderately Thick Plate by Finite Difference Method," Journal of tlte American Institute for Aeronautics and Astronautics, vol. 9, pp. 2062-2063, 1971. Zienkiewicz, O. C., and R. L. Taylor: The Finite Element Me/hod, vol. 1: Linear Problems, McGraw-Hili, New York, 1989. - - - and - - - : The Finite Element Method, vol. 2: Nonlinear Problems, McGraw-Hill, New - York, 1991. - - - , - - - and J. M. Too: "Reduced Integration in General Analysis of Plates and Shells," International Journal for Numerical Methods in Engineering, vol. 3, pp. 275-290, 1972.
CHAPTER
13 COMPUTER IMPLEMENTATION
13.1 INTRODUcnON In Chapter 7, we discussed some basic ideas concerning the development of a typical finite element program, and the use of FEMIDV2 in the solution of one-dimensional problems was illustrated via many example problems. Specific details of various logical units of a finite element program for one-dimensional problems were given. Most of the ideas presented there are also valid for two-dimensional problems. The imposition of the boundary conditions and the solution of the equations remain the same as in one-dimensional problems. Here we focus attention on the computer implementation of two-dimensional elements. The use of a model program FEM2DV2 (a revised and combined version of the FEM2D and PLATE programs in the first edition of the book) is discussed. The program FEM2DV2 contains linear and quadratic triangular and rectangular elements, and it can be used for the solution of heat conduction and convection problems, laminar flows of viscous incompressible fluids using the penalty function formulation, plane elasticity problems, and plate bending problems using classical and shear deformation theories. A flow chart of FEM2DV2 is given in Fig. 13.1.
533
534
FINITE ELEMENT ANALYSIS OF TWO·DIMENSIONAL PROBLEMS
PREPROCESSOD~~------~
MSH2DR
ECHO
MSH2DG
RELEM
r-------------l I I
I
:
SHPTRl
ELKMFf
I
I
I I
I IL
PROCESSOR
TIME
ELKMFR
I
I JI
r----- - - - - -- - - - - - - ---------1 I
t-o--------.~
I
BOUNRY
I I
I
Ir[
EGNBOU r
IL
I ...1
t-o----;l-~~L~-I---f-:G~:~-fl J
L
POST PROCESSOR
PSTPRC
FIGURE 13.1
In two dimensions, the element calculations are more involved than in one dimension, owing to the following considerations: 1. Various geometric shapes of elements. 2. Single as well as multivariable problems. 3. Integrations performed over areas as opposed to along lines (for onedimensional elements). 4. Mixed-order integrations used in certain formulations (shear-deformable plates and penalty function formulations of viscous incompressible fluids).
13.2 PREPROCESSOR In the preprocessor unit, the program MSH2DR is used to generate triangularand rectangular-element meshes of rectangular domains. The subroutine requires minimal input, but is not general enough to generate finite element meshes of arbitrary domains. The subroutine MSH2DG is more general, and can be used to generate meshes for nonrectangular domains. Of course, one
COMPUTER IMPLEMENTATION
BOUNRY
Subroutine to impose specified boundary conditions on the primary and seconda ry variables when a steady-state or transient analysis is carried out.
DGVeSI'
An IBM system-supplied subroutine to solve an eigenvalue problem of the type [KJ{U} = L(M)(U}. where [K] and [M) are positive definite matrices.
ECIIO
Subroutine to echo the input data to the program.
EGNBOU
Subroutine to impose specified boundary conditions on the primary variables when an eigenvalue problem is analyzed.
ELKMFR
Subroutine [0 compute the element [K). [M]. and {F} matrices and vectors for the rectangular elements.
ELKI\IFT
Subroutine to compute [he element [K]. [Ml. and {F} matrices and vectors for the triangular elements.
MSH2DG
Subroutine (0 generate mesh for general domains.
MSH2DR
Subroutine (0 generate mesh for rectangular domains only.
PSTPRC
Subroutine to post-complete the solution. gradient of solution. and stresses.
QUADRT
Subroutine to generate the quadrature points and weights for the triangular elements.
RELEM
Subroutine called in MSH2DG
SHPRCT
Subroutine to compute the shape functions for linear and quadratic (eight- and nine-node) rectangular elements.
SHPTRI
Subrout ine to compute the shape functions for linear and quadratic triangular elements.
SOLVE
Subroutine to solve a banded. symmetric system of algebraic equations.
TIME
Subroutine to compute the equivalent coefficient matrices and colume n vectors for parabolic and hyperbolic eq nations when time-dependent analysis is carried out.
[0
535
generate element data.
FIGURE 13.1 (Continued)
can use any other mesh generation program in place of MSH2DR or MSH2DG. The subroutines MSH2DR and MSH2DG generate the connectivity matrix (array NOD) and the global coordinates of the nodes (array GLXY). When the mesh generators cannot be used, the mesh information should be read in.
13.3 ELEMENT COMPUTATIONS: PROCESSOR Element calculations for linear and quadratic triangular (ELKMFT) and quadrilateral (ELKMFR) elements can be carried out according to the developments presented in Chapters 8 and 9. The principal steps involved are as follows: 1. Development of a subroutine for the evaluation of the interpolation functions and their derivatives with respect to the global coordinates [see (9.42)-(9.45)].
536
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
2. Numerical integration of the coefficients of the element matrices using numerical quadrature formulas [see (9.54) and (9.67)]. 3. Setting up of the element matrices required for the class of problems being solved (e.g., static, transient, and eigenvalue problems). The subroutines SHPTRI and SHPRCT (called in a do-loop on the number of quadrature points) contain the expressions of the interpolation functions and their derivatives for various-order triangular (TRI) and rectangular (RCT) elements, respectively. The derivatives of the interpolation functions with respect to global coordinates [(9.42)] are also computed in these subroutines. The Fortran implementation of (9.42)-(9.45) is summarized below. c c C
DEFINITION OF THE VARIABLES
C
SF(I} Interpolation function for node I of the element DSF(J,I) ....• Derivative of SF(I) with respect to XI if J=l and and ETA if J=2 GDSF(J,I) .... Derivative of SF(l) with respect to X if J=l and and Y if J=2 _ ELXY(I,J) .... Global coordinates of the element Ith node: J=1: the x coordinate; J=2: the y coordinate GJ(I,J} Jacobian matrix GJINV(I,J) Inverse of the jacobian matrix DET •...•...•. Determinant of the Jacobian matrix
C
C C
C C
C C C
c C C C
C C C
Given the interpolation functions {SF} and their derivatives with respect to the natural coordinates [DSF}, compute the Jacobian matrix [GJ} [see Eqn. (9.44b)] and its inverse [GJINV}:
C
DO 40 I = 1,2 DO 40 J = 1,2 GJ(I,J) = 0.0 DO 40 K = 1,NPE 40 GJ(I,J) = GJ(I,J} + DSF(I,K)*ELXY(K,J) C
DET = GJ(1,1)*GJ(2,2)-GJ(1,2)*GJ(2,1) GJINV(1,1) GJ(2,2)jDET GJINV(2,2) GJ(1,1)jDET GJINV(1,2) = -GJ(l,2)/DET GJINV(2,1) = -GJ(2,1)jDET C
compute the first derivatives of the interpolation functions with respect to the global coordinates [GDSF) [see Eqn. (9.42»):
C C C
c
50
DO 50 I = 1,2 DO 50 J = 1,NPE GDSF(I,J) = 0.0 DO 50 K = 1, 2 GDSF(I,J) = GDSF(I,J) + GJINV(I,K)*DSF(K,J)
The two-dimensional problems of interest to us here require the evaluation of element matrices that involve products of interpolation functions and their derivatives with respect to the global coordinates. Since the integrals are evaluated numerically, the integrands must be evaluated at the quadrature
'-.}
COMPUTER IMPLEMENTATION
537
points and summed over the number of integration points. Thus, evaluation of the interpolation functions and their derivatives must be carried out inside the do-loops. To fix ideas, forrectangular elements, we define interpolation function lJ!I of the Ith node of an element global derivative with respect to XK (i.e. derivative with respect to the global coordinate XK) of inter olation function 'lJIl [GDSF(K, I) = ENd OXK, Xl = X, Xz = y] product of the Jacobian (i.e., determinant 0 [}]) with the weights corresponding to the Gauss integrationxpoint (SNI,
SF(I) GDSF(K,I)
caNST
1JNJ)
""
= DET* GAUSWT(NI, NGP) * GAUSWT(NJ, NGP)
Then S~, S~t, ... of (8.35), .. -Sap 'I
L 01jJi o1jJj d --
Q'
OX", OXp
X
dY
(13.1)
are given in Fortran form by SOO(I, J) = SOO(I, J)
+ SF(I) * SF(J) * caNST
+ GDSF(l, I) * GDSF(l, J) * caNST 812(1, J) = 812(1, J) + GDSF(l, I) * GDSF(2, J) * caNST 822(1, J) = 822(1, J) + GDSF(2, I) * GDSF(2, J) * CONST Sl1(l, J) = Sl1(l, J)
(13.2)
The summed values of SOO(I, J), Sl1(l, J), ... represent the numerical values of the integral coefficients in (13.1). The Fortran statements listed below summarize the discussion: C C
C C
NUMERICAL EVALUATION OF ELEMENT COEFFICIENT MATRICES IN EQ. (13.1) FOR QUADRILATERAL ELEMENTS (WITH ISOPARAMETRIC FORMULATION)
C
NPE = Number of nodes per elements IPOF= Number of integration points (i.e., Gauss points)
C C C C
DIMENSION 1
C
2 3 4
c
GAUSPT(5,5), GAUSWT(5,5), SF(9), GOSF(2,9), ELXY(9,2), SOO(9,9), Sl1(9,9), S12(9,9), 821(9,9), 522(9,9)
DATA GAUSPT/5*0.000, -0.5773502700, 0.5773502700, 3*0.000, -0.7745966700, 0.000, 0.7745966700, 2*0.000, -0.8611363100, -0.3399810400, 0.3399810400, 0.8611363100, 0.000, -0.9061798400, -0.5384693100, 0.000/ 0.5384693100, 0.9061798400/
DATA GAUSWT/2.000, 4*0.000, 2*1.000, 3*0.000, 0.5555555500, 2 0.8888888800, 0.5555555500, 2*0.000, 0.3478548500, 3 2*0.6521451500, 0.3478548500, 0.000, 0.2369268800, 4 0.4786286700, 0.5688888800, 0.4786286700, 0.2369268800/
C
C
Initialize the arrays
C
00 120 I = 1/NPE 00 120 J = 1,NPE
SOO(I,J)= 0.0 811(I/J)= 0.0
538
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
SI2(I,J)= 0.0 S21(I,J)= 0.0 S22(I,J)= 0.0 120 CONTINUE C
C
DO-loops on numerical (Gauss) integration begin here:
__
C
00 200 NI = 1,IPDF DO 200 NJ = 1,IPDF XI = GAUSPT(NI,IPDF) ETA = GAUSPT(NJ,IPDF) C
C C
SHPRCT (SHaPe functions for ReCTangular elements) is called here to compute {SF} and [GDSF1:
C
CALL SHPRCT (NPE,Xr,ETA,ELXY,DET,SF,GDSF) CNST = DET*GAUSWT{NI,IPDF}*GAUSWT(NJ,IPDF) C C C
Compute Sij(I,J) of Eqn.
(13.1):
DO 180 I=l,NPE DO 180 J=l,NPE SOO{I,J) SOO{I,J) SII(I,J) Sll(I,J) SI2(I,J) S12(I,J) S21(I,J) S21(I,J) S22(I,J) S22(I,J) 180 CONTINUE 200 CONTINUE
/
+ SF(I)*SF{J}*CNST
+ GDSF(I,I)*GDSF(I,J)*CNST + GDSF(l,I)*GDSF(2,J)*CNST + GDSF(2,I)*GDSF(1,J)*CNST + GDSF(2,I)*GDSF{2,J)*CNST
C
To set up the element coefficient matrices of a given problem, we make use of the element matrices defined above. As an example, consider the problem described by (8.1). The element coefficient matrix and the column vectors for the problem are given by (8.l4b). The element matrix K;j [ELK(I, J)] can be expressed in terms of Sr:t, S~t, ... by ELK(I, J) = AOO * SOO(I, J) + All * Sll(I, J) + Al2 * S12(I, J) + A2l * SI2(J, I) + A22 * S22(I, J) where aoo = AOO, all = All, a l2 = A12, a21 = A21, and a22 = A22 are the constant coefficients of the differential equation (8.1). In multivariable problems, the element matrices an:; themselves defined in terms of submatrices, as was the case for plane elasticity, fluid flow,' and plate bending. In such cases, the nodal degrees of freedom should be renumbered to reduce the half-bandwidth of the assembled coefficient matrix. For example, consider the element equations (1O.29a) associated with plane elasticity problems. The element nodal variables !i.; are given (say, for a linear rectangular element) by III 112 113 114
VI
(13.3)
V2 V3
!i.8
V4
Thus, at any node, the difference between the label number of the first degree of freedom and that of the second degree of freedom is 4 (in a general case,
COMPUTER IMPLEMENTATION
539
the difference is 11; where n is the number of nodes per element). This difference contributes to an increase in the half-bandwidth of the assembled coefficient matrix. To remedy this situation, we reorder the element nodal degrees of freedom as follows:
(13.4) Ll2.>l- 1 Az"
Il n
Un
In reordering the nodal degrees of freedom, we must retain the symmetry, if one is present, of the system of algbebraic equations. This is accomplished by renumbering the equations in the same way as the nodal degrees of freedom. To illustrate how this can be done, we consider a set of four equations in four unknowns: I
~
+ Sl1 + S'\2 + S12 - Fl S l1 Ulll 12U 2 UUl l2 U2 1 1 Sl1 + Sl1 + S12 + S12 F U2 ll U2 U 2l l 22 2l l 22 ~ 2 'situ l + siiU 2+ siiu l + sgu2= Fi
(13. Sa)
S~tUl + S~iU2 + S~iUl + S~iU2 = Fi
or, in matrix form, (13.5h)
Now letting
(13.6) (i.e., the third nodal variable is renamed as the second, and vice versa) and rearranging (13.5) (i.e., the third equation becomes the second equation, and . vice versa), we obtain
= Ft SHLll + SiiLl 2 + SiJLlJ + SgA4 = Fi SitLl 1 + SiiLl z + SMLl J + SgLl 4 = Fi S~tAl + S~iLlz + S~iLlJ + SnLl 4 = F~
(13.7a)
[S]{Ll} = {F}
(13.7h)
SgLl l + StiLl 2 + SgA J + SgA 4
or, in matrix form,
where S ij --Sl1 ap,
Si,j+l -S12 ap,
Sj+1,j
F; = F~,
i = 2cr - 1,
j
= S;~,
Fi+1
= 2f3 -
1,
Si+l.j+l -S22 afJ
= P~ cr, f3
(13.7c) =
1, 2
540
FINITE ELEMENT ANALYSIS OF TWO·DIMENSIONAL PROBLEMS
The above discussion applies to any number of degrees of freedom per node (NDF). Computer implementation of (13.7) is straightforward. An example of this procedure is given by the following Fortran statements, which correspond to (10.29): C C C C C C C C C C C C C C C C C C C
c C
REARRANGING THE ELEMENT EQUATIONS OF MULTIVARIABLE PROBLEMS (Illustrated using the plane elasticity FE model) NOF•.••..•. ~ MPE........ CMAT(I,J).. ELK(I,J) ..• =
Number of degrees of freedom per node Number of nodes per element Matrix of elastic coefficients Element stiffness matrix coefficients
Dimension the arrays. For example (NN = NPE*NDF) : ELK(NN,NN),CMAT(3,3)
I'
Compute the coefficients ELK11(I,J), ELK12(I,J), ELK21(I,J) and ELK22 (I,J) of Eqn. (10.29) using numerical integration. We have· (the following statements go inside the loops on Gauss quadrature; see the fortran statements for the evaluation of Sij) : DO 140 I=1,NPE DO 120 J=l,NPE ELKll(I,J) ELK12 (I,J) ELK21(I,J) ELK22 (I,J) 120 CONTINUE 140 CONTINUE
ELK11(I,J) ELK12 (I,J) ELK21(I,J) ELK22(I,J)
+ + + +
CMAT(1,1)*S11 CMAT(1,2)*S12 CMAT(1,2)*S21 CMAT(3,3)*S11
+ CMAT(3,3)*S22 + CMAT(3,3)*S21 + CMAT(3,3)*S12 + CMAT(2,2)*S22
We are now ready to rearrange the coefficients
C
11=1 DO 180 I=l,NN JJ~l
c
DO 160 J=l,NN ELK(II,JJ) ELK(II,JJ+1) ELK(II+1,JJ) ELK(II+1,JJ+1) 160 JJ = NDF*J+1 180 II = NDF*I+1
ELKll(I,J) ELK12 (I,J) ELK21(I,J) ELK22 (I,J)
13.4 APPLICATIONS OF THE COMPUTER PROGRAM FEM2DV2 13.4.1 Introduction The computer program FEM2DV2 (see Appendix 2 for the source listing) is developed to solve the following types of problems:
i COMPUTER IMPLEMENTATION
541 i
:
I ;
1. Single-variable problems, including convective-type boundary conditions! for heat transfer problems,
I
(13.8a)
with c, = Co + Cxx + CyY,
ay = a20 + a2;cx
ax = aw + alxX + alyY,
+ a2yY,
fo = fo + /xx ao = constant
+ hY
(B.8h)
2. The plane elasticity problems of Chapter 10 [(10.11)] 3. Viscous incompressible fluid flows using the penalty function formulation of Chapter 11 [(11.1) with P replaced by (11.34)] 4. Plate problems using classical and shear deformation theories (only with rectangular elements) of Chapter 12 [(12.29)]. The first category of problems is quite general and includes, as special cases, many other field problems. As a special case, axisymmetric problems can be analyzed. The last three categories are specialized to linear elasticity, linear (l.e., Stokes) viscous incompressible fluid flow, and linear plate bending. The type of gradient of the solution computed (in subroutine PSTPRC) for single-variable problems differs for different physical problems. For heat transfer problems, we have (13.9)
The same definition applies to the velocity potential formulation of inviscid fluid flows (to calculate velocity components). In the stream function formulation, the velocity components (zz, v) are defined by
au
v=qx =-ax ~ ax
(13.10),
The (total) stresses for multivariable problems are computed using the constitutive equations, with the strains (or strain rates for fluid flow problems) computed at the reduced Gauss points using the strain-displacement relations. The spatial variation of the derivatives of the solution is dependent on the element type. For heat transfer problems (i.e., ITYPE = 0), the variable ICONV is used to indicate the presence (ICONY = 1) or absence (leONV = 0) of convective boundaries. When convective boundaries are involved (i.e., ICONY = 1), the elements whose boundaries coincide with such a boundary will have additional contributions to their coefficient matrices [see (8.99)(8.103)]. The array IBN is used to store elements that have convective
542
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
TABLE 13.1
Description of the input variables to the program FEM2DV2
*
Data Card 1: TITLE
*
- Title of the problem being solved (80 characters)
Data Card 2: ITYPE
- Problem ITYPE ITYPE ITYPE ITYPE ITYPE ITYPE
type: 0, Single variable problems 1, viscous incompressible flow problems 2, Plane elasticity problems 3, Plate bending problems by the FSDT 4, Plate bending problems by the CPT(N) 5, Plate bending problems by the CPT(C)
IGRAD
- Indicator for computing the gradient of the sOlution or stresses in the postprocessor: ~ IGRAD = 0, No postprocessing is requirea IGRAD > 0, Postprocessing is required When ITYPE=O and IGRAD=I, the gradie~t is computed as in Eq. (13.9)j for ITYPE=O and IGRAD > 1, the gradient is computed as in Eq (13.10).
ITEM
- Indicator for dynamic analysis: ITEM 0, Static anftlysis is required ITEM > 0, Either eigenvalue or transient analysis is required: ITEM = 1, Parabolic equation is analyzed ITEM = 2, Hyperbolic equation is analyzed
NEIGN
*
Data Card 3: NVALU NVCTR
*
- Indicator for elgenValue analysis: NEIGN 0, static or transient analysis is required NEIGN > 0, Eigenvalue analysis is required: NEIGN= I, Frequency/vibration analysis NEIGN> 1, Stability analysis of plates SKIP the card if NEIGN =
°
- Number of eigenvalues to be printed - Indicator for printing eigenvectors: NVCTR = 0, Do not print eigenvectors NVCTR ~ 0, Print eigenvectors
Data Card 4: IELTYP - Element type used in the analysis: IELTYP= 0, Triangular elements IELTYP> 0, Quadrilateral elements NPE
- Nodes pel> element: 3, Linear triangle (IELTYP=O) NPE 4, Linear quadrilateral (IELTYP>O) NPE 6, Quadratic triangle (IELTYP=O) NPE 8 or 9, Quadratic quadrilateral (IELTYP>O) NPE
COMPlITER IMPLEMENTATION
543
TABLE 13.1 (Continued)
*
*
MESH
- Indicator for mesh generation by the program: MESH 0, Mesh is not generated by the program MESH 1, Mesh is generated by the program for rectangular domains (by MSH2DR) MESH > 1, Mesh is generated by the program for general domains (by MSH2DG)
NPRNT
- Indicator for printing certain output: NPRNT 0, Not print array NOD, element matrices, or global matrices NPRNT 1, Print array NOD and Element 1 matrices: [ELK) and {ELF} 2, Print array NOD and assembled matrices, NPRNT [GLK) and {GLF} NPRNT > 2, Combination of NPRNT=l and NPRNT=2
Data Card 5:
SKIP the card if MESH.EQ.l
NEM
- Number of elements in the mesh when the user inputs the mesh or the mesh is generated by MSH2DG
NNM
- Number of nodes in the mesh when the user inputs the mesh or the mesh is generated by MSH2DG
Data Card 6:
SKIP the card if MESH.NE.O; otherwise, the card is read in a loop on the number of elements (N=l, NEM)
NOD(N,I)-Connectivity for the N-th element (I=l,NPE)
*
Data Card 7:
SKIP the card if
GLXY(I,J)-Global x the mesh Loops on pairs of ~
*
and y coordinates of I-th global node in (J=l, x-coordinate, J=2", y-coordinate) I and J are: «(J=1,2), I=1,NNM); the NNM (x,y)--coordinates are read sequentially
The next FOUR data cards are read in subroutine MSH2DG * * SKIP Cards 8, 9, 10 and 11 unless MESH.GT.l * *~
Data Card 8: NRECL
*
MESH.NE.O
- Number of line records to be read in the mesh
Data Card 9: Read the following variables NRECL times NODI - First global node number of the line segment NODL - Last global node number of the line segment NODINC - Node increment on the line Xl - The global x-coordinate of NODI Yl . . The global y-coordinate of NOD1 XL - The global x-coordinate of NOOL YL - The global y-coordinate of NODL RATIO - The ratio of the first element length to the last element length
*
Data Card 10: NRECEL
- Number of rcws of elements to be read in the mesh
S44
FINITE ELEMENT ANALYSIS OF TWO·DlMENSIONAL PROBLEMS
TABLE 13.1 (Continued)
*
Data Card 11: Read the following variables NRECEL times NELl NELL IELINC NODINC NPE NODE(I)
*
Data Card 12: NX NY
*
Data Card 13: XO DX(I)
*
Data Card 14: YO DY(I)
*
First element number of the row Last element number of the row Increment of element number in the row Increment of global node number in the row Number of nodes in each element Connectivity array of the first element in the row (I=1,NPE) SKIP the card if
MESH.NE.1
- Number of elements in the x-direction - Number of elements in the y-direction SKIP the card i f
MESH.NE.l /
- The x-coordinate of global node 1 - The x-dimension of the I-th element SKIP the card i f
/
(1=1, NX)
MESH.NE.1
- The y-coordinate of global node 1 - The y-dimension of the I-th element
(I=1,NY)
(
Data Card 15: NSPV
*
-
Data Card 16:
- The number of specified primary variables SKIP the card if NSPV.EQ.O
ISPV(I,J)-Node number arid LOCAL degree of freedom number of the I-th specified primary variable: ISPV(I,1)=Node num~r; ISPV(I,2)=Local DOF number The loops on I and J are:
*
Data Card 17:
SKIP the card if NSPV.EQ.O
«J=I,2),I=I,NSPV) or
NEIGN.NE.O
VSPV(I) - Specified value of the I-th primary variable (I=I,NSPV)
*
Data Card 18: NSSV
*
Data card 19:
SKIP the card if NEIGN.NE.O - Number of (nonzero) specified secondary variables SKIP the card if NSSV.EQ.O or NEIGN.NE.O
ISSV(I,J)-Node number and LOCAL degree of freedom number of the I-th specified secondary variable: ISSV(I,I)=Node number; ISSV(I,2}=Local DOF number The loops on I and J are:
*
Data Card 20:
SKIP the card if NSSV.EQ.O
«J=I,2),I=I,NSSV) or
NEIGN.NE.O
VSSV(I) - Specified value of the I-th secondary variable (I=1,NSSV)
545
COMPtJrER IMPLEMENTATION
TABLE 13.1 (Continued)
Data Cards 21 through 27 are * Data Card 21:
Coefficients of the differential equation all = AID +AIX*X + AIY*Y SKIP the card if ITYPE.NE.O
* Data Card 22: A20 A2X A2Y
Coefficients of the differential equation a22 = A20 +A2X*X + A2Y*Y
* Data Card 23:
SKIP the card if ITYPE.NE.O
AOO
Coefficient of the differential equation SKIP the card if ITYPE.NE.O
ICONY
* Data Card 25:
Indicator for convection boundary conditions: ICONY = 0, No convection boundary conditions ICONY > 0, Convection boundary conditions present SKIP the card if ITYPE.NE.O or ICONY.EQ.O Number elements with convection
NBE * Data Card 26: IBN(I) BETA (I) TINF (I) * Data Card 27:
SINGLE VARIABLE PROBLEMS (ITYPE=O)
SKIP the card if ITYPE,NE.O
AIO AIX AlY
* Data Card 24:
~or
SKIP the card if ITYPE.NE.O or ICONV.EQ.O The following cards are read for each I, I=I,NBE
--
I-th element number with convection Film coefficient for convection on I-th element Ambient temperature of the I-th element
SKIP the card if ITYPE.NE.O or ICONV.EQ.D
INOD(I,J}- Local node numbers of the side with convection (J=1/2j for quadratic elements, give end nodes) Loops on I and J are: (J=1/2), I=I,NBE)
Data Card 28 is for VISCOUS FLUID FLOWS (ITYPE = 1) only * Data Card 28:
SKIP the card if ITYPE.NE.1
AMU - Viscosity of the fluid PENLTY - Value of the penalty parameter
Data Cards 29 & 30 are for PLANE ELASTICITY (ITYPE=2) only * Data Card 29:
SKIP the card if ITYPE.NE.2
LNSTRS - Flag for PLANE STRESS or PLANE STRAIN problems: LNSTRS=O, Plane strain elastic problems
_
546
FINITE ELEMENT ANALYSIS OF TWO·DIMENSIONAL PROBLEMS
TABLE 13.1 (Continued) LNSTRS>O, Plane stress elastic problems * Data Card 30: E1 E2 ANU12 G12 THKNS
SKIP the card if ITYPE,NE.2 -
Young's moduli along the global x-axis Young's moduli along the global y-axis Poisson's ratio in the xy-plane Shear modulus in the xy-plane Thickness of the plane elastic body analyzed
Data Card 31 is for PLATE BENDING PROBLEMS * Data Card 31:
£1 E2 ANU12 G12 G13 G23 THKNS
(ITYPE~3
to 5) only _
SKIP the card unless ITYPE.GE.3 -
Young's modUli along the global x-axis Young's modUli along tpe global y-axis r Poisson's ratio in the xy-plane Shear modulus in the xy-plane Shear modulus in the xz-plane Shear modulus in the yz-plane Thickness of the plate analy~ed
Remaining data cards are for ALL problem types * Data Card 32: FO FX FY
SKIP the card if NEIGN.NE.O Coefficients to define the source term: f = FO + FX*x + FY*y
Cards 33 thru 37 are for DYNAMIC ANALYSIS only
I
* Data Card 33: CO CX CY
SKIP the card if ITEM.EQ.O Coefficients defining the temporal parts of the differential equations: CT
CO + CX*x + Cy*y, when ITYPE ~ 0 or 1
CT
(CO + Cx*x + CY*y)*THKNS, when ITYPE
~
2
10 ~ CO*THKNS \ 12 ~ CO*(THKNS**3)/12 when ITYPE=3 to 5 and CX and CY are not used and NEIGN.LE.! Co, ex, and CY denote the buckling parameters when ITYPE.EQ.3 and NEIGN.GT.l * Data Card 34: NTIME NSTP 1NTVL
S~1P
the card if ITEM.EQ.O or NEIGN.NE.O
- Number of time steps for the transient solution - Time step number at which the source is removed - Time step interval at which to print the solution
COMPlITER IMPLEMENTATION
547
TABLE 13.1 (Continued) INTIAL - Indicator for nature of initial conditions: INTIALFO, Zero initial conditions are used INTIAL>O, Non-zero initial conditions are used
*
Data Card 35:
SKIP the card if ITEM.EQ.O or NEIGN.NE.O
DT
- Time step used for the transient solution
ALFA
- Parameter in the alfa-family of time approximation used for parabolic equations: ALFA=O, ALFA=0.5, ALFA=2/3, ALFA=l,
The The The The
forward difference scheme (C.S.)@ Crank-Nicolson scheme (stable) Galerkin scheme (stable) backward difference scheme (stable)
@c.S.=conditionally stable; For all schemes with ALFA < 0.5, the time step DT is restricted to: DT < 2![MAXEGN*(1-2*ALFA)J, where MAXEGN is the maximum eigenvalue of th~ discrete problem. GAMA
- parameter in the Newmark time integration scheme used for hyperbolic equations: GAMA=O.5, Constant-average acceleration (stable) GAMA=l/3, Linear acceleration scheme (C.S.)@ GAMA=O.O, The central difference scheme (C.S.) ALFA = 0.5 for all schemes; For schemes for which ALFA.LE.O.5 and GAMA < ALFA, DT is restricted to: DT < 2/SQRT(MAXEGN*(ALFA-GAMA)], MAXEGN being the maximum eigenvalue of the discrete system.
EPSLN
*
Data Card 36:
- A small parameter to check if the solution has reached a steady state SKIP the card if ITEM or INTIAL.EQ.O, or NEIGN.NE.O
GLU(I) - vector of initial values of the primary variables (I=l,NEQ, NEQ=Number of nodal values in the mesh)
*
Data Card 37:
SKIP if ITEM.LE.1, NEIGN.NE.O, or INTIAL.EQ.O
GLV(I) - Vector of initial values of the first derivative of the primary variables (velocity) (I=1,NEQ, NEQ=Number of nodal values in the mesh)
boundaries, and the array INOD is used to store the pairs of element local nodes (of elements in array IBN) that are on the convective boundary (to specify the side of the element on the convective boundary). If an element has more than one of its sides on the convective boundary, it should be repeated as many times as the number of its sides on the convective boundary. A complete description of the input variables of the program FEM2DV2 is given/in Table 13.1, which contains the values of the key variables for the four classes (ITYPE =: 0,1,2, ... ,5) of problems. In the next section, the application of the program FEM2DV2 is illustrated via several examples.
548
FINITE ELEMENT ANALYSIS OF TWO·DIMENSIONAL PROBLEMS
13.4.2 Description of Mesh Generators In this section, the input data to FEM2DV2 for several example problems is given. The example problems are selected from those discussed in earlier sections of this chapter. A major limitation of the program lies in the mesh generation [i.e., the computation of arrays NOD(I, J) and GLXY(I, J) for arbitrary domains]. For such problems, the user is required to input the mesh information, which can be a tedious job if many elements are used. Of course, the program can be modified to accept any other mesh generation subroutines. First, let us consider MSH2DR. The program is restricted to rectangular domains with sides parallel to the global x and y axes. The subroutine requires the following input data: NX NY
rx, Yo) DX(I) DY(I)
number of elements in the x direction number of elements in the y direction global coordinates of global node 1, which is located at the lower left corner of the rectangular domain (see Fig. 13.2) the array of element lengths along the x direction the array of element lengths along the y direction
The node and element numbering schemes for triangular and rectangular element meshes generated by MSH2DR are shown in Fig. 13.2. Next, we consider MSH2DG, which is relatively more general than MSH2DR. The program, based on the straight line generation logic used by Akay et at. (1987), requires the user to sketch a desired mesh with certain regularity of node and element numbering. It exploits the regularity to generate the mesh. The program MSH2DG requires the following input (except for NEM and NNM, all other variables are read from the subroutine):
/ NEM NNM NRECL
number of total elements in the mesh number of total nodes in the mesh number of line-segment records
For each line segment, read the following variables: NODI NODL NODINC (Xl, Yl) (XN, YN) RATIO
first node number on the line segment last node number on the line segment increment between two consecutive nodes on the line global coordinates of the first node, NODI on the line global coordinates of the last node, NODL on the line ratio of the first element length to the last element length
Similar information on the elements is read: NRECEL
number of rows of elements
A
I
A
."
A
:?1
;f NNM
A)j
I
"
2 3
NX+ 1
1
•
?\
•
"
NNM
"
2*NX + 1
4 5
(a)
(b)
Element node numbers NEM
\
rye y ·XcI
NNM
NNM
\ 4
\ 3
I
2
NEM
4 7 3 806
152
2(NX + 1)
-CD 1 YQ 2
*
1
a> o/J (c)
-
ri+ 1 ~
3 Element number
DX(NX)
2
3(2*NX + I)
@
3
2(2*NX + 1)
2*NX + 1
1 2 3 4 5
1-----1
H DX(lW
DX(NX) (d)
DX(2) FIGURE 13.2 Global node numbering and element numbering system used in subroutine MSH2DR for the generation of meshes of (a) linear triangular elements [NNM= (NX + 1) '" (NY + 1)]; (b) quadratic triangular elements [NNM = (2'" NX + 1)'" (2'" NY + 1)]; (c) linear rectangular elements [NNM = (NX + 1) '"(NY + 1)]; and (d) quadratic rectangular elements. Either the nine- or the eight-node rectangular elements can be used.
8
~ ~
?'t'l!
2: tTl
~
o z
t
y~~---- 4 11 16
T
yt
_ J
I
12
21
16
11
21
@
(2)
22
2
lv'
m rtIl
::.
7
4
tIl
~
3
CD
:;-
z
:;-
·v 2
-
if
3
..
4
2
1
46
o."
64
55
73
~o
t
y
37
~
Vi
3 (b)
(a)
yt
37
46
55
64
@ 28
28
19
19 '4
10
(c)
o
~
z
@
..
:;-
" ~
1
'"
CD 9 011 ~
5
2
73
o'" c;l
10¢S
1
-= z""
§
a> 6
1:::
5
2
"
3 (d)
FIGURE 13.3 Typical examples of mesh generation using subroutine MSH2DG: (a) mesh of linear triangular elements; (b) mesh cf linear quadrilateral elements; (c) mesh of quadratic triangles; (d) mesh of nine-node- quao/atic quadrilateral elements (eight-code quadrilaterals can also be generated in the same way). Global node numbers, element numbers, and. a typical element' node numbering scheme are shown.
COMPUTER IMPLEMENTATION
551
For each row of elements, read the following variables: NELl NELL NODINe
first element number in the row last element number in the row increment between respective nodes of consecutive elements in the row number of nodes per element nodal connectivity for element NELl
NPE NODE(I)(I = 1, NPE)
The type of data being read in MSH2DG should give some indication of the restrictions of the program. The node and element numbering should be regular along the lines and rows being read. Figures l3.3(a-d) show typical examples of meshes of linear and quadratic triangular and quadrilateral elements. For each of these meshes, the input data required for MSH2DG is listed in Table 13.2.
13.4.3 Applications (Illustrative Examples) Example 13.1 Solution of the Poisson equation of Example 8.1. We consider the Poisson equation -V2 u = 1 in a unit square. We represent the domain by linear triangles or rectangles (see Fig. 13.4). Triangular elements. We use the 2 X 2 mesh shown in Fig. 13.4(a). We have ITYPE=O, IELTYP=O,
IGRAD = 1, NPE = 3,
ITEM = 0,
MESH = 1,
NEIGN=O NPRNT=O
Note that we chose to generate the mesh using subroutine MSH2DR. Therefore, we must specify the number of subdivisions
NY=2,
DX(l) = 0.5,
XO=O.O,
DX(2) = 0.5,
YO=O.O DY(1) = 0.5,
DY(2) = 0.5
The number of specified primary variables (NSPV), the node numbers and the specified local degree of freedom (ISPV), and their specified values (VSPV) for the problem are NSPV = 5,
ISPV(I, J) = (3,1; 6,1; 7,1; 8,1; 9,1),
= (0.0,0.0,0.0,0.0,0.0)
VSPV(I)
There are no specified secondary variables: NSSV = O. The coefficients a and ay of the differential equation are unity, ao = 0, the source term f is unity, and there is no convection: I
AlO = 1.0,
A1X = 0.0,
AOO = 0.0,
A1Y = 0.0,
leoNY = 0,
A20 = 1.0,
A2X = 0.0,
FO = 1.0, . FX = 0.0,
A2Y = 0.0
FY = 0.0
Rectangular elements. For- the 2 X 2 (four-element) mesh of rectangular elements
(see Fig. 13Ab), the data input to the program differs only in the specification of the element type and the number of nodes per element: IELTYP= 1,
NPE=4
An edited output of the program for the problem is
pre~ented
in Table 13.3.
552
FINITE ELEMENT ANALYSIS OF nVO-DIMENSIONAL PROBLEMS
TABLE 13.2
The input data to Program FEM2DV2 to generate the finite element meshes shown in Figs. 13.3(a-d) (a) Mesh of linear triangles (see Fig.13.3a): NEM, NNM
32
25
5 1 6 11 16 21
5 10 15 20 25
1 1 1 1 1
0.0 0.0 0.0 2.0 4.0
7 8 15 16 23 24 31 32
2 2 2 2 2 2 2 2
1 1 1 1 1 1 1 1
NRECL 0.0 1.0 2.0 2.0 2.0
3.0 3.07612 3.29289 3.61732 4.0
0.0 0.38268 0.7071 0.92388 1.0
6.0 6.0 6.0 6.0 6.0
NOD1,NODL,NODINC, Xl,Y1,XL,YL,RATIO for each line segment NRECEL
8
1 2 9 10 17 18 25 26
3 3 3 3 3
3 3 3
1 1 6 6 11 12 16 17
2 7 7 12 12 17 17
22
7 6 12
NEL1,NEL~IELINC,NObINC, NPE, NOO(I,J) for each line
11
16 16 21 21
(b) Mesh of four-node quadrilaterals (see Fig.
13 .3b): NEM, NNM
16
25
5 1 6 11 16 21
5 10 15 20 25
1 1 1 1 1
0.0 0.0 0.0 2.0 4.0
4 1 5 9 13
4 8 12 16
1 1 1 1
1 1 1 1
NRECL 0.0 1.0 2.0 2.0 2.0
3.0 3.07612 3.29289 3.61732 4.0
0.0 0.38268 0.7071 0.92388 1.0
6.0 6.0 6.0 6.0 6.0
NOD1,NODL,NODINC, X1,Y1,XL,YL,RATIO for each line segment NRECEL
4 4 4 4
1 2 6 7 11 12 16 17
7 12 17 22
6 NEL1,NELL,IELINC,NODINC, NPE,NOD(I,J)
11
16 21
Example 13.2 Heat transfer with convection boundary conditions. Consider a square region of 1 m x i m. The left side of the region (i.e., x = 0) is maintained at 100°C, while the boundary y = 1 f!l is maintained at 500oe. The boundaries x = 1 m and y = a are exposed to an ambient temperature of 100o e, and the film coefficient f3 = 10 W m- 2 °C- t • There is no internal heat generation (f = 0). The conductivity is taken to be k, = k, = 12.5 W m- 1 °C- t • The input variables associated with convective boundary conditions are ICONV = 1,
NBE = 16 (for an 8 x 8 mesh of linear rectangular elements)
[IBN(I), BETA(I), TINF(I)] = [1, 10.0, 100.0; 2,10.0,100.0; ... ] [INOD(I, J)] = [1, 2; 1,2; ... ] Ala = 12.5,
AIX = 0.0,
A2X = 0.0,
A1Y = 0.0,
A2Y = 0.0,
A20 = 12.5,
ADO = 0.0
Table 13.4 gives the input data for the 8 x 8 mesh of linear rectangular elements. Figures 13.5 and 13.6 show plots of temperature variations and heat flow
sr
et
qx = -ax ax' _ qy = -ay ay
COMPUTER IMPLEMENTATION
553
TABLE 13.2 (Continued) (e) Mesh of quadratic triangles (see Fig. 13.3c): 32
NEM, NNM
81
NRECL
9
1 10 19 28 37 46 55 64 73
9
18 27 36 45 54 63 72 81
1 1 1 1
1 1 1
1 1
0.0 0.0 0.0 0.0 0.0 1.0 2.0 3.0 4.0
0.0 0.5 I jO 1.5 2.0 2.0 2.0 2.0 2.0
3.0 3.01921 3.07612 3.16853 3.29289 3.44443 3.61732 3.80491 4.0
0.0 0.19509 0.38268 0.55557 0.7071 0.83147 0.92388 0.98078 1.0
6.0 6.0 6.0 6.0 6.0 6.0 6.0 6.0 6.0
NODl,NODL,NODINC, Xl,Yl,XL,YL,RATIO for each line segment
NRECEL
8
172 282
9 10 17 18
15 16 23 24
25 26
31 32
2 2
6 6
2
2
6
2
2 2 2
6 6 6
2 2 2 2
2
6
2
6
1 1 19 19 37 39 55 57
3 21 21 39 39 57 57 75
21 19 39 37 55 55 73 73
2 12 11
11 20 29 38 48 56 66
20 30 38 47 56 65 74
10 29 28 46 47 64 65
NELl,NELL,IELINC,NODINC, NPE,NOD(I,J)
(d) Mesh of quadratic (nine-node) quadrilaterals (see Fig. 13.3d):
16
NEM, NNM
81
NRECL
9
1 10 19 28 37 46 55 64 73 4 1 5 9 13
0.0 0.0
0.0 0.5
0.0 0.0
1. 0 1.5
0.0 2.0 3.0
2.0 2.0 2.0 2.0
1
4.0
2.0
9 18 27
1
36
1 1 1 1 1
1.0
81
45 54 63
n
1 1
3.0 3.01921 3.07612 3.16853 3.29289 3.44443 3.61732 3.80491 4.0
0.0 0.19509 0.38268 0.55557 0.7071 0.83147 0.92388 0.98078 1.0
6.0 6.0 6.0 6.0 6.0 6.0 6.0 6.0 6.0
NODl,NODL,NODINC, Xl,Yl,XL,YL,RATIO for each line segment
NRECEL 4
1
2
9
8 12
1 1
2 2
9 9
16
1
2
9
1 3 21 19 2 12 20 19 21 39 37 20 30 38 37 39 57 55 38 48 56 55 57 75 73 56 66 74
10 28 46 64
11 29 47 65
NELl,NELL,IELINC,NODINC, NPE,NOD(I,J)
along the boundaries. Note that q. is linear in x and constant in y, and qy is linear in y and constant in x (for constant ax and ay ) . A nonuniform mesh with smaller elements in the high-gradient region gives more accurate results: {DY(I)} = {DX(I)} = (0.25, 0.125, 0.125, 0.125, 0.125,0.125,0.0625,0.0625) The program can also be used to analyze an axisymmetric problem. For example, consider a finite cylinder of radius R(J = 1 m and length L = 1 m. The bottom and top of the cylinder are maintained ~t To = lOO"C, while the surface is exposed to an ambient temperature T~ = lOO"C (f3 = 10 W m ? "C~l). For this case, the governing differential equation is (8.104). The coefficients AlO, A1X, A1Y, A20, A2X, A2Y, and ADO are
AlO=O.O,
AIX= 21tk"
A1Y=O.O
A20=0.0,
A2X=21tkz ,
A2Y=O.O
AOO=O.O
554
ANlTE ELEMENT ANALYSIS OF TWO·DIMENSIONAL PROBLEMS
y
9
7
ou
~=
OX
u=o
2
9
@ 6
CD
0
x
3
iJu
0
5
4
~----<:~......,..--o-
I
8
G)
0-
4(1---~----o6
II =
t
1
I
2
-u=O -...x 3
~ =0 oy
oy (a)
(b)
FIGURE 13.4 I' "Finite element meshes of linear triangular and rectangular elements used in Example 13.1: (a) 2 X 2 mesh of triangles; (b) 2 X 2 mesh of rectangles.
The uniform internal heat generation /0 (if not zero) is entered as
Fa =0.0,
FX=2nfOt
FY =0.0
Example 13.3 Flow about a circular cylinder (Example 8.7). Consider the flow of an inviscid fluid around a cylinder. We shall use the stream function and velocity potential formulations. Since the domain is not rectangular, we should use MSH2DO [i.e., MESH = 2). We consider the mesh of 25 nodes and 32 triangular elements shown in Fig. 13.7(a). We have ITYPE = 0 and IGRAD = 1 in the velocity potential formulation, and IORAD = 2 in the stream function formulation, ITEM = 0, NElON = 0 and IELTYP = a for triangles, and lELTYP = 1 for quadrilaterals, MESH = 2, NPRNT = 0. The input for MSH2DO is given in Table 13.5 for triangular and quadrilateral elements. In the stream function formulation, we have NSPV = 13 and NSSV = 0; and in the velocity potential formulation, we have NSPV = 5 and NSSV = 3. The coefficients are AlO = 1.0,
A20 = 1.0, ADO = 0.0,
A1X = 0.0,
FO = 0.0,
AIY = 0.0,
FX = 0.0,
A2X = 0.0,
A2Y = 0.0
FY = 0.0
The partial input of the problem is given in Table 13.6.
Example 13.4 Eigenvalue and transient analysis (Examples 8.9 and 8.10). We consider the eigenvalue and transient problems discussed in Examples 8.9 and 8.10. The governing differential equation is [see (8.165)]
For eigenvalue analysis, we set ITEM = 1 and NElON = 1; for the transient analysis, we set ITEM = 1 (parabolic equation) and NElON = O. In addition, we must
COMPlITER IMPLEMENTATfON
555
TABLE 13.3
OUtput from FEM2DV2 for the problem in Example 13.1 *** ECHO OF THE INPUT DATA STARTS *** Example 8.1: Solution of the Poisson equation on a square domain o 1 0 0 ITYPE,IGRAD,ITEM,NEIGN o 3 1 0 IELTYP,NPE,MESH, NPRNT 2
NX,NY XO,DX(I) YO,DY(I)
2
0.0 0.0
0.5 0.5
0.5 0.5
NSPV ISPV(I,J) VSPV(I)
5
3 1 0.0
6 1
7
0.0
0.0
1
8 1 0.0
9 1 0.0
0
NSSV
1.0 1.0 0.0
0.0 0.0
0.0 0.0
A10, AIX, AIY A20, A2X, A2Y ADO
0
ICOlN
1.0
0.0
0.0
Fo,
FX,
FY
**** ECHO OF THE INPUT DATA ENDS **** Example 8.1: Solution of the Poisson equation on a square domain OUTPUT
FROM
ANALYSIS
PROGRAM
OF
A
*FEM2DV2*
BY J. N. REDDY
POISSON/LAPLACE
EQUATION
COEFFICIENTS OF THE DIFFERENTIAL EQUATION: Coefficient, Coefficient, Coefficient, Coefficient, Coefficient, Coefficient, Coefficient,
A10 A1X A1Y A20 .......... ~ = A2X ............................................. = A2Y ............................................... = AOO .......... . . . . . . . . . . . . . . . . . . ;;;;:
0.1000E+01 O.OOOOE+oO O.oOOOE+oO 0.1000E+01 O.OOOOE+OO O.oOOOE+OO O.OOOOE+OO
CONTINUOUS SOURCE COEFFICIENTS: Coefficient, FO •..........•.....•...... coefficient, FX ...........•............ = Coefficient, FY •••••••.•...•............ =
0.1000E+01 O.OOOOE+OO O.oOOOE+OO
******* A STEADY-STATE PROBLEM is analy~ed ******* *** A mesh of TRIANGLES is. chosen by user *** FINITE ELEMENT MESH INFORMATION: Element type: 0 = Triangle; >0 = Quad.) .. = Number of nodes per element, NPE •......• = No. of primary deg. of freedom/node, NDF = Number of elements in the mesh, NEM ..... = Number of nodes in the mesh, NNM ••••.... = Number of equations to be solved, NEQ ••• = Half bandwidth of the matrix GLK, NHBW .. =
0 3 1 8 9 9 5
556
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
TABLE 13.3 (Continued) Mesh subdivisions, NX and NY ••••...••••• =
2
No. of specified PRIMARY variables, NSPV
5
x-coord.
Node
O.OOOOE+OO 0.5000E+00 0.1000E+01 O.OOOOE+OO 0.5000E+00 0.1000E+01 O.OOOOE+OO 0.5000E+00 0.1000E+01
1 2
3 4 5 6 7 8 9
y-coord.
=
2
speci. primary & secondary variables (O, unspecified; >0, specified) primary nOF secondary DOF
O.OOOOE+OO O.OOOOE+OO O.OOOOE+OO 0.5000E+00 0.5000E+00 0.5000E+00 0.1000E+01 0.1000E+01 0.1000E+01
0
o
0 1 0 0 1 1 1 1
o o o o o
o
'"
~g
/
/
NUMERICAL INTEGRATION DATA: Full Integration polynomial degree, IPDF Number of full integration points, MIPF Reduced Integration polynomial deg.,IPDR No. of reduced integration points, NIPR Integ. poly. deg. for stress camp., ISTR No. of integ. pts. for stress comp.,NSTR
3 4 1 1 1 1
SOL UTI 0 N
x-coord.
y-coord.
Primary DOF
O.OOOOOE+OO 0.50000E+00 0.10000E+01 O.OOOOOE+OO 0.50000E+00 0.10000E+01 O.OOOOOE+OO 0.50000E+00 0.10000E+01
O.OOOOOE+OO O.OOOOOE+OO O.OOOOOE+OO 0.50000E+00 0.50000E+00 0.50000E+00 0.10000E+Ol 0.10000E+01 0.10000E+01
0.31250E+00 0.22917E+00 O.OOOOOE+OO 0.22917E+00 0.17708E+00 O.OOOOOE+OO O.OOOOOE+OO O.OOOOOE+OO O.OOOOOE+OO
Node 1 2 3 4 5 6 7 8 9
The orientation of
gradient vector is measured from
x-coord.
y-coord.
0.3333E+00 0.1667E+00 0.8333E+00 0.6667E+00 0.3333E+00 0.1667E+00 0.8333E+00 0.6667E+00
0.1667E+00 0.3333E+00 0.1667E+00 0.3333E+00 0.6667E+00 0.8333E+00 0.6667E+00 0.8333E+00
-all (du/dx) 0.1667E+00 0.1042E+00 0.4583E+00 0.3542E+00 0.1042E+00 O.OOOOEtO·O 0.3542E+00 O.OOOOE+OO
the positive x-axis
-a22{du/dy)
Flux Mgntd
orientation
0.1042E+00 0.1667E+00 O.OOOOE+OO 0.1042E+00 0.3542E+00 0.4583E+00 O.OOOOE+OO 0.3542E+00
0.1965E+00 0.1965E+00 0.4583E+00 0.3692E+00 0.3692E+00 0.4583E+00 0.3542E+00 0.3542E+00
32.01 57.99 0.00 16.39 73.61 90.00 0.00 90.00
COMPUTER IMPLEMENTATION
557
TABLE 13.4
Input data for the heat transfer problem in Example 13.2 Example 13.2: Conveotive heat transfer in a square region ITYPE,IGRAD,ITEM,NEIGN 1 0 0 0 IELTYP,NPE,MESH,NPRNT 1 0 4 1 8 8 0.0 0.125 0.0 0.125 17 1 1 76 1 100.0 500.0
0.125 0.125
10 1 771 100.0 500.0
19 1 78 1 100.0 500.0
0.125 0.125 28 1 79 1 100.0 500.0
0.125 0.125
37 1 80 1 100.0 500.0
0.125 0.125
0.125 0.125
0.125 0.125
0.125 0.125
NX,NY XO,DX(I) YO,DY(I)
NSPV 46 1 55 1 64 1 73 1 74 1 75 1 81 1 ISPV(I,J) 100.0 100.0 100.0 500.0 500.0 500.0 500.0 VSPV(IJ NSSV
0 10.0 10.0 0.0 1 16 1 10.0 5 10.0 8 10.0 40 10.0 1 2 2 3 0.0
A10, A1X, A1Y A20, A2X, A2Y ADO
0.0 0.0
0.0 0·.0
ICONV NBE
100.0 2 10.0 100.0 3 10.0 100.0 4 10.0 100.0 100.0 6 10.0 100.0 7 10.0 100.0 8 10.0 100.0 100.0 16 10.0 100.0 24 10.0 100.0 32 10.0 100.0 100.0 48 10.0 100.0 54 10.0 100.0 62 10.0 100.0 1 2 1 2 1 2 1 2 1 2 1 2 1 2 2 3 2 3 2 3 2 3 2 3 2 3 2 3 0.0
0.0
FO,
IBN,BETA, .•• INOD(I,J)
FX,
FY
input the following parameters: NTIME = 20, INTIAL=O,
NSTP = 21 (> NTIME),
DT=0.05,
eo = 1.0,
ALFA=0.5,
ex = 0.0,
INTVL = 1
GAMA=0.5 (not used) CY = 0.0
The parameter NSTP allows removal of the source (i.e., f) at a given time step. For example, if NSTP = 5 then, at the fifth time step and at each subsequent time step, f will be set equal to zero. Table 13.7 gives the input files for the two problems. For a discussion of the results, see Examples 8.9 and 8.10. The problems in Examples 8.11 and 8.12 can be analyzed using FEM2DV2, with minor changes to the input data in Table 13.7. The data for the hyperbolic problem in Examples 8.11 and 8.12 is given in Table 13.8. Example 13.5 Deformation of a cantilever plate (Example 10.2). This is a plane elasticity problem, with plane stress assumption (Le:, LNSTRS = 1). Here we consider both triangular and rectangular element meshes (see Fig. 13.7). MSH2DR can be used to generate the meshes (i.e., MESH = 1). For the 8x 2 mesh of linear elements (or the 4 x 1 mesh of quadratic elements), we have the following input parameters: ITYPE= 2,
IGRAD = 1
(or>O),
for static analysis and ITEM = 2 for dynamic analysis.
ITEM = 0
558
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
140 - , - - - - - - - - - - - - - - - - - - - - ,
/0
130 .--0
~
120
.... '"
3
.... '" D'" E
110
E'"
100
/
,/
~-....c
~
o
\
o4Q9 n 8Q4 I'
Distance x (a)
600..--------------------, 500
o4Q9 c 8Q4
0.2
0.4
0.6 0.8 Distance y
1.0
1.2
(b)
FIGURE 13.5 Temperature variations along the boundaries y ~ 0 and x ~ 1 for the convective heat transfer problem of Example 13.2: 4Q9, 4 x 4 mesh of nine-node quadrilateral elements; SQ4, 8 x 8 mesh of four-node quadrilateral elements.
COMPUIER IMPLEMENTATION
559
-400 ~~~--~--~-----~------,
e
-600
-0-
4Q9 (yo = 0.05283) 8Q4 (yo = 0.0625) qy =
,-..
-ky
aT
-
~ -800
ay
S
.;:
;l: o .;:::
-1000
:;;
:i!
-1200 -1400
-1600 +--~--,,---'------'r-~-.--'----'-----; 1.0 0.6 0.8 0.4 0.0 0.2 Distance x (a)
3000..--~-------------------,
2000 ~
g ~ ;l: 0
1000
.;:::
4Q9 (xo = 0.9472), uniform 8Q4 (xQ = 0.9375), 'uniform ...... 8Q4 (xo = 0.9688), nonuniform o
0; <)
::r::
-0-
0
-1000 +--~--,.---,----,---.----.---,---,----r----j 0.8 0.6 0.2 0.4 1.0 0.0 Distance y (b)
FIGURE 13.6 Variations of the heat flow along the horizontal (x = 0.9472 and 0.9375) and vertical (y = 0.05283 and 0.0625) boundaries (at the Gauss points nearest to' the boundaries). See Fig. 13.5 for the explanation of the notation 4Q9 and 8Q4.
560
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
'~'50 ll==========.~-?--:~., 1",- \~ psi r
f·f - - - - - - a = 10in - - - - - - +
b = 15 in
(a)
~o
r ~2 r ~4 r ~'
2345678
.
2;,
~2718 U"~O = U =0 u=o
9
(b)
19 '-~f---..--.--~--o,.-----..--.--~27 10 18 1 9 (e)
FIGURE 13.7 Bending of a cantilever plate using the elasticity equations: (a) geometry and loading; (b) mesh of nine-node quadratic elements (4 x 1); (e) mesh of linear rectangular elements (8 x 2).
There are four specified primary variables and three nonzero specified forces for the mesh:
NSSV = 3,
NSPV = 4, ISPV(I, J) = (9, 1; 18, 1; 18,2; 27, 1) VSPV(I) = (0.0,0.0,0.0,0.0) ISSV(I, J) = (1,2; 10,2; 19,2), VSSV(I) = (-75.0, -150.0, -75.0)
Table 13.9 gives the data sets for natural vibration and transient analysis for the 4 X 1 mesh of nine-node quadratic elements. The data for the static case follows easily from the transient case. The results were discussed in Examples 10.2 and 10.3. Example 13.6 Viscous fluid squeezed between two parallel plates (Example 11.4). We set up the data for a 12 x 8 uniform mesh of linear rectangular elements and the equivalent 6 x 4 mesh of nine-node elements. Most of the data are exactly the same for both meshes. We have !TYPE = 1, IGRAD = 1, ITEM = 0 (for static analysis) ITEM = 1 (for transient analysis), NEIGN = 0 Table 13.10 gives the complete input data for the 6 x 4 mesh of nine-node elements for the transient case. Example 13.7 Bending of a simply supported isotropic plate under uniform load (Example n.!). The 4 x 4 mesh of Hermite elements and 2 x 2 mesh of nine-node elements are used to model the square plate. Only rectangular elements are allowed (IELTYP = 1). Classical plate model (ITYPE = 4 or 5)
ITYPE = 5 (conforming element),
IGRAD = 1
COMPUTER IMPLEMENTATION
561
TABLE 13.5
Input data required for mesh generation by MSH2DG for the problem of inviscid flQw around a circular cylinder (a) Mesh of linear triangles (see Fig.13.3a): 32
5 1 6 11
16 21 8 1 2 9 10 17 18 25 26
25
NEM, NNM NRECL
5 10 15 20 25
1 1 1 1 1
0.0 0.0 0.0 2.0 4.0
7 8 15 16 23 24
2 2 2 2
1 1 1 1 1 1 1 1
3.0 3.07612 3.29289 3.61732 4.0
0.0 l.0 2.0 2.0 2.0
0.0 0.38268 0.7071 0.92388 l.0
6.0 6.0 6.0 6.0 6.0
NODl,NODL,NODINC, Xl,Y1,XL,YL,RATIO for each line segment NRECEL
31
32
2
2 2 2
3 3 3 3 3 3 3 3
1 1 6 6 11 12 16 17
2 7
7 12 12 17 17 22
7 6 12 11 16 16 21 21
NELl,NELL,IELINC,NODINC, NPE, NOD(I,J) for each line
(b) Mesh of four-node quadrilaterals (see Fig. 13.3b) : 16 5 1 6
25
NEM, NNM NRECL
16 21
5 10 15 20 25
1 1 1 1 1
0.0 0.0 0.0 2.0 4.0
4 1
4
1
5 9
8 12
1 1 1
13
16
1
11
0.0 1.0 2.0 2.0 2.0
3.0 3.07612 3.29289 3.61732 4.0
0.0 0.38268 0.7071 0.92388 1.0
6.0 6.0 6.0 6.0 6.0
NODI, NODL,NoDINC, Xl,Yl,XL,YL,RATIO for each line segment NRECEL
1
4 4
1 1
4 4
1
2
6 7 11 12 16 17
7 12 17 22
6 11
16 21
NELl, NELL, I ELINC , NODINC, NPE,NOD(I,J)
Shear deformation plate model
ITYPE=3, IGRAD=l The classical plate model has three degrees of freedom per node when the nonconforming element is used (i.e., ITYPE = 4), and four degrees of freedom per node for the conforming element (i.e., ITYPE = 5). This must be taken into consideration in inputting boundary conditions. Table 13.11 gives the input data for classical and shear deformation plate models. For the nonconforming element, the data is the same as that used for the shear deformation model, except that ITYPE = 4.
For free vibration (NElON = 1) and stability analysis (NElON = 2), most of the data remain the same. For transient analysis, the time step used for unconditionally stable schemes is arbitrary, but should be small enough to give a complete response curve.
562
FINITE ELEMENT ANALYSIS OF TWO·DlMENSIONAL PROBLEMS
TABLE 13.6
Input data for the problem in Example 13.3 (for triangles)t Example 8.7: Flow around a cirCUlar cylinder (Streamfunction) ITYPE,IGRAD,ITEM,NEIGN o 2 0 0 IELTYP,NPE,MESH,NPRNT a 3 2 a NEM, NNM 32 25
<---------
input data for MSH2DG from Table 13.5 goes here
--------->
NSPV
13
2 1 11 1 0.0 2.0
1 1 6 1 0.0 1.0
3 1 16 1 0.0 2.0
4 1 21 1 0.0 2.0
5 1
10 1
15 1
20 1
25 1
0.0
0.0
0.0
0.0
0.0
ISPV(I,J) VSPV(I) NSSV
0 0.0 0.0
La
1.0 0.0
AI0, AIX,/AIY A20, A2X, A2Y AOO
0.0 0.0
a
"-
ICONV (
0.0
0.0
FO,
0.0
FX,
FY
Example 8.7: Flow around a circular cylinder (velocity potential) ITYPE,IGRAD,ITEM,NEIGN 1 a a a a IEL, NPE, MESH, NPRNT 3 2 a 32
NEM, NNM
25
<---------
input data for MSH2DG from Table 13.5 goes here
5 21 1 0.0
22 1 0.0
23 1 0.0
3 1 1 0.5
6 1 1.0
11 I 0.5
1.0 1.0 0.0
0.0 0.0
0.0 0.0
a 0.0
24 1 0.0
25 1 0.0
--------->
NSPV ISPV(I,J) VSPV(I) NSSV ISSV(I,J) VSSV(I) AID, AIX, AIY A20, A2X, A2Y ADO ICONV
0.0
0.0
FO,
FX,
FY
t For the nodal-equivalent mesh of quadrilateral elements, the input data differs only in specifying IELTYP = 1 and NEM = 16, and using the quadrilateral element data for MSH2DG from Table 13.5.
Example 13.8 Dynamic response of a damped eircalar plate under suddenly applied uniform transverse loading. Consider a clamped circular plate of radius R = 100 in, thickness h = 20 in, modulus E = 100 lb in -z, Poisson ratio v = 0.3, and density p = 10 Ib 82 in-\ subjected to a suddenly applied (i.e., w = tP% = tPy = IV = 1>% = 1>y = 0 at time t = 0) uniform loading of intensity fa = lIb in- z• We analyze the problem by modeling one quadrant (using the symmetry) of the plate by five nine-node elements (see Fig. 13.8a) and At = 2.5 s. The input data is presented in Table 13.12. Plots of the center deflection and stress ~ersus time are shown in Fig. 13.8(b).
COMPlJIER IMPLEMENTATION
563
TABLE 13.7
Input data for the eigenvalue and transient analysis of a parabolic equation over a square region (a:::: b = 2)t Example 8.9: Eigenvalue analysis of a parabolic equation on a square a a 1 1 ITYPE,IGRAD,ITEM,NEIGN 10 a NVALU, NVCTR 1
4
4
4
0.0 0.0
1
a
IELTYP, NPE.MESH,NPRNT NX,NY XO,DX(I) YO,DY(I)
0.25 0.25
0.25 0.25
0.25 0.25
0.25 0.25
5 1
10 ·1
15 1
20 1
21 1
1,0 1,0 0.0
0.0 0.0
0.0 0.0
A10, A1X, A1Y A20, A2X. A2Y AOO
0.0
0.0
co,
9
22 1
23 1
a
24 1
25 1
NSPV ISPV
IeoNV 1,0
ex,
ey
Example 8.10: Transient analysis of a parabolic equation on a square 0 0 1 ITYPE,IGRAD,ITEM,NEIGN 4 1 0 1 IELTYP,NPE,MESH,NPRNT
°
NX,NY XO,DX(I) YO,DY(I)
4
4
0.0 0.0
0.25 0.25
0.25 0.25
0.25 0.25
0.25 0.25
10 1 0.0
15 1 0.0
20 1 0.0
21 1 0.0
9
5 1 0.0
22 1 0.0
23 1 0.0
24 1 0.0
25 1 0.0
0
NSPV ISPV VSPV NSSV
1,0 1,0 0.0
0.0 0.0
0.0 0.0
A10, A1X, A1Y A20, A2X, A2Y AOO ICONV
°1.0
0.0
0.0
Fa,
FX,
FY
1,0
0.0
0.0
co,
ex.
CY
20 0.05
21 0.5
1 0.5
°
1.0E-3
NTIME,NSTP,INTVL,INTIAL DT,ALFA,GAMA,EPSLN
t Only a quadrant is modeled in the transient as well as the eigenvalue analysis (hence, only symmetric eigenvalues can be obtained).
13.5 SUMMARY A description of finite element computer program FEM2DV2 and its application to problems discussed in Chapters 8-12 have been presented. The program can be used to analyze two-dimensional field problems and problems of plane elasticity, 2-D flows of viscous incompressible fluids, and plate bending. It allows static, eigenvalue, and time-dependent analyses. Linear and quadratic, and triangular and rectangular elements can be used. The mesh
564
FINITE ELEMElIT ANALYSIS OF TWO·DIMENSIONAL PROBLEMS
TABLE 13.8
Input data for the eigenvalue and transient analysis of an hyperbolic equation over a rectangular region (a = 4, b = 2)t Example 8.11: Natural vibration of a rectangular membrane
o
0
2
ITYPE,IGRAD,~TEM,NEIGN
1
9 0 1 4 1 4 4 0.0 1.0 0.0 0.5 16
NVALU, NVCTR IELTYP,NPE,MESH,NPRNT NX,NY XO,DX(I) YO,DY(I} NSPV
a 1.0 0.5
1.0 0.5
1.0 0.5
3 1
4 1
5 1
20 1 15 1 16 1 12.5 0.0 0.0 12.5 0.0 0.0 0.0
21 1
22 1
1
2 1
1
6 1 23 1
10 1 24 1
o
2.5
0.0
0.0
Example 8.12: 0 0 2 1 4 1 4 4 0.0 0.5 0.0 0.25
25 1 AID, AIX, AIY A20, A2X, A2Y ADO ICONV CO, ex, I'CY
ISPV
"'-
Transient analysis of an hyperbolic equation (membrane)
a
ITYPE,~GRAD,ITEM,NEIGN
0 0.5 0.25
0.5 0.25
0.5 0.25
15 1 0.0
20 1 0.0
21 1 0.0
9
5 1 10 1 0.0 0.0 0 12.5 0.0 12.5 0.0 0.0
11 1
22 1 0.0
0.0 0.0
a
0.0 0.0 0.0 2.5 0.0 0.0 20 21 1 1 0.025 0.5 0.5 1.0E-3 0.300 0.400 0.375 0.375 0.35156 0.28125 0.28125 0.225 0.300 0.175 0.16406 0.13125 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.175 0.16406 0.13125 0.076563 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
23 1 0.0
IELTYP,NPE,MESH,NPRNT NX,NY XO,DX(I) YO,DY(I} NSPV ISPV 24 1 25 1 VSPV 0.0 0.0 NSSV AID, A1X, AIY A20, A2X, A2Y ADO IeoNV FY Fa, FX, ey CO, ex, NTIME,NSTP,INTVL,INTIAL DT,ALFA,GAMA,EPSLN
Initial cond , , GLU(I)
Initial cond., GLV(I)
t Only a quadrant is modeled in the transient analysis, and the whole domain is modeled in the eigenvalue analysis.
generators are fairly general for generating finite element meshes for geometrically complex domains. The program FEM2DV2 is a true reflection of the theory presented in Chapters 8-12, and it can be extended to analyze other field problems with appropriate modifications.
COMPUTER IMPLEMENTATION
565
TABLE 13.9
Input data for the dynamic analysis of a cantilever beam Example 10.5: Natural vibration of a cantilever beam by elasticity 2 0 2 1 ITYPE,IGRAD,ITEM,NEIGN 10 a NVALU,NVCTR 1 9 1 1 IELTYP,NPE,MESH,NPRNT 1
4
0.0 0.0 4 9
NX, NY
2.5 2.0 1
2.5
18 1
18 2
xo,
2.5
2.5
DX(I) YO, DY(I) NSPV ISPV
27 1
LNSTRS
1
30.0E06
30.0E06
8.8255E-03
12.0E06
0.25
0.0
1.0
0.0
El,E2,ANU12,GI2,THKNS
ex,
CO,
CY
Example 10.5: Transient analysis of a cantilever beam by elasticity 2 1 2 a ITYPE,IGRAD,ITEM,NEIGN 1 9 1 0 IELTYP,NPE,MESH,NPRNT 1
4
0.0 0.0
NX, NY
2.5 2.0
2.5
2.5
2.5
XO,DX(I) YO,DY(I)
NSPV ISPV VSPV
4
9 1 0.0 3 1 2 -75.0
18 1 0.0
27 1 0.0
18 2 0.0
10 2 -150.0
NSSV ISSV VSSV
19 2 -75.0
LNSTRS
1 30.0E06
30.0E06
0.25
12.0E06
1.0
El,E2,ANUI2,GI2,THKNS
0.0
0.0
0.0
FO, FX, FY
8.8255E-03
0.0
0.0
co,
20
21
0.25E-03
1
CY
NTIME,NSTP,INTVL,INTIAL
0 0.5
CX,
0.5
1. OE-3
DT,ALFA,GAMA,EPSLN
S66
FINITE ELEMENT ANALYSIS OF TWO·DlMENSIONAL PROBLEMS
TABLE 13.10
Input data for the viscous flow problem in Example 13.6 Example 11.5: Transient analysis of fluid squeezed between plates ITYPE,IGRAD,ITEM,NEIGN 1 1 1 0 IEL, NPE, MESH, NPRNT 0 1 9 1 6 4 0.0 1.0 0.0 0.5 47 1 10 92 109 114 0.0 0.0 0.0 -1.0 -1.0
1 2
1 11 1 105 2 110 2 115
1.0 0.5
1.0 0.5
1.0 0.5
3 2 2 ,2 2 12 2 13 1 105 2 106 1 110 2 111 1 115 2 116
0.0 0.0 0.0 0.0 0.0
0.0 0.0 -1. 0 -1. 0 -1. 0
1.0
2 4 2 14 1 106 1 111 1 116
0.0 0.0 0.0 0.0 0.0
0.0 0.0 -1.0 -1.0 -1.0
NX. NY XO, OX(I) YO, OY(I)
1.0
2 5 1 27 2 107 2 112 2 117 0.0 0.0 0.0 0.0 0.0
2 6 1 40 1 107 1 112 1 117 0.0 0.0 -1.0 -1. 0 -1. 0
NSPV 2 7 2 8 1 53 1 66 2 108 1 108 2 113 1 113 2 ISPV(I,J)
2 1
9 79 '2 109 2 114
0.0'" 0.0 Q.O 0.0 -1.0 0.0 ""1.0 VSPV(I) 0.0
2 1 1 1 "-
0.0 0.0 0.0 0.0
NSBV
0
AMU, PENLTY
1.0
1.0EB
0.0
0.0
0.0
FO, FX, FY
1.0
0.0
0.0
co, ex,
20 0.1
50 0.5
1 0.25
0 1. 00-3
CY
NTIME,NSTP,INTVL,INTIAL
OT, ALFA, GAMA, EPSLN
I
J
COMPlJTER IMPLEMENTATION
567
TABLE 13.11
Input data for the bending of a simply supported plate Example 12.1: Bending of a simply supported isotropic plate--FSDT 3 1 0 0 ITYPE,IGRAD,lTEH,NElGN 1 4 1 0 lEL, NPE, MESH, NPRNT 4
NX, NY XO, DX(l) YO, DY(l)
4
0.0 0.0 27 1 10 22
1. 25 1. 25
1.25 1.25
1.25 1.25
1. 25 1. 25
NSPV 2
1
3
3 1
11
2 2
22
2 15 23
0".0 0.0 0.0
0.0 0.0 0.0
0.0 0.0 0.0
3
3
3
4
3
1 1
15 23
3 2
16 24
2 1
0.0 0.0 0.0
0.0 0,0 0.0
5 20 24
1 1 2
0.0 0.0 0.0
5 20 25
3 3 1
0.0 0.0 0.0
6
21 25
2 1 2
10 1 21 2 25 3
0.0 0.0 0.0
0.0 0.0 0.0
lSPV
VSPV
NSSV
0 1. OE7 1.0
1.0E7 0.0
0.25
0.4E7 0.4E7 0.4E7
E1, E2, ANU12, G12, •••
1.0
Fa, FX, FY
0.0
Example 12.1: Bending of a simply supported isotropic plate--CPT(C) 5 1 0 ITYPE,lGRAD,ITEH,NElGN a 1 4 1 a lEL, NPE, MESH, NPRNT 1
NX, NY XO, DX(l) YO, DY(l)
1
0.0 0.0
5.0 5.0
12 1 2 1 4
1 2
0.0 0.0
0.0 0.0
2
3 4
3
1 4
0.0 0.0
2
3
0.0
3
1
0.0
3
2
0.0
4 0.0
a 1.0E7 1.0
1
NSPV 4 4 2 lSPV(l,J) 0.0 VSPV(l)
3
0.0
NSSV 1. OE7 0.0
0.25
0.0
0.4E7
O.4E7
0.4E7
1.0
El,E2,ANU12,G12, ••• FO, FX, FY
568
FINITE ELEMENT ANALYSIS OF TWO-DIMENSIONAL PROBLEMS
y
",,,-I
/'
""
/
4>$
I
=
0
I
25
r---'--
\
x
\
E = 100 Ib in ? v = 0.3 h = 20 in
\
•
'....
"'-
/
I ",>t .... < , -_L ' _..--- " (a)
'" ~ ....'"
-
60
fo = 1.0 h = 20 p=lO fit = 2.5
'"
'"0
e
'" c:: 0 "£.,
.,
IV
•• ~ U x
40
<;:: '"0
.... E c::
20
u
U
0
-10
0
50 100 150
FIGURE 13.8 Clamped circular plate under a suddenly applied uniform load; (a) geometry and boundary conditions; (b) center deflection and stress versus time.
COMPUTER IMPLEMENTATION
569
TABLE 13.12
Input data for the transient analysis of a circular plate Example 13.8: Transient response of a clamped circular plate--FSDT 3 1 2 a ITYPE,IGRAD,ITEM,NEIGN 1 9 0 0 IEL, NPE, MESH, NPRNT 5
29
1
5 15 7 25 17
5 9 15 19
NEM, NNM 7 17 17 27 27
2 10 8 20 18
9 7 19 17
29
8 12 18 22 28
16.5000 33.0 12.6286 45.732 0.0 46.669 83.0 31.7627 92.388 0.0
0.0000 0.0000 0.0000 ·16.5 23.3345 23.3345 49.5 0.0 18.9428 45.732 60.976 25.2571 0.0 66.0 58.6898 58.6898 100.0 0.0 38.2683 92 .388 27 1 19 27
6 16 12 26 22
3
4 6 14
11 13
16 24
21 23
0.0000 0.0 30.488 18.9428 49.5 46.669 0.0 76.682 38.2683 100.0
NOD(l,I)/ NOD(2, I) r NOD(3,I) r NOD(4/I), NOD(5/I), 11. 6673 30.488 0.0 35.0 66.0 25.2571 76.682 0.0 70.7107
I=l,NPE I=l/NPE I=l/NPE I=l/NPE I=l/NPE
11.6673 12.6286 33.0 35.0 0.0 60.976 31.7627 83.0 70.7107 GLXY(I,J) NSPV
2 2 1
0.0 0.0 0.0
1 20 27
3 3 2
3 2 3
2 24 27
0.0 0.0 0.0
0.0 0.0 0.0
4 25 28
2 1
1
0.0 0.0 0.0
5 25 28
3 2 2
0.0 0.0 0.0
9
25 28 0.0 0.0 0.0
10 26 29
3 1 1
0.0 0.0 0.0
14 26 29
2 2 2
0.0 0.0 0.0
15 3 26 3 29 3
ISPV
0.0 0.0 0.0
VSPV
NSSV
0 1.0E2
2 3 3
1. OE2
0.30
0.3845E2
0.3845E2
0.3845E2
20.0
E1,E2, •••
1.0
0.0
0.0
FO, FX, FY
10.0
0.0
0.0
CO, CX, CY
40 2.5
41 0.5
10 0.5
a 1.0E-03
NTIME,NSTP,INTVL,INTIAL DT, ALFA, GAMA/ EPSLN
570
FlNITE ELEMENT ANALYSIS OF nvO·DlMENSIONAL PROBLEMS
PROBLEMS Note that all of the problems must be analyzed using FEM2DV2. The results obtained from the program should be evaluated for their accuracy in the light of analytical solutions for qualitative understanding of the solution of the problem. New problems can be generated from those given here by changing the problem data, mesh, type of element, etc. For time-dependent problems, the time step and number of time steps should be chosen such that the solution pattern is established or a steady state is reached. When specific material properties are not given, use values such that the solution can be interpreted as the nondimensional solution of the problem.
Field problems (Chapter 8) 13.1. Investigate the convergence of the solution to Problem 8.26 using 2 x 2, 4 x 4, and 8 X 8 meshes of linear triangular elements, and compare the results (in I' 'graphical or tabular form) with the analytical solution. 13.2. Repeat Problem 13.1 with rectangular elements. 13.3. Repeat Problem 13.1 for the case Uo= 1 (see Problem 8,27 for the~ solution). 13.4. Repeat Problem 13.3 with rectangular elements. 13.5. Investigate the convergence of the solution to Problem 8.31 using 2 X 2, 4 X 4, and 8 x 8 meshes of linear triangular elements and equivalent meshes of quadratic triangular elements. 13.6. Repeat Problem 13.5 using rectangular elements. 13.7. Analyze the axisymmetric problem in Problem 8.36 using 4 X 1 and 8 x 1 linear rectangular elements, and compare the solution with the exact solution. 13.8. Analyze the axisymmetric problem in Problem 8.37 using 4 x 4 and 8 x 8 meshes of linear rectangular elements. 13.9. Analyze Problem 8.26 for eigenvalues (take c = 1.0), using a 2 x 4 uniform mesh of triangular elements. Calculate the critical time step for a parabolic equation. 13.10. Analyze Problem 8.26 using a 2 x 4 mesh of triangles for transient response. Assume zero initial conditions. Use «= 0.5 and t!J.t = 0.01. Investigate the stability of the solution when «= 0.0 and ~t =0.005. The number of time steps should be such that the solution reaches its peak value or a steady state. 13.11. Analyze Problem 8.31 for transient response (take c = 1.0) using a 4 x 4 mesh of linear rectangular elements and a 2 x 2 mesh of nine-node quadratic rectangular elements. Assume zero initial conditions. Investigate the stability and accuracy of the Crank-Nicolson scheme (<< = 0.5) and the forward difference scheme (<< = 0). 13.12. Repeat Problem 13.11 for the axisymmetric problem in Fig. P8.37. Assume zero initial conditions.
Heat transfer (Chapter 8) 13.13. Analyze the heat transfer problem in Problem 8.38 using an 8 x 16 mesh of linear triangular elements and an equivalent mesh of linear rectangular elements. 13.14. Analyze the heat transfer problem in Fig. P8.39.
j'
COMPUTER IMPLEMENTATION
571
13.15. Analyze Problem 8,40 for nodal temperatures and heat flow across the boundaries. Use the following data: k=30Wm-loC~1, {3=60Wm- 2°C- I, T= = DoC, 10::::: 100°C, qo = 200, 000 W m-2 , to = 107 W m", and a ::::: 1 em. 13.16. Repeat Problem 13.15 with an equivalent mesh of triangular elements. 13.17. Analyze Problem 8,46 for -nodal temperature and heat flows across the boundary. Take k = 5 Wm- I °C- t • 13.18. Repeat Problem 13.17 using equivalent meshes of nine-node rectangular elements. I~) Consider heat transfer in a rectangular domain with a central heated circular cylinder (see Fig. P13.19 for the geometry). Analyze the problem using the mesh of linear quadrilateral elements shown in Fig. 13.3(b). •
J
Insulated FIGURE P13.19
)3.20. Repeat Problem 13.19 with the mesh of quadratic quadrilateral elements shown --" in Fig. 13.3(d). 13.21. Analyze the heat transfer problem in Fig. P8,42 with (a) 2 X 2 and (b) 4 x 4 meshes of linear rectangular elements. 13.22. Repeat Problem 13.21 with triangular elements. 13.23. Analyze the problem in Fig. P8A3 with (a) 3 X 3, and (b) 6 X 6 meshes of linear rectangular elements. Take k::::: lO W m" °C- I. 13.24. Repeat Problem 13.23 with linear triangular elements. 13.25. Analyze the heat transfer problem in Fig. P8,45 with a 4 X 4 mesh of linear rectangular elements and an equivalent mesh of quadratic (nine-node) elements. Take a = 1 em, To = lOO°C, and k = 3 W m" °C~I. 13.26. Determine the transient response of the problem in Fig. P8A3 using a 6 x 6 mesh of rectangular elements. Use the Crank-Nicolson scheme. 13.27. Analyze the problem in Fig. P8,46 for transient response using (a) !k'::::: 0 and (b) !k'=0.5. 13.28. Analyze the axisymmetric problem in Fig. P8.36 using the Crank-Nicolson method. Use an 8 x 1 mesh of linear rectangular elements. Ground water and inviscid flows (Chapter 8) 13.29. Analyze the groundwater flow in Problem 8.50 using a 16 x 8 mesh of linear rectangular elements, and homogeneous properties all ::::: an::::: 1 m day",
572
FINITE ELEMENT ANALYSIS OF TWO·DlMENSIONAL PROBLEMS
13.30. 13.31. 13.32. 13.33. 13.34. 13.35~
13.36.
13:37. 13.38. ( -. 13.39. 13.40.
Repeat Problem 13.29 with a 16 x 18 mesh of linear triangular elements. Analyze Problem 8.49 with an 8 x 4 mesh of linear triangular elements. Repeat Problem 8.49 with an equivalent mesh of linear quadrilateral elements. Repeat Problem 8.49 with an equivalent mesh of quadratic triangular elements. Repeat Problem 8.49 with an equivalent mesh of quadratic (nine-node) quadrilateral elements. Analyze Problem 8.48 using linear rectangular elements and an equivalent mesh of quadratic rectangular elements. Use an 8 x 6 mesh in the first rectangle and an 8 x 4 mesh in the second. The meshes should be refined in the horizontal direction to have smaller elements around the sheet pile. Analyze the flow around cylinder of elliptical cross-section (see Fig. PE.52). Use the symmetry and an appropriate mesh of linear triangular elements. Use 1'''' the stream function approach. Repeat Problem 13.36 using the velocity potential formulation. Repeat Problem 13.36 with quadrilateral elements. , Repeat Problem 13.36 using the velocity potential formulation and quadrilateral elements. Analyze the problem in Fig. P8.53 using (a) the stream function and (b) the velocity potential formulations. Use an 8 X 8 mesh in the first rectangle and a 4 x 4 mesh in the second. Use a nonuniform mesh of linear rectangular elements such that smaller elements are used near the obstruction.
Solid mechanics (Chapter 8) 13.41. Analyze the torsion of a member of circular cross-section (see Fig. P8.54) for the state of shear stress distribution. Investigate the accuracy with mesh refinements (by subdividing the mesh in Fig. P8.54 with horizontal and vertical lines). 13.42. Analyze the torsion problem in Fig. P8.56. 13.43. Analyze the hollow-crass-section torsion problem in Fig. P8.57 using a mesh of (a) linear triangular elements in an octant and (b) linear rectangular elements in a quadrant. The meshes should be node-wise-equivalent. 13.44. Analyze the rectangular membrane problem in Fig. P8.59 with 4 x 4 and 8 x 8 meshes of linear rectangular elements in the computational domain. Take all = an = 1. 13.45. Repeat Problem 13.44 with triangular elements. 13.46. Repeat Problem 13.45 with equivalent meshes of quadratic elements. 13.47. Investigate the convergence of the solution of the circular membrane problem in Fig. P8.60 by subdividing each element into three elements. Compare the nodal values of the deflection obtained with the two meshes. 13.48. Determine the eigenvalues of the rectangular membrane in Fig. P8.59 using a 4 x 4 mesh in the half-domain. Use c = 1.0. 13.49, Analyze Problem 8.59 (with a 4 x 4 mesh in the half-domain) for transient response. Assume zero initial conditions and (a) a-=t y=! and (b) (\"=!, Y= j. Use M = Mer and a sufficient number of time steps to plot the results graphically.
COMPUTER IMPLEMEl'ITATION
573
13.50. Determine the eigenvalues of the circular membrane problem in Fig. P8.60 with a refined mesh obtained from that shown in the figure by subdividing the elements. 13.51. Determine the transient response of the problem in Fig. P8.60 (see Problem 13.50). Assume zero initial conditions, c = 1 and to = 1. Use «= y = 0.5, t!J.t = 0.05, and plot the center deflection versus time t for t = 0-2.4. Plane elasticity (Chapter 10) 13.52. Analyze the plane elasticity problem in Fig. PlO,] using (a) 4 X 2 and (b) 8 x 4 meshes of linear rectangular elements and equivalent meshes of quadratic (nine-node) elements. Evaluate the results (i.e., displacements and stresses) qualitatively. Use the plane stress assumption. 13.53. Repeat Problem 13.52 using triangular elements. 13.54-13.63. Analyze' the plane elasticity problems shown in Figs. PIO.1-10.3 and PlO.1O-P10.16 using suitable meshes of triangular or rectangular elements (the instructor should specify the element type and mesh). 13.64. Analyze the plane elasticity problem in Fig. PlO.7 for natural frequencies. Use an 8 x 4 mesh of linear rectangular elements and an equivalent mesh of quadratic elements. Use a density of 0.0088. 13.65. Repeat Problem 13.64 with triangular elements. 13.66. Analyze Problem 13.64 for its transient reSpOI,Ite. Use «=!, y = t and M = 1O~5. Assume zero initial conditions. f 13.67-13.70. Analyze Problems 13.54-13.57 for their transient response. Use «= t y = t and M = Mer' Viscous incompressible fluids (Chapter 11) .~
13.71. Analyze the viscous flow problem in Problem 11.8 using an 8 x 8 mesh of linear ~ rectangular elements. Plot the horizontal velocity u(0.5, y) versus y, and the
13.72. _,13.73. 13~14.
13.75. 13.76. 13.77.
13.78.
pressure along the top surface of the cavity. Investigate the effect of the penalty parameter on the solution (see Fig. P11.8). Repeat Problem 13.71 with nine-node quadratic elements. Repeat Problem 13.71 with eight-node quadratic elements. Analyze the slider bearing problem of Example 11.4 to investigate the effect of the penalty parameter on the velocity and pressure fields. Use an 8 x 8 mesh of linear rectangular elements. Repeat Problem 13.74 with nine-node quadratic elements. Repeat Problem 13.74 with eight-node quadratic elements. Analyze the problem of a viscous incompressible fluid being squeezed through a 4:1 contraction, as shown in Fig. P13.77. Take £1=10, L=6, R ,=4, and R 2 = I, and linear quadrilateral elements. The inlet velocity u(y) is the fully developed solution of the flow between parallel plates. Plot the velocity u(x, y) and pressure along the horizontal centerline. Analyze the cavity problem in Problem 13.71 for its transient solution. Use p = 1.0, zero initial conditions, penalty parameter y = 108 , time parameter «=0.5, and a time step of 0.005 to capture the evolution of u(0.5,y) with time.
574
FINITE ELEMENT ANALYSIS OF TWO·DIMENSIONAL PROBLEMS
Yl~·_~
T
Rj
&1_._ _ __.
-----oj'll R2 . .__+.-1..- x .---------'p _
L2
FIGURE P13.77
13.79. Analyze the slider bearing problem of Example 11.4 for its transient solution. Use p = 20, zero initial conditions, Y= 108, a = 0.5, and a time step of 10- 4 • Plate bending (Chapter 12) 13.80. Analyze the plate problem in Fig. P12.1 using 2 x i, 4 X 2 and 8 X 4 meshes of CPT(N) elements in the half-plate, and compare the maximum deflections and stresses. 13.81. Repeat Problem 13.80 with a CPT(C) element. 13.82. Repeat Problem 13.80 with an 8 X 4 mesh of linear rectangular elements and a 4 X 2 mesh of nine-node quadratic elements (first-order plate theory). 13.83. Analyze the plate problem in Fig. P12.4 using a 4 x 4 mesh of CPT(N) elements. 13.84. Repeat Problem 13.83 with CPT(C) elements. 13.85. Repeat Problem 13.83 with a 4 x 4 mesh of nine-node quadratic elements. 13.86-13.88. Analyze the plate bending problems shown in Figs. PI2.7-PI2.9 with the CPT(C) elements. Use the mesh shown. 13.89-13.91. Repeat Problems 13.86-13.88 using shear deformation theory. Use linear finite elements. 13.92. Analyze the annular plate in Fig. P12.3 using a four-element mesh (see Fig. P12.7) of CPT(C) elements. 13.93. Repeat Problem 13.92 with four nine-node FSDT elements. 13.94. Analyze the rhombic plate in Fig. P12.6 with a 4 x 4 mesh of nine-node (FSDT) elements. 13.95. Analyze the plate problem in Fig. P12.1 for its transient response. Use CPT(C) elements and a value of 0.1 for the density.
COMPlIfER IMPLEMENTATION
575
13.%. Analyze the 'plate problem in Fig. P12.1 for its transient response using the 4 x 2 mesh of nine-node quadratic elements (see Problem 13.82) and a value of 0.1 for the density. 13.97. Determine the transient response of the plate in Problem 13.83 with the CPT(C) element. 13.98. Determine the transient response of the plate in Problem 13.83 with the nine-node quadratic element. 13.99. Determine the transient response of the annular plate in Fig. P12.7 using FSDT elements. ~
REFERENCES FOR ADDITIONAL READING (See also Chapters 3, 4, 6-12) Fluid mechanics Eskinazi, S.: Principles of Fluid Mechanics, Allyn and Bacon, Boston 1962. Bird, R. B., W. E. Stewart, and E. N. Lightfoot; Transport Phenomena, John Wiley, New York, 1960. Duncan, W. J., A. S. Thorn, and A. D. Young: Mechanics of Fluids, 2d ed., Elsevier, New York, 1970. Harr, M. E.; Ground Water and Seepage, McGraw-Hill, New York, 1962. Nadai, A.: Theory of Flow and Fracture of Solids, vol. II, McGraw-Hili, New York, 1963. Schlichting, H.: Boundary-Layer Theory (translated by J. Kestin), 7th ed., McGraw-Hill, New York,1979. Shames, I. H.: Mechanics of Fluids, McGraw-Hili, New York, 1962. Vallentine, H. R: Applied Hydrodynamics, Butterworths, London, 1959. Verrujit, A.: Theory of Groundwater Flow, Gordon and Breach, New York, 1970. Heat transfer Carslaw, H. S., and J. C. Jaeger: Conduction of Heat in Solids, Clarendon Press, Oxford, 1959.
Holoman, J. P.; Heat Transfer, 6th ed., McGraw-Hill, New York, 1986. Donea, J.; "On the Accuracy of Finite Element Solutions to the Transient Heat-Conduction Equation," International Journal for Numerical Methods in Engineering, vol. 8, pp, 103-110, 1974. Kreith, F.; Principles of Heat Transfer, 3d ed., Harper & Row, New York, 1973. Moore, A. H., B. Kaplan, and D. B. Mitchell; "A Comparison of Crandall and Crank-Nicolson Methods for Solving a Transient Heal Conduction Problem," International Journal for Numerical Me/hods in Engineering, vol, 9, pp. 938~943, 1975. Myers, G. E.: Analytical Methods in Conduction Heat Transfer, McGraw-Hill, New York, 1972. Ozisik , M. N.: Heat Transfer: A Basic Approach, McGraw-Hill, New York, 1985. Wilson, E. L., and R E. Nickell: "Application of the Finite Element Method to Heat Conduction Analysis," Journal for Nuclear Engineering and Design, vol, 4,pp. 276-286, 1966. Wood, W. L., and R. W. Lewis: "A Comparison of Time Marching Schemes for the Transient Heat Conduction Equation," International Journal for Numerical Methods in Engineering, vol. 9, pp. 679-690, 1975. . Plane elasticity Budynas, R. G.; Advanced Strengtb and Applied Stress Analysis, McGraw-Hili, New York, 1977. Harris, C. M., and C. E. Crede: Shock and Vibration Handbook, vol. 1, McGraw-Hill, New York, 1961.
576
FINITE ELEMENT ANALYSIS OF TWO·DlMENSIONAL PROBLEMS
Ugural, A. c., and S. K. Fenster, Advanced Strength and Applied Elasticity, Elsevier, New York, 1975. Volterra, E., and J. n. Gaines: Advallced Strength of Materials, Prentice-Hall, Englewood Cliffs, NJ, 1971.
Plate bending Dym, C. L., and I. H. Shames; Solid Mechanics: A Variational Approach, McGraw-Hill, New York, 1973. Reddy, J. N.: "A Penalty-Plate Bending Element for the Analysis of Laminated Anisotropic Composite Plates," International Journal for Numerical Methods in Engineering, vol. 15, pp. 1187-1206,1980. - - - : "On the Solutions to Forced Motions of Rectangular Composite Plates," Journal of Applied Mechanics, vol. 49, pp. 403-408, 1982. - - - : Energy and Variational Methods in Applied Mechanics, John Wiley, New York, 1984. Szilard, R.: Theory and Allalysis of Plates, Prentice-Hall, Englewood Cliffs, NJ, 1974. Timoshenko, S., and S. Woinowsky-Krieger: Theory of Plates and Shells, 2d ed., McGraW-Hili, New York, 1959. I" Tsay, C. S., and J. N. Reddy: "Bending, Stability, and Free Vibration of Thin Orthotropic Plates by Simplified Mixed Finite Elements," Journal of Sound and, Vibration, vol. 59, pp. 307-311, 1978. Computer Implementation Akay, H. U., P. G. Willhite, and H. Didandeh: "UCODE2, Version 87.1," Computational Fluid Dynamics Laboratory, Department of Mechanical Engineering, Purdue University at Indianapolis, Indianapolis, 1987. Bathe, K.-J.: Finite Element Procedures in Engineering Analysis, Prentice-Hall, Englewood Cliffs, NJ, 1982. Burnett, D. S.: Finite Element Analysis, Addison-Wesley, Reading, MA, 1987. Hughes, T. J. R: The Finite Element Method, Prentice-Hall, Englewood Cliffs, NJ, 1987. Zienkiewicz, O. C,; and R. L. Taylor: The Finite Element Method, vol. 1, McGraw-Hill, New York,1989.
PART
4 ADVANCED
TOPICS
577
\
CHAPTER
14 WEIGHTED-RESIDUAL FINITE ELEMENT MODELS, AND FINITE ELEMENT MODELS OF NONLINEAR AND THREE-DIMENSIONAL PROBLEMS
14.1 INTRODUCfION The introduction presented in the preceding chapters is sufficient to provide the essential ideas for the development of finite element models and the associated computer programs for most linear boundary and initial value problems, and eigenvalue problems in one and two dimensions. However, there are many additional ideas that deserve some comment. Here we discuss some immediate extensions of the present study to alternative formulations, three-dimensional problems, and nonlinear problems. The discussions are only meant to give some idea of the applicability of the finite element method to these advanced topics, and therefore details are not included here. The topics discussed in this chapter are as follows: 1. Alternative formulations. 2. Nonlinear problems 3. Three-dimensional problems The reader, interested in a detailed treatment of any of these topics should consult the books listed in the References at the end of the chapter. 579
580
ADVANCED TOPICS
14.2 ALTERNATIVE FORMULATIONS 14.2.1 Introductory Comments The finite element formulations presented in Chapters 3-12 were based on the weak formulation of the governing differential equations. These models can be termed the Ritz finite element models or weak form finite element models. In most cases, especially when the governing equations contain derivatives of even order, weak forms can be developed using the three-step procedure. In some cases, the governing equations must be recast in an alternative form that facilitates the use of lower-order interpolations and/or yields better accuracies for the secondary variables, which, as the reader knows, are discontinuous at the interelement boundaries. Here we discuss a couple of such formulations and demonstrate the use of the weighted-residual methods of Section 2.4.3 in the finite element modeling of the equations. More specificallyc-we shall study the following formulations: 1. Weighted-residual formulations 2. A mixed formulation of the Euler-Bernoulli beam theory It should be noted that these specific equations have been chosen to illustrate the basic ideas behind the two formulations-the ideas are applicable to other equations, and to two- and three-dimensional problems.
14.2.2 Weighted-Residual Finite Element Models Here we describe finite element models based on weighted-residual methods. Recall from the preceding chapters that the finite element models presented are based on a weak formulation. In this formulation, integration by parts is used to include the natural boundary conditions in the integral form. Weighted-residual methods are based on a weighted-integral form of a given differential equation. They are the natural and only choice for first-order equations, which do not have a weak formulation. For" second- and higherorder equations, we have a choice between the weak formulation and the weighted residual formulation. We begin with the description of weightedresidual finite element models of a first-order equation in one dimension. 1-D FlRST·ORDER EQUATIONS. Consider the first-order equation
du
adx
+ ell = f for 0 < x < L
(14.1)
where a, c, and f are given functions of x. An example of a situation in which the above equation arises is given by Newton's law of cooling of a body with temperature u in an environment at temperature uo: du dt + k(u - llo) = 0 which is the same as (14.1) with x = t, e =-k, a = 1, and
f
=
ku.;
\
WEIGHTED·RESIDUAL FINITE ELEMENT MODELS
581
Since the equation under consideration is of first order, there is no advantage in transferring the derivative to the weight function. Hence, the weighted-integral form to be used here naturally falls under the weightedresidual method. Over an element, we have
0=
fB -:
+cu
~!) dx
(14.2)
Note that there are no "flux" terms in the equation. When u is approximated by an n-parameter approximation, we need n algebraic equations to solve for the parameters. These n equations are provided by n different (i.e., linearly independent) choices of the weight function w. Different choices of w dictate different methods. Suppose that u is approximated as n
U
= U" =
2: u'J1/Jj(x)
(14.3)
j=l
where uj denote the nodal values of the variable U", and 1/Jj(x) are the interpolation functions. An examination of the weighted-integral statement (14.2) shows that Wj should be once-differentiable with respect to x. Hence, the minimum continuity on 1/Jj is that they be linear. Consequently, the Lagrange family of interpolation functions are admissible. The only requirements on the weight function ware (i) that it be integrable in the sense of (14.2), and (ii) that it belong to a linearly independent set {W,}7=1' The ith algebraic equation is obtained by replacing W in (14.2) with Wi' Different choices for the set {Wi} have been suggested, and the resulting models bear the names of the original scientists who suggested them. The best-known choices for Wi are
*
1. The Petrov-Galerkin method: Wi = 1>i and
The finite element models of (14.1) based on these methods are discussed next. The Petrov-Galerkin model. Substitute (14.3) for u and w =
where
!f = 1.r
XA
(14.5b)
582
ADVANCED TOPICS
The Bubnov-Galerkin model. "Here we substitute w = 'ljJT into (14.2) to obtain the finite element model (14.6a) where (14.6b) Collocation model. In this case, we take w = fl(x - Xj), the Dirac delta function. The collocation points x, can be chosen arbitrarily, usually as the quadrature points in Qe = [XA' XB]. We have (14.7) Subdomain model. In this model, the element domain Qe is subdivided further into n subdomains. The weight function for the ith subdomain QT is unity over the subdomain and zero outside it: 1 for x E QT w() x = { o for x It Qi
(14.8)
We obtain (14.9) Least-squares model. The weight function in this case is w == A( 'ljJj) = + c'ljJT. Consequently, we have
ad'ljJrldx
Kij =
s ) ( d'ljJ~ ) Jcx (d'ljJ~ a dx' + c'ljJT a ~ + c'ljJj
ax
(14.10a)
XA
(14.10b) Note that only the least-squares method gives a symmetric coefficient matrix for a single first-order equation. It is possible to obtain a symmetric coefficient matrix in the Galerkin model of a set of first-order equations (see Problem 14.1). Next we consider an example. Example 14.1. Let us solve (14.1) for the data a = 1, c = 2, f = 1, and L = 1, and the boundary condition u(O) = 1. We shall use two linear elements in the domain. For the Bubnov-Galerkin model, we have (14.11)
WEIGHTED·RESIDUAL FINITE ELEMENT MODELS
583
The assembled equations are given by (14.12) Using the boundary condition VI = 1, we obtain from the last two equations
1[-24 54]{ VU ="61{5} 1.5 2
"6
(14.13)
}
3
and their solution is V2 = 0,6786 and V3 = 0.5714. The exact solution is u(x) = u(O)e-(
+[(1- e-(
(14.14)
c
f\
f ../~.f!.?j
The exact values of II at x = ! and 1 are 9.6389' and 0.5677, respectively. For the collocation model, we choose XI = ~he and X2 = ~h<J and obtain
1] + ~[2 1] 3 1 2'
[Kel=.!.[-1 he -1 1
{te} =
G}
(14.15)
Clearly, the element equations obtained using the collocation points XI = ~he and = ~he are the same as those obtained in the Bubnov-Galerkin method (actually a multiple of !h e ) . Hence, we obtain the same solution as in the Bubnov-Galerkin method. In the case of the subdomain model, we use Q~ = (0, !h e ) and Q~ = (!h., he). For this choice, we obtain
X2
1] + ~[3 1] 4 1 3'
-1 [ Ke] = ~2 [ -1
{f'}
1
=
3: G} e
?
The assembled equations become
-1
~ -3 8
[
°
(14,16)
5O]{Vt} 3{I} U2 U3
6 5 -3 7
=
16 2 1
(14.17)
The solution, from the last two equations, is V2 = 0.6053 and U3 = 0.4737. Last, we consider the least-squares model. We have [K e]
=.!.[ 1 he -1
[2
-1J 4he 1] [-2 20] 1 + 6 1 2 + 0
(14.18a)
(14. 18b) The assembled equations are
1[-2.5
3" -0.5 0.0
O.O]{Ut} _{-O.5} 1.0
-0.5 7.0 -0.5
U2
-0.5
U3
9.5
-
1.5
(14.19)
584
ADVANCED TOPICS
TABLE 14.1
Comparison of the numerical solution of (14.1) with the exact solution (Example 14.1) Nodal values
BubnovGalerkin
CoUocation
Subdomain
Least-squares
Exact
1/(0.5) u(1.0)
0.6786 0.5714
0.6786 0.5714
0.6053 0.4737
0.6793 0.5094
0.6839 0.5677
The solution of these equations is
U2=0.6793,
U3 =0.5094
Table 14.1 gives a summary of the solutions obtained using various models. /
I-D SECOND-ORDER EQUATIONS. Use of weighted-residual finite element models in the solution of second-order equations is more involved. We describe the finite element models for the model equation
-:!-(a dU) = f dx dx
(14.20)
For the weak formulation of this equation, the approximation functions 1JJ7 must be continuous, as required by the weak form, and they are also required to be the interpolants of u only. The weak form includes the natural boundary conditions associated with the equation, and therefore interpolation of only u (not its derivatives) is required. In the weighted-residual methods, we use the weighted-integral form of the differential equation without weakening the differentiability on u. Therefore, the continuity conditions on the interpolation functions used in the weighted-residual methods are dictated by the order of the differential equation. For example, the second-order differential equation (14.20) requires the approximation functions to be twice-differentiable .with respect to x. In addition, the approximation solution must satisfy the end conditions on the primary and secondary variables (identified with the help of the weak formulation) of the problem. This amounts, for second-order equations, to using approximation functions that make the primary and secondary variables continuous at the nodes connecting two elements (i.e., interelement nodes). For the second-order equation under consideration, the natural boundary condition involves specifying the secondary variable a duldx at the element boundaries. Therefore, the interpolation functions must be selected such that u and a du] dx are continuous across an interface between elements. This in turn implies, if a is continuous, that duldx is continuous throughout the domain 1 Q =~O, L). Hence, a C approximation (i.e., Hermite interpolation) of u is required. Because u and dul dx are required to be continuous across an interface between elements, and a typical element (in one dimension) has two such interfaces, the polynomial approximatior: of u must involve four parameters,
WEIGIITED·RESlDUAl FINITB ELEMENT MODELS
585
i.e., it must be a cubicpolynomial. Thus, the finite element is a line element with two nodes and two degrees of freedom, Il and duldx, at each node. The element is different from. the Lagrange cubic element, which has four nodes with one degree of freedom per node .. The Lagrange interpolation functions (of any order) do not satisfy the continuity of dul dx across element interfaces, and therefore do not belong to Cl(O, L). The two-node element, with continuous u and dilldx at element interfaces, is the Hermite cubic element developed in Section 4.2 for the Euler-Bernoulli beam element. We have 4
Ve(x) =
2: uJljJJ(x)
(14.21)
}=1
where ul and U3 are the nodal values of U", u; and u: are the nodal values of dll" ldx at the two nodes, and ljJ'f are the Hermite cubic interpolation functions in (4.10). We consider various weighted-residual finite element models of (14.20). The weighted-residual form of (14.20) over an element Qe = (XA, x B ) is
0=
fB w[ - ~(a
(14.22)
: ) -[] dx
Substituting iflf for the weight function wand (14.21) for
Il,
we obtain
4
0=2: Kiju'j - [1,
or [KeJ{u e } = {r}
(14.23a)
}=1
where
"'B[
d ( dljJe)] -ifl1 dx a dx} dx,
fB iflffdx
L
(14.23b) XA Equation (14.23a) is the Petrov-Galerkin model of (14.20) when ifl1 =/; ljJf. For different choices of ifl1 in (14.23b), we obtain different finite element models. These are presented below.
Kij = I XA
11 =
The Bubnov-Galerkin model. For ifli= ljJl, (14.23b) becomes XB XB d ( dljJe) 11= ljJi[dx Kij= I XA - ljJ1 dx a d/ dx, XA
I
(14.24)
Least-squares model. For iflf = A( W) s; -(dldx)(a dljJUdx), we have e _ IXA!!.. ( dljJ'f)!!..( dljJJ) K/j - XB dad dad dx, X X X X
t: = _f.XB!!.. (a dljJ'f)fdx XA dx
dx
(14.25)
Collocation model. For ifl'f = b(x - Xj), (14.23b) takes the form
dljJ" (x) ]} Kij= - { -d [ a(x)-J dx dx where
Xj
are the collocation points.
, X=Xj
(14.26)
586
ADVANCED TOPICS
While the Bubnov-Galerkin and least-squares models have the same form as the Ritz model, i.e., they are defined by integral expressions, the collocation model does not. In the latter, one simply evaluates the coefficient matrices and column vector at the collocation points, instead of evaluating the integral expressions. The number of collocation points should be equal to the number of unknowns, after imposition of the boundary conditions of the problem. For second-order equations, we have two boundary conditions and 2(N + 1) nodal degrees of freedom for an N-element model. Hence, a total of 2N collocation points, two per element, are needed. Also, note that the coefficient matrix in (14.26) is of order 2 x 4 (i = 1, 2), and there is no overlap of element matrices because there is no summation of equations over the number of elements. However, the continuity conditions on nodal variables "" are imposed in all other models. I'
Example 14.2. Consider the boundary value problem
d[
dll]
- dx (1 + x) dx = 0 for 0 < x < 1
[(1+X):]I,,_1=1
u(O) =0,
(14.27a)
(14.27b)
The exact solution of this problem is (14.28)
u =In (1 +x)
We wish to solve the problem using various weighted-residual finite element models. Consider a two-element discretization of the problem. There are three nodes and six degrees of freedom. The known degrees of freedom for the weighted-residual models are (14.29) whereas, in the four-element Ritz model (i.e., the weak form finite element model) with linear elements, they are
U1 = 0,
Us = 1.0
(14.30)
For the collocation model, the two-point Gauss quadrature 'points are used as the collocation points. The two- and four-element finite element solutions obtained from three weighted-residual finite element models, all using the Hermite cubics, are compared with the exact solution and the solution of the weak form finite element model in Table 14.2. All models give accurate results. 2-D SECOND-ORDER EQUATIONS. Here we describe the Bubnov-Galerkin,
least-squares, and collocation finite element models of a second-order equation in two dimensions. We consider the Poisson equation (Au = f)
au)
au)
-~(a ax 11 ax -~(a ay 22 ay =1
in Q
(14.31)
~
..
WEIGfITED·RESlDUAL FINnE ELEMENT MODELS
587
TABLE 14.2
Comparison of weighted-residual finite-element solutionst with the exact solution of the problem in (14.27) Exact
Collocatlon
Galerkin
Leastsquares
Ritz
u
0.0ססoo
0.0ססoo
0.0ססoo
o.ooooo
0.0ססoo
u'
1.0ססoo
0.99390 0.99967
0.99604 0.99930
0.99902 0.99993
0.99612 0.99930
u
0.22314
0.22326
0.22313
0.22315
0.22313
u'
0.8ססOO
0.80028
0.80004
0.79997
0.80004
u
0.40547
0.40487 0.40562
0.40537 0.40546
0.40554 0.40547
0.40538 0.40546
u'
0.66667
0.66299 0.66646
0.66707 0.66673
0.66645 0.66665
0.66728 0.66674
u
0.55962
0.55975
0.55961
0.55962
0.55961
u'
0.57143
0.57123
0.57146
0.57142
0.57148
u
0.69315
0.69202 0.69325
0.69309 0.69314
0.69324 0.69315
0.69315 0.69315
u'
0.5ססOO
0.5ססOO
0.5ססOO
0.5ססOO
0.5ססOO
0.5ססOO
0.5ססOO
0.50102 0.50010
Bubnov-
x
0.00
0.25
0.50
0.75
1.00
t The first line in each case corresponds to two elements and the second line to four.
In the weighted-residual finite element model, we seek an approximate solution U" of u in Qe in the form 16
tr =
2: ujtpj(x, y)
(14.32)
j=l
where tpj(x, y) are the conforming Hermite interpolation functions of the four-node rectangular element (see Table 9.1), .and u1, u.s, U9' and uh are the nodal values of U" at the four nodes of the element, U2' u~, u1o, and U14 are the nodal values of aVe/ax at the four nodes, and so on. The weightedresidual statement of (14.31) over an element is given by
0=
i w[-~(all au) - aa (a 22au) - t] ax ax Q'
y
ay
dx dy
(14.33)
588
ADY ANCED TOPICS
Substituting w = tPf and replacing u by (14.32), we obtain the usual form of the element equations (14.34) The specific forms of [K e ] and {r} are defined below for various models. The Bubnov-Galerkin model. For w = 1jJf, the coefficient matrix column vector {r} are defined by
Kif = -
i [axa ( 1J1: -
a1jJ".) all __ J
Q'
Ii =
ax
a1jJ".)] + -a ( a22 _ _ J dx dy ay ay
i 1jJff
dx
dy
Q<
[KeJ and (14.35a)
(14.35b) ....
The least-squares model. For w = A( 1J1't), where A is the differential operator in (14.31), the coefficients of [K e ] and {r} are defined by {
Kif =
i [axa ( Q'
all
a1jJ".) a ( a1jJe)][ a ( a1jJ".) a ( a1jJ".)] ax' + oy an ayl ax all ax} + ay a22 a/ dx dy (14.36a) (14.36b)
The collocation model. In this model, we select four collocation points per element and satisfy (14.31) exactly at those four points of each element. For the best results, the Gauss quadrature points are selected. We have (14. 37a) (14.37b)
for i = 1, ... ,4 and j = 1, 2, ... s 16. Note that the coefficient matrix is rectangular (4 X 16) and that each coefficient of the global matrix and column vector has a contribution from no more than one element. After imposing the boundary conditions of the problem, the number of linearly independent equations (which is equal to four times the number of elements in the finite element mesh) will be equal to the number of unknown nodal degrees of freedom. We now consider an application of the weighted-residual models described in (14.35)-(14.37). Example 14.3. Consider the Dirichlet problem for the Poisson equation [cf. (8.150)] -V2 u =2 in Q u=O on
r
(14.38)
,?
WEIGHTED·RESIDUAL FlNlTE ELEMENT MODELS
y
589
y
u = 0 II
=
0 '-f-
[( = 0
20
l---
./ x +-__
~=O ax
u=O
l~
L-----_..L.~..-x
~=o ay
·1
I - - - - 1} 1 - 2b----i
u = 0/
(a}
y
t
y
au ax
=
t
u= 0 au
au
ax
= u = 0 .......,
0
"\ar
----.
ay It
ilx ily
ilx ay ....."I"'"""--.......- - _.....
au ay
-..x
-
...J
=0
v,
=0
=0
oy
il2u =0 ax ay
(b} FIGURE 14.1 (a) Domain, boundary conditions, and (b) finite element meshes of the problem in Example 14.3.
where Q is a square region (see Fig. 14.1a). The exact solution of this problem is given by (8.152a). Exploiting the biaxial symmetry, we model only a quadrant, say the region bounded by the positive axes. Two different uniform meshes (see Fig. 14.1b) of Hermite rectangular elements are used to solve the problem, employing various finite element models. Since the element has u, aulax, auI8y, and cYu/ax 8y as nodal degrees of freedom, we must impose all known boundary values of these quantities (which are not readily known a priori). This can be considered as a drawback of the weighted-residual finite element models (especially, the collocation finite-element model) compared with the Ritz finite element model of a second-order equation, where the only boundary conditions are on u and aulan. For the problem at hand, we impose the following boundary conditions: u = 0 on the lines x = 1 and y :::; 1, au/ax = 0 on the line x = 0, and aulay:::; 0 on the line y :::; 0. The boundary conditions for the weighted residual models are indicated in Fig. 14.1(b). For the 2 x 2 mesh, the number of known boundary conditions is 20, whereas the number of total nodal variables is 36. Thus, for the collocation model, we have 16 unknowns and 16 equations, 4 from each element. Similarly, for the 4 x 4
590
ADVANCED TOPICS
mesh, we have 36 boundary conditions among 100 nodal variables, requiring 64 collocation equations, which are provided by the 16 elements. The finite element solutions obtained from the three finite element models for the two meshes are compared with the exact solution (8.152a) in Table 14.3. The collocation finite element solution is relatively more accurate than the other' two solutions. The numerical convergence of all three models is apparent from the results.
14.2.3 Mixed Formulations The equation governing bending of beams according to the Euler-Bernoulli beam theory is
2(
2 W) - f = 0
d d dx 2 EI dx 2
(14.39) I'
'"
TABLE 14.3
Comparison of the various finite element solutionst with the exact solution of the Dirichlet problem for the Poisson equation (14.38) (Example 14.3) .-u(x, y)
aulax
Bubnov- LeastGalerkin:j:: squares
Col· location
Exact
ColGalerklnt squares location
0.58936
0.58903 0.58935
0.58902 0.58935
0.58932 0.58937
o.ocooo
0.0ססoo
0.0ססoo
0.0ססoo
0.0
0.55776
0.55774
0.55774
0.55776
0.25538
0.25568
0.25568
0.25570
0.50
0.0
0.45868
0.45837 0.45866
0.45846 0.45886
0.45862 0.45868
0.54549
0.54436 0.54541
0.54540 0.54543
0.54548 0.54555
0.75
0.0
0.27945
0.27944
0.27945
0.27946
0.90265
0.90176
0.90184
0.90192
o.ooooo
1.33490
1.34628 1.35040
1.34912 1.35064
1.35068 1.35064
x
y
Exact
0.0
0.0
0.25
0.00
0.0ססoo
0.0ססoo
0.25
0.25
0.52830
0.52827
0.52827
0.52829
0.23827
0.23680
0.23859
0.23859
0.50
0.25
0.43560
0.43557
0.43558
0.43559
0.51168
0.51162
0.51162
0.51166
0.75
0.25
0.26665
0.26664
0.26665
0.26665
0.85513
0.85416
0.85432
0.85440
1.00
0.25
0.0ססoo
0.0ססoo
o.oooco
0.0ססoo
1.28190
1.29712
1.29744
1.29752
0.50
0.50
0.36230
0.36192 0.36226
0.36197 0.36226
0.36225 0.36228
0.40785
0.40744 0.40789
0.40692 0.40783
0.40724 0.40782
0.75
0.50
0.22548
0.22544
0.22545
0.22547
0.70416
0.70317
0.70314
0.70337
1.00
0.50
0.0ססoo
0.0ססoo
0.0ססoo
0.0ססoo
1.1102
1.11576 1.12448
1.1182 1.1252
1.12268 1.12552
0.75 . 0.75
0.14564
0.14557
0.14557
0.14563
0.42422
0.42355
0.42309
0.42315
1.00
0.0ססoo
Bubnov- Least-
t The first line in each case corresponds to the solution obtained using a 2 X 2 mesh and the second 10 a 4 X 4 mesh. +The Ritz finite-clement solution coincides with the Galerkin solution for the same choice of the Hermite interpolation.
WEIGHTED·RESlDUAL
nsrrs ELEMENT MODELS
591
The weak form finite element model of this equation requires Hermite cubic interpolation of the transverse deflection w. On the other hand, a weightedintegral finite element model of (14.39) requires; the approximation we of w to have a nonzero fourth-order derivative, and the element should include w, dwldx, EI d 2w/dx2 , and (d/dx)(EI d 2w/dx 2 ) as the nodal degrees of freedom (i.e., seventh-degree Hermite polynomials). To reduce the differentiability requirements on w in the weak form and include the bending moment (or stress) as a nodal degree of freedom, (14.39) can be decomposed into a pair of lower-order equations: (14.40)
The assumption that the function b = E1 =1= 0 always holds in practice because neither the modulus of elasticity nor the moment of inertia is zero; in fact, we always have b > O. We can develop either a weak form finite element model or a weighted-integral finite element model of (14.40). Here we discuss the weak form finite element model. WEAK FORM. The weak form associated with the pair (14.40) over a typical
1-D element (a two-node line element) is given by
0=
f8 XA
U
(:~ -
! ) dx
= - (B (~: ':: +
i
XB
(dZW
M)
u!) dx - U(XA)(~~) IXA + li(XB)(~~)lxB (14.41a)
0v - - - dx - XA dx" b ' = -
(B (: ~: + V;)
dx - V(XA)(
~:) IXA + V(X s)( ~:) IX8
(14.41b)
where It and.v are the weight functions, which can be viewed as the variations of wand M, respectively (u - Ow and v - OM). The boundary terms in (14.41) indicate that the specifications of wand M constitute the essential boundary conditions, and the specifications of the derivatives dwldx and dM/dx constitute natural boundary conditions of the problem: Essential boundary condition
specify wand M (primary variables) Natural boundary conditions . dw
dM
specify dx and dx (secondary variables)
(14.42a)
(14.42b)
Note that the natural boundary condition on the bending moment M in the conventional formulation (i.e., the Euler-Bernoulli beam element) becomes
S92
ADY ANCED TOPICS
FIGURE 14.2 Generalized displacements and forces for the mixed finite element formulation of the fourth. order equation (14.39) [or the weak form model of (14.40)].
the essential boundary condition in the present formulation. Since both the displacement variable and force variables are used as the nodal degrees of freedom, the finite element model of (14.42) is called a mixed finite element model. FINITE ELEMENT MODEL. The finite element model of (14.41) is obtained by substituting finite element approximations of the form (see Fig. 14.2 fQf the I' nodal variables) W
2:'" WilPj,
=
M=
j=1
2:" M/h
(14.43)
j~1
into the weak forms (14.41). Note that, in general, wand M can be and t/Jj' The finite interpolated by different sets of interpolation functions element equations can be expressed conveniently in the form
v,
I2
1
[K ]]{ {w}} = {{F } } [K22] {M} {F 2}
[KIl]
[ [K I2V
(14.44a)
where the matrix coefficients Kit of the matrix [K"'Il] (a, (J = 1, 2) are given by K~.l IJ
=0
K~?- = fXB d1jJi dt/Jj dx = K?-.l IJ
'
XA
dx d
X
}I ,
The quantities Vi and (}i are the secondary variables (shear force and rotation, respectively) associated with wand M at the nodes. It should be pointed out that (14.41) are used in a specific order that gives a symmetric coefficient matrix in (14.44a). In order to compute the matrix coefficients in (14.44b), we must choose appropriate functions for 1Jli and 1>i' For the sake of simplicity, we take 1Jli = t/JI and 1Jli to be the linear interpolation functions. We obtain (m = n = 2), for constant b and I,
[KI2]=l-[
he
{F
1
}
=
1-11,
-1
1
-~heG}_{~},
[K22]=~[2
1]
Sb; 1 2
{F2}={~;}
(14.45)
WEIGHTED·RESIDUAL FINITE ELEMENT MODELS
593
Rearranging the primary variables, the element equations (14.44a) can be expressed as
0 1
he
[
.a
1
-1
1 2a'e 0 -1
(14.46)
o
-1
1
where a'e = h;!6be. The usual assembly procedure, which assumes interelement continuity or the primary variables, would result in a continuous bending moment field. This feature is not desirable when the problem involves specified concentrated (i.e., point) moments. Therefore, in general, the moment degrees or freedom should be either eliminated at the element level or not made continuous during the assembly or element equations (14.46). The following example illustrates this point. Example 14.4. Consider the clamped, simply supported beam shown in Fig. 14.3. We wish to determine its deflection and bending moment using the Euler-Bernoulli beam theory, i.e., (14.40). We take b = EI = constant and! = O. The boundary conditions are
d2W) I:<~h+ = -Mo, (EI dx
w(O) =0,
2
r-h-
w(2h) = fl(211) = 0
(14.47)
We wish to analyze the problem using the mixed finite element in (14.44). For simplicity, we shall use the minimum number of elements that allows us to impose the specified generalized displacements and forces. Thus, we have two elements and three nodes in the mesh. The assembled stiffness matrix is given by 0 1 "
1 II
1
0 -1
2l¥
-1
o -1
0 2 0
-1 0 0
l¥
0
0 -1
0 0 0 0 2 0 -1 4l¥ -1 l¥ -1 1 0 l¥ 1 2l¥ l¥
UI U2 U3
U4 Us U6
-V: fl~
-V~
-
e~ + -
vi oi
(14.48)
2
V2
o~
The boundary conditions and equilibrium of secondary variables require
UI = U« = Us = 0,
- V~ -
vi = 0,
o~ + o~ = 0,
o~ = 0
(14.49)
Equations (14.48) become
(14.50)
FIGURE 14.3 Clamped, simply supported beam considered in Example 14.4.
594
ADVANCED TOPICS
If we use the additional boundary condition U4
=M
OJ
we obtain an inconsistent set of
equations. This is the result of the assumption M~
=Mi= U4
(14.51)
used in the assembly. In the present problem, the moment is discontinuous and therefore (14.51) does not hold. The correct condition is
Mi-Mi=Mo Suppose that U4 =
Mi = M~ ~ M o- Then
(14.52)
the equations of element 2 become
![ ~ h
0 -1
~
(14.53) I'
The assembled equations for the unknowns, after using the boundary condition (14.52), become (14.54) where the right-hand side comes from the second element when Mi - Mo. The solution is
Mi =
Mi
is replaced by
Recalling the sign convention for the bending moments in the mixed element (see Fig. 14.2), we note that the solution (14.55) coincides with that given by the conventional model. The reader should verify this statement.
14.3 NONLINEAR PROBLEMS 14.3.1 General Comments Many engineering problems are described by nonlinear differential equations. Under certain simplifying assumptions, these problems can be described by linear differential equations. For example, the equations governing the large-deflection bending of elastic beams are
(14.56)
where u is the longitudinal displacement, w is the transverse deflection, E is the modulus of elasticity, A is the cross-sectional area, q is the axial distributed load, and f is the transverse loading. Under the assumption that the slope
\
WEIGHTED-RESIDUAL FINITE ELEMENT MODELS
595
dw/dx is small compared with unity [i.e., (dw/dx) (du/dx), (dw/dx?=OJ, (14.56) become uncoupled and reduce to (3.1) and (14.39), respectively. However, when the slope dwldx is not too small, we must solve the coupled set of nonlinear equations. (14.56). , Another example of a nonlinear problem is provided by the equation governing the flow of a viscous incompressible fluid. When the convective effects are larger than the viscous effects, (11.1) should be modified to include the convective terms, that is, the Navier-Stokes equation should be solved: p
all) [cPu a (au av)] +-~fx ap (I lau ax- + Vay- -p. 2ax- +ay- -+ay ax ax 2
.(av av) ( a (all av) cPV] ap I l - + V - -p. - +2ax ay ax -ay+ax ay2 +-~f. ay Y au av -+-~O ax ay
p
(14.57)
where p is the density of the fluid, and all other symbols have the same meaning as in Chapter 11. The finite element formulation of nonlinear problems proceeds in much the same way as for linear problems. The main difference lies in the solution of the finite element algebraic equations. Here we describe some details of the formulation, and comment about the solution procedure using equations of large-deflection bending of beams and the Navier-Stokes equations.
14.3.2 Large-Deflection Bending of (Euler-Bernoulli) Beams Here we use the weak forms of (14.56) to develop the finite element model. These weak forms over an element (XAJ XB) are
where
VI
is the. weight function (VI - <51l) and
er- -{EA[: +~(:r]}lx/
Q4~ {EA[: +~(~:r]}IXB (14.58b)
Similarly,
f}
2
o~ JXB {EI d2V2 d w2 + EA dV2 dw [dll + ~ (dW)2] XA
dx? dx
-
Q~V2(XA) -
dx dx
2 dx
dx
V 2
Q3(- ~2) I - Q~V2(XB) - Q6(- ~2) I XA
XB
(14.59a)
596
ADVANCED TOPICS
where V z is the weight function (v z - ow), and
dw [dU Qi= { -d (dZW) EI~ -EA-+-1 (dW)Z]}1 , dx dx Z dx dx 2 dx XA
Q3 = ( EI
~~~) IXA (14.59b)
Qs=
_{~(EldZW) -EA dW[dU +~(dW)Z]}I,
Q6= _(EldZW)1 dx dx? dx dx 2 dx XB dx XB The primary variables of the formulation (as in the frame element formulation of the Euler-Bernoulli beam theory) are dw u, W, dx From the discussions presented in Chapters 3 and 4, it is clear that we must use a Lagrange interpolation of U and a Hermite interpolation of iv: n
U
=
2: Uj1jJj(x),
m
W=
2: s;fjJlx) ;=1
(14.60)
j=1 where Pj are the Lagrange interpolation functions of degree n -1, and rjJ; are the Hermite interpolation functions of degree m - 1. For n = 2 and m = 4, the elements used for u and W contain the same number of nodes, which is convenient in the computer implementation of the model (see Fig. 14.4). Substituting the approximations (14.60) for u and w, and VI = 1jJ~ and V2 = rjJ~, into (14.58a) and (14.59a), we obtain the finite element model (14.61a)
where
i
X8
K ij11 =
XA
d1jJj -d d1jJj dx, EA -d
K~?- = I)
i
XB
xA
K~2 =
X
X
i
XB
fj1 =
lEA dw d1jJj drjJj d dx dX dx
2
. 1jJiq dx + Q3i-2 (l,• )• = 1, 2, ... , n)
XA
x,
K2.1 = fXB EA dw dfjJj d1jJj dx II
xA
dX dX dx
(i=I,2, ... , n;j=l, 2, ... , m)
i
f
E1 d2~j d2~j dx + 8 ~EA(dW)2 drjJj dfjJl dx XA dx dx XA dx dx dx . (i,j= 1, 2, ... , m) XB = 1 if i = 1 or Ff = XA rjJ;[dx + Qi+b 1 = 2 if i = 3 or 4 XB
f.
X
{1
(14.61b)
2
This completes the finite element model of the nonlinear bending of beams.
Generalized displacements
Generalized forces
FIGURE 14.4 Nonlinear beam bending element based on linear interpolation of the axial displacement u and Hermite cubic interpolation of the transverse deflection.
WEIGHTED-RESIDUAL FINITE ELEMENT MODELS
597
14.3.3 Solution Methods for Nonlinear Algebraic Equations Note that the element stiffness matrix in (14.61a) is nonlinear and asymmetric. Therefore, the assembled equations will be nonlinear and asymmetric. The assembled nonlinear equations must be solved, after imposing boundary conditions, using an iterative method, which seeks an approximate solution to the algebraic equations by linearization. The direct iteration method, also known as the Picard method, is based on the scheme
I [K({~Y)]{~y+l = {F} I
(14.62)
where {~y. denotes the solution at the rth iteration. Thus, in the direct iteration method, the coefficients Kii (and hence Kij(3) are evaluated using the solution {A}" from the previous iteration, and the solution at the (r + 1)th iteration is obtained by solving (14.62): (14.63) At the beginning of the iteration (i.e., r = 0), we assume a solution {~}O, based on our qualitative understanding of the solution behavior. For example, {~} 0 = {O} for large-deflection bending would reduce the nonlinear stiffness matrix to a linear one, and (14.63) would yield the linear solution of the problem at the end of the first iteration, [A}', The iteration is continued [i.e., (14.63) is solved in each iteration] until the difference between {AY and {~y+l reduces to a preselected error tolerance. The error criterion is of the form (other criteria can also be used)
(14.64)
where N is the total number of primary unknowns (i.e., generalized displacements) in the finite element mesh. The other iterative method is the Newton-Raphson method, which is based on the Taylor series expansion of the algebraic equations (14.62) about the known solution {AY. To describe the method, we rewrite (14.62) in the form {R} == [K]{A} - {F} = 0
(14.65)
where {R} denotes the residual. Expanding {R} about {A}', we obtain
{O}
= {R}
= {R}' + (O{R})T( {Ay+l- {~y) o{~}
1 (o2{R})r
+ 2!
3{A}2 ({~}
r+l
T2 - {A} ) + ...
(14.66a)
598
ADVANCED TOPICS
or
(14.66b) where [K T ] is the tangent (stiffness) matrix,
[K T )' == {(jA}
[a{R}] a{A}
evaluated at
{A} = {AY
= {Ay+l - {AY (incremental solution)
(14.66c)
For structural problems with variational principles, it can be shown that [K T ] is symmetric even if [K] is not. From (14.66b), we have
(14. 67a)
and the total solution at the (r + l)th iteration is given by (
(14.67b) The iteration in (14.66a) is continued until the convergence criteria in (14.64) is satisfied or the residual {R} [measured in the same way as the solution error in (14.64)] in (14.65) is less than a certain preselected value. For additional details on iterative methods, the References at the end of the chapter.
14.3.4 The 2-D Navier-Stokes Equations The weak formulation of (14.57) over an element is given by (see Section 11.3 for details) U au + v au) + [...]} dx dy - 1, WIt ds = 0 faX ay fr< LQ{WIP( x
+ v av) + [...]} dx dy - 1, wzty ds = 0 L {wzp ( u av ax oy fr<
(14.68)
g'
au av) dxdy =0 ax ay L (-+W3
Q'
where [...] denotes the expressions (omitting the time-derivative terms) in the square brackets of (11.7). The finite element model of these equations is given by
(14.69)
WEIGIITED·RESIDUAL FINITE ELEMENT MODELS
where [KalJ] and {Fa} (<<,
f3 =
1,2,3) are as defined in (11.9b), and
[(~.1 = K~.1 + P 'J 'J
LP' (U al/Jj ax + f/)l/Jj) ay dx dy 1J•. 't'l
Jg , l/J.(a al/J; ax + ii 3l/Jj) ay dx dy
[(~'! = K~.Z + p f 'J
'J
(14.70)
I
r
U=
599
2: Uil/Ji' i=l
r
ii = .
L
V;l/Ji
i=1
where U and ii are velocity components that are assumed to be known. Clearly, the element coefficient matrix, and hence the global coefficient matrix, are unsymmetric, and they depend on the velocity field, which is not known a priori. Therefore, an iterative solution procedure, such as the direct iteration method, is required. At the beginning of the first iteration, the velocity field can be set equal to zero to obtain the linear solution. In the second iteration, the coefficient matrices are evaluated using the velocity field obtained in the first iteration, and the assembled equations are solved again for the nodal velocities. This procedure is repeated until the velocity field obtained at the end of two consecutive iterations differs by a small preassigned number. The convergence criterion can be expressed as
L~l (Iu~r) - U~'+1)IZ + [V}') -
v}r+l)I Z)
r
12
(14.71)
E
-~-------------,-",------~
L~l (lUV+l)I + 1V}'+I)I Z)J112 Z
where (U I, VI) denote the velocities at node i at the rth iteration. We note that the tangent matrix for the Navier-Stokes equations is not symmetric (because no variational principle exists for this case). The iterative solution methods discussed in Section 14.3.3 are also applicable here.
14.4 THREEwDIMENSIONAL PROBLEMS Most of the basic ideas covered in Chapters 3 and 8 for one- and twodimensional problems can be extended to three-dimensional problems. For the sake of completeness, we discuss here the finite element formulation of the Poisson equation in three dimensions, and describe some of the threedimensional elements. Consider the Poisson equation
-!-(k au) -~(kz au) -~(k3 au) = f ax ax ay ay az az 1
u = Ii on rl>
k,
in
au n + k ay au k au ax z ny + 3 az nz = q x A
Q
on
(14.72a)
r z (14.72b)
600
ADYANCED TOPICS
z
~x
Curve between the two bou ndary surfaces
FIGURE 14.5 "Three-dimensional domain showing a surface element cis, unit normal a'nd its components fi = (n x, ny, liz), and two portions of the boundary r.
where k, = ki(x, y, z) and f = f(x, y, z) are given functions of position in a three-dimensional domain Q, and a and q are specified functions of position on the portions r 1 and r 2 , respectively, of the surface r of the domain (see Fig. 14.5). Suppose that the domain Q is discretized by some threedimensional elements ge, such as tetrahedral and prism elements (which are the three-dimensional extensions of the triangular and rectangular elements). The variational formulation of (14.72) over an element ge is given by
where
(14.73b) Clearly, the primary variable is U and the secondary variable is qn' Assuming a finite element interpolation of the form n
U=
L Ujwj(x, y, z)
(14.74)
j=l
over the element ge, and substituting v = Wi and (14.74) into (14.73a), we
WEIGHTED·RI'SIDUAL FINITE ELEMENT MODELS
601
obtain (14.75a)
where
Kf = 'j
L (k B1/Ji a1JJj + k 2 atfJi atfJj + k 3 a'l/Ji atfJj) dx dy dz ax ax ay ay az az 1
Qt
if =
L tv. dx dy dz,
Qf = 1. q,,'l/Ji ds
JP'
fie
The interpolation functions two-dimensional elements:
(14.75b)
1jJf have the same general properties as for
11
2: tfJi(x, y, z) = 1,
(14.76)
i=1
The assembly of equations, the imposition of boundary conditions, and the solution of the equations are completely analogous to those described in Chapter 8 for the two-dimensional problems. Next, we comment on the geometry of two linear 3-D elements and the element calculations. The element matrices in (14.75b) require the use of interpolation functions that are at least linear in x, y, and z. Here we consider two linear elements: the tetrahedral element and the prism (or brick) element. These elements are described by approximations of the form u(x, y, z) = ao + atX + a2Y
+ a3Z
u(x, Y, z) = ao + atX + a2Y + a3Z
(four-node tetrahedral element)
+ a4Yz
+ a5xz + ar;Xy + a-xyz
(14.77)
(eight-node prism element)
The interpolation functions can be determined as described in Chapters 8 and 9 for two-dimensional elements. If the element matrices are to be evaluated numerically, the isoparametric element concept can be used. The geometry of the elements can be described by the transformation equations . 11
X =
2: xi{M~,
7],
~),
i=1
y=
2:" YiljJi(~'
i=1
11
7],
p,
Z=
2: ZiljJi(~'
i=1
7],~)
(14.78)
Under these transformations, the master tetrahedral and prism elements transform to arbitrary tetrahedral and hexahedral elements, as shown in Fig. 14.6. The definition of the Jacobian matrix and the numerical quadrature rules described in Chapter 9 can 'easily be extended to the three-dimensional case.
14.5 SUMMARY Three advanced topics have been discussed briefly in this chapter: (i) weighted-residual and mixed finite element formulations of differential equa-
\
602
ADVANCED TOPICS
Tetrahedral element
3
2 Master elements
Transformed elements
FIGURE 14.6 Linear three-dimensional elements: tetrahedral element and prism element (whose surfaces are two-dimensional triangular and rectangular elements, respectively).
tions; (ii) finite element models of nonlinear equations; and (iii) finite element models of three-dimensional problems. The weighted-residual models discussed include the Petrov-Galerkin model, Bubnov-Galerkin model, collocation model, subdomain model, and least-squares model. First- and secondorder differential equations have been considered. Nonlinear finite element models of the Euler-Bernoulli beam theory and the Navier-Stokes equations governing 2-D viscous incompressible flows have been developed. Two iterative schemes, Picard and Newton-Raphson, for solving nonlinear algebraic equations have been discussed. Finally, the finite element formulation of the Poisson equation governing 3-D field problems has been developed. Each of these topics deserves detailed discussion. However, they are not within the scope of the present study. For further study, the reader should consult the books listed in the References.
PROBLEMS 14.1. Consider the second-order equation
_~(adU) =/ dx
dx
(i)
WEIGHTED-RESIDUAL FINITE ELEMENT MODELS
first-or~er
and rewrite it 'as a pair of
603
equations,
du P --+-=0 dx a '
dP dx
---1=0
(ii)
Construct the weighted-residual finite element model of the equations, and specialize it to the Galerkin model. Assume interpolation in the form m
U
=
n
L uil/!;(x),
P= L~(Mx)
(iii)
;-1
;~I
and use the equations in (ii) in a sequence that yields symmetric element equations: [KIl] [ [K I2 f
[K ]]{{U}} {{F } } [K2 2 ] {P} = {F 2 } I2
I
(iv)
The model can also be called a mixed model because (u, P) are of different kinds. 14.2. Evaluate the coefficient matrices [Kali] in Problem 14.1 for a = constant and column vectors {Fa} for 1 = constant. Assume that 1/11 = ¢; are the linear interpolation functions. Eliminate {P} from the two sets of equations (iv) to obtain an equation of the form [KJ{u} = {F}
14.3.
14.4.
14.5.
14.6.
Compare the coefficient matrix [K] and {F} with those obtained with the weak form finite element model of (i). What conclusions can you draw? Develop the least-squares finite element model of (ii) in Problem 14.1, and compute element coefficient matrices and vectors when 1/11 = ¢I are the linear interpolation functions. Solve the problem in Example 3.1, Set 3 boundary conditions, using two linear elements of the least-squares model developed in Problem 14.3. Compare the results with the exact solution and those of the weak form finite element model. For a cantilevered beam of length L and flexural rigidity El, subjected to a concentrated moment M o at x = 4L, obtain the mixed finite element solution and compare it with the exact solution. Do you see any discrepancy in the solutions? Consider the pair of equations
Vu-q/k=O,
V'q+I=O in Q
where u and q are the dependent variables, and k and f are given functions of position (x, y) in a two-dimensional domain Q. Derive the finite element formulation of the equations in the form
l1 ]
I3
[K12] [K ]]{ {U}} [K22 ] [K23] {ql} [ symmetric [K3J] {q2} [K
=
{{PI}} {p2} {p J }
Caution: Do not eliminate the variable u from the given equations. 14.7. Compute the element coefficient matrices [Kall] and vectors {Fa} of Problem 14.6 using linear triangular elements for all variables. Assume that k is constant. 14.8. Repeat Problem 14.7 with linear rectangular elements.
604
ADVANCED TOPICS
14.9. Consider the following equations governing a thin, elastic, isotropic plate: -S(MI - vM2)
-
aw= 0 2
OZIV = 0, ax
-S(M2 - vM I) -
-2
-2
ay
2 ~w _a2~_OZM2_f=0 (1 + v)S ax 2 ay2 ax 2 ay2 Where M 1 and M2 are the bending moments, w is the transverse deflection, q is the distributed load, y is the Poisson ratio, and S is a constant. Give (a) the weak form of the equations, and (b) the finite element model (M I J M2 , and ware the dependent unknowns) in the form
[K I 2] [K 22J [ symmetric 14.10. Use the interpolation [K Il ]
4
IV =
L w/'Pj,
j=l
with 1J!1=(1-x)(1-y), ep~ = I-x,
1f'2=x(l-y),
1J!3=XY,
epi= 1- y,
ep1=x,
1J!4=(1-x)y ep~ =y
for a rectangular element with sides a and b to evaluate the matrices [K"Il] (<<, fJ = 1, 2,3) in Problem 14.9. 14.11. Repeat Problem 14.10 for the case in which ep} = epT = 1J!1' 14.12. Evaluate the element matrices in (14.61b) by assuming that the nonlinear parts in the element coefficients are element-wise-constant. 14.13. Give the finite element formulation of the following nonlinear equation over an element (XA> XB):
- ~(U:)+1=0 (-dxdU)IX~O =0
for 0<x<1
u(l) =
v'2
'
14.14. Compute the tangent coefficient matrix for the nonlinear problems in Problem 14.13. What restriction(s) should be placed on the initial guess vector? 14.15. Compute the tangent stiffness matrix [K T ] in (14.66c) for the Euler-Bernoulli beam element in (14.61b). 14.16. Develop the nonlinear finite element model of the Timoshenko beam theory. Equations (14.56) are valid for this case, with the following changes. In place of (d 2/dx2)(b d 2w / dx 2) use -(d/dx)(b dlJ!/dx) + GAk(dlV/dx + '11) and add the following additional equation for w:
See Section 4.4 for additional details.
WEIGHTED· RESIDUAL FINITE ELEMENT MODELS
605
14.17. Compute the. tangent stiffness matrix for the Tirnoshenko beam element in Problem 14.16. 14.18. (Natural convection in flow between heated vertical plates) Consider the flow of a viscous incompressible fluid in the presence of a temperature gradient between two stationary long vertical plates. Assuming zero pressure gradient between the plates, we can write u = u(y), v = 0, T = T(y), and
where Tm = HTo + 1;) is the mean temperature of the two plates, g the gravitational acceleration, p the density, f3 the coefficient of thermal expansion, /l the viscosity, and k the thermal conductivity of the fluid. Give a finite element formulation of the equations and discuss the solution strategy for the computational scheme. 14.19. The equations given in Problem 14.18 are a special case of the more general Navier-Stokes equations (which are nonlinear and coupled) for two-dimensional flow: (a) Mass continuity
au av ax ay
-+-=0
(b) Conservation of momentum
au ax
au) ap rflu a (au av) +pgf3(T-T ay ax ax ay -+ay ax ap a (au av) rflv au au) p (u-+v- =--+/l- -+- +2/lax fly ay ax ay ax 8y2
p ( u-+v- =--+2p-+/l2
m )
(c) Energy equation
pc(u aT + v a1\ = k(rflT + rflT\ ax ayl ax ai-I 2
14.20. 14.21.
14.22. 14.23. 14.24. 14.25.
where c is the specific heat (the x coordinate is taken vertically downward). Construct the finite element model of the equations, and discuss the computational strategy through a flow chart. Derive the interpolation functions 1JJt, 1J!s, and 1J!s for the eight-node prism element using the alternative procedure described in Section 8.2. Give the finite element formulation of the heat conduction equation in three dimensions with convective boundary condition. Use a rectangular cartesian system. Give the penalty finite element model of the three-dimensional flow equations in cartesian coordinates. Repeat Problem 14.21 in cylindrical coordinates. Repeat Problem 14.22 in cylindrical coordinates. Evaluate the source vector components f; and coefficients Kij over a master prism element when f is a constant,fOJ and k, = k z = k 3 = constant in (14.75b).
606
ADVANCED TOPICS
REFERENCES FOR ADDITIONAL READING A. J.: Finite Element Computational Fluid Mechanics, McGraw-Hill, New York/Hemisphere, Washington, DC, 1983. Bathe, K. J.: Finite Elements in Engineering Analysis, Prentice-Hall, Englewood Cliffs, NJ, 1982. Carey, G. F., and J. T. aden: Finite Elements: A Second Course, Prentice-Hall, Englewood Cliffs, NJ,1983a. ~~- and ~~-: Finite Elements: Computational Aspects, Prentice-Hall, Englewood Cliffs, NJ, 1983b. Chandrupatla, T. R., and A. D. Belegundu: Introduction to Finite Elements in Engineering, Prentice-Hall, Englewood Cliffs, NJ, 1991. Cook, R. D., S. D. Malkus, and M. E. Plesha: Concepts and Applications of Finite Analysis, 3d ed., John Wiley, New York, 1989. Desai, C. S., and J. F. Abel: Introduction to the Finite Element Method, Van Nostrand-Reinhold, New York, 1972. Gallagher, R. H.: Finite Element Analysis: Fundamentals, Prentice-Hall, Englewood Cliffs, NJ, 1975. r Huebner, K. H., and E. A. Thornton: The Finite Element Method for Engineers, 2d ed., John Wiley, New York, 1982. Hughes, T. J. R.: The Finite Element Met/rod, Prentice-Hall, Englewood/Cliffs, NJ, 1986. Irons, B., and S. Ahmad: Techniques of Finite Elements, Ellis Horwood, Chichester, Sussex/ Halsted Press, New York, 1980. ~~-: "Quadrature Rules for Brick-Based Finite Elements," International Journal for Numerical Methods in Engineering, vol. 3, pp. 293-294, 1971. aden, J. T.: Finite Elements of Nonlinear Continua, McGraw-Hill, New York, 1972. ~~- and G. F. Carey: Finite Elements: Special Problems in Solid Mechanics, vol. V, Prentice-Hall, Englewood Cliffs, NJ, 1984. Rao, S. S.: The Finite Element Method in Engineering, Pergamon Press, New York, 1982. Reddy, J. N.: Energy and Variational Methods in Applied Mechanics, John Wiley, New York, 1984. ~~-: Applied Functional Analysis and Variational Methods in Engineering, McGraw-HiU, New York, 1986. Zienkiewicz, O. C., and R. L. Taylor: The Finite Element Method, vols. 1 and 2, McGraw-HilI, New York, 1989 and 1991. Baker,
)
APPENDICES
607
/'
\.
APPENDIX
1 COMPUTER PROGRAM FEMIDV2
C
c
C C C
C C C C C C C C C C C C C C C C C C C C C C C C C C C C C
Program Name: FEMlDV2
Length: 2194 lines FIDOOOlO
* * * * * * * * * * * * Program * * * * *FEMlDV2 * * * * * * * * * * * * * * * * *
(AN IN-CORE FINITE ELEMENT ANALYSIS COMPUTER PROGRAM)
* * * * * * * ** * * * * * * * * * * * * * * * * * *
2
*** *
This is a finite element computer program for the analysis of following three model equations and others: 1. Heat transfer, fluid mechanics, bars, and cables: CT.u* + CT.u** - (AX.u')' + CX.u = FX 2. The Timoshenko beam and circular plate theory: CTO.w** - [AX. (w' + sll' + CX.w = FX CTl.s** - (BX.s')' + AX. (w' + s) = 0 3. The Euler-Bernoulli beam and circular plate theory: CT.w** + (BX.w")"
+ CX.w = FX
In the above equations (') and (*) denote differentiations with respect to space x and time t, and AX, BX, CX, CT, and FX are functions of x only: AX = AXO + AXl.X, EX = BXO + EXl.X, CX CXO + CXl.X CT = CTO + CTI.X, FX = FXO + FXl.X + FX2.X.X In addition to the three model equations, other equations (for example, disks, trusses, and frames) can be analyzed by the program.
*F1D00020
*FID00030 *FID00040 *FID00050
FlD00060 FlD00070 FIDOOOSO FI000090 FIOOOlOO FIOOOllO FlOOOl20 FIDOOl30 FID00140 FlD00150 FlD00160 FID00170 FlD00180 FlD00190 FlD00200 FlD002l0 FlD00220 FID00230 FID00240 FI000250 FlD00260 FlD00270 Fl000280 FID00290 FID00300 FID00310 FlD00320 FlD00330 FID00340
609
610 c c c c c C C C
C C C C C C C
C C C C
C C C
C C C
C C C C C C C
C C C C
C C C
C C C C C
C
c
APPENDICES
FID00350 FlD00360 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - .FlDOOnO KEY VARIABLES USED IN THE PROGRAM · FlD00380 (see Table 7.4 for a description of other variables) · FlD00390 .FlD00400 .FID00410 lIDF......• Number of degrees of freedom per node .FID00420 NEQ . Number of equations in the model (before B. C.) .FID00430 NGP . Number of Gauss points used in the evaluation of the element coeffcients, [ELK), {ELF}, [ELM) • FlD00440 l/HBW . Half bandwidth of global coefficient matrix [GLK) · FlD00450 NN ......• Number of total degrees of freedom in the element · FlD00460 .FID00470 NPE....•.. Number of nodes per element FID004s0 -------------------------------.FID00490 DIMENSIONS OF VARIOUS ARRAYS IN THB PROGRAM · FlD00500 · FlD00510 Values of MXELM,MXNOD, etc. in the PARAMETER statement should .FlD00520 be changed to meet the requirements of problem: .FlD00530 .FlD00540 . FtD00550 MXELM . Maximum number of elements in the mesh: MXEBC . Maximum number of speci. primary deg. of freedom · FlD00560 MXMBC ••... Maximum number of speci. mixed bound3ry conditions .FID00570 MXNBC ....• Maximum number of speci. secondary deg. of freedom .FlD00580 · FlD00590 MXNEQ ..... Maximum number of equations in the FE mpdel MXNOD •••.. Maximum number of nodes in the mesh · FlO00600 .FlD006l0 NOTE: The following dimension statement in subroutine JACOBI .FlD00620 should be modified When MXNEQ is greater than 50: .FID00630 DIMENSION V(50,50),VT(50,50),W(50,50),IH(50) · FlD00640 The value of MXNEQ should be used in place of '50' .FlD00650 FlD00660
-------------·-------------------~.FlD00670
SUBROUTINES USED IN THE PROGRAM
.FlD00680 .FlD00690 ASSMBL, AXLBX, BONDRY COEFNT, ECHO, JACOBI, MESHID, MTRXML, .FlD00700 PSTPRC, REACTN, SHP1D, SOLVER, TMSFRC, TMSTRS, TRSFRM • FlD00710 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _FlD0072 0 FlD00730 IMPLICIT REAL*8(A-H,O-Z) FID00740 PARAMETER (MXELM=20,MXNEQ=50 , MXEBC=IO,MXNBC=lO , MXMBC=10,MXNOD=25) FID007 50 DIMENSION DCAX(MXELM,2) ,DCBX(MXELM,2) ,DCCX(MXELM,2) ,DCFX(MXELM,3)FlD00760 DIMENSION GUO (MXNEQ) ,GUl(MXNEQ) ,GU2(MXNEQ) ,GPU(MXNEQ) ,DX(MXNOD) FID00770 DIMENSION IBDY(MXEBC),ISPY(MXEBC,2) ,ISSV(MXNBC,2) ,INBC(MXMBC, 2) FlD00780 DIMENSION GLM(MXNEQ,MXNEQ) ,GLF(MXNEQ),GLX(MXNOD) ,NOD(MXELM,4) FID00790 DIMENSION CS(MXELM),SN(MXELM),CNT(MXELM),SNT(MXELM),XB(MXELM) FID00800 DIMENSION EGNVAL(MXNEQ) ,EGNVEC(MXNEQ,MXNEQ) ,GLK(MXNEQ,MXNEQ) FID008l0 DIMENSION PR(MXELM),SE(MXELM),SL(MXELM) ,SA(MXELM),SI(MXELM) FlD00820 DIMENSION HF(MXELM) ,VF(MXELM) ,PF(MXELMj ,F3(MXELM),TITLE(20) FlD00830 DIMENSION UREF(MXMBC) ,VSPV(MXEBC),VSSV(MXNBC) ,VNBC(MXMBCj FlD00840 COMMOll/STFl/ELI«9,9) ,ELM(9,9) ,ELF(9),ELX(4) ,ELU(9);ELV(9) , ELA(9) FlD00850 COMMON/STF2/Al,A2,A3,A4,A5,AXO,AXl,BXO,BXI,CXO,CXl,CTO,CT1,FXO, FlD00860 * FXl,FX2 Fl000870 COMMON/IO/Ill,IT FlD00880 FlD00890 FlD00900 PRE PRO C E S S 0 R U NIT FlD00910 FlD00920 FlD00930 IN=5 FlD00940 IT=6 FlD00950 NT=O FlD00960 NSSY=O FlO00970 JVEC=l FlD00980 TIME=O.ODO FlD00990 TOLRNS=1.00-06 FlDOlOOO CALL ECHO(IN,IT) FlDOlOlO FlOOl020 READ(IN,300) TITLE FlDOl030 READ(IN,*) MODEL,NTYPE,ITEM FlDOI040 READ(IN,*) IELEM,NEM FlDOl050 READ(IN,*) ICONT,NPRNT FlDOl060 FlDOl070 IF(MODEL.GE.3)THEN FlDOlOaO NPE=2 FlDOl090
COMPlITER PROGRAM FEMlDV2
IF(MODEL.EQ.4 .AND. NTYPE.GE.l)THEN NDF=3 . ELSE . NDF=2 ENDIF IF(MODEL.EQ.4 .AND. NTY~E.EQ.2)THEN IELEM=l ELSE IELEM=O ENDIF ELSE IF(MODEL.EQ.2)THEN NDF=2 IF(NTYPE.GT.l)IELEM=l ELSE NDF=l EllDIF NPE=IELEM+l ElID1F C
NNN = NEM*(NPE-l)+1 NN = NPE*NDF NEMl=NEM + 1 1F(MODEL.NE.4)THElI C
C
Data input for BAR-LIKE and BEAM problems (MODEL=I,2, AND 3)
C
1F(1CoNT.NE.O)THEN READ(IN,*) (DX(l), I=I,NEMl) CALL MESHID(NEM,NNM,NPE,NOD,MXELM,MXNOO,DX,GLX) READ(IN,*) AXO,AXI REAO(IN,*) BXO,BXl REAO(lN,*) CXO,CXl IF(ITEM.NE. 3) THEN READ(IN,*) FXO,FXl,FX2 ENDIF ELSE C
C
Read GLX, NOD, and element-wise continuous coefficients [DC.X)
C
DO 10 N"I,NEM II=(N-l)*(NPE-l)+1 JJ=N*(NPE-l)+1 READ (Ilf, *) (GLX (K) ,K"II ,JJ) READ(1N,*) (NOD(N,1),l=l,NPE) READ(IN,*) (DCAX(N,1) ,1=1,2) READ (IN , *) (DCBX(N, 1),1=1,2) READ(IN,*) (DCCX(N,I),I=I,2) READ(IN,*) (DCFX(N,I) ,1=1,3) ENOIF
10 C
ELSE C
C
Input data for plane TRUSS or FRAME structures (HOOEL=4)
C
READ(IN,*)NNM IF(NTYPE.NE.O)THEN DO 20 N=I,NEM READ(IN,*) PR(N},SE{N),SL(N),SA(N),SI{N),CS(N},SN(N) REAO(IN,*) HF(N},VF(N),PF(N),XB(N),CNT(N),SNT(N) 20 REAO(IN,*} (1I0D(N,I) ,1=1,2) ELSE DO 30 N"l,NEM READ(IN,*) SE(N),SL(N),SA(N),CS(N),SN(N),HF(N) 30 REAO(IN,*} (NOO(N,I) ,1=1,2) ENDIF ENOIF NEQ=NNM*NDF C
C C
Read data on BOUNDARY CONDITIONS of three kinds: Dirichlet (PV) Neumann (SV), and Newton's (MIXED) types
C
READ(IN,*) IISPV IF(NSPV.NE.O)THEN DO 40 NB=I,NSPV
611
FlDOllOO FlDOI1l0 FlD01l20 FlDOllJO FID01l40 FlO01150 FlD01l60 FID0117D FIDOlISD FioOllS0 FlD01200 FIOOl210 FlDOl220 FlD012JO FID01240 FIDOI250 FlO01260 FlDOI270 FlDOl2S0 FID012S0 FlOOl300 FlOOI310 FIOOl320 Flo01330 FIDOIJ40 FlDOI350 FlO01360 FlDOlJ70 Flo013S0 FlDOl390 FlD01400 FIOOl410 FlD01420 FlD01430 FlD01440 FlD01450 FlOOI460 FlD0l470 FIDOl4BO FlDOl4S0 FlD01500 FlDOl510 FID01520 FID01530 FID01540 FIDOI55D FIDDI560 FlOOl570 FlDOl5BO FIOOl590 FIOOl600 FIOOl61D FlD01620 FlD01630 FID01640 FlD01650 FIDOl660 FlDOl670 FIDD16BO FlOOl69D FlOOl70D FlDDI7l0 FIDOlnO FID01730 FIDOl740 FIo01750 FlDOl760 FlDOl770 FIDOl780 FlOOl790 FIOOIBDO FIDOIS10 FlDOl820 FlDOIS30 FlOOIS40
6U
APPENDICES
IF(ITEM.GT.2)THEN READ{IN,*) (ISPV(NB,J) ,J=1,2) ELSE READ(IN,*) (ISPV(NB,J),J=1,2),VSPV{NB) ENDIF 40 CONTINUE ENDIF C
IF(ITEM.LE.2)THEN READ(IN,"') NSSV IF(NSSV.NE.O)THEN DO 50 IB=l,NSSV 50 READ(IN,"') (ISSV{IB,J),J=1,2),VSSV(IB) EIIDIF EIIOIF C
READ(Ill, *) NNBC IF(NNBC.NE. 0) THEil DO 60 1=1, NIlBC 60 READ(IN,"'1 (INBC(I,J) ,J=1,2) ,VNBC(I) ,UREF(I) EIIOIF C
/
IF(ITEM .IlE. O)THEll C C
Input data here for TIME-DEPENDENT problems
C
70
80
READ(IN,*) CTO,CTI IF(ITEM.LE.2)THEIl READ(IN,"') DT,ALFA,GAMA READ{IN,*) INCOIlD,NTIME,INTVL A1=ALFA*DT A2=(1.0-ALFA)*DT IF(INCOIlD.NE.O)THEIl READ(IU,"') (GUO(I),I=l,NEQ) ELSE DO 70 1=1, NEQ GUO(I)=O.O ENDIF IF(ITEM,EQ.2)THEN A3=2. OfGAMAf(DT*DT) M=A3"'DT A5=1.0fGAMA-I.0 IF(IUCOUD.UE.O)THEN READ(IN,*) (GUI(I) ,I=I,UEQ) ELSE DO 80 I=l,NEQ GU1(I)=0.0 GU2(I)=0.0 EIIDIF EIlDIF ENDIF ENDIF
C
C C C C C
END
a
F
THE
I
N PUT
Compute the half BANDWIDTH of the coefficient matrix GLK NHBW=O.O DO 90 N=l, NEM DO 90 I=l,NPE DO 90 J=l,UPE UW=(IABS{UOD(U,I)-UOD(Il,J»)+l)*IlDF 9 0 IF (NHBW.LT .1lW) NHBW=llW
C C C C
D A
P R I II T
THE
I N PUT
D A T A
C
WRITE(IT,530) WRITE(IT,310) WRITE(IT,5301 WRITE (IT, 300} TITLE WRITE (IT, 320) MODEL,IITYPE WRITE (IT, 350) IELEM, NoF , IIEM,UEQ, NSPV, NSSV, NNBC
T
A
FIDOl850 FIDOl860 FlD01870 FlD01880 Fl001890 FlD01900 FlD01910 FIDOl920 FID01930 FID01940 FID01950 F1D01960 FlD01970 FID01980 FID01990 FID02000 FID02010 FID02020 FID02030 F1D02040 F1D,92050 F1D02060 FlD02070 FlD020S0 FlD02090 FID02100 FID021l0 FID02120 FID02130 FID02140 FID02150 FID02160 FlD0217 0 FlD02180 F1D02190 FID02200 FI002210 FID02220 FlD02230 FID02240 F1D02250 FlD02260 FID02270 F1D02280 FlD02290 FID02300 FlD02310 FID02320 FID02330 FID02340 FlD02350 FID02360 FID02370 FID02380 FI002390 FlD02400 FI002410 FlD02420 FID02430 FlD02440 FlD02450 FID02460 FID02470 F1D02480 FI002490 FID02500 FlD02510 Fl002520 FID02530 FID02540 FID02550 FID02560 FlD02570 FID02580 FID02590
COMPUTER PROGRAM FEMlDV2
C
IF(ITEM.IIE.O)THEU IF(ITEM.LE.2)THEN WRITE(IT,330) WRITE (IT, 390) CTO,CT1,ALFA,GAMA,DT,NTIME,INTVL IF(INCOND.IIE.O)THEN' WRITE(IT,370) WRITE(IT,540) (GUO(I) ,1=l,IIEQ) IF(ITEM.EQ.2)THEN WRITE (IT ,380) WRITE(IT,540) (GU1(I) ,I=l,NEQ) ENDIF ENDIF ELSE WRITE(IT,340) WRITE(IT,400) CTO,CT1 EllDIF ElIDIF. C
IF(llSPV.lIE,O)THElI WRITE(IT,480) DO 100 IB=l,NSPV IF(ITEM.LE.2)THEll WRITE (IT ,490) (ISPV(IB,J), J=1,2) / VSPV (IB) ELSE WRITE (IT, 490) (ISPV(IB,J) ,J=l, 2) EllDIF 100 CONTINUE ENDIF C
IF(NSSV.lIE.O)THEN WRITE(IT,500) DO 110 IB=l,NSSV 110 WRITE(IT,490) (ISSV(IB,J) ,J=l,2) ,VSSV(IB) ENDIF C
IF(NNBC.NE.O)THEN WRITE(IT,510) DO 120 I=l,llNBC 120 WRITE(IT,490) (INBC(I,J),J=1,2) ,VNBC(I) ,UREF(I) ENDIF C
IF{MODEL.NE.4)THEN IF(ICONT.EQ.l)THEN WRITE(IT,410) WRITE(IT,540) (GLX(I),I=l,NNM) WRITE (IT, 420) IF(MODEL.NE.3)THEN WRITE(IT,440) AXO,AX1,BXO,BX1,CXO,CX1,FXO,FX1,FX2 ELSE WRITE(IT,445) AXO,AX1,BXO,BX1,CXO,CX1 ENDIF ELSE DO 130 N=l,llEM II=(N-1) * (llPE-l) +1 JJ=N*(llPE-1)+1 WRITE(IT,430) N,GLX(II),GLX(JJ) 130 WRITE (IT, 440) (DCAX{N/I) ,1=1,2), (DCBX(ll,I) ,1=1,2), * (DCCX(N,I) ,1=1,2), (OCFX(N,I) ,1=1,3) ENOIF ELSE DO 140 N=l,NEM WRITE(IT,460) N IF{NTYPE.NE.O)THEN WRITE(IT,450) PR(N),SE(N),SL(N),SA(N),SI(N),CS(N),SN(N), * 'HF{N),VF(N) ,PF(N),XB(ll),CNT(N),SNT{N), * (NOD{N,I) ,1=1,2) ELSE WRITE(IT,470) SE(N),SL(N),SA(N),CS(N),SN(N),HF(N), * (NOD(N,I) ,1=1,2) ENDlF 140 CONTINUE ENDlF C
613
FlD02600 F1D02610 Fl002620 Fl002630 FlD02640 F1D02650 F1D02660 FlD02670 F1D02680 F1D02690 F1D02700 FID02710 FID02720 FlD02730 FlD02740 FlD02750 FlD02760 FlD02770 FlD02780 Fl002790 F1D02800 FID02810 FlD02820 FlD02830 FlD02840 FlD02850 F1D02860 F1D02870 Fl002880 Fl002890 FlD02900 FlD02910 FlD02920 FlD02930 Fl002940 FlD02950 F1D02960 FID02970 Fl002980 FlD02990 FlD03000 F1D03010 F1D03020 F1D03030 F1D03040 FlD03050 FID03060 FlD03070 FID03080 FlD03090 FlD03100 FlD03110 FlO03120 FlD0313 0 FlD03140 FlD03150 F1D03160 F1D03170 F1D03180 FlD0319 0 FlD0J200 FlD03210 FID03220 FlD03230 FlD03240 FlD0J250 FlD0J260 FlD03270 F1D03280 FlD03290 F1D03300 F1D03310 FlD03320 FlD03330
614
APPENDICES
c c c
FlD03340 F1003350 F1D03360 F1D03370 TIME MARCHING scheme begins here. For ITEM=2, initial conditions FlD03380 on second derivatives of the solution are computed in the program FlD03390 F1DQ3400 F1D03410 IF(ITEM.NE.O)THEN . F1D03420 IF(ITEM.EQ.1)THEII FlD03430 NT=1IT+1 F1D03440 TIME='rIME+DT F1003450 ENDIF F1D03460 EUOIF FlD03470 F1D03480 IF(ITEM.GT.2)NHBW=llEQ F1D03490 FlD03500 Initialize global matrices and vectors FlD03510 F1003520 DO 160 I=l,NEQ FlDCQ530 GLF(I)=O.O FlD03540 DO 160 J=l,NRSW / FlD03550 IF(ITEM.GT.2)TREN FlD03560 GLM(I,J)=O.O FlD03570 EIIOIF FlD03580 GLK(I,J)=O.O Fl003590 FlD03600 Do-loop for ELEMENT CALCULATIONS and ASSEMBLY FlD03610 F1003620 DO 200 NE = 1, IIEM FlD03630 IF(MODEL.IIE.4)TREN FlD03640 IF(ICONT.NE.1) THEil FlD03650 AXO=OCAX(NE,l) Fl003660 AX1=OCAX(NE,2) f1003670 BXO=OCSX(NE,l) F1003680 BX1=OCBX(llE,2) Fl003690 cXO=OCCX(NE,l) FlD03700 CX1=OCCX(NE,2) FID03710 FXO=DCFX(NE,l) F1003720 FX1=OCFX(NE,2) FlD03730 FX2=DCFX(NE,3) FID03740 ENDIF F1D03750 F1D03760 L-O F1D03770 DO 180 I=l,NPE F1003780 NI=NOD(NE,I) FlD03790 ELX(I)=GLX(NI) Fl003800 IF(ITEM.EQ.1 .OR. ITEM.EQ.2)THEN FlD03810 LI=(NI-1)"NDF DO 170 J=l,IIDF Fl003820 FlD03830 LI=LI+1 L=L+1 FlD03840 FlD03850 ELU(L)=GUO(LI) FlD03860 IF (ITEM. EQ. 2 . AIID. NT.GT.O)THEN F1D03870 ELV(L)=GU1(LI) F1D03880 ELA (L) =GU2 (LI) ENOIF Fl003890 CONTINUE FlD03900 EIIDIF F1D03910 FID03920 CONTINUE FlD03930 CALL COEFNT(IELEM,ITEH,MODEL,NOF,NPE,TIME,NTYPE,NE,F3,MXELM) FlD03940 ELSE F1D03950 CALL TRSFRM (MXELM,MXNEQ,NE,NTYPE,PR,SE,SL,SA,SI,CS,SN, FlD03960 FlD03970 CNT,SNT,HF,VF,PF,XB) ENDIF FlD03980 FlD03990 IF(NPRNT .NE.O)THEN FlD04000 IF(NPRNT .LE.2)THEN FID04010 FID04020 IF(NE.EQ.1 .AND. NT.LE.l)THEN WRITE(IT,550) F1D04030 DO 190 I=l,UN FlD04040 FlD04050 WRITE(IT,540) (ELK(I,J),J=l,NlI) IF(ITEM.GT.2)THEN FlD04060 F1D04070 WRITE(IT,360) F1D04080 DO 195 I=l,llN PRO C E S S 0 R
C
C C C
C
c C C
150
160 C
C C
C
170 180 C
.. C
190
U II I T
COMPUTER PROGRAM FEMlDV2
195
C C C C C C C
C C C C
C C C C C
C C C C C
C C C
WR1TE(IT,540) (ELM(1,J),J=l,NN) ELSE WRITE(IT,560) WRIT)::(IT,540) (ELF(1) ,1=l,NII) EIIDIF ENDIF EIIDIF ENDIF
615
FlD04090 F1D04100 F1D04110 F1D04120 F1D04130 F1D04140 F1D04150 F1D04160 F1D04170 Assemble element matrices F1D04180 F1D04190 CALL ASSMBL(NOD,MXELM,MXNEQ,lIDF,NPE,NE,ITEM,GLK,GLM,GLF) F1D04200 F1D04210 200 CONTINUE F1D04220 IF (NPRNT.EQ. 2) THEil FlD04230 F1D04240 Print assembled coefficient matrices if required F1D04250 FID04260 WRITE(IT,57n) F1D04270 DO 210 I=l,NEQ F1D04280 WRITE(IT,540) (GLK(I,J),J=l,NHBW) F1D04290 210 IF(ITEM.GT.2)THEN F1D04300 WRITE(IT,575) F1D04310 DO 215 I=l,NEQ F1D04320 WRITE(IT,540) (GLM(I,J) ,J=l,NHBW) F1D04330 215 ELSE F1D04340 WRITE(IT,580) FID04350 WRITE(IT,540) (GLF(I),I=l,IlEQ) FlD04360 ENDIF FlD04370 ENDIF F1D04380 F1D04390 Call subroutine BONDRY to impose essential, natural and Newton's F1D04400 type boundary conditions on the primary and secondary variables. F1004410 F1D04420 CALL BONDRY (NEQ,NEQR,NHBW,NSPV,NSSV,NNBC,IlDF,DT, ITEM,ALFA,1BDY, F1D04430 * ISPV,ISSV,INBC,UREF,VSPV,VSSV/VNBC,GLK,GLM,GLF,GUO, FID04440 * MXEBC,MXIIBC,MXMBC,MXIIEQ) F1D04450 F1D04460 IF(ITEM.GT.2)THEN FID04470 FID04480 Call subroutine AXLBX to solve for the eigenvalues and eigenvectorF1D04490 F1D04500 CALL AXLBX(NEQR,GLK,GLM,EGIIVAL,EGIIVEC,JVEC,NROT,MXNEQ) F1D04510 FID04520 WRITE(IT,690) NROT F1D04530 DO 230 llVEC=l,NEQR FID04540 FRQNCY=DSQRT(EGIIVAL(IIVEC» F1D04550 FID04560 WRITE(IT,700)NVEC,EGNVAL(NVECj ,FRQNCY 230 WRITE(IT,540) (EGNVEC(I,NVECj,I=l,NEQR) F1D04570 STOP FID04560 EIIDIF FID04590 FID04600 IRES = 0 F1D04610 FID04620 Call subroutine SOLVER to solve the finite-element equations F1D04630 F1D04640 CALL SOLVER(MXNEQ,MXNEQ,NEQ,NHBW,GLK,GLF,IRES) F1D04650 FlD04660 IF(ITEM.EQ.O)THEN F1D04670 WRITE(IT,590) F1D04680 WRITE(IT,540) (GLF(NI) ,11I=l,NEQ) F1D04690 FID04700 ELSE IF(NT.EQ.O)THEN F1D04710 DO 240 I=l,NEQ F1D04720 GU2 (I)=GLF(I) FlD04730 240 NT=NT+l FI004740 TIME=TIME+DT FID04750 GOTO 150 F1D04760 ENDIF F1D04770 F1D04780 Compute and print current values of GUO, GU1, and GU2 F1D04790 F1D04600 DO 250 I=l,NEQ FID04810 IF(ITEM.EQ.2)THEN FID04820 ACCLRN=A3*(GLF(I)-GUO(Ij}-A4*GUl(I)-AS*GU2(I) FI004830
616
APPENDICES
GU1(I)=GU1(I)+A2*GU2(I)+Al*ACCLRN GU2(I)=ACCLRN GPU(I) =GUO(I)
250
ELSE GPU(I)=GUO(I) EllDIF GUO(I)=GLF(I)
C
DIFF=O.O SOLll=O.O 00 260 I=l,llEQ SOLN=SOLJI+GUO(I) *GUO(I) 260 DIFF=DIFF+(GLF(I)-GPU(I»**2 PRCllT=DIFF/ SOLlI IF {PRCllT. LE.TOLRNS) THEN STOP ELSE IF(IllTVL.LE.0)lNTVL-1 NTEN=(NT/IllTVL)*INTVL IF(NTEN. EQ.NT) THEN WRITE(lT,600) TIME, NT WRITE(IT,590) WRITE(IT,540) (GUO(l) ,I=l,NEQ) IF(ITEM.llE.l) THEN WRITE(IT,540) (GU1(I) ,I=l,NEQ) WRITE(IT,540) (GU2 (I), l=l,NEQ) ENDIF NT=NT+1 TIME=TIME+DT ELSE NT=NT+l TIME=TIME+DT GOTO 150 ENDlF ENOIF EllDIF C C
C P O S T - PRO C E S S 0 RUN 1 T C C
IF(NPffiIT.LE.1)THEll IF(MODEL.EQ.1) THEll WRITE (IT, 530) ELSE IF(MODEL.EQ.4)THEN WRITE(lT,630) ENDIF WRITE(IT,520) EllDIF C
IF(MODEL.EQ.l)THEN IF(llTYPE.EQ.O)THEN WRITE(IT,610) ELSE WRITE (IT, 620) ENDIF EllOIF C
IF(MODEL.EQ.2 .OR. MODEL.EQ.3)THEll IF(NTYPE.EQ.O)THEN WRITE(IT,650) ELSE WRITE(IT,660) EllDrF ENDrF C
IF(MODEL.EQ.4)THEN IF (NTYPE. EQ. 0) THEN WRITE (IT, 680) ELSE WRITE (IT (670) EllOIF EllorF
/
FlD04840 F1D04850 FlD04860 FlD04870 F1004880 FID04890 FID04900 FID04910 FID04920 FlD04930 F1D04940 FI004950 FID04960 FID04970 F1D04980 FID04990 F1005000 FlO05010 Fl005020 FlD050JO FlQ.05040 F1DOS050 FID05060 FlD05070 FlD05080 FID05090 FlD05100 FlD05110 F1D05I20 FID05IJO FlD05140 FID05150 FlD05I60 FlD05I70 FlD05I80 FlD05I90 FID05200 FlD05210 Fl005220 FlO05230 FlD05240 FlD05250 F1D05260 FlD05270 FID05280 FI005290 FID05300 FlD05310 FID05J20 FID05J30 FID05340 FID05350 FI005360 FID05370 FID05380 FlD05J90 F1D05400 FI005410 FlD05420 FlD05430 FlD05440 F1D05450 FlD05460 FlD05470 FID05480 FID05490 FID05500 FID05510 Fl005520 FlD05530 FlD05540 Fl005550 FlD05560 FlD05570.
COMPUTER PROGRAM FEMlDV2
C IF(MODEL.EQ.1)THEN WRITE(IT,S30} ELSE WRITE(IT,520} ENDIF C IF(MOOEL.LE.3)THEN C CALL *
C
C C C C C
F1D05580 FID05590 FID05600 FID05610 FID05620 FID05630 F1D05640 F1D05650 FID05660
PSTPRC(F3,GLF,GLX,NOD,AXO,IELEM,llPE,MODEL,NT~PE,ITEM,F1005670
MXELM,MXNEQ,MXIIOD,NEM,UDF)
F1D05680 FlD05690 FlD05700 * . SE, SL, SA, SI, CS, SU, CNT I SNT, HF, VF, PF, XB) F1D057l0 ENDIF FlD05720 FlD05730 IF(MODEL.EQ.l)THEN FlD05740 WRITE(IT,530) FlD05750 ELSE , FlD05760 WRITE(IT,520) F1D05770 FlD05780 ENOIF ENDIF F1D05790 F1D05800 IF(ITEM.EQ. 0) STOP FlD05810 IF (NT. LT.NTIME) THEN F1D05820 IF (PRCNT. GT. TOLRNS) THEN FlD05830 GOTO 150 FID05840 ENDIF F1D05850 ELSE F1D05860 WRITE(IT,7l0) F1D05870 FlD05880 ENDIF FlD05890 ---------------------------------------------------------------- FlDOS900 FOR MAT S FlD05910 ---------------------------------------------------------------- FIDOS920 FID05930 300 FORMAT(20A4) F1D05940 FEMIDV2 BY J. N. REDDY') F1D05950 310 FORMAT(4X,'OUTPUT FROM PROGRAM FORMAT(/,4X,'*** ANALYSIS OF MODEL',I2,', AND TYPE',I2, F1D05960 320 * , PROBLEM ***',1,15X,'(see the code below)',I, FID05970 * 1,4X,'MODEL=1,NTYPE=0: A problem described by MODEL EQ. l',FlD059BD * 1,4X,'MODEL=1,NTYPE=1: A circular DISK (P~E STRESS)', FID05990 * 1,4X,'MODEL=1,NTYPE>1: A circular DISK (PLANE STRAIN)', FlD060DO * 1,4X,'MODEL=2,NTYPE=O: A Timoshenko BEAM (RIE) problem', F1D060lD * 1,4X,'MODEL=2,NTYPE=1: A Timoshenko PLATE (RIE) problem', FlD06020 * 1,4X,'MODEL=2,NTYPE=2: A Timoshenko BEAM (CIE) problem', FlD06030 * 1,4X,'MODEL=2,NTYPE>2: A Timoshenko PLATE (CIE) problem', FID06040 * 1,4X,'MODEL=3,NTYPE=0: A Euler-Bernoulli BEAM problem', FID06D50 * 1,4X,'MODEL=3,NTYPE>0: A euler-Bernoulli Circular plate', FlD06060 * 1,4X,'MOOEL=4,NTYPE=0: A plane TRUSS problem', F1D06070 * 1,4X,'MODEL=4,NTYPE=1: A EUler-Bernoulli FRAME problem', F1D06080 * /,4X,'HODEL=4,NTYPE=2: A Tirnoshenko (CIE) FRAME problem',/)FlD06090 330 FORMAT (j, 4X, 'TIME-DEPENDENT (TRANSIENT) ANALYSIS r J) F1D06l00 340 FORMAT(/,4X,'E I G E N V A L U E A N A L Y S I S',/) FlD06110 350 FORMAT{/,lOX, 'Element type (0, Herrnite,>O, Lagrange) .. =' ,14,1, F1D06120 * lOX, 'No. of deg. of freedom per node, NDF =',I4,1, FID06130 * lOX, 'No. of elements in the mesh, NEM =',I4,I, FlD06l4D * lOX, 'No. of total DOF in the model, NEQ •••••• =',I4,1, F1D06l50 * lOX, 'No. of specified primary OOF, NSPV...••• =',I4,1, FID06l60 * lOX, 'NO. of specified secondary noF, NSSV..•• =',I4,1, FlD06l70 * lOX, 'No. of specified Newton B. C.: NNBe..... =',14) fl006l80 360 FORMAT(/,3X,'Element coefficient matrix, (ELM):',/) FID06l90 370 FORMAT(/,3X, 'Initial conditions on the primary variables:',/) FID06200 380 FORMAT(/,3X, 'Initial condo on time der. of primary variables:',/)FlD06210 390 FORMAT(j,10X , 'Coefficient, CTO ..••.•...... ".....•...... =' ,E12.4,1, F1D06220 * lOX,'coefficient, CTl .•.......••.••........ • . =',E12.4,1, FI006230 * 10X,'Parameter, ALFA...•••.................. . =',E12.4,1, F1D06240 * 10X.'Parameter, GAMA ...•••..........•........ =',E12.4,1, FID06250 ELSE CALL
C
617
REACTN(MXELM,MXNEQ,NOF,NEM,NOD,NPE,NT~PE,PR,GLF,
*
lOX,'Time increment, DT .....................• =',E12.4,I, F1D06260
* *
FID06270 F1D0628D FID06290 FlD06300 Fl0063l0
lOX, 'No. of time steps, NTIME •.•........•.... =' ,14, I, lOX,'Time-step interval to print saln .• INTVL=',I4,/) 400 FORMAT(/,lOX,'Coefficient, CTO ....•...........••...... =',E12.4,/, * 10X,'Coefficient, CTl ................•....... =',E12.4,/) 410 FORMAT(/,3X,'Global coordinates of the nodes, (GLX}:' ,I)
618
APPENDICES
420 FORMAT(f,3X,'Coefficients of the differential equation:',/) 430 FORMAT(/,5X,'Properties of Element =',13,//, * 10X,'XA =',E12.4,5X,'XB =',E12.4) 440 FORMAT( lOX, 'AXO =' ,E12.4,5X, 'AXI =' ,E12.4,f, * 10X,'BXO =',E12.4,5X,'BXl =',E12.4,f, * 10X,'CXO =',E12.4,5X,'CXl =',EI2.4,f, * 10X,'FXO =',E12.4,5X,'FXl =',E12.4,5X,'FX2 =',E12.4,/) 445 FORMAT( 10X,'AXO =',E12.4,5X,'AXl =',E12.4,f, * 10X,'BXO =',E12.4,5X,'BX1 =',E12.4,/, * 10X,'CXO =',E12.4,5X,'CX1 =',E12.4,/) 450 FORMAT(lOX,'The poisson ratio, PRo ....•.. =',E12.4 If, * 10X,'Modulus of elasticity, SE .......• ~',E12.4,f, * 10X,'Length of the element, SL ....•... =',E12.4,f, * lOX,'Area of CrOss section, SA . =',EI2,4,/, * lOX, 'Moment of inertia, S1 . =' ,EI2,4,/, * loX,'Cosine of orientation, eN . ~',E12.4,/, * lOX,'Sine of orientation, SN . ~',E12.4,f, * 10X,'Axial body force (constant), HF......•• ~ I , E12 .4 , f , * 10X,'Transverse body force (cnst},VF •.....•. =1,E12.4,f, * 10X,'1nternal point force, PF ....•... =',E12.4,1, * 10X,'Location of PF from node 1, XB......•• ~',E12.4,f, * 10X,'Orientation of PF: cosine, CST.•• , ... =',Ej.2.4,/, * 10X,'Orientation of PY: sine, SNT" ...•• ;',E12.4,/, * 10X,'Nodal connectivity: NOD(1,J) .. =' ,216,f) 460 FORMATC//,3X,'Element No. =', 13,/) 470 FORMATCI0X,'Modulus of elasticity, SE ••••• , •• Q',E12.4,f, * 10X,'Length of the element, SL =',E12.4,f, * 10X,'Area of cross section, SA =',EI2.4,/, * 10X,'Cosine of orientation, CN =',E12.4,/, SN ...••... ~, ,EI2.4,/, * 10X,'Sine of orientation, * 10X,'Axial body force (constant), HF.....••. ~/,E12.4,/, NODC1,J) •• ~I ,2I6,f) * 10X,'Nodal connectivity: 480 FORMAT(f,3X, 'Boundary information on primary variables:/,f) 490 FORMAT(5X,215,2E15.5} 500 FORMAT(f,3X, 'Boundary information on secondary variables:' ,f) 510 FORMAT(/,3X, 'Boundary information on mixed boundary cond.:',f) 520 FORMAT(2X,78('~'),f) 530 FORMAT(2X,55(' '},f) 540 FORMATC2X,5EI3~5) 550 FORMAT(/,3X,'Element coefficient matrix, [ELK):',f) 560 FORMATC/,3X,'Element source vector, {ELF}:',f} 570 FORMATC/,3X,'Global coefficient matrix, [GLK):',f) 575 FORMATC/,3X,'Global coefficient matrix, [GLM):',f) 580 FORMATC/,3X,'Global source vector, (GLF}:/,/) 590 FORMATCf,lX,/SOLUT10N (values of PYa) at the NODES: I,f} 600 FORMAT(f,lX,'T1ME =1,E12.4,5X,'Tima step number =',I3,f} 610 FORMAT(7X,' X ',5X, 'P, Variable',2X,/S. Variable') 620 FORMAT(7X,1 X ',5X, 'Displacemnt',2X,'Radial Strs',2X, * 'HoOp Stress') 630 FORMATC/,9X,'Generalized forces in the element coordinates',f, * 5X,ICsecond line gives the results in the global coordinates)') 650 FORMAT(7X,' X ',6X, 'Deflect.',5X,'Rotation',5X,'B. Moment /, * 3X,'Shear ForCe /) 660 FORMAT(7X,' X ',6X, 'Deflect.',5X,/Rotation /,4X,/Moment, Mr', * 3X,'Mornent, Mt /,3X,'Shear Force') 670 FORMAT(3X, 'Ele Force, HI Force, VI Moment, Ml Force, H2 *Force, V2 Moment, M2') 680 FORMAT(3X, IEle Force, HI Force, VI Force, H2 Force, V2') 690 fORMAT(/,5X,/Number of rotations taken in JACOBI =',12,f) 700 FORMATC/,5X,'EIGENVALUE(',12,/) = I,E14.6,2X,'SQRT(EGNVAL} = I , * E13.5,/,5X,/E1GENVECTOR:') 710 FORMAT(f,5X,I***** Number of time steps exceeded NT1ME *****I,f} STOP END
YlO06320 FlD06330 FlO06340 FID06350 FlD06360 FlD06370 FlD06380 FID06390 FlD06400 F1D06410 FID06420 FID06430 FlD06440 FID06450 FID06460 FlD06470 FlD06480 FlD06490 FlD06500 FlD06510 F;iD06520 FID06530 FlD06540 FlD06550 FID06560 FlD06570 FID06580 FlD06590 FID06600 FID06610 FID06620 FID06630 FID06640 FID06650 FlD06660 Fl006670 FID06680 FID06690 FlD06700 FID06710 FlD06720 FlO06730 FlD06740 FlD06750 FlD06760 FID06770 FlD06780 FI006790 FID06BOO FlD06810 FI006820 FlD06B30 FlD06840 FID06850 FlD06860 FlD06870 FlD06880 FID06B90 FID06900 FID06910 FlD06920 FID06930 FlD06940 FID06950
COMPUTER PROGRAM FEMIDV2
SUBROUTINE ASSMBL(1l0D,MXELM,MXllEQ,NDF,NPE,llE,ITEM,GLK,GLM,GLF) _ _ _ _ _~ ~
c C
C C
The sUbroutine calls subroutines to compute element matrices and assembles them in a upper banded matrix form
C
C c C
{ELF) •... Element source vector, {F) {ELK} .•.. Element coefficient matrix, [KJ Element coefficient matrix, [MJ {ELM} [NOOJ connectivity matrix _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _~ ~
C C C
~
IMPLICIT REAL*8 (A-H,O-Z) DIMENSION 3LK(MXNEQ,MXllEQ),GLM(MXllEQ,MXNEQ),GLF(MXllEQ), * NOO(MXELM,4) COMMOll/STF1/ELK(9,9) ,ELM(9,9),ELF(9),ELX(4) ,ELU(9) ,ELV(9) ,ELA(9) IF(ITEM.LE.2)THEll C
C
Assemble element coefficient matrix ELK and source vector ELF
C
DO 50 I = I, llPE NR = (NOo(IlE,I) - l)*NOF DO 40 II = 1, NDF NR = NR + 1 L = (I-1)*NOF + II GLF(NR) = GLF(NR) + ELF(L) DO 30 J = 1, NPE NCL = (NOO(NE,J)-l)*lloF DO 20 JJ = 1, NOF M = (J-1) *IIOF + JJ NC = llCL-NR+JJ+l IF(NC)20,20,10 GLK(NR,NC) = GLK(NR,NC) + ELK(L,M) CONTINUE CONTINUE CONTINUE CONTINUE
10 20 30 40 50 ELSE C C
C
ASSEMBLE ELEMENT MATRICES INTO FULL GLOBAL MATRICES
C
60 70 80 90 100
C
C C C C C C
C
C C
DO 100 1=1, NPE NR=(NOD(NE,I)-l)*NDF 00 99 II=l,NDF NR=NR+l L= (I-I) *NDF+II DO 80 J=l,NPE NC=(NOD(NE,J)-l}*NDF DO 70 JJ=l,NDF M=(J-l)*NDF+JJ NC=NC+l GLK(NR,NC) =GLK(NR,NC) +ELK(L,M) GLM(NR,NC)=GLM(NR,NC)+ELM(L,M) CONTINUE CONTINUE CONTINUE CONTINUE ENOIF RETURN END
619
F1D06960 FlD06970 Flo06980 F1D06990 F1D07000 FlD07010 Flo07020 FlD07030 FlD07040 FlD07050 FlD07060 FlD07070 PlD07080 F1D07090 FlDonoo F1D07110 F1D07l20 F1D07130 Flo07140 FlD07150 FlD07160 FlD07170 FlD07l80 FlD07l90 FlD07200 FlD07210 FlD07220 FlD07230 F1D07240 FlD07250 FlD07260 FlD07270 FlD07280 FlD07290 Fl007300 FlD07310 FlD07320 FlD07330 FlD07340 FlD07350 FlD07360 F1D07370 FlD07380 FlD07390 F1D07400 FlD07410 FlD07420 FlD07430 F1D07440 F1D07450 F1D07460 Flo07470 P1D07480 F1D07490 PlD07500 FlO07510 F1D07520 FlD07530 FlD07540 F1007550 FlD07560
SUBROUTINE AXLBX(N,A,B,XX,X,NEGN,NR,MXNEQ) FlD07570 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _~_FI007580 F1D07590 Subroutine to solve the EIGENVALUE PROBLEM: PlD07600 F1D07610 [AJ {X} = Lambda. [BJ {X} FID07620 FI007630 The program can be used only for positive-definite [BJ matrix FlD07640 The dimensions of V, VT, W, and IH should be equal to MXNEQ FID07650 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _~ F1D07660 FlD07670 IMPLICIT REAL*8 (A-H,O-Z) FlD07680
620
APPENDICES
A(MXUEQ,MXNEQ},B(MXNEQ,MXNEQ} ,XX (MXNEQ) ,X(MXNEQ,MXNEQ} FlD07690 FlD07700 V(50,50} ,VT(50,50} ,W(50,50) ,IH(50) FlD077l0 FlD07720 Call JACOBI to diagonalize (8] FlD07730 FlD07740 CALL JACOBI (N,B,NEGN,NR,V,XX,IH,MXNEQ) FlD07750 FlD07760 Make diagonalized (BJ symmetric FlD07770 FlD07780 DO 10 I=I,N FID07790 DO 10 J=l,N FlD07800 B(J,I}=B(I,J) FlD07BI0 Check (to make sure) that (B] is positive-definite FlD07820 FlD07830 DO 30 I=l,N FlD07B40 IF (B(I,I)}20,30,30 FlD07850 WRITE(6,BO) FID07860 STOP FID07B70 CONTINUE FID07B80 Fl1l07B90 I' The eigenvectors of IBJ are stored in array V(I,J] FID07900 Form the transpose of [V] as (VTJ FlD079l0 FlD07920 DO 40 I=I,N FlD07930 DO 40 J=I,N FlD07940 VT(I,J)=V(J,I} FID07950 FID07960 Find the product (F]=(VT](A](V] and store in fA] to save storage FID07970 FlD07980 CALL MTRXML (VT,N,N,A,N,W) FlD07990 CALL MTRXML (W,N,N,V,N,A) FlD08000 FlDOBOlO Get [GI] from diagonalized [BJ, but store it in [BJ FlDOB020 FlDOB030 DO 50 I=I,N FID08040 B(I,I)=1.0/DSQRT(B(I,I)} FID08050 FlD08060 Find the product [Q)=(GI][F](GI]=[B)(A)[B] and store in (AJ FID08070 FlDOB080 CALL MTRXML (B,N,N,A,I!,W) FlD08090 CALL MTRXML (W,N,N,B,lI,A) FID08100 FlD08ll0 We now have the form (QJ{Z}=Lamda(Z). Diagonalize [Q) to obtain FlD08I20 the eigenvalues by calling JACOBI. FlD08130 Fl008140 CALL JACOBI (lI,A,lIEGN,NR,VT,XX,IH,MXNEQ) Fl008l50 FlDOB160 The eigenvalues are returned as.diag [A). FlD08170 FID08180 DO 60 J=l,N FlD08190 XX(J)=A(J,J) FlD08200 FlD08210 The eigenvectors are computed from the relation, FlD08220 {X}=(VJ(GIJ{Z}=(V](B][VT] FlD08230 since {Z} is stored in (VT). FID08240 FlD08250 CALL MTRXML (V,N,N,B,N,W) FlD08260 CALL MTRXML (W,N,N,VT,N,X) FlD08270 FlDOB280 FORMAT(/'*** Matrix (GLM] is NOT positive-definite ***') FlD08290 RETURN FlD08300 END FlDOB310 DIMENSION DIMENSION
C C C
C C C
10 C C C
20 30 C C C C
40 C C C
C C C
50 C C C
C C
C C
C C C
c
60
C C
C C
C
80
c C C
C C
C
* *
SUBROUTINE BONDRY (NEQ, NEQR, IlHBW,NSPV, NSSV,NNBC, NDF, DT, ITEM,ALFA, IBDY,ISPV,ISSV,IlIBC,UREF,VSPV,VSSV,VNBC, GLK,GLM,GLF,GUO,MXEBC,MXNBC,MXMBC,MXNEQ) _ _~ ~ ~ ~_ _~_ _~_ _~_ _~
FID08320 FID08330 FlD08340 :FlD08350 FlDOB360 The subroutine is used to implement specified boundary conditions FlDOB370 on the assembled system of finite element equations FlDOB380 _ _ _ _~ ~ ~ ~~ ~~ ~~ F1DOB390 FID08400 FID08410 IMPLICIT REAL*8 (A-H,O-Z)
) COMPUTER PROGRAM FEMlDV2
ISPV(MXEBC,2) ,ISSV(MXNBC,2) ,INBC(MXMBC,2) ,IBOY(MXEBC) FID08420 UREF(MXMBC) ,VSPV(MXEBC),VSSV(MXNBC),VNBC(MXMBC) FID08430 GLK(MXNEQ,MXNEQ) ,GLM(MXIIEQ, MXNEQ), GLF(MXNEQ) r GUO (MXlfEQ)FlD08440 FlD08450 Impose boundary conditions for STATIC and TIME-DEPENDENT problems FID08460 FlD08470 FlD08480 IF(ITEM.LE.2)THEN FlD08490 Fl008500 Include specified PRIMARY degrees of freedom FlD085l0 Fl008520 IF(llSPV.NE.O)THEN FlD08530 DO 30 liB = 1,NSPV FID08540 IE=(ISPV(lIB,ll-1)*lIDF+ISPV(lIB,2) FlD08550 IT=NHBW-l FlD08560 I=IE-NHBW FlD08570 DO 10 II=l,IT FlD08580 1=1+1 FlD08590 IF(I .GE. l)THEN FID08600 J=IE-I+l FID08610 GLF(I)=GLF(I)-GLK(I,J)*VSPV(lIB) FID08620 GLK(I,J)=O.O FID08630 ENDIF FlD08640 COIlTINUE Fl0086s0 GLK(IE, 1)=1. 0 FID08660 GLF(IE)=VSPV(NB) FlD08670 I=IE FlD08680 DO 20 II=2,NHBW FID08690 1=1+1 FlD08700 IF(I .LE. NEQ)THEN FlD08710 GLF(I)=GLF(I)-GLK(IE,II)*VSPV(NB) FID08720 GLK(IE,II)=O.O FID087JO EllDIF FlD08740 CONTINUE FI008750 CONTINUE FlD08760 ENDIF FlD08770 FID08780 IF(IlSSV.NE.O)THEN FID08790 FlD08800 Include specified SECONDARY degrees of freedom FlD08810 Fl008820 DO 40 NF = 1,IISSV FID088JO NB=(ISSV(IIF,1)-1)*IlDF+ISSV(NF,2) FID08840 IF(ITEM.EQ.l)GLF(NB)=GLF(IIB)+VSSV(NF)*DT FID08850 IF(ITEM.NE.1) GLF(liB) =GLF(NB)+VSSV(NF) FID08860 ElIDIF Fl008870 FlD08880 IF(lINBC.NE.O)THElI FID08890 FlD08900 Include specified MIXED boundary conditions FlD08910 FlD08nO DO 50 IC=I,lINBC FlD08930 1lC= (IIIBC (IC, 1)-1) *IlDF+INBC(IC, 2) F1008940 IF{ITEM.EQ.l)THEIl GLK(NC,l)=GLK(IlC,I)+ALFA*DT*VlIBC(IC) FID08950 FlD08960 GLF(NC)=GLF(NC)+DT*VlIBC(IC) * (UREF{IC) -(1.0-ALFA)*GUO(NC» FID08970 ELSE FiD08980 FlD08990 GLK(lIC,l)=GLK{llC,ll+VNBC(IC) GLF(NC) =GLF (NC) +VNBC (IC) *UREF (IC) FlD09000 ENDIF Fl009010 CONTINUE Fl009020 ENDIF Fl009030 ELSE Fl009040 IF(NNBC.NE.O)THEN FI009050 FlD09060 Include specified MIXED boundary conditions FlD09070 FlD09080 DO 70 IC=I,NNBC FlD09090 NC=(INBC(IC,l)-l) *lIDF+INBC(IC, 2) Fl009100 GLK(NC,NC)=GLK(NC,IlC)+VNBC(IC) FI009110 CONTINUE FlD09120 EIlDIF FlD09130 FID09140 Impose boundary conditions for EIGENVALUE problems FID09I50 F1009I60 DIMENSION DIMENSION DIMENSION
C C C C C C
10
20 30 C C C
C
40 C C C C
* 50
c C C
70 C C
C
621
622
APPENDICES
IF(NSPV.NE.O)TIIEN DO ao" IB=l,NSPV 80
110 120
140 150 160 180
IBOY(IB)=(ISPV(IB,1)-1)~NOF+ISPV(IB,2)
00 120 I=l,NSPV lHAX=IBOY(I) DO 110 J=I,NSPV IF(IBDY(J) .GE.lMAX)TIIElI lMAX=IBDY(J) IKEPT=J ENOIF CONTINUE IBOY(IKEPT) =IBDY(I) IBDY(I)=IMAX CONTINUE NEQR = lIEQ DO lao I=l,NSPV IB=IBDY (1) IF (I B . LT. NEQR) TIIEN lIEQR1=NEQR-1 DO 160 II=IB,NEQRI DO 140 JJ=I,lIEQR GLM(II,JJ)=GLM(II+1,JJ) GLK(II,JJ)=GLK(II+1,JJ) DO 150 JJ=l,NEQR GLM(JJ,II)=GLM(JJ,II+1} GLK(JJ, II)=GLK(JJ, 11+1) CONTINUE ENDIF NEQR=NEQR-I CONTINUE ElIDlF E!lDIF RETURN END
FlD09170 FID09180 FlD09190 FlD09200 FlD09210 FID09220 F1D09230 FlD09240 FID09250 FID09260 FlD09270 FlD092ao F1D09290 FID09300 FlD09310 FID09320 FID093JO FlD09340 FlD09350 FID09360 FlDQ9370 FlD093ao FlD09J90 FID09400 Fl009410 FlD09420 FID09430 FlD09HO FlD09450 FID09460 FlD09470 FlD094BO FID09490 FlD09500
SUBROUTINE COEFNT(IELEM,ITEM,MOOEL,NDF,NPE,TIME,NTYPE,NE,F3,MXELM)FID09510 FID09520 FlD09530 The subroutine computes the coefficient matrices and source vectorF1D09540 for the model problem described by Eqn. (1) (see MAIN) F1D09550 F1D09560 ex Global (i.e., problem) coordinate F1D09570 Local (i.e., element) coordinate FlD095ao C Xl C H..... . . .. Element length FlD09590 C {SF} .••... Element interpolatiofi (or shape) functions F1D09600 C {GDSF} First derivative of Sf w.r.t. X FID09610 C {GDDSF} Second derivative of SF w.r.t. X FID09620 C GJ ...•••.. Jacobian of the transformation F1D096JO C [GAUSPT) .. 4x4 matrix of Gauss points: N-th column correspondsf1D09640 C to the N-point Guass rule FID09650 C (GAUSWT) .. 4x4 matrix of Gauss weights (see the comment above)F1D09660 C [A),[B), .. Element matrices needed to compute ELK F1D09670 F1D09680 C [ELK) ••••. Element coefficient matrix [K] FID09690 C (ELM] •...• Element 'mass' matrix (M] C FlD09700 C FlD09710 IMPLICIT REAL~8(A-H,0-Z) FID09720 COMMON/STFl/ELK(9,9),ELM(9,9] ,ELF(9),ELX(4},ELU(9),ELV(9) ,ELA(9) F1D09730 FID09740 COMMOIl/STF2/AI,A2,AJ,A4,A5,AXO,AX1,BXO,BX1,CXO,CX1,CTO,CTI,FXO, ~ FX1,FX2 F1D09750 COMMON/SHP/SF(4),GDSF(4),GOOSF(4),GJ F1009760 DIMENSION GAUSPT(5,5) ,GAUSWT(5,5) ,FJ(MXELM) FID09770 C F1D09780 DATA GAUSPT/5~O.ODO,-.57735027DO,.577J5027DO,3~0.ODO,-.7745966700,F1D09790 ~ 0.OOO,.7745966700,2~O.ODO,-.B6113631DO,-.3J998104DO,.33998104DO, F1D09800 ~.861IJ631DO,0.ODO,-.906180DO,-.538469DO,0.ODO, . 53B469DO, .906IBOOO/FID09810 C FID09820 . DATA GAUSWT/2.0DO,4~O.ODO,2~1.ODO,3~O.ODO,.55555555DO,.88B88888DO,F1D09830 * O.55555555DO,2~0.ODO,.3478548500,2*.65214515DO, .34785485DO,0.ODO,F1009840 * 0.236927DO,.47862900,.56888900,.47862900,.23692700/ FID09850 C FlD09860 NN=NDF~NPE F1D09B70 H = ELX(IlPE) - ELX(l) FI009880 C C C c C
COMP~R PROGRAM FEMlDV2
IF(IELEM .EQ. O)THEIl llGP=4 ELSE IlGP IELEM+I ENDIF
C
C C C C C C C C C
C C C C C
C C C C C C
C C C C
623
FlD09890 FlD09900 FID09910 FID09920 FlD099JO PI009940 DO 10 J=l,NN FlD09950 IF(ITEM.LE.2)THEN FID09960 ELF(J) = 0.0 FlD09970 ENDIF FlD09980 DO 10 1=l,NN FlD09990 IF(1TEM.GT.O)THEN FlDlOOOO ELM(I,J)=O.O FlDlOOlO FlDl0020 ENDIF 10 ELK(I,J)=O.O FIDIOOJO FIDI0040 IF(MODEL.NE.2)THEll FIDI0050 FIDI0060 DO-LOOP on number of Gauss points begins here FlDI0070 FIDl0080 DO 100 IlI=l,NGP FIDI0090 XI = GAUSPT (NI, NGP) FlDlOlOO FIDIOllO Call subroutine SHPlD to evaluate the interpolation functions FlDl0120 and their global deLivatives at the Gauss point XI FlDlOlJO FlDl0140 CALL SHPlD(H,IELEM,NPE,XI) FlDlOl50 FlDIOl60 CONST = GJ*GAUSWT(N1,NGP) FIDI0170 IF(IELEM.EQ.O)THEN FIDI0180 X = ELX(I) + 0.5*H*(1.0+XI) FIDI0190 ELSE FIDI0200 X = 0.0 FIDI0210 DO 30 J=I,IlPE FIDI0220 30 X = X + SF(J)*ELX(J) FIDl0230 ENOIF FlDl0240 FlOl0250 Compute coefficient matrices and vectors for vaious model probiemsF1D10260 governed by single second-order and fourth-order equations FIDI0270 (MODEL = 1 or 3; NTYPE = 0 or 1) F1DI0280 FIDI0290 CX=CXO+CXl*X FlDI0300 IF (ITEM.NE.3) THEil FIDI0310 FX=FXO+FXl*X+FX2*X*X FIDI0320 EIlDIF FIDI0330 IF (ITEM.GT.O)TREN FIDI0340 CT=CTO+CTl*X FIDl0350 ENDIF FlDIOJ60 IF (MODEL.EQ.l)TREIl FlDI0370 FIDI0380 Coefficients for ALL SINGLE-VARIABLE PROBLEMS (MODEL=l) FIDI0390 FIDI0400 IF (NTYPE.EQ.O)THEN FIDI0410 FIDI0420 All problems governed by MODEL EQUATION (3.1) (IITYPE=O) FIDI0430 FIDl0440 AX=AXO+AXl*X FlDl0450 DO 50 J = I,NN FIDl0460 IF (1TEM.LE.2)THEN FIDI0470 ELF(J) = ELF(J) + CONST*SF(J)*FX FlDl0480 EIIOIF FIDI0490 DO 50 I = 1,1111 FlDl0500 IF (ITEM.NE.O)THEN FI0I0510 ELM(I,J) = ELM(I,J) + COIIST*SF(I)*SF(J)*CT FlDl0520 ENDIF . FlDI0530 A1J = CONS~*GDSF(I)*GDSF(J) FIDI0540 CIJ = CONST*SF(I)*SF(J) FIDl0550 50 ELK(I,J)=ELK(I,J) + AX*AIJ + CX*CIJ FlDl0560 ELSE FIDI0570 FIDI0580 RADIALLY SYMMETRIC ELASTICITY problems (MODEL=l, NTYPE>O) FIDI0590 AXQ=El, AXl=E2, BXO=NU12, BXl=H, thickness FIDI0600 FIDI0610 ANU21=BXO*AXO/AXl FIDl0620 IF (NTYPE.EQ.l)THEN FIDI0630
624
APPENDICES
FIDl0640 F1DI0650 FlDl0660 C12~BXO*C22 FlDl0670 ELSE FIOl0680 OENOM=1.O-BXO-ANU2l FlOl0690 Cll=BXl·AXO*(l.O-BXO)/{l.O+BXO)/OENOM C22=BXl.AXl* (1. O-ANU2l) / (1. 0+ANU21) /OEIIOM FlDI0700 C12~BXO·C22 FIOI0710 FIDIOnO ENDIF 'FIDI0730 DO 60 J=l, till FlDI0740 IF (ITEM. LE. 2) THEN FIOl0750 ELF{J) = ELF(J} + CONST*SF(J}.FX*X FlOl0760 EllDIF FlOlOnO DO 60 1=1,111I FIOI0780 IF (ITEM,NE.O)THEN FIOI0790 ELM(I,J) = ELM(I,J) + CONST*SF(I}*SF(J)*CT*X PIOI0800 ENDIF FIOI0810 AIJ CONST*GOSF(I)*GDSF(J)*Cll*X FIDI0820 CIJ = CONST*SF(I)*SF(J)*CX*X FlDlOB30 OIJ = COllST*(GOSF(I)*SF(J)+SF(I)*GDSF(J»*C12 Fl.DI0840 EIJ = CONST*SF(I)*SF(J).C22/X FIDIOB50 ELK(I,J}=ELK(I,J) + AIJ + cIJ + DIJ + EIJ / FIDI0860 ENDIF FIOl0870 ELSE FIOI0880 Coefficients for the EULER-BERNOULLI theory (MODEL-2) FIOIOB90 FIOI0900 IF (NTYPE.EQ.O)THEN FlDI09l0 FlDl0920 The Euler-Bernoulli BEAM element (MODEL=l and lITYPE=O) FIDI0930 FlD10940 FlDl0950 BX=BXO+BXl·X CX=CXO+CXl*X FlDl0960 FlDl0970 DO 70 J = 1,llN FlDl0980 IF (ITEM.LE.2)THEN ELF(J) = ELF(J) + COl/ST*SF(J)*FX FIDI0990 ENDIF FlDllOOO DO 70 I = 1,NN FlDllOlO IF (ITEM.lIE.O)THEN FlDl1020 ELM(I,J) = ELM(I,J) + CONST*SF(I)*SF(J)*CT F1Dl1030 ENOIF FlDl1040 BIJ = CONST.GDDSF(I)*GODSF(J) FIDll050 CIJ = COl/ST*SF(l)*SF(J) FlDll060 ELK(I,J)=ELK(I,J) + BX*BIJ + CX*CIJ FIDIl070 ELSE F1Dll080 FIDll090 The E-B CIRCULAR PLATE element (MOOEL=l and l/TYPE>O) FlDlllOO FIDI1l10 FlOll120 ANU2l=BXO*AXO/AXl DI=(BXl**3)/12.0 FIOllI30 Dll=OI.AXO/(1.0-BXO*ANU2l) FIDl1l40 FlDl1150 D22~011*(AXl/AXO) DlZ=BXO·D22 FlDI1160 DO 80 J=l,Nl/ FlDll170 IF (ITEM.LE.2)THEN F1D11180 ELF(J) = ELF(J) + CONST*SF(J)*FX*X FIDllI90 ElIDlF FlD1l200 DO BO I=l,NN F1D1l2l0 BIJ = CONST*GDDSF(I).GDOSF(J)*Dll.X FID11220 CIJ = CONST*SF(I)*SF(J).CX.X F1D1l230 DIJ = CONST*(GDDSF(I)*GDSF{J)+GOSF(I).GDDSF(J»*012 FID11240 EIJ = COllST*GOSF(I)*GDSF(J).DZ2/X FlD11250 ELK(I,J)~ELK(l,J) + BIJ + CIJ + DIJ + ElJ FlD11260 ENDIF FI01l270 ENDIF FID11280 CONTINUE FID1l290 ELSE F1D11300 FlDll310 Coefficients for the TIMOSHENKO beam and cirCUlar plate (MODEL=2) F1D11320 Full integration for bending coefficients FlD1l330 FlD11340 DO 160 l/I=l,NGP Fl011350 XI=GAUSPT(NI,NGP) FID1l360 FlDI1370 CALL SHPlO(H,IELEM,NPE,XI) FlD1l3S0 Cll~BXl·AXO/(1.0-BXO·ANU21}
C22~Cll*(AXl/AXO}
60
c C C C C C
70 C
C C
BO 100 C C C
C
C
COMPUTER PROGRAM FEMIDV2
C
110 C C C
120 130 C C C C
140 150 160 C C C
C C 170
625
FIDll390 FlDl1400 FlD1l4l0 FlDl1420 FlDl1430 FlDl1440 FlDl1450 The Timoshenko BEAM element (MODEL=2 and NTYPE=O OR 2) FlDll460 FlD1l470 BX=BXO+BX1*X FIDl1480 CX=CXO+CXl*X FlD11490 FX=FXO+FXl*X+FX2*X*X FIDl1500 JJ=l FIDl1510 DO 130 J=l,NPE FID11520 IF(ITEM.LE.2)THEN FID11530 ELF (JJ) =ELF(JJ) +FX*SF{J) *CONST FIDl1540 ENDIF FIDl1550 11=1 FIDl1560 DO 120 I=l,NPE FIDl1570 CIJ=SF(I)*SF(J)*CONST FIDll5S0 BIJ=GDSF(I)*GDSF{J)*CONST FID11590 ELK(II,JJ) =ELK{II,JJ) +CX*CIJ FID11600 ELK(II+l,JJ+l)=ELK(II+l,JJ+l)+BX*BIJ FID11610 IF(ITEM.NE.O)THEN FlDl1620 ELM(II,JJ) =ELM(II,JJj +CTO*CIJ FlD11630 ELM(II+l,JJ+lj=ELM(II+l,JJ+l)+cTl*CIJ FID11640 ENOIF FID11650 II=NDF*I+l FIDl1660 JJ=NDF*J+l FIDl1670 ELSE FIDl1680 FIDll690 Tirnoshenko CIRCULAR PLATE element (MODEL=2 and NTYPE=l or 3) FIDl1700 AXO=El, AXl=E2, BXO=ANU12, BXl=H, FX2=GIJ*AREA*AK FlDl17l0 Flo11720 ANU2l=BXO*AXO / AXI FlO1173 0 CX=CXO+CX1*X FlDl1740 FX=FXO+FXl*X Flol1750 DI=(BXl**J)/12.0 FlDl1760 Dll=DI*AXO/(1.0-BXO*ANU2l) FlDl1770 022=011* (AXI/AXO) FlOl1780 D12=BXO*022 FlDl1790 JJ=l FlOl1800 DO 150 J=l,NPE FlOlISl0 IF(ITEM.LE.2)THEN FlOl1820 ELF(JJ)=ELF(JJ)+FX*SF(J)*CONST*X FI0ll830 ENOIF FlD1l840 II=l FlO1l8S0 DO 140 I=l,NPE FlOlla60 BIJ CONST*GDSF(I) *GDSF(J) *Dll*X FlOlla70 CIJ = CONST*SF(I)*SF(J)*X FlOlla80 DIJ = CONST*{GDSF(I)*SF(Jj+SF(I)*GDSF(J»*012 FlOlla90 EIJ = CONST*SF{I)*SF(J)*D22/X FlOl1900 ELK(II,JJ) =ELK(II,JJ) + CX*CIJ FlOl1910 ELK(II+l,JJ+lJ=ELK{II+l,JJ+1) + BIJ + OIJ + EIJ FlOl1920 IF(ITEM.NE.O)THEN Fl011930 ELM(II,JJ) =ELM(II,JJ) +CTO*CIJ FID11940 ELM(II+1,JJ+l)=ELM(II+l,JJ+1)+CTl*CIJ FlOl19S0 ENOIF F1Dll960 II=llDF*I+l FlD1l970 JJ=NOF*J+l F1Dl1980 ENDIF FlDl1990 CONTINUE Fl012000 FlD120l0 Reduced integration is used to evaluate the transverse shear terrnsFl012020 FlD12030 LGP=NGP-1 FID12040 DO 230 NI=l,LGP FID120S0 XI=GAUSPT(NI,LGP) Fl012060 FlD12070 CALL SHPlD(H,IELEM,NPE,XIj Fl012080 CONST=GJ*CAUSWT(NI,LGP) FlD12090 Fl012100 X = 0.0 Fl0121l0 DO 170 J=l,NPE FlD12l20 X = X + SF(J)*ELX(J) FlD12130 IF(NTYPE.EQ.O .OR. NTYPE.EQ.2)THEN FlD12l40 CONST=GJ*GAUSWT(NI,NGP) x = 0.0 DO 110 J=l,NPE . X = X + SF(J)*ELX(J) IF(NTYPE.EQ.O .OR. NTYPE.EQ.2)THEN
626
APPENDICES
C C C C
F1012150 F1D12160 F1D12170 Fl012180 AX~AXO+AX1*X F1012190 JJ~l F1012200 DO 190 J~l,NPE F1012210 II~l F1012220 DO 180 I~l,NPE F1012230 B11~GOSF(I)*GOSF(J)*CONST F1012240 B01~SF{I)*GOSF{J)*CONST F1012250 BI0~GOSF(I)*SF(J)*CONST F1012260 BOO~SF(I)*SF(J)*CONST F1012270 ELK(II,JJ) ~ELK(II,JJ) +AX*B11 F1012280 ELK(II,JJ+1) ~ELK(II,JJ+1) +AX*B10 F1012290 ELK(II+l,JJ) ~ELK(II+1,JJ) +AX*B01 F1012300 ELK{II+1,JJ+1)~ELK{II+1,JJ+1)+AX*BOO F1012310 II~I*NOF+1 F1012320 JJ~*NOF+l F1012330 ELSE F1012340 F1D12350 Timoshenko CIRCULAR PLATE element (MOOEL=2 and NTYPE=1 or 3) F1012360 BX1~H, FX2~G13*AREA*K (reduced integration) F1012370 F1012380 A33~BX1*FX2 F1012390 JJ~l F1012400 DO 210 J~l,NPE F1012410 11=1 F1012420 00 200 I=l,NPE F1012430 BIJ CONST*GOSF(I)*GDSF{J)*X F1012440 CIJ = CONST*SF(I)*SF(J)*X F1012450 DIJ = CONST*GOSF(I)*SF(J)*X F1012460 oJI ~ CONST*SF{I) *GOSF{J) *X F1012470 ELK(II,JJ) =ELK(II,JJ) + A33*BIJ F1012480 ELK(II,JJ+l) =ELK{II,JJ+1) + A33*OIJ F1012490 ELK(II+1,JJ) =ELK{II+1,JJ) + A33*OJI F1012500 ELK(II+l,JJ+1)=ELK(II+1,JJ+1) + A33*CIJ F1012510 II=NOF*I+1 FI012520 JJ=NOF*J+1 F1012530 ENOIF F1012540 CONTINUE F1012550 IF(ITEM.EQ.O .ANO. NTYPE.GT.1)THEN F1012560 CALL TMSFRC{ELF,ELX, FXO,FX1, FX2,H,NTYPE,NE,F3 ,MXELM) F1012570 ENOIF F1012580 ENOIF F1012590 IF(ITEM.GT.2)RETURN F1012600 IF(ITEM.EQ.l .OR. ITEM.EQ.2)THEN F1012610 F1012620 Equivalent coefficient matrices for TIME-DEPENDENT problems FI012630 F1012640 IF(ITEM .EQ. l)THEN F1012650 F1012660 Alfa-family of time approximation for PARABOLIC equations F1012670 Fl012680 00 250 J=l,NN F1012690 SUM=O.O F1012700 DO 240 I=l,NN F1012710 SUM=SUM+(ELM(I,J)-A2*ELK(I,J»*ELU(I) F1012720 ELK(I,J)=ELM(I,J)+Al*ELK(I,J) F1012730 ELF{J)={A1+A2)*ELF{J)+SUM F1012740 ELSE F1012750 F1012760 Newmark-family of approximation for HYPERBOLIC equations F1012770 F1012780 IF(TIME.EQ.O.O)THEN F1012790 DO 260 J=l,NN F1012800 DO 260 I=l,NN F1012810 ELF{J)=ELF(J)-ELK(I,J)*ELU(I) FI012820 ELK{I,J)=ELM{I,J) F1012830 ELSE FI012840 DO 270 J=l,NN FI012850 DO 270 I=1,NN FI012860 ELF(J)=ELF(J)+ELM(I,J)*(A3*ELU{I)+A4*ELV(I)+A5*ELA(I})F1012870 ELK(I,J)=ELK(I,J)+A3*ELM(I,J) F1012880 ENOIF F1012890 The Timoshenko BEAM element (MOOEL=2 and NTYPE~O or 2) AX ~ GAK ~ AXO + AX1*X (reduced integration)
180 190 C C C C
200 210 230
C C C C C C
240 250 C C C
260
270
COMPlITER PROGRAM FEMlDV2
ENOIF ENDIF RETURN END
FlD12900 FlD129l0 FID12920 FID12930
SUBROUTINE ECHO(IN,IT) IMPLICIT REAL*8(A-H,O-Z)
Fl012940 FlD12950 FlD12960 Fl012970 FlD12980 FlD12990 F1D13000 FlD130l0 FlD13020 FlD13030 FlD13040 FlDlJ050 FlDlJ060 FlD13070 FlODOaO FlOlJ090 FlDlnOO FlOlJ 11 0
C
10
20
30 40 50 60
C C C
C C C C C C C
C C C
C
627
DIMENSION AA(20) WRITE(IT,40) CONTINUE READ(IN,30,END=20) AA WRITE(IT,60) AA GO TO 10 CONTINUE REWIND (IN) WRITE(IT,50) RETURN FORMAT (20M) FORMAT(5X,'*** ECHO OF THE INPUT DATA STARTS ***',/) FORMAT(5X,'**** ECHO OF THE INPUT DATA ENOS ****',/) FORMAT(lX,20A4) END
SUBROUTINE JACOBI (N,Q,JVEC,M,V,X,IH,MXNEQ) FlDl312 0 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _F1D13130 FlD13HO PURPOSE: To diagonalize matrix [Q] by successive rotations FlDl3150 FlDl3160 DESCRIPTION OF THE VARIABLES: FlOl3170 Fl013l80 Order of the real, symmetric matrix [Q] (N > 2) FlDl3190 N The matrix to be diagonalized (destroyed) FlD13200 [QJ 0, when only eigenvalues alone have to be found FlD132 10 JVEC Matrix of eigenvectors FlD13220 [V] Number of rotations performed Fl013230 M _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _F1D13240 FlD13250 lMPLICIT REAL*8 (A-H,O-Z) FlD13260 FlD13270 DIMENSION Q(MXNEQ,MXNEQ),V(MXNEQ,MXNEQ) ,X(MXNEQ),IH(MXNEQ) EPSI=l.OD-OB FIOl3280 FlD13290 IF(JVEC)10,50,10 FlD13300 10 00 40 I=l,N FlD13310 FlD13320 00 40 J=l,N IF(I-J)30, 20, 30 FlDl3330 FlD1J340 20 V(I,J)=l.O GO TO 40 FlD1J350 FlD13360 30 V(I,J)=O.O 40 CONTIl/UE FlD13370 50 M=O FlD13380 Ml=N-1 FlD13390 DO 70 I=l,MI FlDlJ400 X(I)=O.O FlOlJ4l0 MJ=I+l FlD13420 DO 70 J=MJ,N FlD13430 FlD13440 IF(X(I)-DABS(Q(I,J»)60,60,70 FlD13450 60 X(I)=DABS(Q(I,J» FlD13460 IH(I)=J 70 CONTINUE FlD13470 75 DO 100 l=l,MI FlD13480 IF(I-l)90,90,BO FID13490 FlD13500 80 IF(XMAX-X(I»90,100,100 90 XMAX=X(I) FI0135l0 IP=I FlD13520 JP=IH(I) FlD13530 100 COllTINUE FlD13540 IF (XMAX-EPSI) 500,500,110 FlDlJ550 110 M=M+l FlD13560 IF(Q(IP,IP)-Q(JP,JP»120,IJO,130 FlDlJ570 FlD13580 120 TANG=-2.0*Q(IP,JP)!(DABS(Q(IP,IP)-Q(JP,JP»+DSQRT«Q(IP,IP) FlDlJ590 1 -Q(JP,JP»**2+4.0*Q(IP,JP)**2» FlD13600 GO TO 140
628
APPENDICES
130 TANG= 2.0*Q(IP,JP)!(DABS(Q(IP,1P)-Q(JP,JP»+DSQRT«Q(1P,IP) 1 -Q(JP,JP»**2+4.0*Q(IP,JP)**2» 140 COSIl=1. O/DSQRT (1. 0+TAlIG**2) SINE=TAlIG*COSN QII=Q(IP,IP) Q(IP,IP)=COSll**2*(QII+TAIlG*(2.*Q(IP,JP)+TAlIG*Q(JP,JP») Q(JP,JP)=COSN**2*(Q(JP,Jp)-TArlG*(2.*Q(IP,JP)-TANG*QII)) Q(IP,JP)=O.O IF (Q(IP,IP)-Q(JP,JP» 150,190,190 150 TEMP=Q(IP,1p) Q(IP,Ip)=Q(Jp,JP) Q(JP,JP)=TEMP IF (SIIlE) 160,170,170 160 TEMP=COSll GOTO 180 170 TEMP=-COSN 180 COSN=DABS(SINE) SINE=TEMP 190 DO 260 I=I,MI IF (I-IP) 210,260,200 200 IF (I-JP) 210,260,210 210 IF (IH(I)-IP) 220,230,220 220 IF (IH{I)-Jp) 260,230,260 230 K=IH(1) TEMP=Q(I,K) Q(I,K)=O.O MJ=I+1 X(I)=O.O 00 250 J=MJ,N IF (X(I)-DABS(Q(I,J») 240,240,250 240 X(I)=DABS{Q(I,J» IH(I)=J 250 CONTINUE Q(1,K)=TEMP 260 CONTINUE X(Ip)=O.O X(JP)=O.O DO 430 1=l,N IF(I-IP) 270,430,320 270 TEMP=Q(I,IP) Q(1,Ip)=COSN*TEMP+SIllE*Q(I,JP) IF (X(I)-DABS(Q(I,1p») 280,290,290 280 X(IJ=DABS(Q(I,IP» IH(I)=Ip 290 Q(I,JP)=-SIllE*TEMp+COSN*Q(I,Jp) IF (X(I)-DABS(Q(I,JP») 300,430,430 300 X(I)=DABS(Q(I,Jp» IH(I)=JP GO TO 430 320 IF(I-JP) 330,430,380 330 TEMP=Q(IP,I) Q(IP,I)=COSN*TEMP+SINE*Q(I,Jp) IF(X(IP)-DABS(Q(1p,1»)340,350,350 340 X(IP)=DABS(Q(Ip,I» IH(IP)=1 350 Q(1,Jp)=-SINE*TEMP+COSN*Q(1,JP) IF (X(I)-DABS(Q(1,JP») 300,430,430 380 TEMP=Q(IP,I) Q(Ip,1)=COSN*TEMP+SINE*Q{JP,I) IF(X(IP)-DABS(Q(IP,I»)390,400,400 390 X(Ip)=DABS(Q(IP,I» IH(Ip)=I 400 Q(Jp,I)=-S1NE*TEMP+COSll*Q(Jp,I) IF(X(Jp)-DABS(Q(JP,I»)410,430,4JO 410 X(JP)=DABS(Q(Jp,1» IH(Jp)=I 430 CONTINUE IF(JVEC)440,75,440 440 00 450 1=I,N TEMp=V(I, II') V(1,1P)=COSN*TEMp+SINE*V(1,Jp) 450 V(1,Jp)=-SINE*TEMp+COSN*V(I,JP) GOTO 75 500 RETURN END
F1DIJ610 FIDIJ620 FIDI3630 FlDI3640 FlD13650 FIDIJ660 FI0IJ670 FI0136BO FIDIJ690 FI0IHOO FlO13710 FID13720 FID13730 FID13740 FIDIJ750 FID13760 FlD1317 0 FID13780 FI013790 FI013800 FIDJ.3BIO FlDI3820 FID13830 FID13840 FID13850 FID13860 FID13870 FID13880 FID13890 FI013900 FID13910 F1D1J 92 0 FlDI3930 FlD13940 FID13950 FID13960 FID13970 FIDIJ980 FIDIJ990 FlD14000 FIOI4010 FIDI4020 FID14030 FID14040 FID14050 FlD14060 FlD14070 FID14080 FlD14090 FIOI4100 Fl014110 FID14I20 FID141JO FlD14140 FID14150 FlDl416 0 FID14170 FIDl41BO Fl014190 FID14200 FlD14210 FlD14220 F1D142JO FlD14240 FID14250 FID14260 FlD14270 FlD142BO FlD14290 FID14300 FID14310 FlD14320 FlD14330 FlD14340 FID14350
COMPUTER PROGRAM FEMlDV2
629
SUBROUTINE MESHID (NEM, NNM, NPE, NOD,MXELM, MXlIOD, DX, GLX) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _~
C C C C C C C C C C C C 10 20 C C C
30
40
FlD14360 FID14370 FlD14380 The sUbrouti~e computes the arrays {GLX} and [NOD] FlD14390 FlD14400 {GLX}...• Vector of global coordinates FlD14410 {OX} ...•. Vector of ~lement lengths [DX(l] = node 1 coord.) FlD14420 (NOD] ..•. connectivity matrix FID14430 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _FlD14440 FID14450 IMPLICIT REAL*8 (A-R,O-Z) FlD14460 FID14470 OI~ENSION GLX(MXNOD),DX(MXNOD),NOD(MXELM,4) FID14480 FID14490 Generate the elements of the connectivity matrix FlD14500 DO 10 I=l,NPE FlD14510 FlD1452 0 NOD(l,I}=I DO 20 N=2,NEM FlD14530 DO 20 I=1,NPE FID14540 NOO(N,I) = NOD(N-1,I}+NPE-1 F1D14550 FID14560 Generate global coordinates of the global nodes F1D14570 F1D14580 F1D14590 GLX(l)=DX(l) F1D14600 IF(NPE.EQ.2)THEN FID14610 00 30 I=1,NEM FID14620 GLX(I+1) = GLX(I) + DX(I+l) ELSE FlD14630 00 40 I=1,NEM FlD14640 F1D14650 11=2*1 GLX(II) = GLX(II-l) + 0.5*OX(I+l) FlD14660 GLX(II+l)=GLX(II-l) + DX(I+1} FlD14670 ENDIF FlD14680 RETURN FlD14690 END FlD14700 SUBROUTINE MTRXML(A,N,M,B,L,C}
C
C
C
COMPUTE THE PRODUCT OF MATRICES [AJ AND [BJ:
C C
IMPLICIT REAL*8 (A-H,O-Z) DIMENSION A(50,50),B(50,50) ,C(50,50) DO 10 I=l,N DO 10 J=l,L C(I,J)=O.O DO 10 K=l,M 10 C(I,J)=C(I,J}+A(I,K)*B(K,J) RETURN
END
[CJ=[AJ[BJ
FlD14710 FlD14720 FlD14730 FlD1474 0 FlD147S0 F1D14760 FlD14770 FlD14780 FlD1479 0 FlD14800 FlD14810 FID14820 F1D14830 F1D14840 FID14850
630
APPENDICES
FlD14860 SUBROUTINE PSTPRC(F3,GLF,GLX,NOD,GA,1ELEM,NPE,MODEL,NTYPE,ITEM, F1D14870 HXELM,MXNEQ,MXNOO,NEM,NDF) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _FID14880 FID14890 The sUbroutine computes the solution and its derivatives at five Fl014900 points, including the nodes of the element. Note that the post- FID14910 computed bending moment (BM) and shear force (VF) are as per the FID1492 0 sign convention shown in Figure 3.33 of the text; they differ in FID14930 Fl014940 sign from the element degrees of freedom. FID14950 FlD14960 x..•...•. Global (i.e., problem) coordinate FlD1497 0 Xl •••••• Local (i.e., element) coordinate FID14980 SF .••.... Element interpolation (or shape) functions F1D14990 GDSF•.... First derivative of SF w.r.t. global coordinate GOOSF.... Second derivative of SF w.r.t. global coordinate FlD15000 FI015010 ELU•..... Element solution vector FID15020 U..••••.• Interpolated solution Fl015030 DU•...... Interpolated derivative of the solution W Interpolated transverse deflection F1D15040 F1D15050 S ..•.•..• Interpolated rotation function FID15060 os Interpolated derivative of the rotation DW •...... Interpolated derivative of the transverse geflection F1.D15070 DOW Interpolated second derivative of transverse defl. FID15080 DDDW Interpolated third derivative of transverse defl. F1D15090 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _F1D15100 FlDlSll0 FID15120' IMPLICIT REAL*8 (A-H,O-Z) F1D15130 DIMENSION F3(HXELM),GLF(MXNEQ) ,GLX(MXNOD) ,NOD(MXELM,4) FlD15140 DIMENSION XP(9),ELX(4),ELU(9) FlD15150 COMMON/IO/IN, IT FlD15160 COMMON/SHP/SF(4),GDSF(4),GDDSF(4),GJ F1D15170 COMMON/STF2/A1,A2,A3,A4,A5,AXO,AX1,BXO,BX1,CXO,CX1,CTO,CT1,FXO, FlD15180 * FX1,FX2 DATA XP/-1.000, -0.75000, -0.5000, -0.25000, 0.000, 0.25000, FlD15190 FlD15200 * 0.5000, 0.75000, 1.000/ FID15210 FlD15220 NPTS=9 Fl015230 DO 80 NE = 1, NEM F1D15240 L=O FID15250 DO 10 1=1,NPE FID15260 111=NOD (NE, I) FlD15270 ELX(I)=GLX(NI) FID15280 LI=(N1-1)*NOF FlD15290 DO 10 J=1,NOF FlD15300 LI=LI+1 FID15310 L=L+1 F1D15320 10 ELU(L)=GLF(LI) F1D15330 H = ELX(NPE) - ELX(l) FID15340 F1D15350 DO 70 NI=l,NPTS Xl = XP(NI) F1D15360 CALL SHP10(H,IELEM,NPE,XI) FID15370 1F(MOOEL.EQ.3)THEN FlD15380 W=O.O F1D15390 oW=O.O F1D15400 F1D15410 DDW=O.O FlD15420 XC=ELX(1)+0.5*H*(1.0+XI) DO 20 1=1,4 FID15430 W =W + SF(I)*ELU(I) FID15440 FlD15450 OW =DW + GOSF(I}*ELU(I} 20 DDW=DDW+ GDDSF(I)*ELU(I) FID15460 FlD15470 000W=«ELU(1)-ELU(3»*2.0/H-(ELU(4)+ELU(2»)*6.0/(H*H) ROT=-OW FID15480 FlD15490 IF(NTYPE.EQ.O}THEU F1D15500 BM=(BXO+XC*BX1)*DDW FID15510 VF=(BXO+XC*BX1)*DODW + BX1*DDW WRITE(1T,90}XC,W,ROT,BM,VF FID15520 ELSE FID15530 ANU21=BXO*AXO/AX1 FID15540 FID15550 DI=(BX1**3}/12.0 Fl015560 011=01*AXO/(1.O-BXO*ANU21) 022=011* (AX1/AXO) FID15570 FID15580 D12=BXO*D22 FlD15590 BMR=011*DDW*XC+D12*DW BMT=D12*DDW*XC+D22*DW FID15600 *
C C C
C C C C C C C C C C C C C C
C C C C C C C
C
c
COMPUTER PROGRAM FEMIDV2
IF(XC.NE.O.O)THEN SFV=011*(XC*ODDW+DDWl-022*OWjXC WRITE(IT,90)XC,W,ROT,BMR,BMT,SFV ELSE WRITE(iT,90) XC,W, ROT,BMR,BMT EllOIF ENOII' ELSE 30
40
C
50
XC=O.O 00 30 I=l,llPE XC=XC+SI'(I)*ELX(I) II'(MOOEL.EQ.l)THEN U=O.O OU=O.O DO 40 I=l,llPE U=U+SI'(I)*ELU(I) DU=DU+GOSI'(I)*ELU(I) IF (llTYPE. EQ. 0) THEN SV=(AXO+AXl*XC)*DU WRITE(IT,90)XC,U,SV ELSE AllU21=BXO*AXOjAXl IF(NTYPE.EQ.l)THEN Cl1=BXl*AXoj(1.0-BXO*ANU21) C22=Cl1*(AXl!AXO) C12=BXO*C22 ELSE DElIOM=1.O-BXO-ANU21 Cll=BXl*AXO*(l.O-BXO) !(l.O+BXO) !DENOM C22=BXl*AX1*(1.0-ANU21)j(1.O+ANU21)jOElIOM C12=BXO*C22 ElIOII' IF(XC.NE.O.o)THEll SR=Cll*OU+C12*UjXC ST=C12*OU+C22*U!XC WRITE(IT,90)XC,U,SR,ST ELSE WRITE(IT,90)XC,U,OU ElIDII' ElIDIF ELSE HOOEL.EQ.2 Calculations IF(ITEM.EQ.O .ANO. lITYPE.GT.l)THElI H=ELX(NPE)-ELX(l) CALL TMSTRS(GA,ELU,XI,W,DW,S,DS,NE,I'3,H,MXELM) ELSE W=O.O OW=O.O S = 0.0 DS=O.O OOS=O.O DO 50 I=l,NPE L=2*I-l W = W + SF(I)*ELU(L) DW=DW+GDSF(I)*ELU(L) S = S + SF(I)*ELU(L+1) DS=DS+GOSI'(I)*ELU(L+l) OOS=OOS+GDOSF(I)*ELU(L+l) EllOIF IF(lITYPE.EQ.O .OR. NTYPE.EQ.2)THEN BH=-(BXO+BXl*XC)*OS VF=-(AXO+AXl*XC)* (OW+S) WRITE(IT,90)XC,W,S,BM,VF ELSE ANU21=BXO*AXOjAXl DI=(BXl**3)j12.0 Dl1=DI*AXOj(1.O-BXO*ANU21) 022=011* (AXl!AXO) D12=BXO*022 BMR=-(Ol1*DS*XC+D12*S) BMT=-(D12*DS*XC+022*S) SFV=-FX2*(DW+S)*XC WRITE(IT,90)XC,W,S,BMR,BMT,SFV EllOIF EllDIF
631
FI015610 FI015620 FI015630 FI015640 FI015650 FID15660 F1015670 FI015680 FID15690 FI015700 Fl015710 FlD1572 0 FID15730 FlDlS740 FID15750 FID15760 Fl015770 FID15780 FlD15790 FID15800 FI015810 FI015820 FlD15830 FI015840 I'1D15850 I'ID15860 FlD15870 FID15880 FlD15890 FI015900 FlD15910 FID15920 I'1D15930 I'1D15940 I'1D15950 I'ID15960 FlD15970 FID15980 FID15990 FlD16000 FID16010 FlD16020 FID16030 FID16040 I'ID16050 FID16060 FlD16070 FlD16080 FlD16090 FlD16100 Fl0161l0 FIOH120 FlD16130 FID16140 Fl016150 FlD16160 FI016170 FI016180 FID16190 FID16200 I'I016210 FI016220 FlO16230 F1016240 FI016250 FID16260 FID16270 FlD16280 FID16290 FID16300 Fl016310 FI016320 FID16330 Fl016340 FI016350
632
APPENDICES
ENDIF 70 CONTINUE 80 CONTINUE
FlD16J60 FlD16J70 FlD16360 FID16390 FID16400 FID16410
RETURN
90 FORMAT (2X,6EI3.5) END
FlD16420 FlD16430 FlD16440 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _FID16450 FlD16460 The sUbroutine computes the generalized reaction forces in each FID16470 element of the truss (NDF=2) or frame (NDF=3) structure FlD16480 FlD16490 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _FlD165 0 0 FlD165l0 IMPLICIT REAL*8(A-H,O-Z) FID16520 DIMENSION PR(MXELM),SE(MXELM),SL(MXELM),SA(MXELM),SI(MXELM) FID16530 DIMENSION CS(MXELM),SN(MXELM),ClIT(MXELM),SNT(MXELM) F1p16540 r DIMENSION HF(MXELM),VF(MXELM),PF(MXELM),XB(MXELM) FlD16550 FlD16560 DIMENSION NOD(MXELM,4),GLF(MXNEQ) DIMENSION ELR(6),TRM(6,6),TMPK(6,6) FlD16570 COMMON/STFl/ELK(9,9) ,ELM(9,9),ELF(9) ,ELX(4),ELU(9) ,ELV(9) ,ELA(9) FlD16580 FlD16590 NN=NPE*NDF FlD16600 DO 140 N=l,NEM FlD166l0 CIH=CS(N) FlD16620 FlD16630 SNl=SN(N) FlD16640 Call TRSFRM to compute element stiffness matrix and force vector FID16650 FlD16660 L=O FlD16670 DO 100 I=l,NPE FlD16680 NI=NOD(N,I) FlD16690 LI=(NI-l)*NDF FlD16700 DO 100 J=I,NDF FlD16710 LI=LI+l FlD16720 L=L+l FID16730 100 ELU(L)=GLF(LI) FlD16740 FlD16750 CALL TRSFRM (MXELM,MXNEQ,N.lITYPE,PR,SE,SL,SA,SI,CS.SN. * CNT,SNT,HF,VF.PF,XB) FlD16760 FlD16770 Compute the FORCE and MOMENT RESULTANTS FlD16780 FID16790 DO 120 I=l,NN FlD16600 ELR(I) = 0.0 FID16810 DO 110 J=l,11N FlD16820 FlD16830 110 ELR(I) ELR(I) + ELK(I,J)*ELU(J) 120 ELR(I) ELR(I) - ELF(I) FlD16840 ELF(l) ELR(l) *CNl+ELR(2) *SN1 FlD16650 ELF(2) -ELR(1)*SNl+ELR(2}*CNl FID16860 IF(NTYPE,NE.O) THEN FlD16870 ELF(3) ELR(3) FID16880 ELF(4) ELR(4) *CNl+ELR(5) *SNI FID16690 ELF(S) -ELR(4) *SN1+ELR(5) *CN1 FID16900 ELF(6) ELR(6) FlD16910 ELSE FlD16920 ELF(3) = ELR(3)*CNl+ELR(4}*SNl FID16930 ELF(4) = -ELR(J)*SNl+ELR(4)*CNl FID16940 ENDII' FlD16950 WRITE(6,150)N, (ELF(I) ,I=l,NN) F1D1696 0 WRITE(6,160) (ELR(I),I=I,NN) F1D16970 14 0 CONTINUE FlD16960 RETURN FID16990 150 FORMAT (3X,I2,6E12.4) FID17000 160 FORMAT (5X,6EI2.4,/) FID17010 END FlD17020 *
C C C C C C C
c
C C C
C C C
SUBROUTINE REACTN(MXELM,MXNEQ,NDF,NEM,NOD,NPE,NT'iPE,PR,GLF, SE,SL,SA,SI,CS,SN,CNT,SNT,HF,VF,PF,XB)
,
COMPLJrER PROGRAM FEMIDV2
c c c c
c c c c c
c c c c c c
c
c c c
C C
C C C C
C C C
C C
C
633
SUBROUTINE SIIPlD(H,IELEH,NPE,XI) FlD170JO _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _FlD17 040 FlDl7050 The subroutine computes shape functions and their derivatives for FlDl7060 Hermite cubic and "Lagrange linear, quadratic and cUbic elements FlDl7070 FlDl7080 FlDl7090 Global (i.e.~ problem) coordinate X••••••••• FlDl7l00 XI . Local (i.e., element) coordinate II....•.... Element length FlDl7110 Interpolation (or shape) functions FlDl7l20 {SF} •••••• FlDl71JO {OSF} . First derivative of SF w.r.t. XI {OOSF} . Second derivative of SFII w.r.t. XI FlDl7140 FlDl7150 {GDSF} ••.. First derivative of SF w.r.t. X FlDl7160 {GODSF} •.. Second derivative of SFI! w.r.t. X FlDl7170 Jacobian of the transformation GJ .. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _FlDl7l80 FIDl7190 IMPLICIT REAL*8 (A-H,O-Z) FlDl7200 COMMON/SIIP/SF(4},GDSF(4),GODSF(4),GJ FlDl72l0 DIMENSION DSF(4),DDSF(4) FlDl7220 IF(IELEH.EQ.O)THEN FlDl72JO FlDl7240 HERMITE interpolation functions (for the Euler-Bernoulli theory) FlDl7250 FlDl7260 FlDl7270 NET=4 SF(l) 0.25*(2.0-J.0*XI+XI**J) FlDl7280 FlDl7290 SF(2) -H*(1.0-XI)*(I.O-XI*XIl/8.0 SF(3) O.25*(2.0+J.0*XI-XI**J) FlDl7JOO SF(4) H*(1.0+XI)*(l.0-XI*XI)!8.0 FlDl7JlO DSF(l) -O.75*(l.O-XI*XI) FlDl7J20 DSF(2) = H*(I.O+2.0*XI-J.O*XI*XI)!8.0 FlD173JO DSF(J) = O.75*(l.0-XI*XI) FlDl7J40 DSF(4} = 1I*(1.0-2.0*Xr-J.O*Xr*XI)!8.0 FlD17350 DDSF (1) l.5*XI Fl017J60 DDSF(2) O.25*H*(1.0-J.0*XI) FlDl7J70 DDSF(3) -1. 5*XI FlDl7J80 DDSF(4) =-0.25*(I.O+J.0*XI)*H FlDl7J90 ELSE FlOl7400 NET=NPE FlDl7410 IF(IELEM.EQ.l)THEN FlDl7420 FlDl74JO LAGRANGE interpolation functions used for linear, quadratic and FlD17440 cubic approximation of second-order equations FlDl7450 FlD17460 LINEAR interpolation functions FlD17470 FlDl7480 SF(I) = 0.5*(l.0-XI) FlDl7490 SP(2) = 0.5*(I.O+XI) FlD17500 DSF(I) = -0.5 FlD175l0 DSF(2) = 0.5 FlD1752 0 DDSF(l) = 0.0 FlD175JO DDSF(2) = 0.0 FlDl7540 ELSE FlD17550 IF(IELEM.EQ.2)THEN Fl017560 FlD17570 QUADRATIC interpolation functions FlD17580 FlD17590 SF(I) = -0.5*XI*(l.0-XI) FlDl7600 SF(2) = 1.0-XI*XI FlDl76l0 SF(J) = O.5*XI*(1.O+XI) FlDl7620 DSF(l) = -0.5*(l.O-2.0*XI) FlDl7630 DSF(2) = -2.0*XI FlDl7640 DSF(J) = O.5*(1.0+2.0*XI) FlOl7650 DDSF(l) 1.0 FlD17660 DDSF(2) -2.0 FlDl7670 DDSF(J) = 1.0 FlDl7680 ELSE . FlOl7690 FlDl7700 CUBIC interpolation functions FlOl7710 FlOl7720 SF(l) O.0625*(l.O-XI)*(9.0*XI*XI-1.) FlDl77JO SF(2) = O.5625*(1.O-XI*XI)*(1.0-J.O*XI) FlDl7740 SF(3) = O.5625*(1.0-XI*XI)*(1.0~J.O*XI) FlOl7750 SF(4) = O.0625*(9.0*XI*XI-l.O)*(I.O+XI) FlD17760 DSF(l) = O.0625*(1.0+18.0*XI-27.0*XI*XI) Fl017770
634
APPENDICES
DSF(2) = 0.S62S*(-J.0-2.0*XI+9.0*XI*XI) DSF(3) = 0.5625*(3.0-2.0*XI-9.0*XI*XI) DSF(4) = O.062S*(18.O*XI+27.0*XI*XI-l.0) DDSF(l) O.062S*(18.0-S4.0*XI) DDSF(2) 0.562S*(-2.0+18.0*XI) DDSF(3) 0.S62S*(-2.0-18.0*XI) DDSF(4) 0.0625*(18.0+54.0*XI) ENDIF ENDIF C
C
Compute derivatives of the interpolation functions w.r.t. X
C
EIIDIF 80 GJ = H*O.S DO 90 I = 1,NET GDSF(I) = DSF(I)/GJ 90 GDDSF{I) = DDSF(I)/GJ/GJ RB'l'URN
END SUBROUTINE SOLVER(NRH,lICM,NEQlIS,lIBW,BAND,RHS,IRES) C C C
The subroutine solves a banded, symmetric, system of algebraic equations using the Gauss elimination method: [BAND]{H} = {RHS}. The coefficient matrix is input as BAND(lIEQNS,lIBW) and the column vector is input as RHS(lIEQNS), where lIEQNS is the actual number of equations and NBW is the half band width. The true dimensions of the matrix [BAlID) in the calling program, are NRH by NCM. When IRES is greater than zero, the right hand elimination is skipped.
C C C C C
C
~~~~~~~~~
C C
~~~~~~_~
IMPLICIT REAL*B(A-H,O-Z) DIMENSIOIl BAlID(NRH, NCM) ,RHS (NRH) C
MEQNS=NEQNS-l IF(IRES.LE,O) THEN DO 30 NPIV=I,MEQNS NPIVOT=NPIV+l LSTSUB=NPIV+NBW-l IF(LSTSUB.GT.NEQlIS) THEN LSTSUB=NEQlIS ENDIF C
DO 20 NROW=NPIVOT,LSTSUB IICOL=NROW-NPIV+l FACTOR=BAllD (NPIV, NCOL) /BAlID (NPIV, 1) DO 10 NCOL=NROW,LSTSUB IcoL=NCOL-NROW+1 JCOL=lICOL-NPIV+1 BAlID(NROW,ICOL) =BAND(NROW, ICOL)-FACTOR*BAND{NPIV,JCOL) RHS(NROW)=RHS(NROW)-FACTOR*RHS(NPIV) CONTINUE
10 20 30 ELSE
DO 60 NPIV=l,MEQNS IIPIVOT=NPIV+1 LSTsUB=NPIV+NBW-l IF (LSTSUB.GT.NEQNS) THEN LSTSUB=NEQNS ENDIF DO 50 NROW=NPIVOT,LSTSUB NCOL=NROW-NPIV+l FACTOR=BAlID(NPIV,NCOL)/BAND(NPIV,1) 50 RHS(NROW)=RHS{NROW)-FACTOR*RHS(NPIV) CONTII1UE 60 ENDIF
40
c
c c
Back sUbstitution DO 90 IJK=2,NEQNS NPIV=NEQNS-IJK+2 RHS(IlPIV)=RHS(NPIV)/BAlID(NPIV,I) LSTSUB=NPIV-NBW+l IF(LSTSUB.LT.l) THEN LSTSUB=l
FlO177BCl F1Dl7790 FlD17800 FID17810 FlD17820 FlD17BJCl FlD17840 F1D17850 FlD17860 FlD17870 FlD17880 FlD17890 FlD17900 FlD17910 F1D17920 F1D17930 FlD1794Cl FlD17950 FID17960 FlDI7970 FlD17980 F1D17990 FlD1BOOO FlD1B010 F1D1B020 FlD1B030 FlD1B040 FlD18050 F1D1B060 FlD1B070 FlD1BOBO F1D18090 F1D18100 FlD18110 FlD18120 F1D18130 FlD18140 F1D1B150 FlD18160 FlD18170 FlO1B1BO F1D18190 F1D18200 FlD18210 F1D18220 F1D18230 FlD18240 F1D18250 FlD18260 FID18270 FID18280 FlD18290 FlD18300 FlD18310 FID18320 FID18330 FID18340 FID183S0 FID18360 FID18370 F1D18380 FID18390 FlD18400 FID18410 F1D18420 FID18430 F1D18440 FlD18450 FlD18460 FlD18470 F1DIB480 F1D1B490 FlD18500 F1D18510
COMPUTER PROGRAM FEMlDV2
ENOIF NPIVOT=NPIV-l DO 80 JKI=LSTSUB,NPIVOT NRoW=NPIVOT-JKI+LSTSUB nCOL=NPIV-NROW+l FACTOR=BAND(NROW,NCOL) 80 RHS(NROW)=RHS(NROW)-FACTOR*RHS(NPIV} 90 CONTINUE RHS(I)=RHS(l)jBAND(I,l) RETURN END SUBROUTINE TMSFRC{ELF,ELX,FXO,FXl,FX2,H,NTYPE,NE,F3,MXELM)
C C C C C C
C
C
C
10 C
C
20 C C C
C C C 25 40 50 C C C
635
Fl018520 F10l8530 Fl018540 Fl018550 Fl018560 Fl018570 F1018580 F10l8590 F1018600 FlD18610 FlD18620
Fl01863D Fl018640 F1018650 The sUbroutine computes element force vector for the consistent F1018660 interpolation Timoshenko element (CIE) FID18670 Fl018680 FI0l8690 IMPLICIT REAL*8(A-H,O-Z} Fl018700 COMMONjSHPjSF(4) ,GOSF(4) ,GDOSF(4),GJ F10187l0 DIMENSION GAUSPT(5,5) ,GAUSWT(5,5),ELF(9),ELX(4) ,EX(3),F3(MXELM) F1018720 F10l873D DATA GAUSPTj5*0.ODD,-.5773502700,.57735D2700,3*0.000,-.7745966700,Fl01874D * 0.000, .7745966700,2*0.000,-.8611363100,-.3399810400,.3399810400, F1018750 *.8611363100,0.000,-.90618000,-.53846900,0.000,.53846900,.90618000jFl018760 FlD18770 DATA GAUSWTj2.000,4*0.000,2*1.000,J*0.000,.55555555DO,.8888888800,Fl018780 * 0.5555555500,2*0.000,.3478548500,2*.6521451500,.3478548500,0.000,Fl018790 * 0.23692700,.47862900,.56888900,.47862900,.23692700j FI0l8800 Fl018810 NPE=3 Fl018820 IEL=2 FID18830 l1OF=2 Fl018840 NGP=IEL+l FlD18850 DO 10 1=1,6 Fl018860 ELF(I)=O.O FlD18870 Fl018880 EX(I)=ELX(l) Fl018890 EX(2)=ELX(1)+0.5*H F1018900 EX(3)=ELX(2) FlD189l0 FlO18920 00 50 NI=l,NGP FI018930 XI=GAUSPT(NI,NGP) F1D18940 F10l8950 CALL SHP1D(H,IEL,NPE,XI) CONST=GJ*GAUSWT(NI,NGP) FI018960 X = 0.0 Fl018970 00 20 J=l,NPE Fl018geD X = X + SF(J)*EX(J) F1D18990 FlD19000 Compute the polynomial variation of FX FID19010 FlD19020 IF(NTYPE.EQ.2)THEN F10l9030 FX=FXO+(FXl+FX2*X)*X Fl019040 ELSE Fl019050 FX=(FXO+FXl*X)*X FI019D60 ENOIF F1D19070 FlD19080 Element force vector for the consistent interpolation beam elementFlD19090 FlOl9100 11=1 F1D191ID DO 40 I=I,NPE FlD19120 ELF(II)=ELF(II)+FX*SF(I)*CONST FI019130 II=NDF*I+1 F1019140 CONTINUE FI019150 F1019160 Rearrange the element coefficients F1D19170 FlDl9180 F3 (NE)=ELF(3) FlD19l90 ELF(1)=ELF(1)+0.5*F3(NE) FlD19200 ELF(2)=-0.125*F3(NE)*H FI019210 ELF(3)=ELF(5)+0.5*F3(NE) FI019220 ELF(4)= 0.125*F3(NE)*H FID1923D RETURN FlD19240 END FI019250
636
C
C C C C
C C
C C C
C C C C
C C C C
C C C
C
c
c
c C
C
c
C
C C C C
C
c
C C C
C C C C
APPENDICES
FlD19260 SUBROUTINB TMSTRS(GA,ELU;XI,W,DW,S,DS,NE,F3,H,MXELM) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _FlD19270 FlD19280 The subroutine computes the solution and its global derivatives atFlDl9290 the nine points (including the nodes) of the Timoshenko element FlDl9300 FlOl9310 FlO19320 xc....•.•. Global (i.e., problem) coordinate FlD19330 XI . ocal (i.e. element) coordinate FIDl9340 SFL, SFQ .. Lagrange linear and quadratic shape functions First derivative of SF w.r.t. global coordinate FlD19350 DSFL,DSFQ: FlD19360 ELU.•••... Column vector of generalized displacements FlD19370 W, OW ..••. Transverse deflection and its derivative FlDl9380 S, OS ..... Rotation and its derivative _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _FlO19390 FlD19400 FlO194l0 IMPLICIT REAL*8 (A-H,O-Z) FlD19420 COMMON/IO/In,IT DIMENSION ELU(9) ,SFL(2) ,SFQ(3) ,DSFL(2) ,DSFQ (J) ,n (MXELM) FlD19430 FlD19440 FlDl9450 GJ = H*O.5 FlD19460 Interpolation functions for the Lagrange LINEAR element F1&19470 FlDl9480 FlO19490 SFL(1) = O.5*(1.0-XI) FlDl9500 SFL(2) = 0.5*(1.0+XI) DSFL(l) = -O.5/GJ FlDl95l0 FlDl9520 DSFL(2) = O.5/GJ Fl019530 Fl019540 Interpolation functions for the Lagrange QUADRATIC element FlD19550 FID19560 SFQ(l) = -O.5*XI*(1.O-XI) FlD19570 SFQ(2) = 1.O-XI*XI F1D19580 SFQ(3) = O.5*XI*(1.O+XI) FlD19590 DSFQ(l) -O.5*(1.O-2.0*XI)/GJ Fl019600 DSFQ(2) = -2.0*XlfGJ FlD196l0 DSFQ(3) = O.5*(1.0+2.0*XI)fGJ FlD19620 FlD19630 W3=(3.0*H*F3(NE)fGA + 8.0*(ELU(1)+ELU(3)} FlD19640 * + 2.0*(ELU(4)-ELU(2})*H}/16.0 FlD19650 W = SFQ(l}*ELU(l} + SFQ(2}*W3 + SFQ(3)*ELU(3) OW= DSFQ(l}*ELU(l} +DSFQ(2)*W3 +DSFQ(3)*ELU(3} F1D19660 S = SFL(1)*ELU(2} + SFL(2)*ELU(4) F1019670 DS= DSFL(1)*ELU(2) +DSFL(2}*ELU(4) FlD19680 FID19690 RETURN FlDl9700 END FlD19710 FlDl9720 SUBROUTINE TRSFRM (MXELM,MXNEQ,N,NTYPE,PR,SE,SL,SA,SI,CS,Sll, FlD19730 CllT,SNT,HF,VF,PF,XB) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _------FIDl9740 FlD19750 The sUbroutine computes stiffness matrix and force vector for the F1D19760 truss (NDF=2) and frame (lIDF=3) elements FlD19770 FlO19780 SE .....• Young's modulus FlDl9790 SL Element length FlO19800 SA Cross-sectional area FlO198l0 SI Moment of inertia FlD19820 cs .••.•• Cosine of the angle of orientation FlO19830 SN Sine of the angle of orientation Fl019840 HF Distributed force along the length of the element FID19850 VF ••.••• Distributed force transverse to the element FlD19860 PF .....• Point force at point other than nodes FID19870 XB••.•.• Distance along the length from node 1 of the element FlDl9880 of the location of the point force, PF FIDl9890 CNT,SNT:Direction cosines of the point force/s line of applicationF1Dl9900 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _-----'F1D199 10 FID19920 . IMPLICIT REAL*8(A-H,O-Z) FlD19930 DIMENSION PR(MXELM) ,SE(MXELM) ,SL(MXELM} ,SA (MXELM) ,SI(MXELM) FlDl9940 FIOl9950 DIMENSION CS(MXELM) ,SN(MXELM) ,CllT(MXELM},SNT(MXELM) FlD19960 DIMENSION HF(MXELM) ,VF(MXELM) ,PF(MXELM},XB(MXELM) FID19970 DIMENSION ELR(6),TRM(6,6),TMPK(6,6) FlD19980 COMMONfSTFlfELK(9,9) ,ELM(9,9) ,ELF(9) ,ELX(4} ,ELU(9),ELV(9 ),ELA(9)
*
COMPUTER PROGRAM FEMlDV2
C
CIH=CS(N) Sltl=SN(11} CN2=CN1*CII1 SN2=SN1*SN1 CSII=CN1*SN1 C C C
Element coefficients IF(IITYPE.EQ.O) THEN
C C C
The plane TRUSS element IIN=4 Cl=SA(II)*SE(N)/SL(N) ELK(1,1) C1*C1I2 ELK(2,1) C1*CSN ELK(2,2) C1*S1I2 E~K(3,l) -ELK(1,1) ELK (3 ,2) -ELK(2, 1) ELK(J,3) ELK(1,1) -ELK(2,1) ELK(4,1) ELK(4,2) -ELK(2,2) ELK(4,J) -ELK(3,2) ELK(4,4) ELK(2,2)
C
DO 10 I=1,1I11 DO 10 J=I,llN ELK(I,J) = ELK(J,I)
10 C C C
contribution of the point force to nodal forces XI~XB (II)
ISL(N)
SFLl ~ LO-XI SFL2 = XI C
Fl=O.S*HF(II)*SL(N) F3=0.S*HF(N)*SL(N) ELF (1) Fl*CNl ELF(2) Fl*SNl ELF(3) F3*CIIl ELF(4) F3*S1I1 ELSE IIN=6 IF(ltTYPE.EQ.l)THEII C C C
The EULER-BERNOULLI FRAME element AMU~O.5*SA(II)*SL(N)*SL(N)/SI(II) Cl~2.0*SE(1l)*SI(N)/(SL(N)**J) C2~6.0*SE(II)*SI(N)/(SL(1l)*SL(N) C3~Cl*(AMU*CN2+6.0*S1l2)
C4=Cl*(AMU-6.0)*CSN C5=Cl*(AMU*SN2+6.0*CN2) C6=4.0*SE(N)*SI(N)/SL(II) C
ELK(l, I) ELK(2,1) ELK(2,2) ELK{3,l) ELK{3,2) ELK(3,3) ELK(4,1) ELK(4,2) ELK(4,3) ELK(4,4) ELK(S,l) ELK(S,2) ELK(5,J) ELK(5,4) ELK(5,S) ELK(6,1) ELK(6,2) ELK(6,3) ELK(6,4)
CJ C4 CS C2*Slll =-C2*CIIl = C6 =-C3 =-C4 =-C2*SNl = C3 =-C4· ~-CS
C2*Clll C4 = CS = C2*SN1 =-C2*Clll = O.S*C6 =-C2*SNl
637
FID19990 FlD20000 PlD20010 FlD20020 FlD20030 PlD20040 FID20050 FlD20060 PID20070 PID20080 F1D20090 FID20100 FID20110 F1D20120 FID20130 FlD20140 F1D20150 FID20160 F1D20170 F1D20180 PID20190 PlD20200 FlD20210 FID20220 FlD20230 FlD20240 FlD20250 FlD20260 FlD20270 FlD20280 Fl020290 Fl020JOO FID20JIO F1D20320 F1D20330 FlD20340 FlD203S0 FID20360 FlD20370 FlD20380 FID20390 FlD20400 FID20410 FID20420 FID20430 FlD20440 FID20450 F1020460 FlD20470 F1D20480 FI020490 Fl020S00 Fl020510 FlD20520 F1D20530 F1D20540 F1D20SS0 FID20S60 FlD20570 F1D20580 F1D20590 FlD20600 FlD20610 FlD20620 FlD206JO FID20640 Fl020650 FI020660 FlD20670 PID20680 FlD20690 FID20700 FlD20710 FlD2ono FID20730
638
APPENDICES
ELK(6,5} = C2~cNl ELK(6,6} = C6 C
DO 20 I=l,NN DO 20 J=I,NN ELK(I,J} = ELK(J,I)
20 C C C
contribution of the point force to nodal generalized forces XI=XB(N}/SL(N) TF=PF(N}*SNT(N) AF=PF(N}*CNT(N) SFL1 1. O-XI SFL2 XI SFH1 1.0 - 3.0*XI*XI + 2.0*(XI**3} SFH2 -XI*{1.0+XI*XI-2.0~XI)*SL(N) SFH3 3.0*XI*XI - 2.0~(XI~*3) SFH4 -XI*(XI*XI - XI)~SL(N)
C
F1=0.5*HF(N)*SL(N) F2=0.S*VF(N)*SL(N) F3=-VF(N)*SL(N)*SL(N)/12.0 F4=0.5*HF(N)"SL(N) F5=0.5*VF(N)*SL(N) F6=VF(N)*SL(N)*SL(N)/12.0 ELF(l) Fl"CN1-F2*SNl ELF(2) F1"Slll+F2*CNl ELF (3) = 1"3 ELF(4) F4*CN1-FS~SI1l ELF(5) F4"SN1+F5~CN1 ELF(6) 1"6
+ SFL1*AF + SFH1*TF + + + +
SFH2*TF SFL2*AF SFH3*TF SFH4*TF
I'
ELSE C C C
The TIMOSHENKO FRAME element (shear coefficient=5J6) SG=5.0*SE(N)/(1.0+PR(N}}/12.0 C1=SA(N)*SE(N)/SL(N} C2=SG*SA(N)/SL(N) C3=0.5*SG*SA(N) C4=0.2S*SG"SA(N)*SL(N} CS=SE(N}*SI(N)!SL(N} ELK(1,1}=C1 ELK(2,l}=0.0 ELK(2,2}=C2 ELK(3,1}=0.0 ELK (3, 2}=-C3 ELK(3,3)=C4+C5 ELK(4,1}=-C1 ELK ( 4 , 2) =0 .0 ELK(4,3)=0.O ELK(4,4}=C1 ELK(S,l)=O.O ELK (5, 2)=-C2 ELK (5,3) =C3 ELK(S,4)=0.O ELK(S,S)=C2 ELK(6,1)=0.0 ELK(6,2}=-C3 ELK(6,J}=C4-C5 ELK(6,4)=0.0 ELK(6,5)=CJ ELK(6,6)=C4+CS
C
25
DO 2S I=l,11N DO 25 J=l,NN TRM(J,I)=O.O
C
TRM(I,I)=Clll TRM(1,2)=SNI TRM(2,1)=-SN1 TRM(2,2)=CN1 TRM(3,3)=1.0 TRM(4,4)=CN1 TRM(4,5)=SN1 TRM(5,4}=-Slfl
1"1020740 1"1020750 Fl020760 1"1020770 1"1020180 1"1020790 1"1020800 1"1020810 1"1020820 1"1020830 FlD20840 FlD20850 Fl020860 Fl020810 Fl020880 1"1020890 Fl020900 Fl020910 1"1020920 Fl0209JO Fl020940 F'l0209S0 FlD20960 Fl020970 FlD20980 1"1020990 1"1021000 1"1021010 FlD21020 1"1021030 1"1021040 Fl021050 1"1021060 Fl021070 1"1021060 FlD21090 Fl021l00 1"1021110 1"1021120 FlD21130 FlD21140 Fl021150 Fl021160 1"1021170 1"1021180 Fl021190 1"1021200 Fl021210 Fl021220 1"1021230 1"1021240 F10212S0 FlD21260 1"1021270 1"1021280 1"1021290 Fl021300 Fl021310 Fl021320 1"1021330 1"1021340 1"1021350 Fl021360 FlD21370 1"1021380 1"1021390 1"1021400 Fl021410 1"1021420 Fl021430 1"1021440 1"1021450 1"1021460 1"1021470 1"1021460
COMPlITER PROGRAM FEMlDV2
<'l'RM(5,5)=Clll 'l'RM(6,6)=1.0 C
30
DO 30 1=l,NlI DO 30 J=1;NN ELK(1,J) = ELK(J,~)
40
DO 40 1=1, NIl DO 40 J=l,lill TMPK(1,J)=O.O DO 40 K=l,NN TMPK{1,J)=TMPK(1,J) +TRM(K,I) *ELK(K,J)
C
c
DO 50 1=l,NN DO 50 J=l,NlI
ELK(I,J)=O.O DO 50 K=l,NN ELK(1,J)=ELK{I,J)+TMPK(I,K)*TRM(K,J)
50 C C C
contribution of the point force to nodal generalized forces XI=XB(N)j5L(N) 'l'F=PF(N)*5IlT(1l) AF=PF(N)*CIlT(N) 5FL1 1. O-XI SFL2 XI SFQl (1.0-XI)*(1.0-2.0*XI) SFQ2 -XI*(1.0-2.0*XI) SFQ3 4.0*XI*{1.0-XI)
c
F1=0.5*H1'(N)*SL(N) F2=0.5*VF(N)*SL(N) F3=-VF(N)*SL(N)*SL(N)j12.0 F4=0.5*HF(N)*SL(N) F5=0.5*VF(N)*SL(N) F6=V1'(N)*SL(N)*SL(N)j12.0 ELF(l) F1*CN1-F2*SN1 ELF(2) 1'1*Slll+1'2*CNl ELF (3) 1'3 ELF(4) 1'4*Cll1-F5*Slll ELF(5) 1'4*SN1+F5*CN1 ELF(6) 1'6 ENDIF ENOI1' RETURN
ENO
+ + + + +
SFL1*AF (S1'Q1+0.5*SFQ3)*TF 0.125*SFQ3*SL(N)*TF SFL2*AF (SFQ2+0.5*SFQ3)*TF 0.125*S1'Q3*SL(N) *'1'1'
639
1'1021490 1'1021500 1'1021510 F102l520 1'1021530 1'1021540 1'1021550 1'1021560 1'1021570 1'1021580 1'1021590 1'1021600 Fl021610 F102l620 1'1021630 1'1021640 F1021650 1'1021660 F1021670 Fl021680 F1021690 1'1021700 1'1021710 1'1021720 Fl021730 Fl021740 Fl021750 1'1021760 1'1021770 F1021780 F1D21790 1'1021800 1'1021810 1'1021820 Fl021830 F1021840 F1021850 Fl021860 F1021870 F102l880 F1021890 1'1021900 1'1021910 Fl021920 F1D21930 1'1021.940
APPENDIX
2 COMPUTER PROGRAM FEM2DV2
c c c c c
c c
c c c c c c c c c c c c c c c c c c c
c c
c c c c c c c
c c c c
640
Program name: FEM20V2
Length: 2740 lines
** * * * * * * * * * * Program * * * * * * * * * * • * * * * * * * * * * FEM20V2 * * (AN IN-CORE FINITE ELEMENT ANALYSIS COMPUTER PROGRAM) * * ** * ***** *** * ******* * * * * * * * * **** This is a finite element computer program for the analysis of two-dimensional problems governed by second-order partial differential equations arising in: heat transfer, electrical engineering, fluid dynamics, and solid mechanics. The program uses linear and quadratic, triangUlar and rectangUlar, elements with isoparametric formulations. Meshes of only one type of element are allowed for a problem (i.e., two different types of elements cannot be used in a problem). Many field problems of engineering and applied science can be analyzed using this program. In particUlar, FEM20V2 can be used in the finite element analysis of problems in the following fields: 1. 2. 3. 4.
Heat conduction and convection Flows of viscous incompressible fluids (by penalty function formulation) Plane elasticity problems Plate bending problems using rectangUlar elements based on the classical and first-order (or Mindlin) plate theory.
The main objective of this program is to illustrate how finite element formulations developed in Chapters 8 thru 12 • can be implemented on a computer and used in the analysis of engineering problems. Modeling of large and complex problems was not an objective of the program. The program or parts of it can be modified to analyze field problems not discussed in the book.
F2000010 F2000020 F2000030 F2000040 F2000050 F2000060 F2000070 F2000080 F2000090 F2000100 F2000110 F2000120 F2000130 F2D00140 F2000150 F2D00160 F2000170 F2000180 F2000190 F2000200 F20002l0 F2000220 F2000230 F2000240 F2000250 F2000260 F2000270 F2000280 F2000290 F2000300 F2000310 F2000320 F2000330 F2000340 F2000350 F2000360 F2000370 F2000380 F2000390
COMPUTER PROGRAM FEM2DV2
C C C C C C C C C C C
C C C C
C C C C C C C
DESCRIPTION OF SOME KEY VARIABLES USED IN THE PROGRAM (See Table 13.1 for a description of other variables) [CMATJ
Matrix of stiffnesses in elasticity and plate hending problems "(computed in th~ program from engineering constants, EI, E2 f G12, ANUl2, eta. and thickness)
{ELA} {ELF}
Vector of elemental nodal accelerations Vector of element nodal source (or force) vector Element coefficient (or stiffness) matrix Vector of element nodal values of primary variables Vector of elemental nodal velocities Vector of elemental glohal coordinates: ELXY(I,l)=x-coordinate; ELXY(I,2)=y-coordinate Vector of global nodal accelerations Vector of global nodal source (or force) vector Global coefficient (or stiffness) matrix Vector of global nodal values of primary variables Vector of global nodal velocities
[ELK]
{ELU} {ELV} {ELXY} {GLA} {GLF} [GLK] {GLU}
{GLV} !lOF
!lumber NOF=l, NDF=2, NDF=3,
of degrees of freedom per node: For SINGLE VARIABLE problems For ELASTICITY and VISCOUS FLUID FLOW For PLATE BENDING when FSOT or CST(N) elements are used NDF=4, For PLATE BE!lDING when CST (C) element is used
NEQ NHBW NN
Total number of equations in the problem (=NNM*NOF) Half band width of the global coefficient matrix, GLK Total number of degrees of freedom per element
C C C C C C C C C
C
C C C C C
C C C C C
C C C C
C C C C C
C C C C
C C
C C C
C C C C
C C C C
C C
C
DESCRIPTION OF PARAMETERS USED TO DIMENSION THE ARRAYS MAXCNV ... MAXELM." MAXNOD ••• MAXNX .... MAXNY ...• MAXSPV .•• MAXSSV ••• NCMAX. " .
Maximum number of elements with convection B.C. Maximum number of elements allowed in the program Maximum number of nodes allowed in the program Maximum number of allowed SUbdivisions DX(I) along x Maximum number of allowed SUbdivisions OY(I) along y Maximum number of specified primary variables Maximum number of specified secondary variables Actual column dimension of: [GLK],[GLMJ,{GLU},{GLV}, {GLA}, and {GLF}
641
F2D00400 F2D004l0 F2D00420 F2D00430 F2D00440 F2D00450 F2D00460 F2D00470 F2D00480 F2D00490 F2D00500 F2D005l0 F2D00520 F2D005JO F2D00540 F2000550 F2D00560 F2D00570 F2000580 F2D00590 F2000600 F20006l0 F2D00620 F2D00630 F2000640 F2000650 F2000660 F2D00670 F2D00680 F2000690 F2D00700 F2D00710 F2000720 F2D00730 F2D00740 F2D00750 F2000760
nooono
F2000780 F2D00790 F2DOOBOO F2DOOB10 F2DOOB20 F2D00830 F2D00840 The actual row dimension of the assembled coefficient F2000850 matrix should be greater than or equal to the total F2D00860 number of algebraic equations in the FE model. F2D00870 F2D00880 F2D00890 NRMAX ..•. Actual row dimension of: [GLK] and [GLM] F2D00900 The actual column-dimension of assembled coefficient F2D009l0 matrix should be greater than or equal to the half F2D00920 bandwidth for static analysis or the total number of F2D00930 F2D00940 equations for the dynamic analysis. F2D00950 The values Of NRMAX, NCMAX, MAXELM, MAXNOD, MAXCNV, F2D00960 NOTE: -----MAXSSV and MAXSPV in the 'PARAMETER' statement should F2D00970 F2000980 modified as required by the size of the problem. F2000990 F2DOlOOO SUBROUTINES USED IN THE PROGRAM F2DOl010 BOUNRY, C!lCTVT, EGNBOU, INVRSE, ECHO*, ELKMFR, ELKMFT, MSH2DG, F2DOl020 F200l030 MSH20R, PSTPRC, QUADRT, SHPRCT, SHPTRI, SOLVER*, TIMER F200l040 subroutines IWKIN and DGVCSP are the system SUbroutines used to F200l050 calculate eigenvalues and eigenvectors. Any other subroutines F2001060 (e.g., AXLBX and JACOBI from FEMIDV2) can be used in place. F2001070 ~_~~~~~~ ~~ ~ ~ F2D01080 F200l090 F2DOllOO IMPLICIT REAL*8(A-H,O-Z) F2DOlllO PARAMETER (NRMAX=310, NCMAX;Jl0, MAXELM;250, MAXNOD=200, F2D01l20 1 MAXSPV=200, MAXSSV=50, MAXCNV=20, MAXNX;25, MAXNY=25) F200l130 DIMENSION ISPV(MAXSPV,2),VSPV(MAXSPV) ,ISSV(MAXSSV,2),VSSV(MAXSSV) F2D01l40
642
APPENDICES
F2D01150 F2001160 F2D01170 F2001180 F2001190 F2001200 F2001210 COMMON/STF/ELF(27) ,ELK(27,27) ,ELM(27,27),ELXY(9,2),ELU(27}, F2001220 1 ELV(27} ,ELA(27),Al,A2,A3,A4,A5 F2001230 COMMON/PST/AI0,A1X,A1V,A20,A2X,A2Y,AOO,CO,CX,CY,FO,FX,F V, F2D01240 1 C44,C55,AMU,PEllLTV,CHAT(3,3) F2001250 COMMON/PIIT/IPOF, IPDR,lIIPF, llIPR F2001260 COMMON/IO/IN,ITT F2001270 COMMOll/WORKSP/RWKSP F2001280 REAL RWKSP(228000) CALL IWKIlI(228000) F2001290 F20013 00 * * * * * * * * * * * * * * * * * * * * * * * * * F2001310 F2001320 F2001330 * PRE PRO C E S S 0 RUN I T * * * F2001340 F2001350 * * * * * * * * * * * ** * * * * * * * * * * * * * * F2001~60 / IN~5 F2001370 ITT~6 F2001380 F2001390 CALL ECHO(IN,ITT) IC011V~O F2001400 F2001410 IlITIAL=O F2D01420 NSSV=O F2001430 llFLAG=1 F2001440 F2001450 REA 0 I N THE I N PUT HER E OAT A F2001460 F2001470 READ(IN,400) TITLE F2D01480 F2001490 Read problem and analysis type F2001500 F2D01510 REAO(IN,*)ITYPE,IGRAD,ITEM,IlEIGll IF(ITEM.EQ.O) llEIGII=O F2001520 IF(NEIGII.NE.O} THEil F2001530 F2001540 IF(ITVPE.LE.3 .AND. NEIGN.GT.1) THEN F2001550 WRITE(ITT,991) STOP F2001560 ELSE F2001570 F2001580 READ(IN,*) NVALU,NVCTR ENDIF F2001590 F2D01600 ENDIF F2001610 F2D01620 Read finite element mesh information F2001630 READ(IN,*) IELTVP,NPE,MESH,llPRNT F2001640 F2001650 IF{ITVPE.GE.3 .AND. IELTYP.EQ.O) THEN F2001660 WRITE(ITT,990) STOP F2001670 ENOIF F2001680 F2001690 IF(NPE.LE.4) THEN IEL=1 F2001700 ELSE F2D01710 IEL=2 F2DOI720 EllDIF F2D01730 IF(MESH.NE.l) THEN F2001740 F2001750 READ(IN,*) NEM,NNM IF(MESH.EQ.O)THEll F2D01760 F2001770 If mesh CANIIOT be generated by the program, read the mesh data in F2001780 F2001790 the next three statements F2001800 DO 10 N=I,NEM F2001810 10 REAO(IN, *) (NOO(N, I), I=I,llPE) F2D01820 READ(IN, *) «GLXY (I, J) ,J=I,2) ,I=I,NNM) F2001830 ELSE F2001840 F2001850 When mesh is to be generated by the program for more complicated F2001860 geometries, call MSH2DGeneral (which reads pertinent data there) F2001870 F2001880 CALL MSH20G(llEM,llNM,llOD,MAXBLM,MAXNOD,GLXY) F2001890 DIMENSION DIMENSION DIMENSION DIMENSION DIMEIISION
C
C C C C C C C
c
c C
C C C
C C C
C C C C
c C C C
IBN(MAXCNV) ,INOD(HAXCNV,J) ,BETA(HAXSPV),TINF(MAXSSV) GLF(NRMAX),TITLE(20),IBS(J),IBP(3),GLM(NRMAX,NRMAX) GLK(NRMAX,NCMAX) ,GLU(NRMAX) ,GLV(lIRMAX) ,GLA(NRMAX) NOD(MAXELM,9),GLXV(MAXNOO,2),DX(MAXNX),OY(MAXNV) EGNVAL(NRMAX) ,EGIIVEC (NRMAX, llRMAX) ,IBDY(HAXSPV)
• • * *
**
*
*
**
**
*
*
COMPlJfER PROGRAM FEM2DV2
ENDIF ELSE
643
F2D01900 F2D01910 C F2D01920 C When mesh is to be generated for rectangUlar domains, call programF2Do1930 C MSH2DRectangular, which requires the f~110wing data: F2D01940 C F2D01950 READ(IN,~) NX,NY F2D01960 READ(IN,~) XO,(DX{I),I=l,NX) F2D01970 READ(IN,~) YO,(DY{I),I=l,NY) F2D01980 CALL MSH2DR (IEL,IELTYP,NX,NY,NPE,NNM,NEM,NOD,DX,DY,XO,YO, F2D01990 ~ GLXY,MAXELM,HAXNOD,MAXNX,MAXNY) F2D02000 ENDlF F2D02010 C F2D02020 IF(lTYPE.EQ.O) THEN F2D02030 NDF = 1 F2D02040 ELSE F2002050 IF(lTYPE.GE.3) THEN F2D02060 NDF 3 F2D02070 ELSE . F2D020BO NDF = 2 F2002090 ENDIF F2D02100 ENDIF F2D02110 IF(ITYPE.EQ.5) NDF=4 F2D02120 C F2D02130 NEQ=NNM~NDF F2D02140 NU=NPE~NDF F2D02150 IF(NEIGU.EQ.O) THEN F2D02160 C F2D02170 C compute the half bandwidth of the global coefficient matrix F2D02180 C F2D02190 NHBW=O F2D02200 DO 20 N=l,NEM F2D022l0 DO 20 I=l,NPE F2D02220 DO 20 J=l,NPE F2D02230 NW=(IABS(UOD(N,I)-NOD(N,J»+l)*NDF F2D02240 20 IF (NHBW.LT.NW) IIHBW=NW F2D02250 ELSE F2D02260 NHBW=NEQ F2D02270 ENDIF F2D022BO C F2D02290 C Read specified primary and secondary degrees of freedom: node F2002300 C number, local degree of freedom number, and specified value. F2DD23l0 C F2D02320 READ(IU, *) NSPV F2D02330 IF(NSPV.NE.O) THEN F2D02340 READ(IN,*) «ISPV(I,J) ,J=1,2) ,I=I,NSPV) F2D02350. IF(NEIGN.EQ.O) THEN F2D02360 READ(IN,*) (VSPV(I),I=I,NSPV) F2D02370 ENDIF F2D02380 ENDIF F2002390 IF(NEIGN.EQ.O) THEN F2D02400 READ(IN,*) NSSV F2D02410 IF(NSSV.NE.O) THEN F2D02420 READ (IN ,~) «ISSV (I,J) ,J=l,2) ,I=l,NSSV) F2D02430 READ(INt~) (VSSV(I),I=I,NSSV) F2D02440 ENDIF . F2D02450 ENDIF F2002460 C F2D02470 WRITE (ITT, 400) TITLE F2D02480 WRITE(ITT,910) F2D02490 WRITE(ITT,890) F2D02500 WRITE(ITT, 910) F2D02510 IF(ITYPE.EQ.O) THEN F2D02520 C F2D02530 C Heat transfer and like problems: F2D02540 C F2D02550 WRITE(ITT,410) F2D02560 C F2D02570 C Read the coefficients of the differential equation modeled F2D02580 C F2D02590 C A l l = AIO + AIX*X + AIY*Yj A22 = A20 + A2X*X + A2Y*Yj AOO=CONST. F2D02600 C F2D02610 READ{IN,*)AIO,AlX,AIY F2D02620 READ(IN,*)A20,A2X,A2Y F2D02630 READ(IN,*)AOO F2D02640
644
APPENDICES
WRITE(ITT,420) A10,A1X,A1Y,A20,A2X,A2Y,AOO READ(Ill, *)ICONV IF(ICONV.NE.O) THEN READ(IN,*) NBE READ(IN,*) (IBN(I) ,BETA(I) ,TINF(I) ,I=l,NBE) READ(IN, *) «IliaD (I ,J) ,J=l, 2),1=1 ,NBE) WRITE (ITT, 440) NBE DO 30 I=l,NBE WRITE(ITT,860) IBN(I), (INOD(I,J) ,J=l,2) ,BETA(I) ,TIlIF(I) ENDIF
30 ELSE
IF(ITYPE.EQ.1) THEN C C C
Viscous incompressible flows:
~
WRITE(ITT,4S0) READ(IN,*)AMU,PENLTY WRITE(ITT,460) AMU,PENLTY ELSE IF(ITYPE.EQ.2) THEN C C C
Plane elasticity problems:
~ /
READ(IN,*) LNSTRS WRITE (ITT,470) READ(IN,*) El,E2,ANU12,G12,THKNS WRITE(ITT,S20) THKNS,El,E2,ANUI2,G12 C C C
Compute the material coefficient matrix, CMAT(I,J), I,J=1,2,3. AllU2l=ANUI2*E2/E1 DENOM=1.0-ANUI2*ANU21 CMAT(3,3)=GI2*THKNS IF(LUSTRS.EQ.O) THEN
C C
Plane strain
(ANU2J
= ANUI2)
C
WRITE(ITT,490) SO=(1.0-ANU12-2.0*ANU12*ANU21) CMAT(I,1)~HKNS*E1*(1.O-ANU12}/SO
CMAT(I,2)=THKNS*E1*ANU2l/S0 CHAT(2,2)=THKNS*E2*DENOM/SO/(I.O+ANUI2) ELSE C C C
Plane stress WRITE (ITT, 510) CMAT(1,1}=THKNS*E1/DENOM CMAT(1,2)=ANU2l*CMAT(1,1} CMAT(2,2)=E2*CMAT(1,1)/El ENoIl'
C
ELSE C C C
Plate bending problems: WRITE(ITT,SOO} IF(ITYPE.EQ.3) THEN WRITE(ITT,505) ELSE WRITE (ITT, 506) ENDIF READ(IN,*) El,E2,ANUI2,G12,G13,G23,THKNS WRITE(ITT,520) THKNS,El,E2,ANU12,G12 WRITE(ITT,530) G13,G23 ANU21=ANU12*E2/El OENOM=1.O-ANU12*ANU2l CMAT(l, 1}=(THKNS**3) *El/DENOM/12. 000 CMAT(l,2)=ANU21*CMAT(1,1) CHAT(2,2)=E2*CMAT(1,1)/E1 CMAT(3,3)=G12*(THKNS**3)/12.0DO SCF=5.0DO/6.0DO C44=SCF*G2J*THKNS CS5=SCF*G13*THKNS ENDIF
F2D026S0 F2D02660 F2D02670 F2D02680 F2D02690 F2D02700 F2D02710 F2D02720 F2D02730 F2D02740 F2D027S0 F2D02760 F2D02770 F2D02780 F2D02790 F2D02800 F2D02810 F2D02820 F2D02830 F2D02840 F2DCltSSO
~F2D02S60
F2D02B70 F2D02SaO F2D02a90 F2D02900 F2D02910 F2D02920 F2D02930 F2D02940 F2D029S0 F2D02960 F2D02970 F2D029ao F2002990 F2D03000 F2D03010 F2D03020 F2003030 F2D03040 F2003050 F2D03060 F2D03070 F2D030S0 F2003090 F2D03l00 l'2D03110 F2D03l20 F2D03l30 F2D03140 F2D03150 l'2003160 F2D03170 F2D03I80 F2D03l90 F2D03200 F2D03210 F2D03220 F2D03230 F2D03240 l'2003250 F2D03260 F2D03270 F2D032S0 F2D03290 F2D03300 F2D03310 F2003320 F2D03330 F2D03340 F2D033S0 F200J360 F2D03370 F2D033BO F2D03390
COMPUIER PROGRAM FEM2DV2
C
CMAT(l, 3)=0.0 CMAT{2,3)=O.0 CMAT(2,1)=CMAT(1,2) CMAT(3,1)=CMAT{l,J) CMAT(3,2)=CMAT{2,3)
c
ENOIF ENOIF IF(NEIGN.EQ.O) THEN REAO(IN,*)FO,FX,FY WRITE(ITT,430) FO,FX,FY ENDIF C
IF(lTEM.NE.O) THEN REAO(IN,*) CO,CX,CY IF{ITYPE.GT.l) THEN IF(ITYPE.EQ.2)THEN CO=THKNS*CO CX=THKlfS*CX CY=THKNS*CY ELSE IF(NEIGN.LE.1) THEN CO=THKNS*CO CX=(THKNS**2)*CO/12.000 CY=CX ENDIF ENOl I' ENOTF C
IF(NEIGN.NE.O) THEN WRlTE(ITT,810) WRITE(lTT,540) CO,CX,CY ELSE WRITE(ITT,820) WRITE(ITT,540) CO,CX,CY
c
C
Read the necessary data for time-dependent problems
C
40
50
REAO(IN,*) NTIME,NSTP,lNTVL,INTIAL IF (INTVL.LE. 0) INTVL=l REAO(TN,*) DT,ALFA,GAMA,EPSLN Al=ALFA*DT A2=(1.0-ALFA)*OT WRITE(ITT,550) OT,ALFA,GAMA,NTlME,NSTP,INTVL IF(ITEM.EQ.l) THEN IF(NSSV.NE.O) THEN DO 40 I=l,NSSV VSSV(I) =VSSV(I) *DT ENOIF TF(INTlAL.NE.O) THEN REAO(IN,*) (GLU(T),I=l,NEQ) ELSE DO 50 I=l,IIEQ GLU(I)=O.O ENOIF ELSE DT2=DT*DT A3=2.0/GAMA/DT2 A4=A3*DT A5=l. O/GAMA-l. 0 IF (INTIAL.NE.0) THEN REAO(IN,*) (GLU(I),l=l,NEQ) REAO(IN,*) (GLV(!) ,I=l,NEQ) DO 60 I=l,NEQ
60
GLA(I)~O.O
ELSE
70
DO 70 I=l,NEQ GLU(I)=O.O GLV(l)=O.O GLA(I)=O.O ENOlF ENOl I' ENDIF
645
1'2003400 1"2003410 1'2003420 1'2003430 1'2003440 1'2003450 1'2003460 1'2003470 1'2003480 1'2003490 1'2003500 1'2003510 1'2003520 1'2003530 1'2003540 1'2003550 F2003560 1'2003570 1'2003580 1'2003590 1'2003600 1'2003610 F2003620 1'2003630 1'2003640 1'2003650 1'2003660 1'2003670 1'2003680 1'2003690 1'2003100 1'2003710 1'2003720 1"2003730 1'2003740 1'2003750 1'2003760 1'2003770 1'2003180 1'2003790 1'2003800 1'2003810 1'2003820 1'2003830 1'2003840 1'2003850" 1'2003860 1'2003870 1'2003880 1'2003890 1'2003900 1'2003910 1'2003920 1'2003930 1'2003940 1'2003950 1'2003960 1'2003970 1'2003980 1'2003990 1'2004000 1'2004010 1'2004020 1'2004030 1'2004040 1'2004050 1'2004060 1'2004070 1'2004080 1'2004090 1'2004100 1'2004110 1'2004120 1'2004130
646
APPENDICES
ELSE
F2D04140 F2D04150 F2D04160 F2D04170 END o F D A T A THE I NP V T ***** ***** F2D04180 F2D04190 IF(IELTYP.EQ.O) THEN .F2D04200 F2D04210 WRITE(ITT,790) F2D04220 ELSE F2D04230 WRITE(J;TT,800) F2D04240 ENDIF F2D04250 F2D04260 WRITE(ITT,560) IELTYP,NPE,NDF,NEM,NlfM,NEQ,NHBW F2D04270 IF(MESH.EQ.1) 'WRITE(ITT,S70) llK,NY F2D04280 WRITE(ITT,710)NSPV F2D04290 IF(NSSV.llE.O) THEN F2D04300 WRITE(ITT,715)NSSV F2D04310 WRITE(ITT,nO) F2D04320 DO 80 IB=l,llSSV 80 F2D04330 WRITE{ITT,960) (ISSV(IB,JB) ,JB=1,2) ,VSSV(IB) F2D04-340 ENDIF F2D04350 F2D04360 IF(NPffilT.EQ.1) THEN F2D04370 WRITE(ITT,700) F2D04380 PO 100 l=l,NEM F2D04390 100 WRITE(ITT, 900) I,(NOD(I,J),J=l,NPE) EllDIF F2D04400 F2D04410 F2D04420 WRITE (ITT, 910) F2D04430 WRITE(ITT,580) F2D04440 WRITE(ITT,910) DO 150 IM=l,NllM F2D04450 DO 110 K=l,NDF F2D04460 IBP(K)=O F2D04470 110 IBS(K)=O F2D04480 IF(NSPV.NE.O) -THEN F2D04490 DO 120 JP=l,NSPV F2D04500 NODE=ISPV(JP,l) F2D04510 NDOF=ISPV(JP,2) F2D04520 IF(NODE.EQ.lM) THEN F2D04530 lBP (NooF) =NOOF F2D04540 ENDIF F2D04550 CONTINUE 120 F2D04560 ENDIF F2D04570 F2D04580 IF(NSSV.NE.O) THEN F2D04590 DO 140 JS=l,NSSV F2D04600 NODE=ISSV(JS,l) F2D04610 NDOF=ISSV(JS,2) F2D04620 IF(NODE.EQ.IM) THEN F2D04630 IBS(NDOF)=NDOF F2D04640 ENDIF F2D04650 CONTINUE F2D04660 140 ENDIF F2D04670 F2D046S0 IF(NpF.EQ.1) THEN F2D04690 WRITE(ITT,870)IM, (GLXY(IM,J),J=1,2), (IBP(K) ,K=l,NDF), F2D04700 (lBS(K) ,K=l,NDF) F2D04710 * ELSE F2D04720 IF(NDF.EQ.2) THEN F2D04730 WRITE(ITT,920)IM,(GLXY(IM,J),J=1,2),(IBP(K),K=l,NDF), F2D04740 (IBS(K),K=l,NDF) F2D04750 * ELSE F2D04760 IF(NOF.EQ.3) THEN F2D04770 WRITE(ITT,880)IM,(GLXY(IM,J),J=1,2), (IBP(K) ,K=l,NDF) , F2D047s0 (lBS(K) ,K=l,NDF) F2D04790 * ELSE F2D04800 WRITE(ITT,885)IM, (GLXY(IM,J),J=1,2) ,(IBP(K),K=l,NDF), F2D04810 *. F2D04820 (IBS(K),K=l,NOF) ENDIF F2D04830 WDIF F2D04840 ENOIF F2D04850 F2D04860 150 CONTINUE WRITE (ITT, 910) F2D04870 F2p04880 WRITE (ITT, 830) ENDIF
C C C
C
C
C
C
C
C
COMPlITER PROGRAM FEM2DV2
C C
647
Define the polynomial degree and number of integration points F2004890 (based on the assumed variation of the coefficients AX, BX, etc.) F2004900 C F2004910 IPOR = IEL F2004920 NIPR = IPOR+IEL-1 F2004930 IF(IELTYP.EQ.O) THEN F2004940 IF(ITYPE.EQ.O) THEN F2004950 IPOF = 2*IEL+1 F2004960 NIPF = IPDF+IEL F2004970 ELSE F2004980 IF(ITEM.NE.O) THEN F2004990 IPOF 2*IEL+l F2005000 NIPF IPOF+IEL F2005010 ELSE F2005020 IPOF IEL+l F2005030 lUPF IPOF+l F2005040 F2005050 ENOIF ENOIF F2005060 15TR = 1 F2005070 F2005080 NSTR = 1 WRITE(ITT,480) IPDF,NIPF,IPOR,NIPR,I5TR,NSTR F2005090 ELSE F2005100 IF(ITYPE.GE.4) THEN F2005110 IPOF 4 F2D05120 ISTR 2 F2D05130 ELSE F2D05140 IPOF IEL+1 F2D05150 ISTR IEL F2005160 ENOIF F2005170 WRITE(ITT,485) IPOF,IPOR,ISTR F2005180 ENOIF F2005190 c F2005200 '* * * * * * * * * * * * * * * C * * * * * * * F2D05210 * * * * * C * F2005220 * U N I T P R 0 C E S S 0 R C F2005230 * * C F2005240 * * C F2005250 * * * * * * * * * * * * * * * * * * * * * C F2005260 IF(ITEM.NE.O) THEN F2005270 TIME=O.O F2005280 ENOIF F2005290 C F2005300 C Counter on number of TIME steps begins here F2005310 C F2005320 NT = 0 F2005330 NCOUNT-O F2005340 170 NCOUNT=NCOUNT+1 F2005350 IF(ITEM.NE.O .ANO. NEIGN.EQ.O) THEN F2005360 IF (NCOUNT.GE.N5TP) THEN F2005370 FO=O.O F2005380 FX=O.O F2005390 FY=O.O F2005400 ENOIF F2005410 ENOrF F2005420 F2005430 C F2005440 C Initialize the global coefficient matrices and vectors C F2005450 DO 180 I=l,NEQ F2D05460 GLF(I)=O.O F2005470 F2005480 DO 180 J=l,NHBW IF(NEIGN.NE.O) GLM(I,J)=O.o F2005490 180 GLK(I,J)=O.o F2005500 C F2005510 COo-loop on the number of ELEMENTS to compute element matrices F2005520 C and their assembly begins here F2005530 C F2D05540 DO 250 N=l,NEM F2D05550 DO 200 I=I,NPE F2D05560 N1=NOO(II,I) F2005570 F2005580 ELXY(I,I)=GLXY{N1,l) F2005590 ELXY(I,2)=GLXY(NI,2) IF (NEIGN.EQ.0) THEN F2005600 IF(ITEM.NE.O) THEN F2005610 LI=(NI-1)*IIDF F2D05620 F2D05630 L = (I-l)'NOF
•
•••
•
•
•
•
•
••
•*
••*
648
APPENDICES
DO 190
F2D05640 F2D05650 F2D05660 F2D05670 ELU(L)~GLU(LI) F2D05680 IF(ITEM.EQ.2) THEil F2D05690 ELV(L)=GLV(LI) F2D05700 ELA(L)~GLA(LI) F2D0571D EIIDIF 190 CONTINUE F2D05720 F2DOS730 ENDIF F2D05740 E1IDIF 200 COlITIlIUE F2D05750 F2D05760 F2D05770 Call sUbroutine ELKMFT (for Triangular elements) or ELKMFR (for Rectangular elements) to compute the ELement [K], [M] and {F}. F2D05780 F2D05790 IF(IELTYP.EQ.O) THEN F2D05800 F2005810 CALL ELKMFT (lICOUNT, NEIGII, IIPE, 1111, ITYPE, ITEM) F2D05820 ELSE F2D05830 CALL ELKMFR (IICOUNT,lIEIGN,NPE,NII,ITYPE,ITEM) F2005840 ENDIF r F2D05850 IF(ICOIIV.lIE.O} THEil F2D05860 F2D05870 Add the convective terms for CONVECTIOII type boundary conditions F2D05BBO (exact for straight sided elements; otherwise approxim~te values) F2D05890 F2005900 DO 210 M ~ I,IIBE F2D05910 IF(IBlI(M) .EQ.II) THEil F2D05920 IIIOD(M,1) F2D0593D H1 M2 IIIOD(M,2) F2D05940 lIMl 1100 (lI,M1) F2D05950 11M2 1I0D(II,M2) F2D05960 DSQRT((GLXY(lIM2,1)-GLXY(NM1,1)}**2 DL F2D05970 * +(GLXY(IIM2,2)-GLXY(NH1,2»**2} F2D05980 BL BETA(M)*DL F2D05990 TIlIF(M) *DL F2D060DO TF IF(IEL. EQ. 1) THEil F2D06010 F2D06020 ELK(MI,M1)=ELK(M1,MI)+BLf3.0 F2D06030 ELK(M1,M2)~ELK(M1,M2)+BLf6.0 F2D06040 ELK(M2,Ml)~ELK(M2,M1)+BLf6.0 F2D06050 ELK(M2,M2)=ELK(M2 rM2)+BLf3.0 F2006060 ELF(M1)=ELF(M1)+O.5*TF F2D06070 ELF(M2)=ELF(M2)+O.5*TF ELSE F2D06080 IF(IIPE.GE.8) THEil F2D06090 IIPEL~4 F2D06100 ELSE F2D06110 NPE~3 F2D06120 EIIDIF F2DD6130 F2D06140 M3=MI+IIPEL ELK(MI,M1)=ELK(M1,M1)+4.0*BLf30.0 F2D06150 F2D06160 ELK(M1,M3)=ELK(M1,M3)+2.0*BLf30.0 ELK(M1,M2)=ELK(M1,M2)-BLf30.0 F2D06170 ELK(M3,M1}=ELK(M3,M1)+2.0*BLf 3 0• O F2D06180 F2D06190 ELK(M3,M3)=ELK(M3,M3)+16.0*BLf30.0 ELK(M2,M3)=ELK(M2,M3)+2.0*BLf30.0 F2D06200 F2D06210 ELK(M2,M1)=ELK(M2,M1)-BLf 30.O F2D06220 ELK(M3,M2)=ELK(M3,M2)+2.0*BLf30.0 F2D06230 ELK(M2,M2)~ELK(M2,M2)+4.0*BLf30.0 ELF(M1)=ELF(M1)+TFf6.0 F2D06240 F2D06250 ELF(M3)=ELF(M3)+4.0*TFf6.0 F2D06260 ELF(M2)=ELF(M2)+TF/6.0 ENDIF F2D06270 EIIDIF F2D06280 210 COIITINUE F2D06290 ENDIF F2D06300 F2D06310 IF(IICOUlIT.EQ.l) THEil F2D06320 IF(IIPRNT.EQ.l .OR. IIPRNT.EQ.3) THEil F2D06330 IF(II.EQ.l) THEil F2D06340 F2D06350 Print element matrices and vectors (only when NPRNT=1 or NPRNT=3) F2D06360 F2D06370 WRITE (ITT ,610) F2D06380 J~l,NDF
LI~LI+1
~L+1
C
C C C
C C
C C C
C
c C C
COMPlITER PROGRAM FEM2DY2
DO 220 1=l,NII WRITE(ITT, 930) (ELK(I,J),J=l,lIl1) 1F(NEIGN.EQ.O) THEil WRITE(ITT,630) WRITE(ITT,930) (ELF(I) ,1=1,1<11) ELSE WRITE(I'I'T, 620) DO 230 1=1,1111 230 WRITE(ITT,9301 (ELM(1,J),J=1,NII) EIIDIF EIIDIF EIIDIF EIIDIF 220
C IF(IIEIGII.EQ.O) THEil IF (ITEM. liE. 0) THEil C C C C
Compute the element coefficient matrices [K-hat] and (F-hat} (Le ... after time approximation) in the transient analysis:
F2D06390 F2D06400 F2D06410 F2D06420 F2D06430 F2D06440 F2D06450 F2D06460 F2D06470 F2D06480 F2D06490 F2D06500 F2D06510 F2D06520 F2006530 F2D06540 F2D06550 F2D06560 F2006570
~-----F2D06580
CALL TIMER(IICOUNT,INTIAL,ITEM,III1) EIIDIF ENDIF C C C
649
ASSEMBLE element matrices to obtain global matrices: DO 240 I=l,IIPE NR=(NOO(II,I)-l)*IIDF DO 240 II=l,IIDF IIR=IIR+l L=(1-l)*IIDF+11 IF(IIEIGN.EQ.O) THEN GLF(NR)=GLF(IIR)+ELF(L) ENDIF DO 240 J=l,NPE IF(NEIGII.EQ.O) THEN NCL=(NoD(N,J)-l)*NDF ELSE IIC=(1I0D(N,J)-1)*NDF EIIOIF DO 240 JJ=l,IIDF M=(J-1)*IIDF+JJ 1F(IIEIGII.EQ.O) THEil IIC=NCL+JJ+I-IIR IF(NC.GT.O) THEN GLK(NR,NC)=GLK(NR,IIC)+ELK(L,M} ENOIF ELSE NC=IIC+1 GLK(NR,IIC)=GLK(IIR,IIC)+ELK(L,M) GLM(IIR,IIC)=GLM(IIR,IIC)+ELM(L,M) ENDIF 240 COIITINUE 250 CONTINUE
F2D06590 F2D06600 F2D06610 F2D06620 F2D06630 F2006640 F2D06650 F2D06660 F2D06670 F2D06680 F2006690 F2006700 F2D06710 F2D06720 F2006730 F2D06740 F2D06750 F2D06760 F2D06770 F2D067BO
F2D06790 F2D06800 F2D06B10 F2D06820 F2D06830 F2D06840 F2D06850 F2D06860 F2D06B70 F2D06880 F2D06890 F2D06900 F2D06910 F2D06920 C F2006930 C Print global matrices when NPRIIT > 2 F2D06940 C F2D06950 IF(IICOUNT.LE.1} THEil F2D06960 1F(NPRIIT.GE.2} THEN F2D06970 WRITE(ITT, 640) F2D06980 00 260 I=l,IIEQ F2D06990 260 WR1TE(ITT,930) (GLK(I,J) ,J=l,NHBW) F2007000 1F(NEIGII.EQ.O) THEil F2007010 WR1TE(ITT,650) F2D07020 WRITE(1'I'T,930) (GLF(I) ,1=1,NEQ) F2D07030 EIIDIF F2D07040 EIIDIF F2D07050 EIID1F F2D07060 C F2D07070 C Impose BOUNDARY CONDITIONS on primary and secondary variables F2D070S0 C F2D07090 IF(NEIGII.NE.O) THEil F2D07100 CALL EGIIBOU(GLK,GLM,IBOY,ISPV,MAXSPV,1I0F,NEQ,NEQR,NSPV,NRHAX} F2D07110 C F2D07120 C Call SYSTEM subroutine 'DGVCSP' to solve the EIGENVALUE PROBLEM F2D07130
650 C C C C C C
C C C C C C C C C
C C
C C
APPENDICES
to compute the eigenvalues and eigenvectors, and print them:
F2D07140 F2D07150 EGNVAL(I) Ith eigenvalue F2D07160 F2D07170 EGNVEC(I,J) = Jth component of the Ith eigenvector F2D07180 CALL DGVCSP(lIEQR,GLK,NRMAX,GLM,NRMAX,EGNVAL,EGlIVEC,NRMAX) F2D07190 F2D07200 F2D07210 WRITE(ITT,660) F2D07220 IF (llVALU.GT.lIEQR)NVALU=llEQR F2D07230 DO 270 I=I,NVALU F2D07240 IF(ITYPE.GE.2 .AND. NEIGll.EQ.I) THElI F2D07250 VALUE = DSQRT(EGNVAL(I» F2D07260 WRITE(ITT,840)I,EGllVAL(I) ,VALUE F2D07270 ELSE F2D07260 WRITE(ITT,845)I,EGNVAL(I) F2D07290 EllDIF IF (NVCTR.llE.0) THEN F2D07300 F2D07310 WRITE (I'I'T ,850) F2D07320 WRITE(ITT,930) (EGlfVEC(J,I),J=l,llEQR) ElIDIF F2D07330 270 CONTINUE F2DO;c340 STOP F2D07350 / F2D07360 ELSE CALL BOUURY (ISPV, ISSV,MAXSPV,MAXSSV,NDF,NCMAX,NRMAX,NEQ,IlHBW, F2D07370 F2D07380 llSPV,IlSSV,GLK,GLF,VSPV,VSSV,llcomlT,IllTIAL) * r F2D07390 Call subroutine SOLVE to solve the system of algebraic equationsF2D07400 The sOlution is returned in the array GLF F2D07410 F2D07420 IRES=O F2D07430 CALL SOLVER(lIRMAX,lICMAX,NEQ,NH8W,GLK,GLF,IRES) F2D07440 F2D07450 F2D07460 IF(ITEM.llE.O) THEN F2D07470 F2D07480 For nonzero initial conditions, GLF in the very first sOlution is the acceleration, (A}=(MINV] ({F}-[K]{U}) F2D07490 F2D07500 IF(NCOUNT.EQ.l .AllD. INTIAL.IlE.O) THEil F2D07510 IF(ITEM.EQ.2) THEN F2D07520 DO 280 1=1, llEQ F2D07530 280 GLA(I)=GLF(I) F2D07540 WRITE (ITT, 600) TIME F2D07550 WRITE(ITT, 930) (GLA(I) ,I=l,UEQ) F2D07560 GOTO 170 F2D07570 ENDIF F2D07580 ELSE F2D07590 NT = NT + 1 F2D07600 TIME=TIME+DT F2D07610 ENOIF F2D07620 ENOIF F2D07630 F2D07640 compute the difference between solutions at two consecutive times,F2D07650 and calculate new velocities and accelerations F2D07660 F2D07670 OIFF=O.O F2D07660 SOLN=O.O F2D07690 DO 290 I=l,UEQ F2D07700 IF(ITEM.NE.O) THEN F2D07710 SOLN=SOLN+GLF(I)*GLF(I) F2007720 OIFF~DIFF+(GLF(I)-GLU(I»*(GLF(I)-GLU{I» F2007730 ENOIF F2007740 IF(ITEM.EQ.2) THEN F2D07750 GLU(I)~A3*(GLF(I)-GLU(I»-A4*GLV(I)-A5*GLA{I) F2D07760 F2D07770 GLV(I)=GLV(I)+Al*GLU(I)+A2*GLA(I) GLA(I)~GLU(I) F2D0778C1 EMOIF F2D07790 290 GLU(I)=GLF(I) F2D07800 F2D07810 IF(ITEM.llE.O .AND. NT.GT.1) THEN NFLAG=O F2007820 F2007830 PERCMT=OSQRT(DIFF/SOLN) F2007840 IF (PERCNT.LE.EPSLN) THEN F2007850 WRITE (ITT, 980) F2D07860 STOP F2D07870 ELSE F2007880 INTGR= (NT/INTVL) *INTVL
COMPlJIER PROGRAM FEM2DV2
IF(INTGR.EQ.NT) NFLAG=l ENDIF ENDIF IF(NFLAG.NE.O) THEN
651
F2D07a90 F2007900 F2007910 F2007920 F2007930 c C Print the sol~tion (i.e., nodal values of the primary variables) F2007940 F2007950 C F2007960 IF(ITEM.NE.O} THEN F2D07970 WRITE(ITT,590} TIME,NT F20079ao EIlOIF F2007990 WRITE(ITT,660) F2DOaOOO IF(NOF,LE.3) THEN F200aOl0 MOF=NOF F200a020 ELSE F200a030 MOF=3 F200a040 WRITE(ITT,666} F200a050 WRITE(ITT,930} {GLU(J),J=NDF,NEQ,NDF} F2DOB060 ENOIF F2DOB070 'IF{ITYPE.EQ.O) THEN F2DOBOBO WRITE(ITT,940) ELSE F200B090 WRITE(ITT,970) F200BlOO ENDIF F200allO IF(NDF.EQ.l)WRITE(ITT,670} F2DOa120 IF(NOF.EQ.2)WRITE(ITT,6aO) F2DOB130 IF(NOF.GE.3)WRITE(ITT,690) F2DOa140 IF(ITYPE.EQ.O) THEN F2DOB150 F2008160 WRITE {ITT, 940) ELSE F2D08170 WRITE(ITT,970) P2DOBleo ENOIF F2DOB190 00 300 I=I,NNM F2DOB200 F200B2l0 II=NDF* (I-I) +1 JJ=II+MDF-l F2DOB220 300 WRITE(ITT,950)I, (GLXY(I,J),J=I,2), (GLU(J),J=II,JJ) F2DOB230 WRITE(ITT ,970} F2DOB240 ENDIF F200a250 F2Doa260 C IF(IGRAO.NE.O) THEN F2DOB270 IF(NFLAG.EQ.l) THEN F2DOB2BO C F2DOB290 C * * * * ~ * * * * * * * * * * * * * * * * F2DOB300 F2DOB310 c * F2DOB320 C P 0 S T PRO C E S S 0 RUN I T F2DOS330 C F2DOa340 cc * * ~ * * * * * * * * * * * * * * * F2D08350 IF(ITYPE.LE.l) THEN F2DOa360 WRITE (ITT ,970) F2DOa370 ELSE F2DOa3BO WRITE(ITT,940) F2DOB390 ENDIF F2DOa400 F2DOB410 IF(ITYPE.LE.O) THEN F2DOa420 WRITE(ITT,730) F2DOa430 IF(IGRAO.EQ.l) THEN F2DoaHO WRITE(6,740} F2D08450 ELSE F2D08460 WRITE(6,750} F200S470 EHOIF F2Doa4ao ELSE F2DOa490 IF(ITYPE.EQ.l)WRITE(ITT,760) F2DOB500 IF(ITYPE.GE.2)WRITE(ITT,770) F2DOB5l0 IF(ITYPE.EQ.3)WRITE(ITT,7aO) F2DOB520 ENDIF F200B530 IF(ITYPE.LE.l) THEN F2D08540 WRITE(ITT,970) F2D08550 ELSE F2D08560 WRITE (ITT, 940) F2D08570 ENOIF F2D085BO C C Compute the GRADIElIT of the sOlution for single-variable problems F2DOB590 C or STRESSES for viscous flows, plane elasticity and plate bending F2DOB600 F2D08610 C F2D08620 DO 320 N=l,NEM F2D08630 DO 310 I=I,NPE
* * *
*
**
*•
***
*
**
***
**
**
**
*
***
** *
652
APPENDICES
310
320
*
NI=NOD(N,I) ELXY(I,l)=GLXY(NI,l} ELXY(I,2}=GLXY(NI,2) LI=(NI-l)*NDF L=(I-1}*NDF DO 310 J=l,NOF Ll=L1+l L=L+l ELU[L)=GLU(LI) CONTINUE CALL PSTPRC(ELXY ,ITYPE, IELTYP, IGRAD,llDF, NPE,THKNS, ELU,ISTR,IlSTR} IF(ITYPE.LE.l} THEil WRITE (I'r'T, 97 0) ELSE WRITE {ITT ,940) ENDry ENOIF ENDIF
C
c c
IY[ITEM.NE.O) THEN 1F(NT.GE.NTIME) THEN STOP ELSE GOTO 170 ENDIF ENDIF EIlD1F STOP F
o
R
M
A
T
S
C
F2D08640 F2D08650 F2D08660 F2D08670 F2D08680 F2D08690 F2D08700 F2D08710 F2D08720 F2D08730 F2D08740 F2DOB750 F2DOB760 F2DOB770 F2D08780 F2DOB790 F2D08BOO F2D08810 F2D08820 F2D088JO F2D01l840 F2D08850 F2DOBB60 F2D08B70 F2D08880 F2D08890 F2DOB900 F2D08910 F2D08920 F2008930 F2DOa940 F2D08950 F2D08960 F200897D F2D08980 F2D08990 F2D09000 F2D09010
400 FORMAT[20M) 410 FORMAT [/,16X,'ANALYSIS OF A POISSON/LAPLACE EQUATION'} 420 FORMAT (/,5X,'COEFFICIENTS OF THE DIFFERENTIAL EQUATION:',//. * 8X,'Coefficient, AID •.•....••••.....•••..... =',E12.4,/. * 8X,'Coefficient, AlX .•••.....•••.....•••.... =',E12.4,I, 8X,'Coefficient, AlY ••••••.••••••••••••...•• a',£12.4,/. * * 8X,'Coefficient t A20 . ~r • • • • • • r.~ ,=I/E12.4,!, F2009020 * 8X,'Coefficient, A2X ·•• =',E12.4,1. F2D09030 8X,'Coefficient, A2Y ••••••••••••••••••••..• •=',£12.4,/, F2D09040 * * 8X,'Coefficient, AOO .•.•••••••••••••••••.•. • =',£12.4,/) F2D09050 F2D09060 430 FORMAT (/,5X,'CONTINUOUS SOURCE COEFFICIENTS:',//, * ax, 'Coefficient, Fo .••••••••••.•••••..•.. • • =',£12.4,1, F2D09070 * aX,'Coefficient, FX ••••••••••••••••.•••. • ~.='.E12.4,1, F2D09080 * ax, 'Coefficient, FY .•••••••••••••••••••.•.• =',E12.4,/) F2D09090 440 FORMAT (/,5X,'CONVECTIVE HEAT TRANSFER DATA:',II, F2D09l00 * aX,'Number of elements with convection, NBE .=',14,1, F2D09110 * aX,'Elements, their LOCAL nodes and convective',I, F2D09120 * aX,'heat transfer data:',I, F2D09130 * 8X,'Ele. No.',4X,'End Nodes',8X,'Film Coeff.;,6X, F2D09140 'T-InfinitY',1l F2D09150 * F2D09lGO 450 FORMAT (/,l6X,'A VISCOUS INCOMPRESSIBLE FLOW IS ANALYZED') F2D09170 460 FORMAT (/,5X,'PARAMETERS OF THE FLUID FLOW PROBLEM: ',11, 8X,'Viscosity of the fluid, AMU ••••••• • • • • • • ~',E12.4,I, F2D091ao * * 8X,'Penalty parameter, PENLTY =',El2.4,J) F2009190 PROBLEM IS ANALYZED'} F2D09200 470 FORMAT [/,16X,'A 2-0 ELASTICITY F2D09210 480 FORMAT [/,5X,'NUMERICAL INTEGRATION DATA:',II, * 8X,'Full Integration polynomial degree, IPDF a',14,/, F2D09220 * 8X,'Number of full integration points, NIPF a',14,1, F2009230 * aX,'Reduced Integration polynomial deg.,IPOR a',I4,I, F2D09240 * 8X,'No. of reduced integration points, NIPR a',I4,1, F2D09250 aX,'Integ. poly. deg. for stress comp., ISTR =',14,1, F2D09260 * * 8X,'No. of integ. pts. for stress comp.,NSTR ='.14,/) F2D09270 F2D09280 485 FORMAT (/,5X,'NUMERICAL INTEGRATION DATA:'t//, * 8Xt'Ful1 quadrature (1PDF x IPDP) rule, IPDF =',14,/, F2D09290 aX,'Reduced quadrature (IPDR x IPDR) , IPDR =',14,/, F2D09300 * * aX,'Quadrature rule used in postproc., 1STR =',14,/) F2D09310 490-FORMAT (9X,'**PLANE STRAIN assumption is selected by user**',/) F2D09320 500 FORMAT (/,16X,'A PLATE BENDING PROBLEM IS ANALYZED') F2D09330 F2D09340 505 FORMAT (16X, '*** using the shear deformation theory ***') 506 FORMAT (16X. '**** using the classical plate theory ****') F2D09350 510 FORMAT (/,8X,'***PLANE STRESS assumption is selected by user**',/)F2D09360 520 FORMAT (/,5X,'MATERIAL PROPERTIES OF THE SOLID ANALYZED:',//, F2D09370 8X,'Thickness of the body, THKNS ......•.•••• =',E12.4,/, F2D09380 * Ii
I
I
•••••••
COMPlITER PROGRAM FEM2DV2
653
8X,'Moduius of elasticity, E1 .•............• =',E12.4.I, F2009390 eX,'Modulus of elasticity. E2 ='.E12.4.1. F20094oo 8X,'poisson s ratio, ANU12 .•.......•...•.... =',E12.4.1. F2D0941o ex, 'Shear modulus, G12 =' ,E12.4) F2D0942o 530 FORMAT (eX,'Shear madulus, G13 •..........•.•........ =' ,E12.4,1, F2D0943o ~ 8X,'Shear modulus, G23 =' ,EI2.4,1) F2D09440 F2D09450 540 FORMAT (/,5X,'PARAMETERS OF THE DYNAMIC MIALYSIS:',II, ~ 8X,'coefficient. CO .................•...... . =',EI2.4,1, F2D09460 ~ 8X,'Coefficient. CX .......................• . =',E12.4,1, F2D09470 ~ 8X;'coefficient, CY =',E12.4) F2D09480 550 FORMAT (eX,'Time increment used, DT .......•......... =',E12.4,1, F2D09490 ~ 8X,'Parameter, ALFA .. , ........• . . . . . . . . • . . . . =',E12.4,I, F2D09500 ~ 8X,'Parameter, GAHA ...........•. . . . . . . . . . . . . =',E12.4,1, F2D09510 ~ 8X,'Number of time steps used, NT1ME ='.14.1, F2009520 ~ aX.'Time step at which load is removed, NSTP.='.14.1, F2D0953o ~ aX.'Time interval at which soln. is printed .. =',I4,1) F2D0954o 560 FORMAT (f. 5X,' FIlUTE ELEMENT MESH INFORMATION:'. I I, F2D09550 ~ 8X.'Element type: 0 = Triangle; >0 = Quad.) .. =',I4,1, F2D09560 ~ 8X,'Number of nodes per element, NPE .....•.. =',14,1, F2D09570 ~ 8X.'No. of primary deg. of freedomlnode, NDF =',14,1. F2D09S80 ~ 8X,'lIumber of elements in the mesh, IIEM ..... =',14,/. F2D0959o ~ 8X.'Number of nodes in the mesh. lIllH ...•.... =',14,1. F2D0960o ~ 8X.'Number of equations to be solved, NEQ ... =',14,1, F2D09610 ~ 8X,'Half bandwidth of the matrix GLK, NHBW .. =',14) F2D09620 F2D0963o 570 FORMAT (8X,'Mesh SUbdivisions, NX and IIY ........... •=',214,1) 580 FORMAT (5X,'Node x-coord. y-coord. speci. primary & secondaF2D09640 ~ry variables',I,38X,' (0, unspecified; >0, specified)', F2D09650 ~ 1,41X,'primary OOF Secondary OaF') F2D0966o 590 FORMAT (/,5x,'~TIME~ =',E12.5,5X,'Time Step Number =',I3) F2D0967o 600 FORMAT (/,5X,'~TIME~ =' ,E12.5,' (Initial acceleration vector:)' ,1)F2009680 610 FORMAT (/.5X,'Element coefficient matrix: ',I) F2D0969o 620 FORMAT (/,5X,'Element mass matrix: '.1) F2D09700 F2D09710 630 FORMAT (/,5X,'Element source vector:' ,I) 640 FORMAT (/,5X,'Global coefficient matrix:',f) F2D09720 650 FORMAT (/,5X,'Global source vector:',f) F2009730 F2D09740 660 FORMAT (/,5X,'S 0 L UTI 0 N :',/) 666 FORMAT (5X,'Nodal values of W,xy for conforming plate element:',/)F2D09750 670 FORMAT (5X, 'Node x-coord. y-coord. Primary OaF') F2D0976o 680 FoRMAT (5X,'Node x-coord. y-coord. Value of u', F2D0977o * r Value of v') F2D09780 x-coord. y-coord. deflec. w', F2D09790 690 FORMAT (5X,'Node ~ 'x-rotation y-rotation') F2009800 700 FORMAT (/,5X,'Connectivity Matrix, [1100]',/) F2009810 710 FORMAT (8X,'No. of specified PRIMARY variables, NSPV =',14) F2D09820 715 FORMAT (8X,'1I0. of speci. SECONDARY variables, NSSV =' ,I4,f) F2009830 720 FORMAT (6X,'Node DOF Value',/) F2D09840 730 FORMAT (4X,'The orientation of gradient vector is measured from F2009850 Ithe positive x-axis' ,1) F2D09860 740 FORMAT (4X,'x-coord. y-coord. -all (du/dx) -a22(du/dy)', F2D0987o 1 3X,'FluX Mgntd orientation') F2D09880 y-coord. a22(du/dy) -alI (du/dx), , F200989o 750 FORMAT (4X.'x-coord. 3X,'Flux Mgntd Orientation') F2009900 1 760 FORMAT (5X,'x-coord. y-coord. sigroa-x sigroa-y', F2D09910 *, sigma-xy pressure') F2D0992o 770 FORMAT (5X,'x-coord. y-coord. sigma-x sigma-y', F2D0993o ~, sigma-xy') F2D09940 sigma-xz sigma-yz') F2D09950 780 FORMAT (5X,' 790 FORMAT (/,8X,'**~ A mesh of TRIANGLES is chosen by user ~~*')F2D09960 800 FORMAT (/,8X,'**~ A mesh of QUADRILATERALS is chosen by user ~*~')F2D09970 810 FORMAT (/,8X,'~~~~~~~ An EIGENVALUE PROBLEM is analyzed ~***~~*')F2D09980 820 FORMAT (/,8X,'~~*~~~*~ A TRANSIENT PROBLEM is analyzed ~~~***~~')F2D0999o 830 FORMAT (f,8X,'~***~*~ A STEADY-STATE PROBLEM is analyzed ***~~**')F2DI0000 840 FORMAT(/,3X,'Eigenvalue(',I3,') =',EI5.6,3X,'Frequency =',EI3.5) F2DI0010 845 FORMAT(5X,'E I G E N V A L U E (',13,') =',EI5.6) F2DI0020 F2DI0030 850 FORMAT{/,5X,'E I G EN VEe TOR :',1) F2DI0040 860 FORMAT (8X,I5,5X,215,6X,EIJ.5,5X,EI3.5) F2Dl0050 870 FORMAT (5X,I3,2EI2.4,8X,I9,9X,15) F2DI0060 880 FORMAT (5X,I3,2EI2.4,7X,3I4,2X,3I4) 885 FORMAT (5X,I3,2E12.4,5X,414,2X,4I4) F2DI0070 890 FORMAT (12X,'OUTPUT FROM PROGRAM ~FEM2DV2~ BY J. N. REDDY') F2DI0080 900 FORMAT (10X,1015) F2DI0090 910 FORMAT (2X,70(' '),/) F2DI0I00 920 FORMAT (5X,I3,2EI2.4,8X,2I5,4X,2I5) F2010110 F2D10120 930 FORMAT (8X,5EI4.5) 940 FORMAT (2X, 65 (' '), I) F2D10130 ~ ~ ~ ~
654
APPENDICES
950 960 970 980 990 991
FORMAT FORMAT FORMAT FORMAT FORMAT FORMAT
*END
(5X,I3,5E14.5) F2DI0140 (5X,I5,l4,E14.5) F2D10150 (2X, 77 (I '), j) F2D10160 (/,3X,'*** THE SOLUTION HAS REACHED A STEADY STATE ***') F2D10170 (!,3X,'**TRIANGULAR ELEMENTS ARE NOT ALLOWED FOR PLATES**')F2DI0180 (/ ,3X, '*STABILITY ANALYSIS IS ONLY FOR BENDING OF PLATES*' ,F2010190 /,3X,'**** according to the classical plate theory ****')F2D10200 F2D1021O
SUBROUTINE BOUJIRY(ISPV,ISSV,MAXSPV,MAXSSV,NDF,NCMAX,NRMAX,NEQ, NHBW,NSPV,NSSV,S,SL,VSPV,VSSV,NCOll~T,rNTIAL)
* C C
C C C
The subroutine implements specified values of the primary and secondary variables by modifying the coefficient matrix [5} and (banded and symmetric) and the right-hand side vector {SL}.
C C
*
c
IMPLICIT REAL*8(A-H,O-Z) DIMENSION S(NRMAX,NCMAX),SL(NRMAX),lSPV(MAXSPV,2) ,VSPV(MAXSPV), ISSV(MAXSSV,2),VSSV(MAXSSV) / COMMON/IO/IN,ITT IF(NSSV.NE.O) THEN IF(IlIT1AL,EQ.O .OR. NCOll/T.NE. 1) THEN
DO 10
I~l,NSSV
II~(ISSV(1,1)-1)*NDF+ISSV(I,2) SL(II)~SL(1I)+VSSV(I)
10
ENDIF ElIDlF
IF(NSPV.NE.O) THEN DO 50 NB~l,NSPV IE~(1SPV(NB,1)-1)*NDF+1SPV(NB,2)
VALUE=VSPV(NB) 1T=NHBW-l I=IE-NHBW DO 30 r1~l,IT 1=1+1 IF(!. GE.l) THEN J=IE-I+1 SL(I)~SL(IJ-S(I,J)*VALUE S(I,J)~O.O
END1F CONTINUE
30
S(IE,l)~l.O SL(IE)~VALUE
1=1E DO 40 11~2,NHBW 1=1+1 IF(I.LE.NEQ) THEN SL(I)~SL(I)-S(IE,IIJ*VALUE S(IE,II)~O.O
ENDIF 40 CONTINUE 50 CONTINUE ENDIF RETURN
END
COMPUTER PROGRAM FEM2DV2
655
SUBROUTINE CNCTVT(NELEM,NNODE,NODES,MAXELM,MAXNOO,GLXY)
C C C
C C C C C C C C C C
c c c
C
c c C C C C
F2DI0770 F2DI0780 F2DI0790 Generates nodal connectivity array for a specified type of mesh F2DI0800 F2010810 NELl First element in the row of elements F2DI0820 NELL Last element in the row F2DI01l30 IELINC Increment from element to the next in the row F2DI01l40 NODIlIC F2DI0850 Node increment from one element to the next F2D10860 Number of nodes per element IIPE Global node numbers corresponding to the local nodes F2Dl0870 NODE(I) F2Dl0880 of the first element in the row F2DI0890 F2DI0900 IMPLICIT REAL*8(A-H,O-Z) F2Dl0910 DIMEllSION NODES(MAXELM,9),GLXY(MAXNOD,2) ,NODE(9) F2Dl0920 F2Dl0930 Read element data F2DI0940 F2DI0950 READ(5,*) NRECEL F2DI0960 DO 30 IREC=l,NRECEL F2DI0970 REAO(5,*) NELl,NELL,IELINC,NOOINC,NPE,(NODE(I),I=l,NPE) F2DI0980 IF(IELINC.LE.O) IELINC=l F2DI0990 IF(NODINC.LE.O) NODIlIC=l F2D11000 IF(NELL.LE.NELl) NELL=NELI F2D11010 IF(NELL.GT.NELEM) THEN F2Dl1020 WRITE(6,60) F2Dll030 STOP F2Dll040 ELSE F2Dll050 NIllC=-l F2D11060 DO 20 N=NELl,NELL,IELINC F2D11070 NINC=NINC+l F2Dll080 DO 10 M=I,NPE F2D11090 10 NODES(N,M)=NODE(M)+NINC*NODINC F2DIllOO 20 CONTINUE F2Dll1l0 ENDIF F2Dll120 30 CONTINUE F2Dll130 F2011140 DO 50 N=l,NELEM F2Dll150 SUMX=O.O F2011160 SUMY=O.O F2Dl1 17 0 NEN=NPE F2DI1180 IF(NEN.NE.4) THEN F2Dl1190 DO 40 M=5,NEN F2D1l200 MM=llODES(N,M) F2D1l210 IF{M.NE.9 .OR. M.NE.6) THEN F2D11220 M4=NODES(N/M-4) F2D1l230 M3=NODES (ll, M-3) F2D11240 IF(M,EQ.8) M3=NODES(N,I) F2D1l250 IF(GLXY(MM,l) .EQ.l.E20) F2D11260 * GLXY(MM/l)=0.5*(GLXY(M4,1)+GLXY(M3,1» F2D11270 IF(GLXY(MM,2) ,EQ.1.E20) F2D11280 * GLXY(MM,2)=O.5*(GLXY(M4,2)+GLXY(M3,2» F2D11290 IF(NEN.NE,8) THEN F2D1l300 SUMX=SUMX+GLXY(M4,l) F2D1l310 SUMY=SUMY+GLXY(M4,2) F2D11320 EllDIF F2D1l330 ELSE F201l340 IF(GLXY(MM,I).EQ,l.E20) GLXY(MM,l)=O.25*SUMX F2D1l350 IF{GLXY(MM,2).EQ,l.E20) GLXY(MM,2)=0.25*SUMY F2D1l360 ENDIF F2D1l370 40 CONTINUE F2D11380 ENDIF F2D11390 50 CONTINUE F2D1l400 60 FORMAT(/,'MSG from CNCTVT: Element number exceeds maximum value') F2D1l410 RETURN F2D11420 END F2D11430 SUBROUTINE EGNBOU(A,D,IBDY,ISPV,MXPV,NDF,NEQ,NEQR,NSPV,NRM) Imposes specified homogeneous boundary conditions on the primary variables by eliminating rows and columns corresponding to the specified degrees of freedom
F2D1l440 F2DI1450 F2D1l460 F2D11470 F2D11480 F2D11490 F2D1l500
656
APPENDICES
C
IMPLICIT REAL*8 (A-H,O-Z) DIMENSION A (lIRM,NRM) ,D(lIRM,lIRM) ,ISPV(MXPV, 2) ,IBDY(MXPV) C
DO 10 I=l,lISPV 10 IBDY(I)=(ISPV(I,I)-1)*NDF+ISPV(I,2) DO 30 I=l,lISPV IMAX=IBDY (I) DO 20 J=I,lISPV IF(IBDY(J) .GE.lMAX) THEN lMAX=IBDY(J) IKEPT=J ENDIF 20 CONTINUE IBDY (IKEPT)=IBDY (I) IBDY(I)=IMAX 30 CONTINUE lIEQR = NEQ DO 80 I=I,NSPV IB=IBOY{I) IF(IB .LT. lIEQR) THEN NEQRl=NEQR-1 DO 60 II=IB,NEQR1 DO 40 JJ=l,NEQR D(II,JJ)=D(II+l,JJ) 40 A(II,JJ)=A(II+l,JJ) DO 50 JJ=l,lIEQR D(JJ,II)=D(JJ,Ir+1) 50 A(JJ,II)=A(JJ,II+l) 60 COllTINUE ENDIF NEQR=NEQR-l 80 CONTINUE RETURN END SUBROUTINE INVRSE(A,B) IMPLICIT REAL*8 (A-H,O-Z) C C
C C
The subroutine computes the inverse of a 3x3 matrix,[A]; the inverse is stored in matrix [B]
C C
DIMENSIOII
A(3,3), 8(3,3)
C
G(Zl,Z2,Z3,Z4) = Zl*Z2 - Z3*Z4 F(ZI,Z2,Z3,Z4) = G(Zl,Z2,Z3,Z4) / DET Cl G(A(2,2) ,A(3,3) ,A(2,3) ,A(3,2» C2 = G(A(2,3) ,A(3,l) ,A(2,l) ,A(3,3» C3 = G(A(2,l),A(3,2),A(2,2),A(3,l» DET = A(I,l)*Cl + A(1,2)*C2 + A(I,3)*C3 B(l,l) F(A(2,2) ,A(3,3) ,A(J,2) ,A(2,3» 8(1,2) -F(A(I,2) ,A(3,3) ,A(1,3) ,A(3,2» B(l,3) F(A(1,2) ,A(2,3) ,A(1,3) ,A(2,2» B(2,1) -F(A(2,1) ,A(J,3) ,A(2,3) ,A(J,I» B(2,2) F(A(1,1),A(3,3),A(3,1),A(I,3» B(2,3) -F(A(I,I) ,A(2,3) ,A(1,3) ,A(2,1» B(3,1) F{A(2,1) ,A(3,2) ,A(3, 1) ,A(2,2» B(3,2) -F(A(I,I) ,A(3,2) ,A(I,2) ,A(J,I» B(3,3) F(A(l,l) ,A(2,2) ,A(2, 1) ,A(1,2» RETURN END SUBROUTINE ECHO(IN,IT) C
PIMENSION AA(2Ct) WRITE (IT,40) 10 CONTINUE READ(IN,JO,ENO=20) AA WRITE(IT,JO) AA GO TO 10 20 CONTINUE
F2D1l510 F2D1l520 F2D1l5JO F2D1l54Ct F2D11550 F2D1l560 F201l570 F201l580 F2D1.1590 F2D1l600 F2D1l610 F2D11620 F2D1l630 F201l640 F2D1l650 F2D11660 F2D11670 F2D11680 F201l69Ct F2D1l700 F201PI0 F2Dll72 0 F2D11730 F2D1l740 F2D1l750 F2D11760 F2Dl1770 F2D11780 F2D1l790 F201l800 F2D1l810 F2D11820 F201l8JO F2DllB40 F2011B50 F2D11860 F2DllB70 F201lBBO F201lB90 F2D1l90Ct F2D1191Ct F2Dl192 0 F2D1l9JO F2D1l940 F2D1l950 F2D11960 F2D11970 F2D1l980 F2D11990 nD12000 F2D12010 F2D12020 F2D120JO F2D12040 F2D12050 F2D12060 F2D12070 F2D120~
F2D12090 F2DI2100 F2D12110 F2012120 F2D121JO F2D12140 F2D12150 F2DI2160 F2D12170 F2D121BO F2012190 F2D12200 F2D12210
COMPUTER PROGRAM FEM2DV2
REWIND (Ill} WRITE(IT,50} RETURll 30 FORMAT(20M) 40 FORMAT(5X,'*** ECHO'OF THE INPUT DATA STARTS ***',{) 50 FORMAT{5X,'**** ECHO OF THE ,INPUT DATA ENOS ****',{) END SUBROUTINE ELKMFR(NCOUNT,NEIGN,NPE,NN,ITYPE,ITEM)
C C C C C C
C C
C
C
C
C C C
C C C C
C
657
F2Dl2220 F2012230 F2012240 F2012250 F2Dl2260 F2012270 F2012280
F2D12290 F2D12300 F2D12310 Element calcUlations based on linear and quadratic rectangular F2012320 elements and isoparametric formulation are carried out for all F2D12330 classes problems of the book. Reduced integrations are used on F2D12340 certain terms of viscous flow and plate bending problems. F2D12350 F2012360 F2D12370 IMPLICIT REAL*8(A-H,O-Z) F2012380 COMMON/STF/ELF(27) ,ELK{27,27),ELM(27,27) ,ELXY(9,2),ELU(27 ), F2012390 1 ELV(27),ELA(27),A1,A2,A3,A4,A5 F2D12400 COMMON/PST/A10,AIX,AIY,A20,A2X,A2Y,AOO,CO,CX,CY,FO,FX,FY, F2D12410 1 C44,C55,AMU,PENLTY,CMAT(3,3) F2012420 COMMON/SHP/SF(9) ,GDSF(2,9) ,SFH{16),GOSFH(2,16},GOOSFH(3 ,16) F2012430 COMMON/PNT/IPOF,IPOR,NIPF,NIPR F2012440 DIMENSION GAUSPT(5,5),GAUSWT(5,5} F2012450 COMMON/IO/IN,ITT F2012460 F2012470 DATA GAUSPT/5*0.ODO, -0.5773502700, 0.5773502700, 3*0.000, F2012480 2 -0.7745966700, 0.000, 0.7745966700, 2*0.000, -0.8611363100, F2012490 3 -0.3399810400, 0.3399810400, 0.8611363100, 0.000, -0.90617984DO,F2012500 4 -0.5384693100,0.000,0.5384693100,0.9061798400/ F2012510 F2012520 DATA GAUSWT/2.000, 4*0.000, 2*1.000, 3*0.000, 0.5555555500, F2012530 2 0.8888888800, 0.5555555500, 2*0.000, 0.3478548500, F2012540 3 2*0.6521451500, 0.3478548500, 0.000, 0.2369268800, F2012550 4 0.4786286700, 0.5688888800, 0.4786286700, 0.2369268800/ F2012560 F2012570 NOF = NN/NPE F2012580 IF(ITYPE.LE.3) THEN F20I2590 NE~NPE F2012600 ELSE F2012610 NET=NN F2012620 ENDIF F2012630 F2012640 Initialize the arrays F2012650 F2012660 DO 120 I = I,NN F2012670 IF(NEIGN.EQ.O) THEN F2012680 ELF(I) = 0.0 F2012690 ENOIF F2D12700 DO 120 J = 1,NN F2D127l0 IF (ITEM.NE.0) THEil F2012720 ELM(I,J)= 0.0 F2012730 EIlOIF F20I2740 120 ELK(I,J)= 0.0 F2012750 F2D12760 Do-loops on numerical (Gauss) integration begin here. Subroutine F2D12770 SHPRCT (SHaPe functions for ReCTangular elements) is called here F2D12780 F2012790 DO 200 III = 1,IPDF F2012800 DO 200 NJ = I,IPOF F20I2810 XI = GAUSPT(IlI,IPOF) F20I2820 ETA = GAUSPT(IlJ,IPOF) F20I2830 CALL SHPRCT (IlPE,XI,ETA,OET,ELXY,1l0F,IT~PE) F2012840 CIlST = OET*GAUSWT(IlI,IPDF)*GAUSWT(NJ,IPOF) F2D128~0 X=O.O· F2012860 Y~O'O F20l2870 DO 140 I=l,NPE F2D12880 X=X+ELXY(I,l)*SF(I) F2012890 140 Y=Y+ELXY(I,2)*SF(I) F2012900 F2012910 IF(NEIGN.EQ.O) THEN F2D12920 SOURCE~FO+FX*X+FY*Y F20I2930 EIlDIF F2012940
658
APPENDICES
IF(ITEM.NE.O) THEN IF(ITYPE.LE.2)THEN CT=CO+CX*X+CY*Y ENDIF ENDIF IF(ITYPE.LE.O) THEN
F2D12950 F2D12960 F2D12970 F2D12980 F2D12990 F2D13000 F2DI3010 F2DI3020 F2D130JO F2D13040 F2DI3050 F2D13060 F2D1J070 F2D13080 F2DIJ090 F2DI3100 P2DI3110 F2DI3120 F2DIJ1JO F2DIJ140
Al1~A10+A1X*X+A1Y*Y A22~A20+A2X*X+A2Y*Y
ENDIF C II~l
DO 180
I~l,NET
JJ~I
DO 160 J~l,NET IF(ITYPE.LE.J) THEN SOO~SF{I)*SF(J)*CNST
SII=GDSF(l,I)*GDSF(l,J)*CNST S22=GDSF(2,I)*GDSF(2,J)*CNST SI2=GDSF(1,I)*GDSF(2,J)*CNST S2I=GDSF(2,I)*GDSF(1,J)*CNST ENDIF IF(ITYPE.EQ.O) THEN
C C C
C C C C
C C C
C C C
F2D~150
,
F2D13I60 F2Dl3170 Heat transfer and like problems (i.e. single ooF problems); F2D1JI80 -------F2D1JI90 ELK(I,J) = ELK(I,J) + Al1*Sll + A22*S22 + AOO*SOO F201J200 IF(ITEM.NE.O) THEN F2013210 ELM(I,J) = ELM(I,J) + CT*SOO F2D1J220 ENDIF F2D1J230 ELSE F2D13240 IF(ITYPE.EQ.1) THEN F2D13250 F2D13260 viscous incompressible fluids: F2D13270 compute coefficients associated with viscous terms (fUll integ.) F2D1J280 F2D13290 ELK(II,JJ) ELK(II,JJ) + AMU*(2.0*Sll + S22) .F2D13JOO ELK(II+1,JJ) ELK(II+I,JJ) + AMU*S12 F2D13JIO ELK(II ,JJ+1) ELK(II ,JJ+1) + AMU*S21 F2013320 ELK(II+1,JJ+l)= ELK(II+l,JJ+1) + AMU*(Sll + 2.0*822) F2013JJO IF(ITEM.NE.O) THEN F2013340 ELM(II,JJ) ELM(II,JJ) + CT*SOO F2013350 ELM(II+l,JJ+1)= ELM(II+l,JJ+l) + CT*SOO F201J360 ENDIF F2D13370 ELSE F2D13380 IF(ITYPE.EQ.2) THEN F2D13390 F2DIJ400 Plane elasticity problems: F2DIJ410 F2D13420 ELK(II,JJ) =ELK(II,JJ) +CMAT(1,1)*Sll+CMAT(J,J)*S22 F2D13430 ELK(II,JJ+l) =ELK(II,JJ+1) +CMAT(1,2)*SI2+CMAT(3,J)*S21 F2D13440 ELK(II+l,JJ) =ELK(II+l,JJ) +CMAT(l,2)*S21+CMAT(3,3)*S12 F2D13450 ELK(II+1,JJ+1)=ELK(II+l,JJ+l)+CMAT(J,3)*S11+CMAT(2,2)*S22 F2D13460 IF(ITEM.NE.O) THEN F2D13470 ELM(II,JJ) ELM(II,JJ) + CT*SOO F2D13480 ELM(II+l,JJ+l)= ELM(II+l,JJ+1) + CT*SOO F2D13490 ENDIF F2D13500 ELSE F2D13510 IF(ITYPE.GE.4) THEN F2D13520 F2D13530 Classical plate theory: F2D13540 F2D13550 BM1~CMAT(1,1)*GDDSFH(1,J)+CMAT(1,2)*GDDSFH(2,J) F2D13560 BM2=CMAT(1,2) *GDDSFH(1,J)+CMAT(2,2) *GDDSFH(2,J) F2D13570 F20I3580 BM6=2.0*CMAT(3,3)*GDDSFH(3,J) ELK(IIJ)~ELK(I,J)+CNST*(GDDSFH(l,I)*BMl+ F2D13590 * GDDSFH(2,I)*BM2+2.0*GDDSFH(3,I)*BM6) F2D13600 IF(ITEM.NE.O) THEN F2D13610 SOO~SFH(I)*SFH(J)*CNST F2DI3620 SXX=GDSFH(l,I) *GDSFH(l,J) *CNST F2D13630 SYY=GDSFH(2,I)*GDSFH(2,J)*CNST F2D13640 IF(NEIGN.LE.l) THEN F2013650 ELM(I,J)=ELM(I,J) + CO*SOO+CX*SXX+CY*SYY F2D13660 ELSE F2D13670 SXY=GDSFH(l,I)*GDSFH(2,J)*CNST F2013680 SYX=GDSFH(2,I) *GDSFH(l,J) *CNST F2D13690
COMPUTER PROGRAM FEM2DV2
ELM(I,J)=ELM(I,J) + co*sxx + cx*SYY + CY*{SXY + SYX)
*
ENDIF EIWIF ELSE
C
Shear deformable plate
C
theory~
C
ELK(II+l,JJ+l)= ELK[II+l,JJ+l) + CMAT(1,1)*Sll+CMAT(3,3)*S22 ELK(II+1,JJ+2)= ELK{II+l,JJ+2) + CMAT{l,2) *S12+CMAT(3,3) *S21 ELK(II+2,JJ+l)= ELK(II+2,JJ+l) + CMAT(3,3)*S12+CMAT(l,2)*S21 ELK(II+2,JJ+2)= ELK(II+2,JJ+2) + CMAT(3,3)*S11+CMAT(2,2)*S22 * IF (ITEM. NE. 0) THEN IF(NEIGN.LE.l) THEN ELM(II,JJ) ELM(II,JJ) + CO*SOO ELM(II+l,JJ+l)= ELM(II+l,JJ+l) + CX*SOO ELM(II+2,JJ+2)= ELM(II+2,JJ+2) + CY*SOO ELSE ELM (II ,JJ) ELM(II,JJ)+CO*S11+CX*S22 +CY*(S12+S21) ENDIF ENDIF ENDIF ENDIF ENDIF ENDIF 160 JJ = NDF*J+l IF(NEIGN.EQ.O) THEN
*
* *
*
C C C
Source of the form fx
FO + FX*X + FY*Y is assumed
IF(ITYPE.LE.3) THEN L= (I-I) *NDF+1 ELF(L) ELF(L)+CNST*SF(I)*SQURCE ELSE ELF(I) = ELF(I)+CNST*SFH(I)*SOURCE ENDIF E!/DIF IBO II = NDF*I+l 200 CONTINUE C
IF(ITYPE,EQ.l .OR. ITYPE.EQ.3) THEN C C C
Use reduced integration to evaluate coefficients associated with penalty terms for flows and transverse shear terms for plates.
C
c
DO 2BO NI=l,IPDR DO 280 NJ=l,IPDR XI = GAUSPT(NI,1PDR) ETA = GAUSPT(NJ,IPDR) CALL SHPRCT (NPE,XI,ETA,DET,ELXY,NDF,ITYPE) CNST=DET*GAUSWT{N1,IPDR)*GAUSWT(NJ,1PDR) 11=1
DO 260 1=1,NPE
c C C
JJ = 1 DO 240 J=l,NPE S11=GDSF(l,I)*GDSF(l,J)*CNST S22=GDSF(2,I)*GDSF(2,J)*CNST S12=GDSF(1,I)*GDSF{2,J)*CNST S21=GDSF{2,I) *GDSF(l,J) *CNST IF(ITYPE.EQ.1) THEN viscous incompressible fluids (penalty terms) : ELK(II,JJ) ELK(II+1,JJ) ELK(II,JJ+l) ELK(II+l,JJ+l)= ELSE
C
ELK(II,JJ) ELK(II+l,JJ) ELK(II,JJ+1) ELK(II+l,JJ+1)
+ + + +
PENLTY*S11 PENLTY*S21 PENLTY*S12 PENLTY*S22
659
F2D13100 F2D13110 F2D13120 F2D13130 F2D13140 F2Dl3150 F2D13160 F2D13170 F2D13180 F2D13190 F2D13BOO F2D13BI0 F2D13B20 F2D13B30 F2D13B40 F2D13850 F2D13860 F2D13870 F2D138BO F2D13B90 F2D13900 F2D13910 F2D13920 F2D13930 F2D13940 F2D13950 F2D13960 F2D13970 F2013980 F2D13990 F2D14000 F2D14010 F2D14020 F2D14030 F2D14040 F2D14050 F2D14060 F2D14070 F2D14080 F2D14090 F2Dl4100 F2D14110 F2Dl4120 F2D14130 F2D14140 F2Dl4150 F2D14160 F2D14170 F2D141BO F2Dl4190 F2D14200 F2D14210 F2D14220 F2D14230 F2D14240 F2D14250 F2D14260 F2D14270 F2D142BO F2D14290 F2D14300 F2D14310 F2D14320 F2D14330 F2D14340 F2D14350 F2D14360
~F2D14370
F2D143BO F2D14390 F2D14400 F2D14410 F2D14420 F2D14430 F2D14440
660
APPENDICES
C C
Shear deformable plates (transverse shear terms): SOO=SF(I)*SF(J)*CNST S10 GDSF(l,I)*SF(J)*CNST SOl = SF(I)*GDSF(l,J)*CNST S20 = GDSF(2,I)*SF(J)*CNST S02 = SF(I)*GDSF(2,J)*CNST ELK(II,JJ) ELK(II,JJ) ELK(II,JJ+1) ELK(II,JJ+l) ELK(II+1,JJ) ELK(II+1,JJ) ELK(II,JJ+2) ELK(II,JJ+2) ELK(II+2,JJ) ELK(II+2,JJ) ELK(II+1,JJ+1)= ELK(II+I,JJ+1) ELK(II+2,JJ+2)= ELK(II+2,JJ+2) ENDIF
+ + + + + + +
C5S*SI1+C44*S22 C55*S10 C55*SOl C44*S20 C44*S02 CS5*SOO C44*SOO
240 JJ~NDF*J+1 260 II=NDF*I+l 280 CONTINUE ENDIF RETURN END
'-
SUBROUTINE ELKMFT (NCOmIT, NEIGU, lIPE, liN , ITYPE, ITEM) C C C C C C C
r
Element calculations based on linear and quadratic rectangular elements and isoparametric formulation are carried out for all classes problems of the book. Reduced integration is used on penalty terms of viscous flow and plate bending problems.
C
IMPLICIT REAL*8(A-H,O-Z) COMMON/STF/ELF(27),ELK{27,27),ELM(27,27) ,ELXY(9,2) ,ELU(2 7), 1 ELV(27),ELA{27),A1,A2,A3,A4,A5 COMMON/PST/A10,A1X,A1Y,A20,A2X,A2Y,AOO,CO,CX,CY,FO,FX,FY, 1 C44,C55,AMU,PENLTY,CMAT(3,3) COMMON/QUAD/ALI (7,5) ,AL2(7,S),AL3(7,5) ,ALWT(7,5) COMMOll/PlIT/IPDF,IPDR,NIPF,NIPR COMMON/SHP/SF(9),GOSF(2,9) COMMON/IO/IN,ITT C
NOF = NN/IIPE C
C C C
call subroutine QUADRaTure to compute arrays of integration points and weights for the given NIPF and IPDF CALL QUAORT (NIPF,IPDF)
C C C
Initialize the arrays DO 120 I = 1,NII IF(IIEIGN.EQ.O) THEN ELF(I) = 0.0 ENDIF DO 120 J = 1,lIt{ IF(ITEM.NE.O) THEN ELM(I,J)= 0.0 ENDIF 120 ELK(I,J)= 0.0
C C C
Do-loop on the numerical integration begins here DO 200 NI = l,NIPF AC1 = ALl(NI,IPDF) AC2 = AL2(NI,IPDF) AC3 = AL3(NI,IPDF) CALL SHPTRI(IIPE,ACI,AC2,AC3,DET,ELXY) CNST = 0.50DO*DET*ALWT(lII,IPOF) x=O.o Y=O.O DO 140 I=l,NPE X=X+ELXY(I,l)*SF(I) 140 Y=Y+ELXY(I,2)*SF(I)
F2D14450 F2D14460 F2D14470 F2D14480 F2D14490 F2D14500 F2D14510 F2D14520 F2D14530 F2D14540 F2D14550 F2014560 F2D14570 F2D14580 F2D14590 F2D14600 F2D14610 F2D14620 F2Dl4630 F2D14640 F2D14650 F2Dl4660 F2Dl4670 F2Dl4680 F2Dl4690 F2D14700 F2D14710 F2D14720 F2014730 F2Dl4740 F2014750 F2014760 F2014770 F2D14780 F2D14790 F2D14800 F2014810 F2D14820 F2D14830 F2D14840 F2D14850 F2D14860 F2D14870 F2D14880 F2D14890 F2Dl4900 F2D14910 F2D14920 F2D14930 F2D14940 F2D14950 F2Dl4960 F2Dl4970 F2D14980 F2D14990 F2D15000 F2D15010 F2D15020 F2D15030 F2D15040 F2Dl5050 F2D15060 F2D15070 F2D15080 F2D15090 F2D15100 F2D15110 F2Dl5120 F2Dl5130 F2D15140 F2D15150 F2D15160
COMPUTER PROGRAM FEM2DV2
C
I1"(NEIGN.EQ.O) THEN SOURCE=FO+FX*X+1"Y*Y ENOI1" I1"(ITEM.NE.O) THEN CT =CO+CX*X+CV*V E1IDIF IF(ITYPE.LE.O) THEN A11=A10+A1X*X+A1Y*Y A22=A20+A2X*X+A2Y*Y ENOI1" C
c c c
c c c c
II=l 00 180 I=l,NPE JJ=l 00 160 J=l,NPE SOO=SF(I)*SF(J)*CNST Sll=GOS1"(l,I)*GOSF(l,J)*CNST S22=GOS1"(2,I)*GOSF(2,J)*CNST S12=GOS1"(l,I)*GOSF(2,J)*CNST S21=GOS1"(2,I)*GOS1"(1,J)*CNST I1"(ITVPE.EQ.O) THEN Heat transfer and like problems (i.e. single DOl" problems): ELK(I,J) = ELK(I,J) + A11*Sll + A22*S22 + AOO*SOO I1"(ITEM.NE.O) THEN ELM(I,J) = ELM(I,J) + CT*SOO ENOIF ELSE I1"(ITVPE.EQ.1) THEN
661
1"2015170 1"2015180 1"2015190 1"2015200 1"2015210 1"2015220 1"2015230 1"2015240 1"2015250 1"2015260 1"2015270 1"2015280 1"2015290 1"2015300 1"2015310 1"2015320 1"2015330 1"2015340 1"2015350 1"2015360 1"2015370 1"2015380 1"2015390 ~:F2015400
1"2015410 1"2015420 1"2015430 1"2015440 1"2015450 1"2015460 1"2015470 1"2015480
Viscous incompressible fluidS:~~~~~~~~~~~,"-,,-,~~~~1"2015490 Compute coefficients associated with viscous terms (full integ.) 1"2015500 1"2015510 1"2015520 ELK(II,JJ) ELK(II,JJ) + AMU*(2.0*S11 + S22) 1"2015530 ELK(II+l,JJ) ELK(II+l,JJ) + AMU*S12 1"2015540 ELK(II,JJ+1) ELK(II,JJ+l) + AMU*S21 1"2015550 ELK(II+l,JJ+l)= ELK(II+l,JJ+l) + AMU*(Sll + 2.0*S22) 1"2015560 IF(ITEM.NE.O) THEN 1"2015570 ELM(II,JJ) ELM(II,JJ) + CT*SOO 1"2015580 ELM(II+l,JJ+l)= ELM(II+1,JJ+l) + CT*SOO ENDI1" F2015590 1"2015600 ELSE 1"2015610 c Plane elasticity problems: 1"2015620 c c 1"2015630 ELK(II,JJ) =ELK(II,JJ) +CMAT(l,l) *S11+CMAT(3,3) *S22 1"2015640 ELK(II,JJ+1) =ELK(II,JJ+1) +CMAT{l,2)*S12+CMAT(3,3)*S21 1"2015650 ELK(II+1,JJ) =ELK(II+1,JJ) +CMAT(l,2) *S21+CMAT(3,3) *S12 1"2015660 ELK(II+1,JJ+1)=ELK(II+1,JJ+l)+CMAT(3,3) *S11+CMAT(2,2) *S22 1"2015670 IF(ITEM.NE.O) THEN 1"2015680 1"2015690 ELM(II,JJ) = ELM(II,JJ) + CT*SOO 1"2015700 ELM(II+1,JJ+l)= ELM(II+l,JJ+1) + CT*SOO ENDIF 1"2015710 ENOI1" 1"2015720 ENOl1" 1"2015730 160 JJ = NOF*J+1 1"2015740 I1"(NEIGN.EQ.O) THEN F2015750 C 1"2015760 C Source of the form fx = 1"0 + FX*X + 1"V*V is assumed F2015770 C 1"2015780 L=(I-l)*N01"+l 1"2015790 EL1"(L) = ELF(L)+CNST*S1"(I)*SOURCE 1"2015800 ENOIF 1"2015810 180 II = N01"*I+l 1"2015820 200 CONTINUE 1"2015830 C 1"2015840 IF(ITVPE.EQ.1 .OR. ITVPE.EQ.3) THEN 1"2015850 c 1"2015860 C Use redUced integration to evaluate coefficients associated with 1"2015870 C penalty terms for flows and transverse shear terms for plates. 1"2015880 C 1"2015890 C Call subroutine QUADRaTure to compute arrays of integration 1"2015900 C points and weights for the given NIPR and IPOR 1"2015910
)
662
APPENDICES
C
CALL QUADRT (NIPR,IPDR) C
DO 280 NI=l,NIPR AC1 = AL1(NI,IPDR) AC2 = AL2(NI,IPDR) ACJ = ALJ (III, IPDR) CALL SHPTRI(NPE,AC1,AC2,ACJ,DET,ELXY) CNST = 0.50DO*DET*ALWT(NI,IPDR) C
II=l DO 260 I=l,NPE JJ = 1 DO ;!40 J=1,NPE S11=GDSF(1,I) *GDSF(l,J) *CNST S2;!=GDSF(2,I)*GDSF{2,J)*CNST Sl;!=GDSF(l,I) *GDSF{2,J) *CNST S21=GDSF(2,I)*GDSF{1,J)*CNST IF(ITYPE.EQ.1) THEN C
C C
7
ELK(II,JJ) ELK(II+1,JJ) ELK(II,JJ+1) ELK(II+1,JJ+l)=
ELK(II,JJ) ELK(II+l,JJ) ELK(II,JJ+l) ELK(II+l,JJ+l)
+ + + +
PENLTY*Sll PENLTY*S21 PENLTY*S12 PENLTY*S22
+ + + + + + +
C55*S11+C44*S22 C55*SlO C55*SOl C44*S20 C44*S02 C55*SOO C44*SOO
ELSE C C C
SOO=SF(I)*SF(J)*CNST S10 GDSF(l,I)*SF(J)*CNST SOl = SF(I)*GDSF(l,J)*CNST S20 = GDSF(2,Ij*SF(J)*CNST S02 = SF(I)*GDSF(2,J)*CNST ELK(II,JJ) ELK(II,JJ) ELK(II,JJ+1) ELK(II,JJ+1) ELK(II+1,JJ) ELK(II+1,JJ) ELK(II,JJ+2) ELK(II,JJ+2) ELK(II+2,JJ) ELK(II+2,JJ) ELK(II+1,JJ+1j= ELK(II+1,JJ+l) ELK(II+2,JJ+2j= ELK(II+2,JJ+2) ENDIF 240 JJ=NDF*J+1 260 II=NDF*I+l 230 CONTINUE ENDIF RETURN END
SUBROUTINE MSH2DG(NELEM,NNODE,NODES,MAXELM,MAXNOD,GLXY)
C C
C C C
C C
C C C C C
C
C C C
F2D16410 F2D16420 F2D16430 Generates nodal point coordinates for specified type meshes F2D16440 F2D16450 nOD1 First node number in the line segment F;!D16460 NODL Last node number in the line segment F2D16470 NODINC= Node increment from one node to the next along the line F2D16480 Xl,Yl Global coordinates of the first node on the line F2D16490 XL,YL Global coordinates of the last node on the line F2D16500 RATIO The ratio of the first element to the last element F2D16510 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ F2D16520 F2D16530 IMPLICIT REAL*8(A-H,O-Z) F2D16540 DIMENSION GLXY(MAXNOD,2) F2D16550 F2D16560 DO 10 I=I,NNODE F2D16570 .GLXY(I, 1)=1. E20 F2D16580 10 GLXY(I,2)=1.E20 F2D16590 F2D16600 Read number of the records (line segmments) and data in each line F2D16610 F2D16620 READ(5,*)NRECL F2D16630 DO 30 IREC=l,NRECL F2D16640
COMPlITER PROGRAM FEM2DV2
READ(5, *)NOD1-,NODL,NODINC, xi , YI, XL, YL,RATIO IF(NODL.LT.NODl) NODL = NODI IF(NODL.NE.NODlj THEN IF (1IODINC. LE. 0) ~ODINC = 1 IF(RATIO.LE.O.O) RATIO=I.O MODlF = (NODL-NOD11/NODI1jC XLl=XL-XI YLi='lL-Yl GLXY(NODI,I)=X1 GLXY (MODI,2) =Y1 ALNGTH=DSQRT(XLI*XLI+YL1*YLI) ALINC=(2.0*ALNGTH/NODlF)*RATIO/(FATIO+1.0) ALRAT=ALINC/RATIO IF(NODIF.NE.1) DEL=(ALINC-ALRAT)/(NODIF-I) IF(1I0DIr.EQ.1) DEL=O.O SUM=O.O 1=-1 DO 20 N=1,1I0DIF 1=1+1 SUM=SUM+ALINC-I*OEL NI=NODl+N*NODINC GLXY(NI,I)=XI+XLl*SUM/ALNGTH GLXY(NI,2)=YI+YLl*SUM/ALNGTH 20 CONTINUE ENDIF 30 CONTINUE CALL CNCTVT(lIELEM,NNODE,NODES,MAXELM,MA~lOO,GLXY) RETURN END
c c c c C C
C C C
F2Dl6650 F2D16660 F2D16670 F2D16680 F2D16690 F2D16700 F2D16710 F2D16720 F2D16730 F2D16740 F2Dl6750 F2D16760 F2Dl6770 F2Dl6780 F2D16790 F2D16800 F2D16810 F2D16820 F2D16830 F2D16840 F2Dl6850 F2Dl6860 F2D16870 F2D16880 F2Dl6890 F2Dl6900 F2D16910 F2D16920 F2Dl6930
-sbBROUTINE MSH2DR(IEL,IELTYP,NX,NY,IlPE,NNM,NEM,NOD,DX,DY,XO,YO, 1 GLXY , MAXllEM, MAXNNM, MAXNX, MAXNY) The sUbroutine generates arrays (NOD] and (GLXY] for rectangular domains. The domain is divided into NX subdivisions along the x-directLon and NY subdivisions in the y-direction. The subdivisions-define rectangular elements of the type required. For a triangular element mesh, the subdivision defines two linear elements with their common diagonal being inclined to the right.
C
IMPLICIT REAL*8 (A-H,O-Z) DIMENSIOll 1I0D(MAXllEM,9) ,GLXY(MAXNllM,2) ,DX(MAXNX) ,DY(MAXN'l) COMMON/IO/Ill,ITT C
c c C C C
c
NEXI lIX+1 NE'll NY+1 NXX IEL*NX N'lY IEL*NY NXXI NXX + 1 NYYl NYY + 1 NEM llX*NY IF(IELTYP.EQ.O)NEM=2*NX*NY NNM=NXXl*NYY1 IF(lIPE.EQ.8)NNM = NXXl*NYYI - NX*N'l IF(IELTYP.EQ.O) THEN Generate the array (NOD] : TRIANGULAR ELEMENTS NX2=2*NX NY2=2*NY NOD(I,l) = 1 NOD(1,2) = IEL+l NOD(1,3) = IEL*NXX1+IEL+1 IF(NPE .GT. 3) THEN NOO(1,4) 2 NOD(1,5) llXXl + 3 NOD{1,6) NXXI + 2 ENDIF NOD{2,l)
1
~~
663
~
F2D16940 F2D16950 F2D16960 F2D16910 F2D16980 F2D16990 F2D17000 F2D17010 F2D17020 F2Dl7030 F2D17040 F2Dl7050 F2D17060 F2D17070 F2D17080 F2D17090 F2Dl7100 F2D17110 F2Dl7120 F2Dl7130 F2Dl7140 F2D17150 F2Dl7160 F2D17170 F2D17180 F2Dl7190 F2DI7200 F2D17210 F2DI7220 F2Dl7230 F2DI7240 F2DI7250 F2D11260 F2Dl7210 F2Dl7280 F2Dl7290 F2D17300 F2D17310 F2D17320 F2Dl1330 F2Dl7340 F2D17350 F2DI1360 F.2D17370
664
APPENDICES
NOD(2,2) = NOD(1,3) NOD(2,3) = lEL*NXX1+l IF(NPE .GT. 3) THEN NOD(2,4) NOD(l,6) NOD(2,5) NOD(1,3) - 1 NOD(2,6) NOD(2,4) - 1 ENDIF C
20 30
40 50
K=3 00 60 IY=l,NY L=IY*NX2 M=(IY-l)*NX2 IF(NX.GT,l) THEN DO 30 N=K,L,2 DO 20 I=l,NPE NOD(N,I) NOD(N-2,I)+IEL NOD(N+l,I)= NOD(N-l,I)+IEL COllTINUE ENDIF IF(IY.LT.NY) THEN DO 40 I=l,lIPE NOD(L+l,I)=NOD(M+l,I)+IEL*NXXl NOD(L+2,I)=NOD(M+2,I)+IEL*NXXl ENDIF K=L+3 ELSE
C
C
RECTANGULAR ELEMElITS
C
KO = 0 IF (NPE .EQ. 9) KO=l
C
NOD(l,l) = 1 NOD(1,2) = IEL+l lIOD(1,3) = NXX1+(IEL-l~*NEX1+IEL+l IF(NPE .EQ. 9) NOD(l,3)=4*NX+5 NOD(1,4) = lIOD(l,3) - IEL IF(NPE .GT. 4) THEN NOD(1,5) 2 NOD(l,6) = NXXl + (lIPE-6) NOD(l,7) = NOD(1,3) - 1 NOD(l,S) = IIXX1+1 IF(NPE .EQ. 9) THEN NOD(1,9)=NXX1+2 ENDIF ENDIF C
100 110
c
120
130 140
IF(NY .GT. 1) THEN M=1 00 110 N = 2,NY L = (N-l)*NX + 1 DO 100 I l,lIPE NOD(L,I) = lIOD(M,I)+NXX1+(IEL-l)*NEX1+KO*lIX M=L ENDIF IF(NX .GT ,1) THEN DO 140 NI 2,NX DO 120 I l,lIPE Kl = IEL IF(I .EQ. 6 .OR. I .EQ. 8)Kl=1+KO NDD(RI,I) NOD(NI-l,I)+Kl M = NI DO 140 NJ 2,NY L = (NJ-l)*NX+NI DO 130 J 1,NPE NOD{L,J) = NOD(M,J)+NXX1+(IEL-l)*NEX1+KO*NX M= L ENDIF ENDIF
C C C
Generate the global coordinates of the nodes, (GLXY}: DX(NEX1)=0.0 DY(NEYl)=O.O
/
F2D17380 F2D17390 F2D1HOO F2D17HO F2Dl7420 F2D17430 F2D17HO F2Dl7450 F2D17460 F2D1747 0 F2Dl7480 F2D17490 F2D17500 F2D175l0 F2D17520 F2D17530 F2Dl7540 F2D17550 F2D17560 F2D17570 F2DIJ.;;80 F2D17590 F2D17600 F2D176l0 F2D17620 F2Dl7630 F2D17640 F2D17650 F2D17660 F2Dl7670 F2D17680 F2D17590 F2D17700 F2D17710 F2D17720 F2D17730 F2D17740 F2D17750 F2Dl7760 F2D17770 F2D17780 F2D17790 F2D17800 F2D17810 F2D17820 F2D17830 F2D17840 F2D17850 F2D17860 F2Dl7870 F2D17880 F2D17890 F2Dl7900 F2D17910 F2D17920 F2D17930 F2D17940 F2D17950 F2D17960 F2D17970 F2D17980 F2D17990 F2D18000 F2D18010 F2D18020 F2D18030 F2D18040 F2D18050 F2D18060 F2D1S070 F2D1S080 F2Dl8090 F2D18l00 F2D18110 F2D1Sl20
COMPlITER PROGRAM FEM2DV2
XC=XO YC=YO IF(NPE .EQ. 8) THEN DO 180 NI = 1, NEYI I = (NXX1+NEX1)*~NI-1)+1 J ;. 2*N1-1 GLXY(I,l) = XC GLX'l(I,2) = YC DO 150 NJ = 1,NX DELX=0.5*DX(NJ) 1=1+1 GLXY(l,l) GLXY(I-1,1)+DELX GLXY(I,2) YC 1=1+1 GLX'l(1,1) GLXY(1-1,1)+DELX GLXY(I,2) YC lS0 CONTINUE IF(NI.LE.NY) THEN I = 1+1 YC= YC+0.S*DY(N1) GLXY(l,l) XC GLX'l(I,2) YC 1, NX DO 160 II I = 1+1 GLXY(1,1) GLXY(I-1,1)+DX(II) 160 GLXY(1,2) YC END1F YC = YC+0.5*DY(NI) C 180) ELSE YC=YO
= 1, NEYI XC = XO I = NXX1*IEL*(NI-1) DO 190 NJ 1, NEX1 1=1+1 GLXY(1,1) = XC GLXY(I,2) = YC IF(NJ.LT.NEXl) THEN IF(IEL.EQ.2) THEN 1=1+1 XC = XC + O.5*DX(NJ) XC GLX'l(I,l) GLXY(I,2) = YC ENDrF ENDIF 190 XC = XC + DX(NJ)j1EL XC = XO IF{IEL.EQ.2) THEN YC = YC + O.S*DY(NI) DO 195 NJ 1, NEXI 1=1+1 GLXY(I,l) = XC GLXY(1,2) = YC 1F(NJ.LT.NEXl) THEN 1=1+1 XC = XC + 0.5*DX{NJ) GLXY(I,l) = XC GLXY(I,2) = YC ENDlF 195 XC = XC + 0.5*DX(NJ) ENDIF 200 YC = YC + DY(NI)/IEL ENDIF DO 200 NI
RETURN
END
c c C C C C
*
SUBROUTINE PSTPRC(ELXY,ITYPE,IELT'lP,IGRAD,NDF,NPE,THKNS,ELU, ISTR,NSTR)
Computes the derivatives of the solution for heat transfer like problems and stresses for fluid flow, plane elasticity and plate bending problems.
665
F2D18130 F2D18140 F2D18150 F2D18160 F2D18170 F2D18180 F2D18190 F2D18200 F2D18210 F2D18220 F2D18230 F2D18240 F2D18250 F2D18260 F2D18270 F2D18280 F2D18290 F2D18300 F2D18310 F2D18320 F2D18330 F2D18340 F2D18350 F2D18360 F2018370 F2D18380 F2018390 F2018400 F2D18410 F2D18420 F2018430 F2D18440 F2D18450 F2D18460 F2D18470 F2D18480 F2D18490 F2D18500 F2D18510 F2D18520 F2D18530 F2D18540 F2D18550 F2D18560 F2D18570 F2D18580 F2D18590 F2D18600 F2D18610 F2D18620 F2D18630 F2D18640 F2D18650 F2D18660 F2D18670 F2D18680 F2D18690 F2D18700 F2D18710 F2D18720 F2D18730 F2D18740 F2D18750 F2D18760 F2D18770 F2D18780 F2D18790 F2D18800 F2D18810 F2D18820 F2D18830 F2D18840 F2D18850 F2D18860
666 C
C
C
C C C C C
C C C C
APPENDICES
FlD18870 IMPLICIT REAL*!! (A-H,O-Z) FlD18880 DIHEHSION X(3),Y(3),GAHA(3),BETA(3),ELXY(9,l),ELU(27),GAUSPT(4,4)FlD18890 COMMOll/PST/A10,A1X,A1Y,A20,AlX,AlY,AOO,CO,CX,CY,FO,FX,FY, FlD18900 1 C44,C55,AMU,PElILTY,CMAT(3,3) FlD18910 COMMOll/SHP/SF(9) ,GOSF(2,9) ,SFH(16),GDSFH{l,16) ,GDDSFH(3 ,16) F2D18920 COHMON/QUAO/AL1(7,5),ALl(7,5),AL3(7,5),ALWT(7,5) Fl018930 COMMOll/IO/IN, ITT Fl018940 Fl018950 DATA GAUSPT/4*0.000, -0.577350l700, 0.577350l700, l*O.OOO, Fl018960 l -0.7745966700, 0.000, 0.7745966700, 0.000, -0.86113631DO, Fl018970 3 -0.3399810400, 0.3399810400, 0.8611363100/ Fl018980 Fl018990 PI=4. 000*OATAll(1. 000) Fl019000 CONST=180.000/PI FlOl90l0 IF(IELTYP.EQ.O) THEN Fl0190l0 Fl019030 computation of the gradient/stresses at the reduced-integration FlOl9040 points of TRIANGULAR ELEMENTS: Fl019050 FlDl9060 CALL QUADRT (llSTR,ISTR) FlOl~070 I' FlD19080 DO 40 lII=1,NSTR Fl019090 ACl = AL1(lII,ISTR) FlDl9l00 ACl = ALl(lII,ISTR) FlOl9110 AC3 = AL3(NI,ISTR) FlOl91l0 CALL SHPTRI(NPE,AC1,ACl,AC3,DET,ELXY) FlD19130 XC 0.0 FlOl9140 YC 0.0 FlOl9150 DO 10 I=l,NPE FlDl9160 XC = XC+SF(I)*ELXY(I,1) FlDl9170 10 YC = YC+SF(I)*ELXY(I,l) FlD19180 IF(ITYPE.LT.3) THEN F2Dl9190 UX 0.0 F2Dl9200 UY 0.0 F2019ll0 VX = 0.0 F2019220 VY = 0.0 FlD19l30 DO lO I=l,NPE FlD19240 J=NDF*I-l F2D19250 IF(ITYPE.EQ.O)J=I Fl019260 UX = OX + ELU(J)*GDSF(1,I) FlDl9270 UY = UY + ELU(J)*GDSF(2,I) F2019280 IF(ITYPE.GE.1) THEN F2019290 K=J+l F2Dl9300 VX VX + ELU(K)*GOSF(1,I) F2D193l0 VY VY + ELU(K)*GDSF(2,I) F20l9320 ElIDIF F2019330 20 CONTINUE F20l9340 F2Dl9350 IF(ITYPE.EQ.O) THEN F2019360 F2Dl9370 Single-degree-of-freedom problems:--------------------------------F2Dl9380 F2019390 SX = -(AlO+AlX*XC+A1Y*YC)*UX FlDl9400 SY = -(AlO+AlX*XC+AlY*YC)*UY F2019410 VALUE= DSQRT(SX**2+SY**l) F2019420 IF(IGRAO.EQ.1) THEN F2D19430 QX=SX F2D19440 QY=SY F2D19450 ELSE F2D19460 QX=-SY F2D19470 QY= SX Fl019480 EllDIF F2019490 IF{QX.EQ,O.O) THEN F2019500 IF(QY.LT.O.O) THEN F2D19510 ANGLE =-90.0 F2D19520 ELSE F2D19530 ANGLE = 90.0 F2019540 EHDIF FlD19550 ELSE F2D19560 ANGLE=OATAN2 (QY,QX) *CONST F2019570 E1IDIF F2019580 WRITE(ITT,lOO) XC,YC,QX,QY,VALUE,ANGLE F2D19590 ELSE F2019600
COMPlITER PROGRAM FEM2DV2
C
IF(IT'fPE.EQ.l) THEN C C C
PRESSR -PENLT'f*(UX+VY) ,STRESX ~ 2.0*AMU*UX-PRESSR STRESY ~ 2.0*AMU*VY-PRESSR STRSXY ~ AMU*(UY+VX) WRITE(ITT,300) XC,YC,STRESX,STRESY,STRSXY,PRESSR ELSE C C C
STRESX = (CMAT(1,1)*UX+CMAT(l,2)*VY)/TH~(S STRESY = (CMAT(1,2)*UX+CMAT(2,2)*VY)jTHKNS STRSXY = CMAT(3,3)*(UY+VXl/THKllS WRITE (ITT, 300) XC,YC,STRESX,STRESY,STRSXY ENDIF ENOIF ENDIF CONTINUE
40
ELSE C
C C C
DO 100 NI=l,ISTR DO 100 NJ=l,ISTR XI = GAUSPT(NI,ISTR) ETA = GAUSPT(NJ,ISTR) CALL SHPRCT (NPE,XI,ETA,OET,ELXY,NDF,ITYPE) XC 0.0 YC 0.0 DO 50 I=l,NPE XC = XC+SF(I)*ELX'f(I,l) YC = YC+SF(I)*ELXY(I,2) 50 IF(ITYPE.LT.3) THEN 0.0 UX UY 0.0 VX 0.0 VY 0.0 DO 60 l=l,NPE J=NDF*I-l IF(ITYPE.EQ.O)J=I UX = UX + ELU(J)*GDSF(l,I) UY = UY + ELU(J)*GDSF(2,I) IF(IT'fPE.GE.l) THEN K=J+l VX VX + ELU(K)*GDSF(l,I) VY = Vy + ELU(K)*GDSF(2,I) E1fDIF 60 CONTINUE C
IF (IT'fPE. EQ. 0)
THEN
C C C
= -(AI0+AlX*XC+AlY*YC)*UX = -(A20+A2X*XC+A2Y*YC)*UY VALUE~ DSQRT(SX**2+SY**2) IF(IGRAD.EQ.l) THEN SX SY
QX~SX
QY=SY ELSE QX=-SY. QY= SX ENDIF IF(QX.EQ.O.O) THEN IF(QY.LT.O.O) THEN ANGLE =-90.0 ELSE ANGLE = 90.0 ENDIF
667
668
APPENDICES
ELSE
F2020350 F2020360 F2020370 F2020380 F2020390 F2020400 IF(ITYPE.EQ.1} THEN F2020410 F2020420 viscous incompressible flows (penalty model}:---------------------F2020430 F2020440 PRESSR -PENLTY*(UX+VY) F2020450 STRESX ~ 2.0*AMU*UX-PRESSR F2020460 STRESY ~ 2.0*AMU*VY-PRESSR F2020470 STRSXY ~ AMU*(UY+VX} F2020480 WRITE(ITT,300) XC,YC,STRESX,STRESY,STRSXY,PRESSR F2020490 ELSE F2020500 F2020510 Plane elasticity problems:----------------------------------------F2020520 F2020530 STRESX ~ (CMAT(l,l)*UX+CMAT(l,2)*VY}/THKNS F2020540 STRESY ~ (CMAT(l,2)*UX+CMAT(2,2}*VY}/THKNS F2020550 STRSXY ~ CMAT(3,3)*{UY+VX)/THKllS / F2020560 WRITE{ITT,300) XC,YC,STRESX,STRESY,STRSXY F2020570 ENOIF F2020580 ENOIF F2020590 ELSE F2020600 F2020610 Plate bending problems:-------------------------------------------F2020620 stresses SGMAX, SGMAY and SGMXY are computed at the top/bottom of F2020630 the plate (and SGMXZ and SGMYZ are constant through thickness) F2020640 F2020650 PLTO~(THKNS*THKNS)/6.000 F2020660 SIX 0.0 F2020670 SlY 0.0 F2020680 OWX 0.0 F2020690 OWY = 0.0 F2020700 OSXY 0.0 F2020710 DSYX 0.0 F2020720 DSXX 0.0 F2020730 DSYY 0.0 F2020740 IF(ITYPE.EQ.3) THEN F2020750 F2020760 First-order shear deformation theory of plates:-------------------F2020770 F2020780 DO 80 I=l,NPE F2020790 J~NOF*(I-ll+1 F2020800 K=J+1 F2020810 I?K+1 F2020820 OWX DWX+GOSF(l,I)*ELU(J) F2020830 OWY DWY+GOSF(2,I)*ELU(J) F2020840 SIX SIX+SF(I)*ELU(K) F2020850 SlY SIY+SF(I}*ELU(L) F2020860 OSXX DSXX+GOSF(l,I}*ELU(K) F2020870 OSXY OSXY+GOSF(2,I)*ELli(K) F2020880 OSYX OSYX+GOSF(l,I)*ELli(Ll F2020890 80 OSYY OSYY+GOSF(2,I)*ELli(L) F2020900 SGMAX (CMAT(l,l)*OSXX+CMAT(1,2)*OSYY)/PLTO F2020910 SGMAY (CMAT(l,2)*OSXX+CMAT(2,2)*OSYY)/PLTO F2020920 SGMXY CMAT(3,3)*(OSXY+OSYXl/PLTO F2020930 SGMXZ 1.2*C55*(OWX+SIXl/THKNS F2020940 SGMYZ 1.2*C44*(OWY+SIYl/THKNS F2020950 WRITE(ITT,300) XC,YC,SGMAX,SGMAY,SGMXY F2020960 WRITE(ITT,400) SGMXZ,SGMYZ F2020970 ELSE F2020980 F2020990 Classical theory of plates:---------------------------------------F2D21000 F2021010 NN=llPE*NOF F2D21020 DO 90 I=1,NN F2021030 OSXX OSXX+GDOSFH(l,I)*ELU(I) F2D21040 OSYY = DSYY+GDDSFH(2,I)*ELU(I) F2021050 90 OSXY = OSXY+GDDSFH(3,I)*ELU(I} F2D21060 F2021070 SGMAX =-(CMAT(1,1)*OSXX+CMAT(1,2)*OSYYl/PLTO F2021080 SGMAY =-(CMAT(l,2)*OSXX+CMAT(2,2)*OSYY)/PLTD F2021090 AllGLE~OATAN2(QY,QX}*CONST
ENOIF WRITE(ITT,200} XC,YC,QX,QY,VALUE,ANGLE ELSE
C C C C
C C C
C C C C C
C C C
C C C
C
COMPUTER PROGRAM FEM2DV2
SGMX~ ~-4.0*CMAT(3,3)*DSXY/PLTD
100 200 300 400
WRITE (ITT, 300) XC,YC,SGMAX,SGMAY,SGMXY ENDIF ElfDIF CONTINUE ENDIF FORMAT(5E13.4,3X,F7.2) FORMAT(6E13.4) FORMAT(26X,2E13.4) RETURN
END
c c c c c C
C
C C C
c c c
c
c c
c C C
SUBROUTINE QUADRT(NIP,IPD)
669
F2D21100 F2D21110 F2D21120 F2D21130 F2D21140 F2D21150 F2D21160 F2D21170 F2D21180 F2D21190 F2D21200
F2D21210 F2D21220 F2D21230 ,Quadrature points and weights for triangular elements F2D21240 IPD = Integrand polynomial Degree F2D21250 NIP ~ Number of Integration Points F2D21260 ) F202l270 F2D21280 IMPLICIT'REAL*8(A-H,O-Z) F2021290 COMMON/QUAD/AL1(7,5),AL2(7,5},AL3(7,5),ALWT(7,5) F2021300 F2D21310 Initialize arrays F2D21320 F2D21330 DO 20 I = 1, NIP F2D21340 DO 10 J = 1, IPD F2D21350 AL1(I,J) 0.000000000000000 F2D21360 AL2(I,J) 0.000000000000000 F2021370 0.000000000000000 AL3(I,J) F2D21380 0.000000000000000 F2D21390 ALWT(I,J) F2D21400 10 CONTINUE 20 CONTINUE F2D214l0 F2D21420 one-point quadrature (for polynomials of order l}:~~~~~~~__F2D21430 F2D21440 0.333333333333333 F2D21450 ALI (1, 1) 0.333333333333333 F2D21460 AL2 (1,1) 0.333333333333333 AL3 (1,1) F2D21470 ALWT (1, 1) 1.000000000000000 F2D21460 F2D21490 Three-point quadrature (for polynomials of order 2): ~.F2D21500 F2D21510 0.000000000000000 AL1(1,2) F2D21520 AL2(1,2) F2D21530 0.500000000000000 AL3 (1,2) 0.500000000000000 F2D21540 0.500000000000000 AL1(2,2) F2D21550 0.000000000000000 F2D21560 AL2{2(2) 0.500000000000000 F2D21570 AL3 (2,2) 0.500000000000000 F2D21580 ALl{3(2) 0.500000000000000 F2D21590 AL2 (3, 2) 0.000000000000000 F2D21600 AL3 (3, 2) 0.333333333333333 F2D21610 ALWT(1,2) F2D21620 ALWT(2,2) 0.333333333333333 F2D21630 0.333333333333333 ALWT(3,2) F2D21640 Four-point quadrature (for polynomials of order 3}: __ ~__~~ ~F2D21650 F2D21660 F2D21670 0.333333333333333 ALl(l,3) F2D21680 0.333333333333333 AL2(!,3) F2D21690 0.333333333333333 AL3(l,3) 0.600000000000000 F2D21700 AL1(2,3) 0.200000000000000 F2D21710 AL2(2,3) F2D21720 0.200000000000000 AL3(2,3) F2D21730 0.200000000000000 AL1(3,3) 0.600000000000000 F2D21740 AL2 (3,3) 0.200000000000000 F2D21750 AL3 (3,3) 0.200000000000000 F2D21760 ALI (4,3) 0.200000000000000 AL2(4,3) F2D2l770 0.600000000000000 AL3 (4,3) F2D21780 F2D21790 -0.562500000000000 ALWT(l,3) 0.520833333333333 ALWT(2,3) F2D21800 0.520833333333333 F2D2l810 ALWT(3,3) 0.520833333333333 F2D21820 ALWT(4,3)
670
APPENDICES
c c c
F2D2~830
six-point quadrature (for polynomials of order
ALWT(~,4)
c
c
ALWT(2,4) ALWTp,4) ALWT(4,4) ALWT(5, 4) ALWT(6,4)
0.816847572980459 0.091576213509771 0.091576213509771 0.091576213509771 0.816847572980459 0.091576213509771 0.091576213509771 0.091576213509771 0.816847572980459 0.108103018168070
F2D2~860 F2D2~870 F2D2~880 F2D2~890
F2D2HOO F2D2~9~0 F2D2~920
F2D21930 F2D21940 F2D2~950
0.4459484909~5965
F2D2~960
0.4459484909~5965
F2D2~970
0.4459484909~5965
F2D21980
0.1081030~8~68070
F2D2~990
0.445948490915965
F2D22000
0.4459484909~5965
F2D220~0
0.445948490915965 0.108103018168070 0.109951743655322 0.109951743655322 0.109951743655322 0.223381589678011 0.223381589678011 0.223381589678011
F2D22020 F2D22o-30 F2D22040 F2D22050 F2Dn060 F2D22070 F2D220BO F2D22090
/
F2D22~00
seven-point quadrature (for polynomials of order 5):
F2D22~~0 F2D22~20
AL1(1,5) AL2 (1,5)
F2D22130
AL3(~,5) AL~(2,5)
c
F2D21840 F2D2~850
ALl(1,4) AL2 (1,4) AL3 (1, 4) AL1(2,4) AL2(2,4) AL3(2,4) AL1{3,4) AL2(3,4) AL3(3,4) AL1(4,4) AL2(4,4) AL3(4,4) AL1(5,4) AL2(5,4) AL3(5,4) AL1(6,4) AL2 (6, 4) AL3 (6, 4)
c
4)~
AL2(2,5) AL3(2,5) AL1(3,5) AL2(3,5) AL3 (3, 5) AL1{4,5) AL2 (4, 5) AL3(4,5) AL1{5,5) AL2{5,5) ALl{5,5) AL1(6,5) AL2(6,5) AL3(6,5) ALl (7 ,5) AL2 (7,5) AL3 (7,5) ALWT(1,5) ALWT(2,5) ALWT{J,5) ALWT(4,5) ALWT(5,5) ALWT{6,5) ALWT{7,5)
0.333333333333333 0.333333333333333 0.333333333333333 0.797426985353087 0.101286507323456 0.101286507323456 0.101286507323456 0.797426985353087 0.101286507323456 0.101286507323456 0.101286507323456 0.797426985353087 0.059715871789770 0.470142064105115 0.470142064105115 0.470142064105115 0.059715871789770 0.470142064105115 0.470142064105115 0.470~420641051~5
0.059715871789770 0.225000000000000 0.125939180544827 0.125939180544827 0.125939180544827 0.~32394152788506
0.132394152788506 0.132394152788506
RETURN END
c c c c c c c
c
c c c c
SUBROUTINE SHPRCT(NPE,XI,ETA,DET,ELXY,NDF,ITYPE) The subroutine evaluates the interpolation functions (SF(l» and their derivatives with respect to global coordinates (GDSF(I,J» for Lagrange linear & quadratic rectangular elements, using the igoparametric formulation. The subroutine also evaluates Hermite interpolation functions and their global derivatives using the sUbparametric formulation. SF(l) •••••••• Interpolation function for node I of the element OSF(J,I) ••••• Derivative of SF(I) with respect to XI if J=1 and and ETA i f J=2
F2D22~40
F2D22~50
F2D22160 F2D22170 F2D22180 F2D22190 F2D22200 F2D22210 F2D22220 F2D22230 F2D22240 F2D22250 F2D22260 F2D22270 F2D22280 F2D22290 F2D22300 F2D22310 F2D22320 F2D22330 F2D22340 F2D22350 F2D22360 F2D22370 F2D22380 F2D22390 F2D22400 F2D22410 F2D22420 F2022430 F2D22440 F2D22450 F2D22460 F2D22470 F2D22480 F2D22490 F2D22500 F2D22510 F2D22520 F2D22530 F2D22540 F2D22550 F2D22560
COMPUTER PROGRAM FEM20V2
C C C C C C C C
C
C C C
C C C
C C
C
GpSF(J,l} •.•• Derivative of 81'(1) with respect to X if J=l and and Y if J=2 XNOOE(I,J) .•• J-TH (J=1,2J Coordinate of node 1 of the element N1'(l) ••••.••. Array of element nodes (used to define SF and OSF) GJ(I,J) ••..•• Jacobian matrix GJINV(I,J) ..• Inverse of the jacobian matrix
671
1'2022570 1'2022580 1'2022590 1'2012600 1'2022610 1'2022620 1'2022630 1'2022640 28 1'2022650 IMPLICIT REAL (A-H,O-Z) DIMENSION ELXY(9,2),XNOOE(9,2J,Np(9),OSF(2,9},GJ(2,2),GJINV(2,2) 1'2022660 1'2022670 DIME1l8IOll GGJ(3,3} ,GGINV(3,3) ,OOSJ(3,16) ,00SF(3,4) ,OJCB(3,2), 1'2022680 2 OSFH(3,16) ,00SFH(3,16) 1'2022690 COMMOll/SHp/SF(9} ,GOSF(2,9) ,8FH(16} ,GOSFH{2,16},GOOSFH(3,16) 1'2022700 COMMON/IO/Ill,ITT DATA XNOOE/-1.000, 2 21.000, -1.000, 0.000, 1.000, 0.000, -1.000, 1'2022710 2 0.000, 22-1.000, 221.000, -1.000, 0.000, 1.000, 2*0.000/ 1'2022720 1'2022730 ·OATA Np/1,2,3,4,5,7,6,8,9/ 1'2022740 1'2022750 FNC(A,B) = A2B 1'2022760 IF(llpE.EQ.4) THEll 1'2022770 1'2022780 LI~ Lagrange interpolation functions for FOUR-NODE element 1'2022790 1'2022800 DO 10 I = 1, llpE 1'2022810 Xl' = XNODE(I,l) 1'2022820 Yp = XNOOE(I,2) F2022830 XIO = 1.0+XI2XP 1'2022840 ETAO=1.0+ETA2Yp 1'2022850 SF(I) 0.25*FNC(XIO,ETAO) 1'2022860 OS1'(l,I)= 0.25*FNC(Xp,ETAO} F2022870 10 OS1'(2,1)= O.25*1'NC(yp,XIO} F20228S0 ELSE 1'2022890 I1'(llpE.EQ.S) THEN 1'2022900 QUADRATIC Lagrange interpolation functions for EIGHT-NODE element 1'2022910 1'2022920 1'2022930 DO 20 I = I, NpE F2022940 WI NP(I) 1'2022950 Xl' XNOOE(NI,l} 1'2022960 YP XlIOOE(llI,2) 1'2022970 no 1.0+Xl*XP F2022980 ETAO 1.0+E'l'A*Yp XII 1.0-X12XI 1'2022990 F2023000 ETA1 1.0-ETA2ETA 1'2023010 IF (1. LE . 4) THEN 1'2023020 SF(NI) 0.25*1'NC(XIO,ETAOJ*(XI*Xp+ETA*yp-1.O} OS1'(l,lII) = 0.25*FNC(ETAO,Xp)*(2.0*XI*XP+E'l'A2Yp} F2023030 OSF(2,Nl} = 0.25*FNC(XIO,Yp) * (2,O*ETA*yp+XI*Xp) F2D23040 ELSE 1'2023050 1'2023060 11'(1.LE.6} THEN F2023070 SF (rlI) 0.5*FNC(XlI,ETAO} DSF(l,NI) -1'NC(XI,ETAO) 1'2023080 1'2023090 DSF(2,NI) O.5*FNC(yp,Xll) F2023100 ELSE 1'2023110 SF(llIJ O.5*1'NC{ETAl,XIO) 1'2023120 OSF(l,NI} 0,. 5*1'NC (Xl', ETA1) 1'2023130 OSF(2,NI} -1'NC(ETA,XIO} 1'2023140 ENOIF ElIOIF 1'2023150 1'2023160 20 CONTINUE 1'2023170 ELSE 1'2023180 QUADRATIC Lagrange interpolation functions for NINE-lIODE element F2023190 1'2023200 DO 30 I=1,NpE F2023210 F2023220 NI NP(I) F2023230 Xl' XNOOE(NI,l) yp XNOOE(NI,2) 1'2023240 XIO 1. O+XI*XP F2023250 ETAO 1.0+ETA*YP F2023260 XlI 1. O-XI*Xr 1'2023270 1'2023280 ETAI 1.0-ETA*ETA XI2 Xp2XI 1'2D23290 £TA2 yp*ETA F2023300 F202J310 11'(1 .LE. 4) THEN
672
APPENDICES
SF(NI) 0.25*FNC(XIO,ETAO)*XI2*ETA2 OSF(l,NI)= 0.2S*XP*FNC(ETA2,ETAO)*(1.0+2.0*XI2) OSF(2,NI)= 0.2S*YP*FNC(XI2,XIO)*(1.0+2.0*ETA2} ELSE 11"(1 .LE. 6) THEN SF(NI) O. S*FNC(Xl1,ETAO) *ETA2 OSF(l,NI) = -XI*FNC(ETA2,ETAO) OS1'(2,NI) 0.S*FNC(XIl,YP)*(1.0+2.0*ETA2) ELSE 11'(1 .LB. S) THEN SF(N1) O. 5*FllC(ETA1,XIO) *XI2 OSF(2,11I) -ETA*FNC(XI2,XIO) OSP( 1,llI) O. 5*FNC(ETA1, XP) * (1. 0+2. 0*XI2) ELSE SF(llI) FNC(XIl,ETA1) -2.0*XI*ETAl OSF(l,llI) OSF(2,NI) -2.0*ETA*X11 ENOIF ENOIF
=
30 C C C
ENOIF CONTINUE ENOIF ENOIF compute the Jacobian matrix [GJ] and its inverse [GJIllV1
DO 40 I DO 40 J GJ(I,J) DO 40 K 40 GJ (I ,J)
=
1,2
= 1,2
0.0 1,IIPE = GJ(I,J} + OSF(1,K)*ELXY(K,J) =
=
C
DET = GJ(1,1)*GJ(2,2)-GJ(1,2)*GJ(2,l) GJIllV(l,l) GJ(2,2)jOET GJINV(2,2) GJ(l,l)jOET GJIllV(1,2) = -GJ(1,2)fDET GJINV(2,1) = -GJ(2,1)fOET C
IF(ITYPE.LE.3) THEil C C C C
compute the derivatives of the interpolation functions with respect to the global coordinates (x,y): [GOSF] 1,2 I,NPE GOSF(I,J) = 0.0 W 50 K = 1, 2 GOSF(I,J) = GOSF(I,J) + GJIllV(I,K)*OSF(K,J) W
50 I
W 50 J
50 ELSE C C
Conforming Hermite interpolation functions (four-node· element)
C
IF(NOF.EQ.4) THEil II = 1 DO 60 I = 1, NPE XNOOE(1,l) XP YP XNOOE(1,2) XII XI*XP-I.O XI2 XII-I. 0 ETA*YP-l.O ETA1 ETA2 ETAI-I. 0 XIO (XI+XP) **2 ETAO (ETA+YP) **2 XIPO XI+XP XIP1 3.0*XI*XP+XP*XP XIP2 3.0*XI*XP+2.0*XP*XP YIPO ETA+'lP 'lIPl 3.0*ETA*Yp+'lp*yP 'lIP2 3. 0*ETA*'lP+2.O*YP*YP C
SFH(IX) OSFH(I,IX) OSFH(2,II) OOSFH(l,II) 00SFH(2,II} 00SFH(3, II)
0.0625*FNC(ETAO,ETA2)*FllC(XIO,XI2) 0.0625*FNC(ETAO,ETA2)*XIPO*(X1Pl-4.0) 0.0625*FNC(XIO,XI2)*Y1PO*(YIPl-4.0) 0.12S*FNC(ETAO,ETA2)*(XIP2-2.0) O. 125*FNC(XIO,XI2) *(YIP2-2.0) 0.0625* (XIPl-4·,0) * (YIPl-4. 0) *XIPO*YIPO
1"2023320 1"2023330 1"2023340 1"2023350 1"2023360 1"2023370 F20233BO 1"2023390 1"2023400 1"2023410 1"2023420 1"2023430 1"2023440 1"2023450 1"2023460 1"2023470 F20234BO 1"2023490 1"2023500 1"2023510 F202).s20 1"2023530 1"2023540 1'2023550 1"2023560 1"2023570 F20235BO 1"2023590 1"2023600 1"2023610 F2023620 1"2023630 1"2023640 1"2023650 1"2023660 1"2023670 F20236BO 1"2023690 1"2023700 1"2023710 1"2023720 1"2023730 1"2023740 1"2023750 1"2023760 1"2023770 F20237BO 1"2023790 1"2023800 1"2023810 1"2023820 1"2023830 1"2023840 1"2023850 1"2023860 1"2023870 1"2023880 1"2023890 1"2023900 1"2023910 1"2023920 1"2023930 1"2023940 1"2023950 1'2023960 1"2023970 1"2023980 1"2023990 1"2024000 1"2024010 1"2024020 1"2024030 1"2024040 1"2024050 1"2024060 1"2024070
COMPUTER PROGRAM FEM2DV2
C
F2D24080 F2D24090 F2D24l00 F2D24110 F2D24120 F2D24l30 F2D24140 F2D24150 SFH(II+2) -O.062S*YP*FNC(XIO,XI2)*FNC(ETAO,ETAl) F2D24l60 DSFH(l,II+2) -0.062S*FNC(ETAO,ETA1)*YP*XIPO*(XIPI-4.I F2D24170 DSFH(2,II+2) -0.0625*FNC(XIO,XI2)*YP*YIPO*(YIPl-2.) F2D24180 DDSFH(l,II+2) -0.12S*FNC(ETAO,ETAl)*YP*(XIP2-2.) F2D24190 DDSFll(2 ,11+2) -0 .125*FNC(XIO ,XI2) *yp* (YIP2-1. 0) F2D24200 DDSFH(3,II+2) -O.0625*YP*YIPO*(YIPl-2,)*(XIPI-4.01*XIPO F2D24210 F2D24220 SFH(II+3) ~ 0.0625*XP*YP*FNC(XIO,XI1)*FNC(ETAO,ETA1} F2D24230 DSFH(1,II+3) 0.0625*FNC(ETAO,ETAl)*XP*YP*(XIPl-2.}*XIPOF2D24240 .DSFH(2,II+3) 0.0625*FIlC(XIO,XIl)*XP*YP*(YIPl-2.)*YIPO F2D24250 DDSFH(1,II+3} 0, 125*FIIC (ETAO,ETAl) *XP*YP* (XIP2-1.) F2D24260 DDSFH(2,II+3} 0, 125*FIlC (XIO,XIl) *XP*YP* (YIP2-1, O) F2D24270 DDSFH(3,II+3) 0.0625*XP*YP*YIPO*XIPO*(YIPl-2.)*(XIPl-2.)F2D24280 ~ II = I*NDF + 1 F2D24290 60 COIITINUE F2D24300 ELSE F2D24310 F2D24320 lion-conforming Hermite interpolation functions (Four-node e1ementlF2D24330 F2D24340 II ~ 1 F2D24350 DO 80 I = 1, NPE F2D24J60 XP = XNODE(I,1) F2D24370 YP XNODE(I,2) F2D24380 XIO XI*XP F2D24390 ETAO ETA*YP F2024400 XIPI XIO+1 F2024410 ETAPl ETA +1 F2D24420 XIMI XIO-1 F2D24430 ETAMI ETAO-1 F2D24440 XID 3. 0+2. 0*XIO+ETAO-3. 0*XI*XI-ETA*ETA-2. O*XI/XP F2D24450 ETAD 3.0+XIO+2.0*ETAO-Xr*XI-3.0*ETA*ETA-2.0*ETA/YP F2D24460 ETAXI 4.0+2.0*(XIO+ETAO)-3.0*(XI*XI+ETA*ETA} F2D24470 * -2.0* (ETA/YP+XI/XP) F2D24480 F2D24490 SFH(II) = O.l2S*XIPl*ETAPl*(2.0+XIO+ETAO-XI*XI-E~A*ETA) F2D24500 DSFH(1,II} = O.125*XP*ETAP1*XID F2D24510 DSFH(2,II) 0.125*YP*XIP1*ETAD F2D24520 DDSFH(I,II) 0.250*XP*ETAPI*(XP-3.0*XI-1.0/XP) F2D24530 DDSFH(2,II) 0.250*YP*XIPl*(YP-3.0*ETA-l.0/YP) F2D24540 DDSFH(3,II) 0.12S*XP*YP*ETAXI F2D24550 F2D24560 SFH(II+1) = 0.125*XP*XIP1*XIP1*XIMl*ETAPl F2D24570 DSFH(l,II+l) 0.125*XP*XP*ETAPI*(J,0*XIO-1.0)*XIPI F2D24580 DSFH(2,II+1) 0.125*XP*YP*XIP1*XIPl*XIMl F2024590 DDSFH(l,II+I) 0.250*XP*XP*XP*ETAPl*(3.0*XIO+l.O) F2024600 DDSFH(2,II+1) 0.0 F2024610 DDSFH(3,II+I} 0.125*XP*XP*YP*(3.0*XIO-1.0)*XIPI F2D24620 F2D24630 SFH(II+2} 0.12S*YP*XIPl*ETAP1*ETAPI*ETAMl F2D24640 DSFH(1,II+2) 0,125*XP*YP*ETAP1*ETAPl*ETAMl F2D24650 DSFH(2,II+2) 0.125*YP*YP*XIPl*(3,0*ETAO-l.0)*ETAPl F2D24660 DDSFH(1,II+2) 0,0 F2D24670 DDSFH(2,II+2) 0,250*YP*YP*YP*XIPl*(3.0*ETAO+l,0) F2024680 DOSFH(3,II+2) 0.125*XP*YP*YP*(J.0*ETAO-I.0)*ETAP1 F2D24690 II ~ I*IIDF + 1 F2D24700 BO CONTINUE F2D24710 ENDIF F2D24720 F2D24730 Compute the global first and second derivatives of the Hermite F2D24740 interpolation functions. The geometry is approximated using the F2D24750 linear Lagrane interpolation functions (Subparametric formulation}F2D24760 F2024770 DDSF(l,l) 0.000 F2D24780 DDSF(2,1) 0.000 F2D24790 DDSF(3,1) 0.250DO F2D24800 DDSF(1,2) 0.000 F2D248l0 DDSF(2,2) 0.000 F2D24B20 DDSF(3,2} - 0.25000 F2D24830 SFH(II+I} DSFH(1,II+1) DSFH(2, II+ll DDSfH(I,II+1) DDSFH(2,II+1} DDSFH(3,II+1}
C
C
C C C
°
C
C
C
C C C C C
673
-0.0625*XP*FNC(XIO,XI1)*FNC(ETAO,ETA2) -O.0625*FNC(ETAO,ETA2)*XP*XIPO*(XIPl-2.0) -0. 0625*fNC(XIO, XII) *XP*YIPO* (YIPl-4.) -0.12S*fNC(ETAO,ETA2)*XP*(XIP2-1.0) -0.12S*fNC(XIO,Xll)*(YIP2-2.0}*XP -0.062S*XP*XIPO*(XIPl-2.)*(YIPl-4.)*YIPO
674
APPENDICES
00S1"(1,3) 0081"(2,3) 0081"(3,3) 00SF(I,4) 00S1"(2,4) 00S1"(3,4) C C C
Compute global first derivatives of Hermite functions NN=N01"*NPE DO 110 I = 1, 2 DO 100 J = 1, lUI SUM = 0.000 DO 90 K = 1, 2 SUM = SUM + GJIlIV(I,K)*DS1"H(K,J) CONTINUE GOS1"H(I,J) SUM CONTINUE CONTINUE
90
c
0.000 0.000 0.25000 0.000 0.000 - 0.25000
100 110
c
compute global second derivatives of Hermite functions
C
DO 140 I = 1, 3 DO 130 J = 1, 2 SUM = O.ODO 00 120 K = 1, NPE SUM = SUM + DDS1"(I,K)*ELXY(K,J) CONTINUE OJCB(I,J) = SUM CONTINUE CONTINUE
120 130 140 C
DO 170 K = 1, 3 DO 160 J = 1, liN SUM = 0.000 DO 150 L = I, 2 SUM = SUM + DJCB(K,L)*GDS1"H(L,J) CONTIllUE DOSJ(K,J) = SUM CONTINUE CONTINUE
150 160 170 C C C
Compute the jacobian of the transformation GGJ(l,l)=GJ(l,l)*GJ(l,l) GGJ(1,2)=GJ(1,2)*GJ(1,2) GGJ(1,3)=2.0*GJ(1,1)*GJ(1,2) GGJ(2,1)=GJ(2,1)*GJ(2,1) GGJ(2,2)=GJ(2,2)*GJ(2,2) GGJ(2,3)=2.0*GJ(2,1)*GJ(2,2) GGJ(3,l)=GJ(2,l)*GJ(1,1) GGJ(3,2)=GJ(2,2)*GJ(1,2) GGJ(3,3)=GJ(2,l)*GJ(l,2)+GJ(1,1)*GJ(2,2) CALL INVRSE(GGJ ,GGINV)
C
DO 200 I = 1, 3 DO 190 J = 1, NN SUM = 0.000 DO 180 K = 1, 3 SUM = SUM + GGINV(I,K)*(OOSFH(K,J)-OOSJ(K,J» 180 CONTINUE GOOSFH(I,J) SUM 190 CONTINUE CONTINUE 200 ENOIF RE'rIJRN
ENO SUBROUTINE SHPTRI(NPE,ALl,AL2,AL3,OET,ELXY) C C C
C C
The subroutine computes the Lagrangian interpolation functions and their global derivatives at quadrature points for the linear and quadratic (i.e. three-node and six-node) triangUlar elements
F2024840 F2024850 F2024860 F2024870 F2024880 F2024890 1"2024900 F2D24910 F2024920 1"2024930 F2024940 1"2024950 F2D24960 F2D24970 F2D24980 F2024990 1"2025000 F2025010 F2025020 F2025030 F2D250AO 1"2025050 F2025060 1"2025070 1"2025080 F2025090 F2025100 F2025110 1"2D25120 F2025130 F2025140 1"2025150 F2025160 F2025170 F2025180 F2025190 1"2025200 F2025210 F2025220 1"2025230 F2025240 F2025250 F2025260 F2D25270 F2D25280 F2D25290 1"2025300 1"2025310 F2025320 F2025330 1"2025340 1"2025350 F2025360 F2025370 1"2025380 F2025390 F2025400 F2025410 F2D25420 F2025430 F2025440 F2025450 F2025460 F2025470 FlOlS480 1"2025490 FlOl5500 F2025510 F2025520 1"2025530 F2025540 F2025550 F2025560
COMPUTER PROGRAM FEM2DV2
C C
IMPLICIT REAL* 8 (A-H,O-Z) COHMoN/sHP/SF(9),GOSF(2,9) OIMENSION OSF(3,9),ELXY(9,2),GJ(2,2),GJINV(2,2) C
Initialize the arrays
C
C
00 10 I = 1, NPE OSF(l, I) 0.000 OSP(2, I) 0.000 OSF (3 , I) = O. 000 10 CONTINUE C
IF(NPE.EQ.3) THEN C C C
Linear Lagrane interpolation for three-node element 20
S1'(i) = SF(2) = SF(3) = OSF(l,l) OSF(2,2) OSF(3,3)
ALI AL2 AL3 1.000 1.000 = 1.000
ELSE C C C
Quadratic Lagrange interpolation functions for six-nde element
* *
SF(l) ALI * (2.000 ALI - 1) SF(2) AL2 (2.000 AL2 - 1) SF(3) AL3 * (2.000 * AL3 - 1) 61'(4) 4.000 * ALI * AL2 61'(5) 4.000 AL2 AL3 SF(6) 4.000 AL3 * ALI OSF(l,l) 4.000 ALI - 1 OSF(2,2) 4.000 AL2 - 1 OSF (3 , 3) 4 .000 * AL3 - 1 4 . 000 AL2 OSF (1 , 4) OSF(2,4) 4.000 ALI OSF (2 , 5) 4 • 000 AL3 OSP (3,5) 4.000 * AL2 OS1'(1,6) 4.000 * AL3 061'(3,6) 4.000 ALI EllOIF
*
* *
=
*
* * * * * *
C C C C C
Compute the global derivatives of SP(I). Nate that the special form of the jacobian for area coordinates, AL3 = 1-AL1-AL2 is substituted 00 60 I = 1,2 00 50 J = 1,2 SUM = 0.000 00 40 K = 1, NPE SUM = SUM + (OSF(I,K) - OSF(3,K»*ELXY(K,J) 40 CONTINUE GJ(I,J) = SUM 50 CONTINUE 60 CONTINUE
C
=
OET GJ{l,l)*GJ(2,2) - GJ(1,2)*GJ(2,l) GJINV(1, 1) GJ(2,2)/OET GJINV(2,2) GJ(l,l) 10ET GJINV(1,2) = -GJ(I,2)/OET GJINV(2,1) = -GJ(2,l)/OET DO 100 I = 1, 2 DO 90 J 1, NPE SUM 0.000 DO 80 K = 1, 2 SUM = SUM + GJINV(I,K) * (OSF(K,J) - OS1'(3,J» 8 0 CONTINUE' GOS1'{I,J) = SUM 90 CONTINUE 100 CONTINUE
=
RETURN
END
=
675
1'2025570 1'2025580 1'2025590 1'2025600 1'2025610 1'2025620 1'2025630 1'2025640 1'2025650 1'2025660 1'2025670 1'2025680 1'2025690 1'2025700 1'2025710 1'2025720 1'2025730 1'2025740 1'2025750 1'2025760 1'2025770 1'2025780 1'2025790 1'2025800 1'2025810 1'2025820 1'2025830 1'2025840 1'2025850 1'2025860 1'2025870 1'2025880 1'2025890 1'2025900 1'2025910 1'2025920 1'2025930 1'2025940 1'2025950 1'2025960 1'2025970 1'2025980 1'2025990 1'2026000 1'2026010 1'2026020 1'2026030 1'2026040 1'2026050 1'2026060 1'2026070 1'2026080 1'2026090 1'2026100 1'2026110 1'2026120 1'2026130 1'2026140 1'2026150 1'2026160 1'2026170 1'2026180 1'2026190 1'2026200 .1'2026210 1'2026220 1'2026230 1'2026240 1'2026250 1'2026260 1'2026270 1'2026280 1'2026290 1'2026300 1'2026310
676
APPENDICES
SUBROUTINE SOLVER(NRM,NCM,NEQNS,NBW,BAlID,RHS,IRES) C C C C
The subroutine solves a banded, symmetric, system of algebraic eqUations using the Gauss elimination method: (BAlID){U) ~ (RHS). The coefficient matrix is input as BAND(NEQNS,NBW) and the column vector is input as RHS(NEQNS), where NEQNS is the actual number of equations and NBW is the half band width. The true dimensions of the matrix (BAND) in the calling program, are IfRM by NCM. When IRES is greater than zero, the right hand elimination is skipped.
C C C C C C C
IMPLICIT REAL*8(A-H,O-Z) DIMENSION BAND(NRM,NCM),RHS(NRM)
c
MEQNS=NEQNS-I IF(IRES.LE.O) THEN DO 30 NPIV=I,MEQNS NPIVOT=NPIV+l LSTSUB=NPIV+NBW-1 IF(LSTSUB.GT.NEQNS) THEN LSTSUB=lIEQNS ENDIF C
10 20 30 40
50 60 C C
DO 20 NROW=NPIVOT,LSTSUB NCOL=NROW-NPIV+1 FACTOR=BAND(NPIV,NCOL)/BAND(NPIV,l) DO 10 NCOL=NROW,LSTSUB ICOL=NCOL-NROW+1 JCOL=NCOL-NPIV+1 BAND (NROW, ICOL) =BAND (NROW,ICOL)-FACTOR*BAND(NPIV,JCOL) RHS(NROW) =RHS (NROW)-FACTOR*RHS(NPIV) CONTINUE ELSE DO 60 NPIV=1,MEQNS NPIVOT=NPIV+1 LSTSUB=NPIV+NBW-1 IF (LSTSUB.GT.NEQNS) THEN LSTSUB=NEQNS ENDIF DO 50 NROW=NPIVOT,LSTSUB NCOL=NROW-NPIV+1 FACTOR=BAND(NPIV,NCOL) {BAND(NPIV, 1) RHS(NROW)=RHS(NROW)-FACTOR*RHS(NPIV) CONTINUE ENDIF Back substitution
C
DO 90 IJK=2,NEQlIS NPIV=NEQNS-IJK+2 RHS(NPIV)~RHS(NPIV){BAND(NPIV,l)
LSTSUB=NPIV-NBW+1 IF (LSTSUB. LT. 1) THEN LSTSUB=l EHDIF NPIVOT=NPIV-l DO 80 JKI=LSTSUB,NPIVOT NROW=NPIVOT-JKI+LSTSUB NCOL=NPIV-NROW+l FACTOR=BAND(NROW,NCOL) 80 RHS(NROW)=RHS(NROW)-FACTOR*RHS(NPIV) 90 CONTINUE RHS(1)=RHS(1){BAND(1,1) RETURN
END SUBROUTINE TIMER(NCOUNT,INTIAL,ITEM,NN) C C C C C C
The sUbroutine computes the algebraic equations associated with the parabolic and hyperbolic differential equations bu using the alfa-family and Newmark family of approximations, respectively.
F2D26320 F2D26330 F2D26340 F2D26350 F2D26360 F2D26370 F2D26380 F2D26390 F2D26400 F2D26HO F2D26420 F2D26430 F2D26440 F2D26450 F2D26460 F2D26470 F2D26480 F2D26490 F2D26500 F2D2li510 F2D26520 F2D26530 F2D26540 F2D26550 F2D26560 F2D26570 F2D265BO F2D26590 F2D26600 F2D26610 F2D26620 F2D26630 F2D26640 F2D26650 F2D26660 F2D26670 F2D26680 F2D26690 F2D26700 F2D26710 F2D26720 F2D26730 F2D26740 F2D26750 F2D26760 F2D26770 F2D26780 F2D26790 F2D26800 F2D26810 F2D26820 F2D26830 F2D26S40 F2D26S50 F2D26S60 F2D26S70 F2D26880 F2D26890 F2D26900 F2D269l0 F2D26920 F2D26930 F2D26940 F2D26950 F2D26960 F2D26970 F2D26980 F2D26990 F2D27000 F2D27010 F2D27020 F2D27030 F2D27040
COMPlITER PROGRAM FEM2DV2
C
IMPLICIT REAL*8(A-H,0-Z) COMHON!STF!ELF(27),ELK(27,27) ,ELM(27,27) ,ELXY(9,2) ,ELU(27), 1 ELV(27),ELA(27),Al,A2,A3,A4,AS C
I1'(ITEM.EQ.1) THEN C
C
The alfa-family of time approximation for parabolic equations
C
00 20 I=l,NN SUM=O.O 00 10 J=l,NN SUM=SUM+(ELM(I,J)-A2*ELK(I,J»*ELU(J) ELK(I,J)=ELM{I,J)+Al*ELK(I,J) ELF(I)=(Al+A2)*EL1'{I)+SUM
10 20 ELSE C
C
The Newmark intergration scheme for hyperbolic equations
C
I1'(NCOUNT.EQ.l •AND. INTIAL.NE.O) THEN DO 40 I 1,NN ELF (I) 0.0 DO 40 J = 1,NN ELF(I) EL1'(I)-ELK(I,J)*ELU(J) 40 ELK(I,J)= ELM(I,J) ELSE DO 70 I 1,NII SUM 0.0 DO 60 J 1,NII SUM SUM+ELM(I,J) * (A3*ELU(J)+A4*ELV(J)+AS*ELA(J» 60 ELK(I,J)= ELK(I,J)+A3*ELM(I,J) 70 ELF(l) ELF(l)+SUM ENOlF ENDIF RETURN
END
677
1'2027050 F2D27060 F2027070 1'2027080 F2027090 1'2027100 1'2027110 1'2027120 1'2027130 1'2027140 F2027150 1'2027160 1'2027170 F2027180 1'2027190 1'2027200 1'2027210 1'2027220 1'2027230 1'2027240 F2027250 1'2027260 1'2027270 1'2027280 1'2027290 1'2027300 F2027310 F2027J20 1'2027330 F2027340 F20273S0 F2027360 F2027370 F2027380 1'2027390 1'2027400
/
INDEX
Accuracy of solution, 14, 202-207 Alternative formulations, 579-594 Alpha family of approximations, 228-230, 374, 492, 504 Approximation error, 199-200 Approximation, temporal (or time) (see Temporal approximation) Approximation functions, 4, 12, 40-57, 53, 78 (See also Interpolation functions) Area coordinates, 407-411 Assembly of finite elements, 7, 89-94, 109, 151-154, 168, 173, 265-267, 297, 318-322, 408-410 Axisymmetric problems, 10-12, 103-105, 132, 135, 141, 195, 272-274, 281, 288-290, 323, 345, 393, 503, 562 Backward difference method (see Time integration schemes) Balance of energy (see Conservation of energy) Bandwidth, 101, 265-267 Bars, 59, 63, 124, 125 Beams, 143, 198 on elastic foundations, 59 large deflection bending of, 595-597 Euler-Bernoulli theory of, 37,- 47, 60, 212, 272 Timoshenko theory of, 212, 221, 240, 272 Beam elements, Euler-Bernoulli, 143-167, 238, 239, 241, 242 Timoshenko, 177-187, 238, 239, 241, 242
Bending of beams (see Beams) Bending of plates (see Plates) Bilinear forms, 33-50, 76, 146, 301, 342 Boundary value problem, 21 Boundary conditions, 22, 67, 109 convective type, 107-109, 541, 552 Dirichlet, 99, 131, 267 essential, 28, 30-39, 59, 71, 75, 100, 175, 267, 458, 591 force, 75 geometric, 75 homogeneous, 22, 29, 67 impositition of, 95, 154-158, 298, 321, 339, 361-363, 468, 511, 522 mixed,268 non-homogeneous, 22, 29, 42, 67 natural, 28, 30-39, 71, 75, 100, 175, 268, 458, 591 Neumann, 132, 268, 367 Newton, 268, 341 Boundary integral, evaluation of, 313-318, 328, 344-346, 363, 466-468 Boundary integral methods, 16 Brick element, 601 Bubnov-Galerkin method (see Galerkin method) Buckling loads, 209, 213, 242
co
Approximation, 97 plate elements, 111 Central difference method (see Time integration schemes) Classical plate theory (see Plate theory) Collocation method, 16, 40, 55-57, 157, 581
CO
679
680
f i
INDEX
\ Coefficient matrix, 86 Compatible elements (see Conforming elements) Compatibility of elements, 442-445 Completeness of functions, 43, 50, 56, 67, 77 Computer implementation, 258-270, 533540 Computer programs: applications of, 270-291, 540-575 general purpose, 59 FEMlD,271 FEMlDV2, 270-286 FEM2D,533 FEM2DV2, 540-569 PLATE, 533 Condensed equations, 95, 110, 127, 156, 161, 165, 174, 176, 328, 330, 349 Conforming elements, 406, 407, 515 Connectivity of elements (see Assembly) Continuity equation (see Conservation of mass) Conservation: of energy, 120, 133, 353, 599, 605 of linear momentum, 119, 353, 457, 483, 605 of mass, 119, 353, 483, 605 Consistent interpolation element (ClE) , 181, 184, 191 Consistent interpolation, 179, 191 Consistent mass matrix (see Mass matrix) Constant-strain triangular element, 462 Constant-average-acceleration method, 231 Constitutive equations, 457-459 Constraint equations, inclusion of, 187-191 Convective heat transfer (see Heat transfer) Convergence: of solution, 7, 14, 77, 116, 185, 201205, 222 h-, 201, 222, 442-444 p-, 201, 222, 442-444 rate of, 201, 203, 205, 222 Coordinate: local (or element), 79, 83, 148, 248, 308, 312 global, 79, 83, 248, 312 natural (or normal), 248, 416-420 Coordinate transformation, 83, 248-250, 421-429 Cramer's rule, 78, 113 Crank-Nicolson scheme (see Time integration schemes) Dirac delta function, 55, 99, 358, 581
Direction cosines, 25, 300, 345 Dirichlet boundary condition (see Boundary conditions) Discrete element method (DEM),.14 Divergence theorem, 24, 300
Eigenfunctions (see Eigenvectors) Eigenvalue problems, 22, 209-213, 370384, 520-522 Eigenvalues, 22, 209, 376 Eigenvectors, 22, 209, 375 Elements (see Finite elements) Energy norm, 200, 201 Equal interpolation element (}lIE), 183 Equations of motion, 210-212, 225, 457, 513, 518 (See also Conservation 'of linear momentum) Equipotential lines, 356 Error, 199, 200, 208, 222 approximation, 97, 99, 100, 199 computational, 100 quadrature and finite arithmetic, 199 measures of, 200-201 pointwise, 200 Error estimate, 7, 201-205, 216, 222 Euler equations, 120 Euler- Bernouilli: beam theory, 47, 60, 595 frame element, 167-177 hypothesis, 37 Eulerian description, 118 Evaluation of boundary integrals, 313-318
Finite difference method, 4, 228-231 Finite element mesh (see Mesh) Finite element computer programs (see Computer programs) Finite element equations for (See also Finite element models for): axisymmetric problems (see Axisymmetric problems) bar element (see Bars) beam element (see Beams) brick (see Brick element) constant-strain triangular element (CST), 405 frame element (see Frame element) isoparametric element (see Isoparametric formulation) space-time element (see Space-time element)
INDEX
Finite element equations for (Coil/d.): transition element (see Transition element) truss element (see Truss element) Finite element method, basic concepts, 4- ' 15, 58, 59 computer applicatons of, 270-291, 540575 Finite element model of: axisymmetric problems, 103-105, 323334 bars, 85-95 classical plate element, 514-518 eigenvalue problems, 213~216, 370-374, 520~522
Euler-Bernoulli beam theory, 144-151 frames, 178~187 heat transfer, 108-117, 340-352 inviscid flows, 117~123, 353~365 membrane, 369, 381, 384 nonlinear problems, 594-599 one-dimensional problems, 67-141 plane elasticity, 461-465 . shear-deformable plate element, 518-519 three-dimensional problems, 600, 601 Timoshenko beam element, 178-183 time-dependent problems, 224-229, 370375,382-384,465,520-522 torsion, 365-368 two-dimensional problems, 301-303, 324 viscous fluid flow, 484-494 First-order shear-deformation theory (see Plate theory) Fluid mechanics, 297,353-364 Flow about a circular cylinder, 554 Flow of: fluid squeezed between plates, 501, 502, 560 viscous incompressible fluid, 60, 61,482507 viscous lubricant, 497-501 Flow chart for: FEM1DV2, 261 FEM2DV2, 534 Fluids: incompressible, 61,121,482,489,541 ideal,118 Newtonian, 118, 121, 136 viscous, 60, 67, 118,533,541,573 Force vector (see Source vector) Forward difference method (see Time integration scheme) Fourier series, 50 Fourier components, 210 Fourier heat conduction law, 75
681
Frame element: Euler-Bernoulli, 167-177 Timoshenko, 177-191,272 Full integration element (FIE), 185, 187 Fully developed flows, 121 Functionals: bilinear, 26, 27, 33-35 linear, 26,33-35 quadratic, 40,41,59
Galerkin method, 4,54,57,581-586 Gauss points for: rectangular elements, 431 triangular elements, 436 Gauss (-Legendre) quadrature (see Quadrature) Generalized displacements, 147 Generalized forces, 146 Gradient theorem, 24,25,300 Gradient operator, 24 Groundwater flow, 132,296,355-359
Half-band width, 101 Half-band, upper, 265 Heat transfer, 71,105-117,296,297,340, 541,570 axisymmetric, 272, 278, 323 cylindrical geometries, 323 conductive, 105, 346-350, 384 convective, 39,68,107,341,350-352,384 radiative, 346 transient, 233-236, 376-379 Heavyside step function, 527 Hencky-Mindlin plate theory (see Plate theory) Hermite interpolation functions, 148,419, 420,514 Homogeneous solution, 210 Hooke's law, 366 Hydrostatic pressure, 121,573 Hyperbolic equations, 224,230-231,381,564
Initial conditions, 22 Initial value problems, 21 Integral statements (see Weighted-integral statements) Integration by parts, 22-24 Integration points (see Gauss points) Interelement compatibility (see Conforming elements) (See also Compatibility of elements)
I,
t
INDEX
:erpolation functions: 5,77,147-151,404454 for rectangular elements, 308-311, 411-419 for serendipity elements, 419 for triangular elements, 304-307, 405-411 of Hermite family, 80, 148,207,215,419 of Lagrange family, 80, 82, 169,249, 303-311,404-419 properties of, 77,84,149,307,601 nviscid flow, 334, 353, 362, 541, 571 rrotational flow, 296, 353, 354, 358 isolines, 333 Isoparametrlc formulations, 251, 423
Jacobian matrix, 424, 601 Jacobian of transformation, 206, 250, 425, 427
Kirchhoff plate theory (see Plate theory, classical) Kirchhoff free-edge condition, 514
0. norm, 200 Lagrange interpolation functions, 80 one-dimensional, 78-84,249 two-dimensional, 303-311, 404-420 Lagrange multiplier method, 488-491 Lagrange multipliers, 488, 489, 492 Lagrange family of finite elements, 249 Lagrangian description, 119, 123 Laplace equation, 367, 391 Laplacian operator, 24 Least-squares method, 4, 54-55, 57 Least-squares model, 40, 63, 98, 581, 582 Linear independence, 67 Lumped mass matrix (see Mass matrix) Mass lumping: proportional, 232, 233 row-sum, 232 Mass matrix, 214 consistent, 229, 232 lumped,232 Master rectangular element, 404, 429-433 Master triangular element, 433-438 Material time derivative, 353 Membranes, 369,381,384 Mesh: effect, 524 generation, 298, 335-339, 441-448, 527, 548-551
Mesh: (Con/d.): refinement, II-version, 222, 442 p-vers[on, 222, 442 Mindlin plate theory (see Plate theory, sheardeformation) Mixed formulations, 590-594 Mode shape, 211
Natural frequencies, 209 Natural vibrations, 211, 381, 473, 520 Navier-Stokes equations, 60, 120, 598 Newton-Cotes quadrature (see Quadrature) Newton-Raphson method, 597 / Newton's law of cooling, 107, 341,580 Nodeless coefficients, 16 Nodeless variables, 14 Nonconforming elements, 515 Nonlinear problems, 579-606,594, 597-598 Normal derivative operator, 25 Nuemann boundary conditions (see Boundary condition) Numerical integration, 246-292,421-438
Orthogonality conditions, SO
Parabolic equations, 224,227,230,372-373, 554 Pascal's triangle, 405, 407 Penalty finite element model, 484, 488-494 Penalty parameter, 488, 491, 494 Penalty function method, ~84-494 Petrov-Galerkin model, 40, 53-54, 56, 63, 581,582,584 Plane elasticity problems, 533, 538, 573 Plane stress assumption, 471 Plane stress problem, 456, 458 Plane strain problem, 456, 458 Plane elasticity, 455-481 finite element model, 461 eigenvalue and transient problems, 465 weak form model, 464 Plane truss element, 167 Plate bending, 508-532 Plate theory, classical, 508-516,529 shear-deformation, 508, 509, 516-520 Poiseuille flow, 122 Poisson equation, 49, 62, 297,325,369,384, 386,554 Postprocessing of solution, 96-97, 158-160, 298,322
"
INDEX
Preprocessor, 259, 287, 534 Primary variables, 73-75, 90, 318, 319 Primitive variables model (see Velocitypressure formulation) Principle of virtual displacements, 123, 459 Prism elements, 602 Processor, 259,262,287 Program: FEMlD, 258, 271 FEMlDV2,258-270 applications of, 270-291 flow chart of, 231 input for, 274-278 source listing of (see Appendix 1) FEMlD,533 FEM2DV2,533-551 applications of, 551-575 flow chart of, 534 input for, 542-547 source listing of (see Appendix 2)
Quadratic functional, 33-35 Quadrature points (see Gauss points) Quadrature (See also Numerical integration): Gauss-Legendre, 248, 254-258, 255, 287, 421 points, 248, 431, 436 Newton-Cotes, 253, 255, 287 Quarter-point elements, 441
Radially symmetric problems, 103-105 Radiation, 39 Rayleigh-Ritz: solution, 44, 45 method, 4, 40 Rectangular elements, 308-311, 411-420 Reduced integration element (RIE), 184, 185,187,191 Reduced integration, 180, 492, 519 Residual, 19 Ritz coefficients, 41, 61 Ritz method (see Rayleigh-Ritz method) Ritz solution, 331
Secondary variables, 73-75, 90, 103 balance (or equillibrium) of, 318 Seepage (see Groundwater flow) Semidiscrete finite element models, 225-227, 373 Separation of variables, 210 Serendipity elements, 412, 416, 419 Shape functions (see Interpolation functions)
683
Shear correction factors, 177 Shear-deformable plate model (see Plates) Shear locking, 179, 191,519,520 Simpson's one-third rule, 247, 253 Singular points, 339 . Source vector, 86 Stability criteria, 230, 233, 375, 383 Stability of numerical schemes, 229-239, 377, 384 Stability (or geometric) stiffness matrix, 215, 521 Stiffness matrix (See also Coefficient matrix) of: bar element, 87, 126 beam elements, 151, 181-183 frame element, 169, 171 plane elastic element, 464 plate bending elements, 515, 521 truss element, 173 Strain-displacement relations, 457 Stream function, 61,354,360-362,367,398, 504 formulation, 360 -Vorticity formulation, 61, 504 Stress-strain relations, 457 Subdornain method, 16,40,581,582,584 Subpararnetric elements (see Subparametric formulation) Subpararnetric formulation, 251 Superparametric elements (see Superparametrlc formulation) Superparametric formulation, 251, 423 Supmetric, 200
Tangent stiffness matrix, 595 Taylor series, 4, 204 Temperature, ambient, 342 Temporal approximations (see Time approximation schemes) Tensor product, 430 Tetrahedral elements, 407 Thermal conductivity, 11,71,109,216,353 Three-dimensional problems, 579-606, 599 Time approximation schemes, 224-233, 244, 374,375,382,383,402,465,492, 520-522 Time-dependent problems, 21,224-241,370384, 520, 554 Time integration schemes: backward difference, 228, 231, 375 central difference, 231, 383, 400 collocation, 402 conditionally stable, 229 constant -average-acceleration, 383
684
INDEX
Time integration schemes: (Con/d.): Crank-Nicolson, 228, 375, 377,379 explicit, 230 forward difference, 228, 375 Galerkin, 228, 231, 238,375 Houbolt's,230 linear acceleration, 231, 383 implicit, 230 Newmark, 382 stable, 229 unstable, 229 Wilson's, 230, 402 Timoshenko beam theory, 61 Timoshenko frame element, 177 Torsion, 365-369, 398 Total potential energy principle, 35, 143, 148 Transient analysis, 227-241,374-384,474476,501-503,527,528 Transition elements, 299, 478 Triangular elements, 304-308, 405-410 Truss element, 167
Variational problem, 34, 76, 301 Variation, first, 27 Variational symbol, 27-28 Variational methods, 4, 13,14,40-59
Velocity potential, 355-358, 362-364 Velocity-pressure formulation, 484-487 Viscous incompressible flows (see Fluids) Vorticity, 61,504
Warping function, 367 Wave equation, 379 Weak form, 30-33, 40, 51, 73-76,104,108, 128,214,225,299-301,342~345.380,
580,591 for: Euler-Bernoulli beams, 145-147,595 viscous flows, 484-486, 491 Navier-Stokes equations, 598 plane elasticity problems, 459~461 plate bending, 511, 517 . three-dimensional problems, 600 Timoshenko beams, 177 Weight function, 20, 29, 37,42,53,74, 145, 177,299,461,485,581 Weighted-integral statements, 18-20,28-40, 53,57 Weighted-integral method, 4, 18 Weighted-residual methods, 51-57, 98, 580-
590 Weighted-integral form (see Weightedintegral statements)