MATLAB Codes for Finite Element Analysis Solids and Structures

This book illustrates how MATLAB compact and powerful programming framework can be very useful in the finite element analysis of solids and structures. The book shortly introduces finite element concepts and an extensive list of MATLAB codes for readers t

  • PDF / 2,295,744 Bytes
  • 8 Pages / 439.37 x 666.142 pts Page_size
  • 55 Downloads / 201 Views

DOWNLOAD

REPORT


MATLAB Codes for Finite Element Analysis Solids and Structures

A.J.M. Ferreira Universidade do Porto Portugal

123

Preface

This book intend to supply readers with some MATLAB codes for finite element analysis of solids and structures. After a short introduction to MATLAB, the book illustrates the finite element implementation of some problems by simple scripts and functions. The following problems are discussed: • • • • •

Discrete systems, such as springs and bars Beams and frames in bending in 2D and 3D Plane stress problems Plates in bending Free vibration of Timoshenko beams and Mindlin plates, including laminated composites • Buckling of Timoshenko beams and Mindlin plates The book does not intends to give a deep insight into the finite element details, just the basic equations so that the user can modify the codes. The book was prepared for undergraduate science and engineering students, although it may be useful for graduate students. The MATLAB codes of this book are included in the disk. Readers are welcomed to use them freely. The author does not guarantee that the codes are error-free, although a major effort was taken to verify all of them. Users should use MATLAB 7.0 or greater when running these codes. Any suggestions or corrections are welcomed by an email to [email protected]. Porto, Portugal,

Ant´ onio Ferreira 2008

v

Contents

1

Short introduction to MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.2 Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.3 Operating with matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.4 Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.5 Matrix functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.6 Conditionals, if and switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.7 Loops: for and while . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.8 Relations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.9 Scalar functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.10 Vector functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.11 Matrix functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.12 Submatrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.13 Logical indexing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.14 M-files, scripts and functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.15 Graphics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .