Aplicación de Elementos Finitos
Departamento de Ingeniería Mecánica y Mecatrónica
Curso teórico-practico.
Andrés Felipe Carrera (
[email protected])
Edificio 407 – Oficina 204
Matlab introduction
Files in the
Workspace
folder
Script
Command window
5/04/2019 Curso de Elementos Finitos para pregrado 2
Matlab basic operator
• Clc command: erase command window
• Clear command: erase the variables on the
space work
• % command: Write a commentary
• Help command: open the help window
• Matlab not take into aacount the spaces m,n - whole
• Matlab evaluate the sentences but not shown x,y - scalars
the result uses (;)
• If the sentence is to long, use (…) and enter
the next space
5/04/2019 Curso de Elementos Finitos para pregrado 3
Matlab matrix and vector operations and declarations
• To define a vector/matrix uses ([ ]), it can
use ( scpace or (,) ) to define each carácter
of the matrix/vector
Ex: x = [5 7 -2 4 -6] ; ans: X= 5 7 -2 4 -6;
• Linspace command: generate a vector
between a,b values with equally spaced c
Ex: h=linspace(2,6,3); ans: h= 2 4 6;
• Matrix construcction:
• Zeros(n): define a square matrix (nxn)
of zeros
• Zeros(m,n): define a mxn matrix of
zeros
• Ones(n): define a square matrix (nxn)
of ones
5/04/2019 Curso de Elementos Finitos para pregrado 4
Matlab matrix function and operations
A matrix, and m,n natural numbers
A matrix; V vector; n natural number
5/04/2019 Curso de Elementos Finitos para pregrado 5
Matlab plot (2D)
• X=[-2 -1 0 1 2 3]; X = [-2 -1 0 1 2 3];
Y = [4 1 0 1 4 9];
• Y=[4 1 0 1 4 9];
Z = [6 5 3 7 5 2]; Define labels during
• Plot (X,Y); plot (X,Y,X,Z); the graphic function
5/04/2019 Curso de Elementos Finitos para pregrado 6
Matlab programming (For, While, If)
In each iteration the variable The while command execute The if iteration evaluated the
obtain the i-esim value, and the order while every logic expression, if its true, then
execute the order. elements of the expressions execute the orders
are true.
5/04/2019 Curso de Elementos Finitos para pregrado 7
Matlab excercises
1. Create two polynoms of 4 and 5 order and evaluate in a domain (0<x<1), plot its function.
2. Create two vectors (V,W) with the same size and operate each them:
• V*W
• V*W(dot ptoduct)
• VxW
• Define the transpose vector of V and W
3. Obtain the derivate function of the early polynoms in ponit 1.
4. Create a programme that shows the odd number of the x domain (0<x<100)
Send the work in .rar file with the name and group.
5/04/2019 Curso de Elementos Finitos para pregrado 8
Bibliography
• Galeano, C., Mantilla J., Galvis, J. El método de los elementos finitos: un enfoque teórico práctico.
Editorial Universidad Nacional de Colombia. Primera edición. 2016.
• Bathe, K.J., Finite Element Procedures. Prentice-Hall. Englewood-Cliffs. Second edition. 2014.
• Hughes, T., The Finite Element Method: Linear Static and Dynamic Finite Element Analysis. Dover
Publications. 2000.
• Chandrupatla, T.R., Belegundu, A.D., Introduction to finite element in engineering. Pearson. Fourth
edition. 2012.
• Zienkiewicz, D.C., Morgan, K. Finite elements and aproximations. Jhon Wiley & Sons. New York.
1983.
5/04/2019 Curso de Elementos Finitos para pregrado 9
Bibliography
• Gockenbach , M., Understanding and implementing the finite element method. Ed. Society for industrial
& applied mathematics. 2006.
• Toro, J.R., Problemas variacionales y elementos finitos en Ingeniería Mecánica. Universidad de Los
Andes (Ediciones Uniandes). Bogotá. 2007.
• Segerlind, L. J., Applied finite element analysis. John Wiley and Sons. 2nd edition. 1987.
• Hartmann, F., Structural analysis with finite elements. Springer, 2nd Edition, 2007.
• Zienkiewicz, O.C., Taylor, R.L.,. The Finite Element Method. Volume 1. McGraw-Hill. London. 4th
edition. 1991.
5/04/2019 Curso de Elementos Finitos para pregrado 10