• No results found

Fundamental Finite Element Analysis and Applications

N/A
N/A
Protected

Academic year: 2021

Share "Fundamental Finite Element Analysis and Applications"

Copied!
718
0
0

Loading.... (view fulltext now)

Full text

(1)

tl5Fb'%59i@i&d,miI9'g;.4NW+ i!%SmcWEHrtj'lf-LI!!S&SW3ft , ¥tp!.ti!&£!!%IE?ii5ki SHuuS! $i-'*".Hrih45¥~... f.., "b ..FiiiiU4i , JR* j!

FUN AMEN

L FINITE

ELE

ENT ANALY IS

ND APPllC

I NS

With

Mathematica®

and MATLAB®

Computations

M. ASGHAR

BHATT~

~

WILEY

JOHN WILEY 8t SONS, INC.

(2)

ANSYS is a registered trademarkof ANSYS, Inc. ABAQUS is a registered trademarkof ABAQUS, Inc. This book is printed on acid-free paper.

e

Copyright

©

2005 by John Wiley&Sims, Inc. All rights reserved. Published by John Wiley&Sons, Inc., Hoboken,New Jersey Published simultaneouslyin Canada.

No part of this publication may be reproduced, stored in a retrieval system or transmittedin any form or by any means, electronic, mechanical, photocopying,recording,scanning or otherwise, except as permitted under Section 107 or 108 of the 1976 United States CopyrightAct, without either the prior written permissionof the Publisher,or authorizationthrough payment of the appropriateper-copy fee to the CopyrightClearanceCenter, 222 Rosewood Drive, Danvers,MA 01923, (978) 750-8400, fax (978) 750-4470, or on the web at

www.copyright.com. Requests to the Publisher for permissionshould be addressedto the Permissions Department, John Wiley&Sons,Inc.,111 River.Street, Hoboken,NJ 07030, (201) 748-6011, fax (201) 748-6008, e-mail: permcoordinator@wiley.com.

Limit of LiabilitylDisclaimerof Warranty:While the publisher and author have used their best effortsin preparing this book, they make no representations or warranties with respect to the accuracyor completenessof the contents of this book and specificallydisclaim any implied.warrantiesof merchantability or fitnessfor a particular purpose. No warranty may be created or extended by sales representatives or written sales materials. The advice and strategiescontained herein may not be suitable for your situation. Youshould consult with a professional where appropriate. Neither the publisher/norauthor shall be liable for any loss of profitor any other commercial damages, including but not limited to special,incidental,consequential,or other damages.

For general informationon our other products and services or for technical support,please contact our Customer Care Department within the United States at (800) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002.

Wiley also publishesits books in a variety of electronicformats. Some content that appears in print may not be available in electronic books. For more information about Wileyproducts, visit our web site at www.wiley.com. Library of Congress Cataloging-in-Publication Data

Bhatti, M. Asghar

Fundamental finite element analysis and applications: with Mathematica and Matlab computations/ M. Asghar Bhatti.

p. cm. Includes index. ISBN 0,471-64808-6

1.Structural analysis (Engineering) 2. Finite element method, J, Title. TA646.B56 2005

620' .001'51825-dc22

Printed in the United States of America 1098765432

(3)

CONTENTS

CONTENTS OF THE BOOK WEB SITE PREFACE

xi xiii

1 FINITE ELEMENT METHOD: THE BIG PICTURE 1

1.1 Discretization and Element Equations / 2 1.1.1 Plane Truss Element / 4

1.1.2 Triangular Element for Two-Dimensional Heat Flow / 7 1.1.3 General Remarks on Finite Element Discretization / 14 1.1.4 Triangular Element for Two-Dimensional Stress Analysis / 16 1.2 Assembly of Element Equations -/ 21

1.3 Boundary Conditions and Nodal Solution / 36

1.3.1 Essential Boundary Conditions by Rearranging Equations / 37 1.3.2 Essential Boundary Conditions by Modifying Equations / 39 1.3.3 Approximate Treatment of Essential Boundary Conditions / 40 1.3.4 Computation of Reactions to Verify Overall Equilibrium / 41 1.4 Element Solutions and Model Validity / 49

1.4.1 Plane Truss Element / 49

1.4.2 Triangular Element for Two-Dimensional Heat Flow / 51 1.4.3 Triangular Element for Two-Dimensional Stress Analysis / 54 1.5 Solution of Linear Equations / 58

1.5.1 Solution Using Choleski Decomposition / 58 1.5.2 ConjugateGradientMethod / 62

(4)

1.6 Multipoint Constraints / 72

1.6.1 Solution Using Lagrange Multipliers / 75 1.6.2 Solution Using Penalty Function / 79 1.7 Units / 83

2 MATHEMATICAL FOUNDATION OF THE

FINITE ELEMENT METHOD 98

2.1 Axial Deformation of Bars / 99

2.1.1 Differential Equation for Axial Deformations I 99

2.1.2 Exact Solutions of Some Axial Deformation Problems / 101 2.2 Axial Deformation of Bars Using Galerkin Method / 104

2.2.1 Weak Form for Axial Deformations / 105

2.2.2 Uniform Bar Subjected to Linearly Varying Axial Load / 109 2.2.3 Tapered Bar Subjected to Linearly Varying Axial Load / 113 2.3 One-Dimensional BVJ;>Using .Galerkin Method / 115

_

...•

-,-2.3.1 Overall Solution Procedure Using GalerkinMethod / 115 2.3.2 Highet Order Boundary Value Problems / 119

2.4 Rayleigh-Ritz Method / 128

2.4.1 Potential Energy for Axial Deformation of Bars / 129

2.4.2 Overall Solution Procedure Using the Rayleigh-Ritz Method / 130 2.4.3 Uniform Bar Subjected to Linearly Varying Axial LoadI 131 2.4.4 Tapered Bar Subjected to Linearly Varying Axial Load / 133 2.5 Comments on Galerkin and Rayleigh-Ritz Methods / 135

2.5.1 Admissible Assumed

S~lution

/ 135

2.5.2 Solution Convergence-the Completeness Requirement / 136 2.5.3 Galerkin versus Rayleigh-Ritz / 138

2.6 Finite Element Form of Assumed Solutions / 138

2.6.1 LinearInterpolation Functions for Second-Order Problems / 139 2.6.2 Lagrange Interpolation / 142

2.6.3 Galerkin Weighting Functions in Finite Element Form / 143 2.9.4 Hermite Interpolation for Fourth-Order Problems / 144 2.7 Finite Element Solution of Axial Deformation Problems / 150

2.7.1 Two-Node Uniform Bar Element for Axial Deformations / 150 2.7.2 Numerical Examples / 155

3 ONE-DIMENSIONAL BOUNDARY VALUE PROBLEM

3.1 Selected Applications of 1D BVP / 174 3.1.1 Steady-State Heat Conduction / 174 3.1.2 Heat Flow through Thin Fins / 175

(5)

CONTENTS

3.1.3 Viscous Fluid Flow between Parallel Plates-Lubrication Problem / 176

3.1.4 Slider Bearing / 177

3.1.5 Axial Deformation of Bars / 178

3.1.6 Elastic Buckling of Long Slender Bars / 178 3.2 Finite Element Formulation for Second-Order ID BVP / 180

3.2.1 Complete Solution Procedure / 186 3.3 Steady-State Heat Conduction / 188

3.4 Steady-State Heat Conduction and Convection / 190 3.5 Viscous Fluid Flow Between Parallel Plates / 198 3.6 Elastic Buckling of Bars / 202

3.7 Solution of Second-Order 1D BVP / 208

3.8 A Closer Look at the Interelement Derivative Terms / 214

4 TRUSSES, BEAMS, AND FRAMES 222

4.1 Plane Trusses / 223 4.2 Space Trusses / 227

4.3 Temperature Changes and Initial Strains in Trusses / 231 4.4 Spring Elements / 233

4.5 Transverse Deformation of Beams / 236

4.5.1 Differential Equation for Beam Bending / 236 4.5.2 Boundary Conditions for Beams / 238 4.5.3 Shear Stressesin Beams / 240

4.5.4 Potential Energy for Beam Bending / 240 4.5.5 Transverse Deformation of a Uniform Beam / 241 4.5.6 Transverse Deformation of a Tapered Beam Fixed at

Both Ends / 242 4.6 Two-Node Beam Element / 244

4.6.1 Cubic Assumed Solution / 245

4.6.2 Element Equations Using Rayleigh-Ritz Method / 246 4.7 Uniform Beams Subjected to Distributed Loads / 259 4.8 Plane Frames / 266

4.9 Space Frames / 279

4.9.1 Element Equations in Local Coordinate System / 281 4.9.2 Local-to-Global Transformation / 285

4.9.3 Element Solution / 289 4.10 Frames in Multistory Buildings / 293

(6)

5 TWO-DIMENSIONAL ELEMENTS

5.1 Selected Applications of the 2D BVP / 313 5.1.1 Two-Dimensional Potential Flow / 313 5.1.2 Steady-State Heat Flow / 316

5.1.3 Bars Subjected to Torsion / 317 5.1.4 Waveguidesin Electromagnetics / 319 5.2 Integration by Parts in Higher Dimensions / 320

5.3 Finite Element Equations Using the Galerkin Method / 325 5.4 Rectangular Finite Elements / 329

5.4.1 Four-Node Rectangular Element / 329 5.4.2 Eight-Node Rectangular Element / 346

5.4.3 Lagrange Interpolation for Rectangular Elements / 350 5.5 Triangular Finite Elements / 357

5.5.1 Three-Node Triangular Element / 358 5.5.2 Higher Order Triangular Elements / 371

311

6 MAPPED ELEMENTS 381

6) Integration Using Change of Variables / 382 6.1.1 One-Dimensional Integrals / 382 6.1.2 Two-Dimensional Area Integrals / 383 6.1.3 Three-Dimensional VolumeIntegrals / 386

6.2 Mapping Quadrilaterals Using Interpolation Functions / 387 6.2.1 Mapping Lines / 387

6.2.2 MappingQuadrilater~Areas / 392 6.2.3 Mapped MeshGene~ation / 405

6.3 Numerical Integration Using Gauss Quadrature / 408

6.3.1 Gauss Quadrature for One-Dimensional Integrals / 409 6.3.2 Gauss Quadrature for Area Integrals / 414

6.3.3 Gauss Quadrature for VolumeIntegrals / 417

6.4 Finite Element Computations Involving Mapped Elements / 420 6.4.1 Assumed Solution / 421

6.4.2 Derivatives of the Assumed Solution / 422 6.4.3 Evaluation of Area Integrals / 428 6.4.4 Evaluation of Boundary Integrals / 436

6.5 Complete Mathematica and MATLAB Solutions of 2D BVP Involving Mapped Elements / 441

6.6 Triangular Elements by Collapsing Quadrilaterals / 451 6.7 Infinite Elements / 452

6.7.1 One-DirnensionalBVP / 452 6.7.2 Two-Dimensional BVP / 458

(7)

CONTENTS

7 ANALYSIS OF ELASTIC SOLIDS 467

7.1 Fundamental Concepts in Elasticity / 467

7.1.1 Stresses / 467

7.1.2 Stress Failure Criteria / 472

7.1.3 Strains / 475

7.1.4 Constitutive Equations / 478

7.1.5 TemperatureEffects and Initial Strains / 480 7.2 Governing Differential Equations / 480

7.2.1 Stress Equilibrium Equations / 481

7.2.2 Governing Differential Equations in Terms of Displacements / 482

7.3 General Form of Finite Element Equations / 484

7.3.1 Potential Energy Functional / 484

7.3.2 Weak Form / 485

7.3.3 Finite Element Equations / 486

7.3,4 Finite Element Equations in the Presence of Initial Strains / 489 7.4 Plane Stress and Plane Strain / 490

7.4.1 Plane Stress Problem / 492

7.4.2 Plane Strain Problem / 493

7.4.3 Finite Element Equations / 495

7.4.4 Three-Node Triangular Element / 497

7.4.5 Mapped Quadrilateral Elements / 508

7.5 Planar Finite Element Models / 517

7.5.1 Pressure Vessels / 517

7.5.2 Rotating Disks and Flywheels / 524

7.5.3 Residual Stresses Due to Welding / 530

7.5.4 Crack Tip Singularity / 531

8 TRANSIENT PROBLEMS 545

8.1 TransientField Problems / ,545 8.1.1 Finite Element Equations / 546 8.1.2 Triangular Element / 549

8.1.3 Transient Heat Flow / 551

8.2 Elastic Solids Subjected to Dynamic Loads / 557 8.2.1 Finite Element Equations / 559

8.2.2 Mass Matrices for Common Structural Elements / 561

8.2.3 Free-VibrationAnalysis / 567 8.2.4 Transient Response Examples / 573

(8)

9 p-FORMULATION· 586

9.1 p-Formulation for Second-Order 1D BVP / 586

9.1.1 Assumed Solution Using Legendre Polynomials / 587 9.1.2 Element Equations / 591

9.1.3 Numerical Examples / 593

9.2 p-Formulation for Second-Order 2D BVP / 604

9.2.1 p-ModeAssumed Solution / 605 9.2.2 Finite Element Equations / 608 9.2.3 Assembly of Element Equations / 617

9.2.4 Incorporating Essential Boundary Conditions / 620 9.2.5 Applications / 624

A USE OF COMMERCIAL FEA SOFTWARE 641

A.1 ANSYS Applications / 642 A.1.1 General Steps / 643 A.1.2 Truss Analysis / 648 A.1.3 Steady-State Heat Flow / 651 A.1.4 Plane Stress Analysis / 655 A.2 Optimizing Design Using ANSYS / 659

A.2.1 General Steps / 659 A.2.2 Heat Flow Example / 660 A.3 ABAQUS Applications / 663

A.3.1 Execution Procedure / 663 A.3.2 Truss Analysis / 66'5 A.3.3 Steady-State Heat Flow / 666 A.3.4 Plane Stress Analysis / 671

B VARIATIONAL FORM FOR BOUNDARY

VALUE PROBLEMS 676

B.1 Basic Concept of Variation of a Function / 676 B.2 Derivation of Equivalent Variational Form / 679

B.3 Boundary Value Problem Corresponding to a Given Functional / 683

BIBLIOGRAPHY 687

(9)

CONTEN'TS OF THE BOOK WEB

S~TE

(www.wiley.com/go/bhatti)

ABAQUS Applications AbaqusUse\AbaqusExecutionProcedure.pdf Abaqus Use\HeatFlow AbaqusUse\PlaneStress Abaqus Use\TmssAnalysis ANSYS Applications AnsysUse\AppendixA . AnsysUse\Chap5 AnsysUse\Chap7 AnsysUse\Chap8 AnsysUse\GeneralProcedure.pdf

Full Detail Text Examples

Full Detail Text Examples\ChaplExarnples.pdf Full Detail Text Examples\Chap2Examples.pdf Full Detail Text Examples\Chap3Examples.pdf . Full Detail Text Exarnples\Chap4Exarnples.pdf Full Detail Text Exarnples\Chap5Exarnples.pdf Full Detail Text Examples\Chap6Examples.pdf Full Detail Text Examples\Chap7Examples.pdf

(10)

Full Detail Text Examples\Chap8Examples.pdf Full Detail Text Examples\Chap9Examples.pdf

Mathematica Applications MathematicaUse\MathChap l.nb MathematicaUse\MathChap2.nb MathematicaUse\MathChap3.nb MathematicaUse\MathChap4.nb MathematicaUse\MathChap5 .nb MathematicaUse\MathChap6.nb MathematicaUse\MathChap7.nb MathematicaUse\MathChap8 .nb MathematicaUse\Mathematica Introduction.nb MATLAB Applications MatlabFiles\Chap I MatlabFiles\Chap2 MatlabFiles\Chap3 MatlabFiles\Chap4 MatlabFiles\Chap5 MatlabFiles\Chap6 MatlabFiles\Chap7 MatlabFiles\Chap8 MatlabFiles\Common I

Sample Course Outlines, Lectures, and Examinations Supplementary Material and Corrections

(11)

PREFACE

Large numbers of books have been written on the finite element method. However, effective teaching of the method using most existing books is a difficult task. The vast majority of current books present the finite element method as an extension of the conventional matrix structural analysis methods. Using this approach, one can teach the mechanical aspects of the finite element method fairly well, but there are no satisfactory explanations for even the simplest theoretical questions. Why are rotational degrees of freedom defined for the beam and plate elements but not for the plane stress and truss elements? What is wrong with connecting corner nodes of a planar four-node element to the rnidside nodes of an eight-node element? The application of the method to nonstructural problems is possible onlyifone can interpret problem parameters in terms of their structural counterparts. For example, one can solve heat transfer problems because temperature can be interpreted as displacement in a structural problem.

More recently, several new textbooks on finite elements have appeared that emphasize the mathematical basis of the finite element method. Using some of these books, the fi-nite element method can be presented as a method for .obtaining approximate solution of ordinary and partial differential equations. The choice of appropriate degrees of freedom, boundary conditions, trial solutions, etc., can now be fully explained with this theoreti-cal background. However, the vast majority of these books tend to be too theoretitheoreti-cal and do not present enough computational details and examples to be of value, especially to undergraduate and first-year graduate students in engineering.

The finite element coursesface one more hurdle. One needs to perform computations in order to effectively learn the finite element techniques. However, typical finite element calculations are very long and tedious, especially those involving mapped elements. In

fact, some of these calculations are essentially impossible to perform by hand. To alleviate this situation, instructors generally rely on programs written in FORTRAN or some other

(12)

conventional programming language.Infact, there are several books available that include these types of programs with them. However, realistically, in a typical one-semester course, most students cannot be expected to fully understand these programs. At best they use them as black boxes, which obviously does not help in learning the concepts.

In addition to traditional research-oriented students, effective finite element courses must also cater to the needs and expectations of practicing engineers and others interested only in the finite element applications. Knowing the theoretical details alone does not help in creating appropriate models for practical, and often complex, engineering systems.

This book is intended to strike an appropriate balance among the theory, generality, and practical applications of the finite element method. The method is presented as a fairly straightforward extension of the classical weighted residual and the Rayleigh-Ritz methods for approximate solution of differential equations. The theoretical details are presented in an informal style appealing to the reader's intuition rather than mathematical rigor. To make the concepts clear, all computational details are fully explained and numerous examples are included showing all calculations. To overcome the tedious nature of calculations associ-ated with finite elements, extensive use of MATLAB® and Mathematicd'' is made in the boole. All finite element procedures are implemented in the form of interactive Mathemat-icanotebooks and easy-to-follow MATLAB code. All necessary computations are readily apparent from these implementations. Finally, to address the practical applications of the finite element method, the book integrates a series of computer laboratories and projects that involve modeling and solution using commercial finite element software. Short tuto-rials and carefully chosen sample applications of ANSYS and ABAQUS are contained in the book.

The book is organized in such a way that it can be used very effectively in a lecture/ computer laboratory (lab) format. In over 20 years of teaching finite elements, using a variety of approaches, the author has found that presenting the material in a two-hour lecture and one-hour lab per week isi~eallysuited for the first finite element course. The lecture part develops suitable theoretical background while the lab portion gives students experience in finite element modeling and actual applications. Both parts should be taught in parallel. Of course, it takes time to develop the appropriate theoretical background in the lecture part. The lab part, therefore, is ahead of the lectures and, in the initial stages, students are using the finite element software essentially as a black box. However, this approach has two main advantages. The first is that students have some time to get familiar with the particular computer system and the finite element package being utilized. The second, and more significant, advantage is that it raises students' curiosity in learning more about why things must be done in a certain way. During early labs students often encounter errors such as "negative pivot found" or "zero or negative Jacobian for element." When, during the lecture part, they find out mathematical reasons for such errors, it makes them appreciate the importance of learning theory in order to become better users of the finite element technology.

The author also feels strongly that the labs must utilize one of the several commercially available packages, instead of relying on simple home-grown programs. Use of commer-cial programs exposes students to at least one state-of-the-art finite element package with its built-in or associated pre- and postprocessors. Since the general procedures are very similar among different programs, it is relatively easy to learn a different package after this

(13)

PREFACE

exposure. Most commercial prol$nims also include analysis modules for linear and nonlin-ear static and dynamic analysis, buclding, fluid flow, optimization, and fatigue. Thus with these packages students can be exposed to a variety of finite element applications, even though there generally is not enough time to develop theoretical details of all these topics in one finite element course. With more applications, students also perceive the course as morepractical and seem to put more effort into learning.

TOPICS COVERED

The book covers the fundamental concepts and is designed for a first course on finite ele-ments suitable for upper division undergraduate students and first-year graduate students.

Itpresents the finite element method as a tool to find approximate solution of differential equations and thus can be used by students from a variety of disciplines. Applications cov-ered include heat flow, stress analysis, fluid flow, and analysis of structural frameworks. The material is presented in nine chapters and two appendixes as follows.

1.Finite Element Method: The Big Picture. This chapter presents an overview of the

finite element method. To give a clear idea of the solution process, the finite element equa-tions for a few simple elements (plane truss, heat flow, and plane stress) are presented in this chapter. A few general remarks on modeling and discretization are also included. Important steps of assembly, handling boundary conditions, and solutions for nodal unknowns and el-ement quantities are explained in detail in this chapter. These steps are fairly mechanical in nature and do not require complex theoretical development. They are, however, central to actually obtaining a finite element solution for a given problem. The chapter includes brief descriptions of both direct and iterative methods for solution oflinear systems of equations. Treatment of linear constraints through Lagrange multipliers and penalty functions is also included.

This chapter gives enough background to students so that they can quickly start using available commercial finite element packages effectively.Itplays an important role in the lecture/lab format advocated-for the first finite element course.

2. Mathematical Foundations of the Finite Element Method. From a mathematical

point of view the finite element method is a special form of the well-known Galerkin and Rayleigh-Ritz methods for finding approximate solutions of differential equations. The basic concepts are explained in this chapter with reference to the problem of axial deformation of bars. The derivation of the governing differential equation is included for completeness. Approximate solutions using the classical form of Galerkin and Rayleigh-Ritz methods are presented. Finally, the methods are cast into the form that is suitable for developing finite element equations. Lagrange and Hermitian interpolation functions, commonly employed in derivation of finite element equations, are presented in this chapter.

3. One-Dimensional Boundary Value Problem. A large humber of practical problems

are governed by a one-dimensional boundary value problem of the form

d ( dU(X))

dx k(x)~

+

p(x) u(x)

+

q(x)

=

0

(14)

Finite element formulation and solutions of selected applications that are governed by the differential equation of this form are presented in this chapter.

4. Trusses, Beams, and Frames. Many structural systems used in practice consist of

long slender members of various shapes used in trusses, beams, and frames. This chap-ter presents finite element equations for these elements. The chapchap-ter is important for civil and mechanical engineering students interested in structures.Italso covers typical mod-eling techniques employed in framed structures, such as rigid end zones and rigid floor diaphragms. Those not interested in these applications can skip this chapter without any loss in continuity.

5. Two-Dimensional Elements.Inthis chapter the basic finite element concepts are il--lustrated with reference to the following partial differential equation defined over an arbi-trary two-dimensional region:

The equation can easily be recognized as a generalization of the one-dimensional bound-ary value problem considered in Chapter 3. Steady-state heat flow, a variety of fluid flow, and the torsion of planar sections are some of the common engineering applications that are governed by the differential equations that are special cases. of this general boundary value problem. Solutions of these problems using rectangular and triangular elements are presented in this chapter.

6. Mapped Elements. Quadrilateral elements and other elements that can have curved

sides are much more useful in accurately modeling arbitrary shapes. Successful develop-ment of these eledevelop-ments is based on the key concept of mapping. These concepts are dis-cussed in this chapter. Derivation of the Gaussian quadrature used to evaluate equations for mapped elements is presented. Four-sand eight-node quadrilateral elements are presented for solution of two-dimensional boundary value problems. The chapter also includes pro-cedures for forming triangles by collapsing quadrilaterals and for developing the so-called

infinite elements to handle far-field boundary conditions.

7. Analysis ofElastic Solids. The problem of determining stresses and strains in elastic

solids subjected to loading and temperature changes is considered in this chapter. The fundamental concepts from elasticity are reviewed. Using these concepts, the governing differential equations in terms of stresses and displacements are derived followed by the general form of finite element equations for analysis of elastic solids. Specific elements for analysis of plane stress and plane strain problems are presented in this chapter. The so-calledsingularity elements, designed to capture a singular stress field near a crack tip,

are discussed. This chapter is important for those interested in stress analysis. Those not interested in these applications can skip this chapter without any loss in continuity.

8.· Transient Problems. This chapter considers analysis of transient problems using

fi-nite elements. Formulations for both the transient field problems and the structural dynam-ics problems are presented in this chapter.

9. p-Formulation.Inconventional finite element formulation, each element is based on a specific set of interpolation functions. After choosing an element type, the only way to

(15)

PREFACE

obtain a better solution is to refihe the model. This formulation is calledh-formulation,

wherehindicates the generic size of an element. Analternative formulation, called the

p-formulation,is presented in this chapter. In this formulation, the elements are based on interpolation functions that may involve very high order terms. The initial finite element model is fairly coarse and is based primarily on geometric considerations. Refined solu-tions are obtained by increasing the order of the interpolation funcsolu-tions used in the formu-lation. Efficient interpolation functions have been developed so that higher order solutions can be obtained in a hierarchical manner from the lower order solutions.

10. Appendix A: Use of Commercial FEA Software. This appendix introduces students to two commonly used commercial finite element programs, ANSYS and ABAQUS. Con-cise instructions for solution of structural frameworks, heat flow, and stress analysis prob-lems are given for both programs.

11. Appendix B: Variational Form for Boundary Value Problems. The main body of the text employs the Galerkin approach for solution of general boundary value problems and the variational approach (using potential energy) for structural problems. The derivation of the variational functional requires familiarity with the calculus of variations. In the au-thor's experience, given that only limited time is available, most undergraduate students have difficulty fully comprehending this topic. For this reason, and since the derivation is not central to the finite element development, the material on developing variational functionals is moved to this appendix.Ifdesired, this material can be covered with the discussion of the Rayleigh-Ritz method in Chapter 2.

To keep the book to a reasonable length and to make it suitable for a wider audience, important structural oriented topics, such as axisymmetric and three-dimensional elasticity, plates and shells, material and geometric nonlinearity, mixed and hybrid formulations, and contact problems are not covered in this book. These topics are covered in detail in a companion textbook by the author entitled Advanced Topics in Finite Element Analysis of

Structures: With Mathematico'" and lvIATLAB® Computations,John Wiley, 2006.

UNIQUE FEATURES

(i) All key. ideas are introduced in chapters that emphasize the method as a way to find approximate solution of boundary value problems. Thus the book can be used effectively for students from a variety of disciplines..

(ii) The "big picture" chapter gives readers an overview of all the mechanical details of the finite element method very quickly. This enables instructors to start using commercial finite element software early in the semester; thus allowing plenty of opportunity to bring practical modeling issues into the classroom. The author is not aware of any other book that starts out in this manner. Few books that actually try to do this do so by taldng discrete spring and bar elements. In my experience this does not work very well because students do not see actual finite element applications. Also, this approach does not make sense to those who are not interested in structural applications.

(16)

(iii) Chapters 2 and 3 introduce fundamental finite element concepts through one-dimensional examples. The axial deformation problem is used for a gentle intro-duction to the subject. This allows for parameters to be interpreted in physical terms. The derivation of the governing equations and simple techniques for ob-taining exact solutions are included to help those who may not be familiar with the structural terminology. Chapter 3 also includes solution of one-dimensional boundary value problems without reference to any physical application for non-structural readers.

(iv) Chapter 4, on structural frameworks, is quite unique for books on finite elements. No current textbook that approaches finite elements from a differential equation point of view also has a complete coverage of structural frames, especially in three dimensions. In fact, even most books specifically devoted to structural analysis do not have as satisfactory a coverage of the subject as provided in this chapter. (v) Chapters 5 and 6 are two important chapters that introduce key finite element

concepts in the context of two-dimensional boundary value problems. To keep the integration and differentiation issues from clouding the basic ideas, Chap-ter 5 starts with rectangular elements and presents complete examples using such elements. The triangular elements are presented next. By the time the mapped elements are presented in Chapter 6, there are no real finite element-related con-cepts left.Itis all just calculus. This clear distinction between the fundamental concepts and calculus-related issues gives instructors flexibility in presenting the material to students with a wide variety of mathematics background.

(vi) Chapter 9, on p-formulation, is unique. No other book geared toward the first fi-nite element course even mentions this important formulation. Several ideas pre-sented in this chapter are used in recent development of the so-calledmesh less

methods.

(vii) Mathematica and MATLAB ,implementations are included to show how

calcula-tions can be organized using' a computer algebra system. These implementacalcula-tions require only the very basic understanding of these systems. Detailed examples are presented in Chapter 1 showing how to generate and assemble element equa-tions, reorganize matrices to account for boundary condiequa-tions, and then solve for primary and secondary unknowns. These steps remain exactly the same for all im-plementations. Most of the other implementations are nothing more than element matrices written usingMathematica or MATLAB syntax.

(viii) Numerous numerical examples are included to clearly show all computations in-volved.

(ix) All chapters contain problems for homework assignment. Most chapters also contain problems suitable for computer labs and projects. The accompanying web site (www.wiley.com/go/bhatti) contains all text examples, MATLAB and

Mathematica functions, and ANSYS and ABAQUS files in electronic form. To

keep the printed book to a reasonable length most examples skip some compu-tations. The web site contains full computational details of-these examples. Also the book generally alternates between showing examples done withMathematica

and MATLAB. The web site contains implementations of all examples in both

(17)

PREFACE

tVPICAL COURSES

The book can be used to develop a number of courses suitable for different audiences.

First Finite Element Course for Engineering Students About 32 hours of lec-tures and 12 hours of labs (selected materials from indicated chapters):

Chapter l: Finite element procedure, discretization, element equations, assembly, boundary conditions, solution of primary unknowns and element quantities, reactions, solution validity (4 hr)

Chapter 2: Weak form for approximate solution of differential equations, Galerkin method, approximate solutions using Rayleigh-Ritz method, comparison of Galerkin and Rayleigh-Ritz methods, Lagrange and Hermite interpolation, axial deformation element using Rayleigh-Ritz and Galerkin methods (6 hr)

Chapter 3: ID BVP, FEA solution ofBVP, ID BVP applications (3 hr)

Chapter 4: Finite element for beam bending, beam applications, structural frames (3 hr) Chapter 5: Finite elements for 2D and 3D problems, linear triangular element for second-order 2D BVP, 2D fluid flow and torsion problems (4 hr)

Chapter 6: 2D Lagrange and serendipity shape functions, mapped elements, evaluation of area integrals for 2D mapped elements, evaluation of line integrals for 2D mapped elements (4 hr)

Chapter 7: Stresses and strains in solids, finite element analysis of elastic solids, CST and isoparametric elements for plane elasticity (4 hr)

Chapter 8: Transient problems (2 hr) Review, exams (2 hr)

About 12 hours of labs (some sections from the indicated chapters supplemented by docu-mentation of the chosen commercial software):

Appendix: Introduction to Mathematica and/or MATLAB (2 hr)

Chapters 1 and 4: Software documentation, basic finite element procedure using com-mercial software, truss and frame problems (2 hr)

Chapters 1 and 5: Software documentation, 2D mesh generation, heat flow problems

(2hr)

Chapters 1 and 7: 2D, axisymmetric, and 3D stress analysis problems (2 hr) Chapter 8: Transient problems (2 hr)

Software documentation: Constraints, design optimization (2 hr)

First Finite Element Course for Students Not Interested in Structural Appli-cations Skip Chapters 4 and 7. Spend more time on applications in Chapters 5 and 6. Introduce Chapter 9: p-Formulation. In the labs replace truss, frame, and stress analysis problems with appropriate applications.

Finite Element Course for Practicing Engineers From the current book: Chapters 1, 2, 6, and 7. From the companion advanced book: Chapters 1, 2, and 5 and selected material from Chapters 6, 7, and 8.

(18)

Finite Element Modeling and Applications For a short course on finite element modeling or self-study, it is suggested to cover the first chapter in detail and then move on to Appendix A for specific examples of using commercial finite element packages for solution of practical problems.

ACKNOWLEDGMENTS

Most of the material presented in the book has become part of the standard finite element literature, and hence it is difficult to acknowledge contributions of specific individuals. I am indebted to the pioneers in the field and the authors of all existing books and journal papers on the subject. I have obviously benefited from their contributions and have used a good number of them in my over 20 years of teaching the subject.

I wrote the first draft of the book in early 1990. However, the printed version has prac-tically nothing in common with that first draft. Primarily as a result of questions from my students, I have had to make extensive revisions almost every year. Over the last couple of years the process began to show signs of convergence andthe result is what you see now. Thus I would like to acknowledge all direct and indirect contributions of my former students. Their questions hopefully led me to explain things in ways that make sense to most readers. (A note to future students and readers: Please keep the questions coming.)

I want to thank my former graduate student Ryan Vignes, who read through several drafts of the book and provided valuable feedback. Professors Jia Liu and Xiao Shaoping used early versions of the book when they taught finite elements. Their suggestions have helped a great deat in improving the book. My colleagues Professors Ray P.S. Han, Hosin David Lee, and Ralph Stephens have helped by sharing their teaching philosophy and by keeping me in shape through heated games of badminton and tennis.

Finally, I would like to acknowledge the editorial staff of John Wiley for doing a great job in the production of the book. 1'/am especially indebted to Jim Harper, who, from our first meeting in Seattle in 2003, has been in constant communication and has kept the process going smoothly. Contributions of senior production editor Bob Hilbert and editorial assistant Naomi Rothwell are gratefully acknowledged.

(19)

CHAPTER ONE

5 ·

FINITE ELEMENT METHOD:

THE BIG PICTURE

Application of physical principles, such as mass balance, energy conservation, and equi-librium, naturally leads many engineering analysis situations into differential equations. Methods have been developed for obtaining exact solutions for various classes of differ-ential equations. However, these methods do not apply to many practical problems be-cause either their governing differential equations do not fall into these classes or they involve complex geometries. Finding analytical solutions that also satisfy boundary condi-tions specified over arbitrary two- and three-dimensional regions becomes a very difficult task. Numerical methods are therefore widely used for solution of practical problems in all branches of engineering.

The finite element method is one of the numerical methods for obtaining approximate solution of ordinary and partial differential equations.Itis especially powerful when deal-ing with boundary conditions defined over complex geometries that are common in practi-cal applications. Other numeripracti-cal methods such as finite difference and boundary element methods may be competitive or even superior to the finite element method for certain classes of problems. However, because of its versatility in handling arbitrary domains and availability of sophisticated commercial finite element software, over the last few decades, the finite element method has become the preferred method for solution of many practi-cal problems. Only the finite element method is considered in detail in this book. Readers interested in other methods should consult appropriate references, Books by Zienkiewicz and Morgan [45], Celia and Gray [32], and Lapidus and Pinder [37] are particularly useful for those interested in a comparison of different methods.

The application of the finite element method to a given problem involves the following six steps:

(20)

1. Development of element equations

2. Discretization of solution domain into a finite element mesh 3. Assembly of element equations

4. Introduction of boundary conditions 5. Solution for nodal unknowns

6. Computation of solution and related quantities over each element

The key idea of the finite element method is to discretize the solution domain into a number of simpler domains called elements. An approximate solution is assumed over an element in terms of solutions at selected points called nodes. To give a clear idea of the overall finite element solution process, the finite element equations for a few simple elements are presented in Section 1.1. Obviously at this stage it is not possible to give derivations of these equations. The derivations must wait until later chapters after we have developed enough theoretical background. Few general remarks on discretization are also made in Section 1.1. More specific comments on modeling are presented in later chap-ters when discussing various applications. Important steps of assembly, handling boundary conditions, and solutions for nodal unknowns and element quantities remain essentially unchanged for any finite element analysis. Thus these procedures are explained in detail in Sections 1.2, 1.3, and 104. These steps are fairly mechanical in nature and do not require complex theoretical development. They are, however, central to actually obtaining a finite element solution for a given problem. Therefore, it is important to fully master these steps before proceeding to the remaining chapters in the book.

The finite element process results in a large system of equations that must be solved for determining nodal unknowns. Several methods are available for efficient solution of these large and relatively sparse systems of equations. A brief introduction to two commonly employed methods is given in Section 1.5. In some finite element modeling situations it becomes necessary to introduce constraints in the finite element equations. Section 1.6 presents examples of few such situations and discusses two different methods for handling these so-called multipoint constraints. A brief section on appropriate use of units in nu-merical calculations concludes this chapter.

1.1 DISCRETIZATION AND ELEMENT EQUATIONS

Each analysis situation that is described in terms of one or more differential equations requires an appropriate set of element equations. Even for the same system of governing equations, several elements with different shapes and characteristics may be available.It

is crucial to choose an appropriate element type for the application being considered. A proper choice requires knowledge of alldetails of element formulation and a thorough understanding of approximations introduced during its development.

A key step in the derivation of element equations is an assumption regarding the solution of the goveming differential equation over an element. Several practical elements are avail-able that assume a simple linear solution. Other elements use more sophisticated functions to describe solution over elements. The assumed element solutions are written in terms of unknown solutions at selected points called nodes. The unknown solutions at the nodes are

(21)

DISCRETIZATION AND ELEMENT EQUATIONS

generally referred to as the nodal degrees offreedom, a terminology that dates back to the early development of the method by structural engineers. The appropriate choice of nodal degrees of freedom depends on the governing differential equation and will be discussed in the following chapters.

The geometry of an element depends on the type of the governing differential equation. For problems defined by one-dimensional ordinary differential equations, the elements are straight or curved line elements. For problems governed by two-dimensional partial differ-ential equations the elements are usually of triangular or quadrilateral shape. The element sides may be straight or curved. Elements with curved sides are useful for accurately mod-eling complex geometries common in applications such as shell structures and automobile bodies. Three-dimensional problems require tetrahedral or solid brick-shaped elements. Typical element shapes for one-, two-, andthree-dimensional (lD, 2D, and 3D) problems are shown in Figure 1.1. The nodes on the elements are shown as dark circles.

Element equations express a relationship between the physical parameters in the gov-erning differential equations and the nodal degrees of freedom. Since the number of equa-tions for some of the elements can be very large, the element equaequa-tions are almost always written using a matrix notation. The computations are organized in two phases. In the first phase (the element derivation phase), the element matrices are developed for a typical ele-ment that is representative of all eleele-ments in the problem. Computations are performed in a symbolic form without using actual numerical values for a specific element. The goal is to develop general formulas for element matrices that can later be used for solution of any numerical problem belonging to that class. In the second phase, the general formulas are used to write specific numerical matrices for each element.

One of the main reasons for the popularity of the finite element method is the wide availability of general-purpose finite element analysis software. This software development is possible because general element equations can be programmed in such a way that, given nodal coordinates and other physical parameters for an element, the program returns numerical equations for that element. Commercial finite element programs contain a large library of elements suitable for solution of a wide variety of practical problems.

3

ID Elements

2D Elements

3D Elements

(22)

To give a clear picture of the overall finite element solution procedure, the general fi-nite element equations for few commonly used elements are given below. The detailed derivations of these equations are presented in later chapters.

1.1.1 Plane Truss Element

Many structural systems used in practice consist of long slender shapes of various cross sections. Systems in which the shapes are arranged so that each member primarily resists axial forces are usually known astrusses.Common examples are roof trusses, bridge sup-ports, crane booms, and antenna towers. Figure 1.2 shows a transmission tower that can be modeled effectively as a plane truss. For modeling purposes all members are consid-ered pin jointed. The loads are applied at the joints. The analysis problem is to find joint displacements, axial forces, and axial stresses in different members of the truss."

Clearly the basic element to analyze any plane truss structure is a two-node straight-line element oriented arbitrarily in a two-dimensional x-y plane, as shown in the Figure 1.3. The element end nodal coordinates are indicated by(Xl'YI) and(x2'Y2).The element axissruns from the first node of the element to the second node. The angleadefines the orientation of the element with respect to a global x-y coordinate system. Each node has two displacement degrees of freedom, uindicating displacement in theXdirection and v indicating displacement in they direction. The element can be subjected to loads only at

its ends.

Using these elements, the finite element model of the transmission tower is as shown in Figure 1.4. The model consists of 16 nodes and 29 plane truss elements. The element numbers and node numbers are assigned arbitrarily for identification purposes.

600 570 540 480 420 10001b 10001b 300 180

o

300 180 96

o

6096 180 300in Figure 1.2. Transmission tower

(23)

y

DISCRETIZATION AND ELEMENT EQUATIONS 5

Nodal dof End loads

Figure 1.3. Plane truss element

x

Element numbers

Figure 1.4. Planetruss element model of the transmission tower

Using procedures discussed in later chapters, it can be shown that the finite element equations for a plane truss-dement are as follows:

Islns In; -lsln

s

-In;

-1;

-Is Ins

z2

s Islns

whereE=elastic modulus of the material (Young's modulus),A=area of cross section of the element, L

=

length of the element, andIs. Ins are the direction cosines of the element

axis (line from element node 1 to 2). Here,Is is the cosine of angleabetween the element axis and thex axis (measured 'counterclockwise) and Ins is the cosine of angle between the

(24)

In the element equations the left-hand-side coefficient matrix is usually called the stiffness

matrixand the right-hand-side vector as the nodal load vector. Note that once the element end coordinates, material property, cross-sectional area, and element loading are specified, the only unknowns in the element equations are the nodal displacements.

Itis important to recognize that the element equations refer to an isolated element, We cannot solve for the nodal degrees of freedom for the entire structure by simply solving the equations for one element. We must consider contributions of all elements, loads, and support conditions before solving for the nodal unknowns. These procedures are discussed in detail in later sections of this chapter.

Example 1.1 Write finite element equations for element number 14 in the finite element

model of the transmission tower shown in Figure 1.4. The tower is made of steel

(!i..=-29

x

106Ib/in2)angle sections. The area of cross section of element 14 is 1.73 in2.

The element is connected between nodes 7 and 9. We can choosee~as th~first node of the element. Choosing node 7 as the first node establishes the elementsaxis as going from node 7 toward 9. The origin of the global x-y coordinate system can be placed at any convenient location. Choosing the centerline of the tower as the origin, the nodal coordinates for the element 14 are as follows:

First node (node 7)=(-60, 420) in; Second node (node 9)=(-180, 480) in;

XI

=

-60;

x2

=

-180;

YI =420 Y2=480

Using these coordinates, the element length and the direction cosines can easily be calcu-lated as follows:

Element length:

Element direction cosines:

---L

=

~(X2

-xll

+

(Y2 - YI)2

=

60-{5

in ;' _ x2 - XI _ 2.

112

=

Y2 - YI

=

_l_

Is - - L - - -

-{5'

s L

-{5

From the given material and section properties,

E

=

29000000Ib/in2;

E:

=

373945. lb/in

Using these values, the element stiffness matrix (the left-hand side of the element equa-tions) can easily be written as follows:

[

z2

k

=

EA

Isl~s

L -I; -lm, Isms

112;

-Isms

-112;

-I;

-Isms 12s Isms -Isms]

-m; _

[299156. -149578. Isms - "':299156.

112;

149578. -149578. 74789. 149578. -74789. -299156. 149578. 299156.' -149578. 149578.] -74789. -149578. 74789.

The right-hand-side vector of element equations represents applied loads at the element ends. There are no loads applied at node 7. The applied load of 1000 lb at node 9 is shared by elements 14, 16,23, and 24. The portion taken by element 14 cannot be determined

(25)

DISCRETIZATION AND ELEMENT EQUATIONS

without detailed analysis of the tower, which is exactly what we are attempting to do in the first place. Fortunately, to proceed with the analysis, it is not necessary to know the portion of the load resisted by different elements meeting at a common node. As will become clear in the next section, in which we consider the assembly of element equations, our goal is to generate a global system of equations applicable to the entire structure. As far as the entire structure is concerned, node 9 has an applied load of 1000 lb in the-y direction. Thus, it is

immaterial how we assign nodal loads to the elements as long as the total load at the node is equal to the applied load. Keeping this in mind, when computing element equations, we can simply ignore concentrated loads applied at the nodes and apply them directly to the global equations at the start of the assembly process. Details of this process are presented in a following section.

~Assumingnod'!JJQ.ads aretQ.~dedgU:~£:Jly~t.Q..!h£.g12Qe1.~q1!,gJjQ!1~~,!h~.1injj:e el~ent

equ~!~ons!2E..c::!.~ment14 ar£§:§...f9JIRWJ/;,.

7 [ 299156. -149578. -299156. -149578. 74789. 149578. -299156. 149578. 299156. 149578. -74789. -149578. 149578.]

[U7]

[0] -74789. v7 _ 0 -149578. u9 ' - 0 ' 74789. v9 0

~

MathematicafMATLAB

Implementation

:n..l

on the Book Web Site:

Plane truss element equations

1.1.2 Triangular Element for Two-Dimensional Heat Flow

Consider the problem of finding steady-state temperature distribution in long chimneylike structures. Assuming no temperature gradient in the longitudinal direction, we can talce a unit slice of such a structure and model it as a two-dimensional problem to determine the temperature

T(x,

y).Using conservation of energy on a differential volume, the following governing differential equation can easily be established.:

_. a (aT)

a ( aT)

ax k

x

ax

+

ay k

y

ay

+ Q

=

0

wherekxand kyare thermal conductivities in thexandydirections andQ(x,y)is specified heat generation per unit volume. Typical units for k areW/m-°C or Btu/hr· ft· OF and those for

Q

areW1m3or Btu/hr . ft3. The possible boundaryconditions are as follows:

(i) Known temperature along a boundary:

T

=

Tospecified (ii) Specified heat flux along a boundary:

(26)

y(m) 0.03 0.015 qo

o

To

o

n 0.03 0.06 x (m) n

Figure 1.5. Heat flow through an L-shaped solid: solution domain and unit normals

wherenxandny are the x and Y, components of the outer unit normal vector to the boundary (see Figure 1.5 for

an

example):

Inl

=

~

n;

+

n;

=

1

On an insulated boundary or across a line of symmetry there is no heat flow and thusqo

=

O.The sign convention for heat flow is that heat flowing into a body is positive and that flowing out of the body is negative.

(iii) Heat loss due to convection along a boundary:

st

(aT

aT)

-k an == - kxax nx+kyay ny

=

h(T - Too)

wherehis the convection coefficient,Tis the unknown temperature at the bound-ary, andToo is the known temperature of the surrounding fluid. Typical units for h

are W/m2· ·Cand Btulhr· ft2•"P,

As a specific example, consider two-dimensional heat flow over an L-shaped body shown in Figure 1.5. The thermal conductivity in both directions is the same, kx

=

ky

=

(27)

DISCRETIZATION AND ELEMENTEQUATIONS

45 Wlm . °C. The bottom is maintained at a temperature of To

=

110°C. Convection heat loss takes place on the top where the ambient air temperature is 20°C and the convection heat transfer coefficient ish

=

55W/m2·C. The right side is insulated. The left side is

subjected to heat flux at a uniform rate ofqo

=

8000 W/m2.Heat is generated in the body at a rate ofQ

=

5X106W1m3.

Substituting the given data into the governing differential equation and the boundary conditions, we see that the temperature distribution over this body must satisfy the follow-ing conditions:

9

Over the entire L-shaped region

On the left side(lix=-1,ny=0) On the bottom of the region

On the right side(nx

=

1,ny

=

0) On the horizontal portions of

the top side(nx

=

0,ny

=

1) On the vertical portion of the

top side(nx

=

1,l1y

=

0) 45

(a

2 ;

+

a

2 ; )

+

5X106

=

0

ax

ay

_ (45aT(-1»)

=

8000 => aT

=

8000 alongx

=

0

ax

ax

45 T

=

110 alongy

=

0 aT

=

0 alongx

=

0.06

ax

( aT ) ei 55 - 45

ay

(1)

=

55(T - 20)=>

ay

=-

45(T - 20) ( aT ) et 55 - 45

ax

(1)

=

55(T - 20)=>

ax

= -

45(T - 20)

Clearly there is little hope of finding a simple function T(x,y) that satisfies all these re-quirements. We must resort to various numerical techniques. In the finite element method, the domain is discretized into a collection of elements, each one of them being of a simple geometry, such as a triangle, a rectangle, or a quadrilateral.

A triangular element for solution of steady-state heat flow over two-dimensional bod-ies is shown in Figure 1.6. The element can be used for finding temperature distribution

y

- - - x

(28)

over any two-dimensional body subjected to conduction and convection. The element is defined by three nodes with nodal coordinates indicated by(xI' YI)' (Xz'Yz),and(x3'Y3)' The starting node of the triangle is arbitrary, but we must move counterclockwise around the triangle to define the other two nodes. The nodal degrees of freedom are the unknown temperatures at each nodeTp T

z'

and

13.

For the truss model considered in the previous section, the structure was discrete to start with, and thus there was only one possibility for a finite element model. This is not the case for the two-dimensional regions. There are many possibilities in which a two-dimensional domain can be discretized using triangular elements. One must decide on the number of elements and their arrangement. In general, the accuracy of the solution improves as the number of elements is increased. The computational effort, however, increases rapidly as well. Concentrating more elements in regions where rapid changes in solution are expected produces finite element discretizations that give excellent results with reasonable com-putational effort. Some general remarks on constructing good finite element meshes are presented in a following section. For the L-shaped solid a very coarse finite element dis-cretization is as shown in Figure 1.7 for illustration. To get results that are meaningful from an actual design point of view, a much finer mesh, one with perhaps 100 to 200 elements, would be required.

The finite element equations for a triangular element for two-dimensional steady-state heat flow are derived in Chapter 5. The equations are based on the assumption of linear

y Element numbers 0.03 0.025 0.02 0.015 0.01 0.005 0 x 0 0.01 .0.02 0.03 0.04 0.05 0.06 y Node numbers 0.03 0.025 0.02 0.015 21 0.01 0.005 20 0 1 6 11 16 19 x 0 0.01 0.02 0.03 0.04 0.05 0.06

(29)

DISCRETIZATION AND ELEMENT EQUATIONS

temperature distribution over the element.Interms of nodal temperatures, the temperature distribution over a typical element is written as follows:

where

The quantitiesNi ,i

=

1, 2, 3, are known as interpolation or shape functions. The.superscript T overNindicates matrix transpose. The vectord is the vector of nodal unknowns. The terms bl ,cI ' ...depend on element coordinates and are defined as follows:

11 C I=X3-X2;

II

=

XiY3 - x3Y 2 ; C2

=

xI - X3;

1

2 =X3YI - XIY3; b3

=

YI - Y2 C3= X2- Xj

1

3=X IY2 - X2YI

The area of the triangleA can be computed from the following equation:

where det indicates determinant of the matrix.

A note on the notation employed for vectors and matrices in this book is in order here. As an easy-to-remember convention, all vectors are considered column vectors and are denoted by boldface italic characters. When an expression needs a row vector, a super-scriptTis used to indicate that it is the transpose of a column vector. Matrices are also denoted by boldface italic characters. The numbers of rows and columns in a matrix should be carefully noted in the initial definition. Remember that, for matrix multipli-cation to make sense, the number of columns in the first matrix should be equal to the number of rows in the second matrix. Since large column vectors occupy lot of space on a page, occasionally vector elements may be displayed in

a

row to save space. However, for matrix operations, they are still treated as column vectors.

(30)

wherekx

=

heat conduction coefficient in thexdirection,ky

=

heat conduction coefficient

in they direction, andQ

=

heat generated per unit volume over the element. The matrix Je"and the vector

r"

take into account any specified heat loss due to convection along one or more sides of the element. Ifthe convection heat loss is specified along side 1 of the element, then we have

Convection along side 1: k = hL12

[

2 1 0)

1 2 0 .

" 6 '

0 0 0

- hTooL12 [ 11)

r" -

- - 2 - .

o

where h

=

convection heat flow coefficient, Too

=

temperature of the air or other fluid surrounding the body, and L12

=

length of side 1 of the element. For convection heat flow along sides 2 or 3, the matrices are as follows:

J.

=hL23[~

0

n

r"

=

hT~~3

0)

Convection along side 2:

e" '

6 2 0 1

,

~hI,,[~

0

~);

- hTooL31

[~)

Convection along side 3:

e"

6 0

r,,-

?

-I'

1 0 - 1

where L23 and L31 are lengths of sides 2 and 3 of the element. The vector

r

q is due to

possible heat fluxqapplied along one or more sides of the element: Applied flux along side 1:

Applied flux along side 2:

Applied flux along side 3:

r,

~ q~"

UJ

r,~

qi'[!j

r,~

qi'

m

If convection or heat flux is specified on more than one side of an element, appropriate matrices are written for each side and then added together. For an insulated boundaryq=0, and hence insulated boundaries do not contribute anything to the element equations.

(31)

DISCRETIZATION AND ELEMENT EQUATIONS

As mentioned in the previous section, we cannot solve for nodal temperatures by simply solving the equations for one eiement. We must consider contributions ofallelements and specified boundary conditions before solving for the nodal unknowns. These procedures are discussed in detail in later sections in this chapter.

Example 1.2 Write finite element equations for element number 20 in the finite element

model of the heat flow through the L-shaped solid shown in Figure 1.7.

The element is situated between nodes 4, 10, and 5. We can choose any of the three nodes as the first node of the element and define the other two by moving counterclockwise around the element. Choosing node 4 as the first node establishes line 4-10 as the first side of the element, line 10-5 as the second side, and line 5-4 as the third side. The origin of the globalx-y coordinate system can be placed at any convenient location. Choosing node

1 as the origin, the coordinates of the element end nodes are as follows:

13

Node 1 (global node 4) = (O., 0.0225) m; Node 2 (global node 10) = (O.015, 0.03) m;

Node 3 (global node 5) = (O., 0.03) m;

XI =0.; x2

=

0.015; x3

=

0.; YI

=

0.0225 Y2=0.03 Y3

=

0.03

Using these coordinates, the constantsbi' ci, and

I,

and the element area can easily be computed as follows: b,=0.; cI=-0.015; II

=

0.00045; b2

=

0.0075; c2

=

0.;

1

2=0.; b3

=

-0.0075 c3

=

0.015

1

3

=

-0.0003375 Element Area.= 0.00005625

From the given data the thermal conductivities and heat generated over the solid are as follows:

Q

= 5000000

Substituting these numerical values into the element equation expressions, the matriceslck

andrQcan easily be written as follows:

There is an applied heat flux on side 3 (line 5-4) of the element. The length of this side of the element is 0.0075 m and Withq = 8000 (a positive value since heat is flowing into the

body) therqvector for the element is as follows:

Heat flux on side 3 with coordinates ({O., 0.0225) (O., 0.03)),

L

=

0.0075; q

=

8000 ( 45. lck= O. -45. ( 93.75]

"a

=

93.75 93.75

(32)

[

30.)

rq

= a ,

30.

The side 2 of the element is subjected to heat loss by convection. The convection term generates a matrix

kh

and a vector

rho

Substituting the numerical values into the formulas, these contributions are as follows:

Convection on side2 with coordinates ((0.015, 0.03) (0.,0.03}),

L

=

0.015; h

=

55; Too

=

20

kh=[~ ~.275 ~.1375);rh=[8.~5)'

a

0.1375 0.275 8.25

Adding matriceskk andkhand vectorsrQ ,rq,andrh ,the complete element equations are

as follows: [ 45. O. -45. O. -45.

)[T

4 )

[123.75)

11.525 -11.1125 TIO

=

102. -11.1125 56.525 Ts

132.

• MathematicalMATLAB Implementation 1.2 on the Book Web Site:

Triangular element for heat flow

1.1.3 General Remarks on Finite Element Discretization

The accuracy of a finite element analysis depends on the number of elements used in the model and the arrangement of elements. Ingeneral, the accuracy of the solution im-proves as the number of elementsis'increased. The computational effort, however, in-creases rapidly as well. Concentrating more elements in regions where rapid changes in solution are expected produces finite element discretizations that give excellent results with reasonable computational effort. Some general remarks on constructing good finite element meshes follow.

1. Physical Geometry of the Domain. Enough elements must be used to model the

physical domain as accurately as possible. For example, when a curved domain is to be discretized by using elements with straight edges, one must use a reasonably large number of elements; otherwise there will be a large discrepancy in the actual geometry and the dis-cretized geometry used in the model. Figure 1.8 illustrates error in the approximation of a curved boundary for a two-dimensional domain discretized using triangular elements. Us-ing more elements along the boundary will obviously reduce this discrepancy.Ifavailable, a better option is to use elements that allow curved sides.

2. Desired Accuracy. Generally, using more elements produces more accurate results. 3. Element Formulation. Some element formulations produce more accurate results

than others, and thus formulation employed in a particular element influences the num-ber of elements needed in the model for a desired accuracy.

(33)

DISCRETIZATION AND ELEMENTEQUATIONS

Actual boundary

Figure 1.8. Discrepancy in the actual physical boundary and the triangular element model geometry

15

Valid mesh

x

Invalid mesh

Figure 1.9. Valid and invalid mesh for four-node elements

4. Special Solution Characteristics. Regions over which the solution changes rapidly

generally require a large number of elements to accurately capture high solution gradients. A good modeling practice is to start with a relatively coarse mesh to get an idea of the solution and then proceed with more refined models. The results from the coarse model are used to guide the mesh refinement process.

5. Available Computational Resources. Models with more elements require more

com-putational resources in terms of memory, disk space, and computer processor.

6. Element Interfaces.J;:~ementsare joined together at nodes (typically shown as dark circles on the finite element meshes). The solutions at these nodes are the primary variables in the finite element procedure. For reasons that will become clear after studying the next few chapters, it is important to create meshes in which the adjacent elements are always connected from comer to comer. Figure 1.9 shows

an

example of a valid and an invalid mesh when empioying four-node quadrilateral elements. The reason why the three-element mesh on the right is invalid is because node 4 that forms a comer of elements 2 and 3 is not attached to one of the four comers of element 1.

7. Symmetry. For many practical problems, solution domains and boundary conditions

are symmetric, and hence one can expect symmetry in the solution as well.Itis impor-tant to recognize such symmetry and to model only the symmetric portion of the solution domain that gives information for the entire model. One common situation is illustrated in the modeling of a notched-beam problem in the following section. Besides the obvious advantage of reducing the model size, by taking advantage of symmetry, one is guaran-teed to obtain a symmetric solution for the problem. Due to the numerical nature of the

(34)

Figure 1.10. Unsymmetrical finite element mesh for a symmetric notched beam

501b/in2

Figure 1.11. Notched beam

finite element method and the unique characteristics of elements employed, modeling the entire symmetric region may in fact produce results that are not symmetric. As a simple illustration, consider the triangular element mesh shown in Figure 1.10 that models the entire notched beam of Figure 1.11. The actual solution should be symmetric with respect to the centerline of the beam. However, the computed finite element solution will not be entirely symmetric because the arrangement of the triangular elements in the model is not symmetric with respect to the midplane.

A general rule of thumb to follow in a finite element analysis is to start with a fairly coarse mesh. The number and arrangement of elements should be just enough to get a good approximation of the geometry, loading, and other physical characteristics of the problem. From the results of this coarse model, select regions in which the solution is changing rapidly for further refinement. To see solution convergence, select one or more critical points in the model and monitor the solution at these points as the number of elements (or the total number of degrees of freedom) in the model is increased. Initially, when the meshes are relatively coarse, there should be significant change in the solution at these points from one mesh to the other. The solution should begin to stabilize after the number of elements used in the model has reached a reasonable level.

1.1.4 Triangular Element for Two-Dimensional Stress Analysis

As a final example of the element equations, consider the problem of finding stresses in the notched beam of rectangular cross section shown in Figure 1.11. The beam is 4 in thick in the direction perpendicular to the plane of paper and is made of concrete with modulus of elasticity E

=

3 x 1061b/in2and Poisson's ratio

v

=

0.2.

Since the beam thickness is small as compared to the other dimensions, it is reasonable to consider the analysis as a plane stress situation in which the stress changes in the thick-ness direction are ignored. Furthermore, we recognize that the loading and the geometry are symmetric with respect to the plane passing through the midspan. Thus the displace-ments must be symmetric and the points on the plane passing through the midspan do not experience any displacement in the horizontal direction. Taking advantage of these

References

Related documents

This study found that the factors including children aged less than 2 years old, 2-3 family members per household, and parents’ knowledge of HFMD prevention and control are

Those who use the term "Free Software" stress the rights (or freedoms) which that software provides to its users, whereas users of the term "Open Source

Hybrids resulting from interspecific crosses in some species such as potato (Marfil et al. 2006 ), showed changes in the DNA methylation pattern compared with parental

Our first research question was concerned with the effects of manipulating the cognitive complexity of a writing task on the L2 writing process, in particular, whether providing

The structured advanced search interface also supports only basic Boolean operators but additionally permits field searching in a limited number of fields (full-text,

Approved: 2009 Lo w-Allo y Steels MIM Material Pr oper ties—Inc h-P ound Units MINIMUM VALUES TYPICAL VALUES Tensile Properties Tensile Properties Elastic Constants Unnotched

Žene dugo nisu imale prava u javnom životu zajednice, a kada su se napokon, pojedine žene ustale i zbog toga pobunile, veliki je dio žena ostao i dalje sjediti kraj topline

We have studied the case where the excludable public good is an intermediate good in a framework where optimal commodity taxes on the consumer goods are available. Given the