You are on page 1of 7

O restart; O with LinearAlgebra :

Datos iniciales
O O O O EI d 10 : ld8: b1 d 7 : b2 d 5 :

Funciones de forma
l Kx 2 x K0 O N1e1 d : N2e1 d : l l 2 2 l xK l Kx 2 O N1e2 d : N2e2 d : l l 2 2

Matriz de Rigidez
Elemento 1 O K11e1 d K 1
1 C1

EI l 2

; 5 2

K11e1 := O K12e1 d K 1
1 C2

(1)

EI l 2

; 5 2

K12e1 := K O K21e1 d K12e1 : O K22e1 d K 1


2 C2

(2)

EI l 2 K22e1 := 5 2 (3)

Elemento 2 O K11e2 d K 1
1 C1

EI l 2

; 5 2

K11e2 := O K12e2 d K 1
1 C2

(4)

EI l 2

K12e2 := K O K21e2 d K12e1 : O K22e2 d K 1


2 C2

5 2

(5)

EI l 2 K22e2 := 5 2 (6)

Ensamble global K11e1 O MatrizK d 0 K12e1 K21e2 0 K22e2 5 2 MatrizK := K 5 2 K 5 2 0 K 5 2 (7)

K21e1 K22e1 CK11e2 K12e2 ;

5 K 5 2

0 Vector de fuerzas nodales b1$l 2 O f1e1 d 2

5 2

f1e1 := 14 O f2e1 d b1$l 2 2 f2e1 := 14 O f1e2 d b2$l 2 2 f1e2 := 10 O f2e2 d b2$l 2 2 f2e2 := 10 Ensamble de vector de fuerzas nodales f1e1K H1 O Fd f2e1 Cf1e2 f2e2 CH2

(8)

(9)

(10)

(11)

14 KH1 F := 24 10 CH2 Matriz y vector reducidos O Kred d K22e1 CK11e2 Kred := O Fred d f2e1 Cf1e2 Fred := 24 (14) 5 (13) (12)

Definicin de las variables incgnita


O u2 d 24 : u1 d 0 : u3 d 0 : 5 u1 O Vectoru d u2 u3 0 Vectoru := 24 5 0 O MatrizK.Vectoru K 12 24 K 12 O H1 dC12 C14; H1 := 26 12K O H2 dK 10 H2 := K 22 (18) (17) (16) (15)

Planteamiento grfico de las funciones de forma


l Kx l 2 O SolN1 dproc x if x ! then else 0 end if end proc 2 l 2 SolN1 := proc x if x ! 1 / 2 * l then 2 * 1 / 2 * l K x / l else 0 end if end proc O SolN2 dproc x if x ! l x K0 l Kx then else end if end proc 2 l l 2 2 SolN2 := proc x if x ! 1 / 2 * l then 2 * x / l else 2 * l K x / l end if end proc

(19)

(20)

l O SolN3 dproc x if x ! then 0 else 2

xK

end if end proc l 2 SolN3 := proc x if x ! 1 / 2 * l then 0 else 2 * x K 1 / 2 * l / l end if end proc

l 2

(21)

O plot SolN1, SolN2, SolN3 , 0 ..l

0,8

0,6

0,4

0,2

0 0 1 2 3 4 5 6 7 8

Solucin del problema


Mtodo de los elementos finitos O Solucin1 d SolN1$u1 CSolN2$u2 CSolN3$u3 24 SolN2 Solucin1 := 5 O plot Solucin1, 0 ..l (22)

0 0 1 2 3 4 5 6 7 8

Mtodo exacto (Ecuaciones diferenciales) O with DEtools, odeadvisor : 2 d2 d O sys_ode d EI$ 2 y x C7 = 0, EI$ 2 t x C5 = 0 dx dx 2 d d2 sys_ode := 10 y x C7 = 0, 10 t x C5 = 0 dx2 dx2 l l l l O ics := y 0 = 0, t l = 0, D y =D t ,y =t 2 2 2 2 ics := y 0 = 0, t 8 = 0, D y 4 = D t 4 , y 4 = t 4 O dsolve sys_ode, ics ; 1 7 2 9 8 13 t x = K x2 C xC , y x = K x C x 4 20 5 5 5 l then O solucion2 dproc x if x ! 2 7 2 13 K x C x 20 5 else

(23)

(24) (25)

1 2 9 8 x C xC 4 5 5 end if end proc solucion2 := proc x if x ! 1 / 2 * l then K7 / 20 * x^2 C13 / 5 * x else K1 / 4 * x^2 C9 / 5 * x C8 / 5 end if end proc K

(26)

Comparacin de las dos soluciones


Los resultados aproximados son iguales a los exactos nicamente en la ubicacin de los nodos (x=0,4,8)
O plot Solucin1, solucion2 , 0 ..l

0 0 1 2 3 4 5 6 7 8

Verificacin de la magnitud de las reacciones Reaccion izquierda 13 7 2 O funcionp d K x C x; 5 20 funcionp := K O Dfunc d diff funcionp, x (28) 7 2 13 x C x 20 5 (27)

Dfunc := K O EI$subs x = 0, Dfunc

7 13 xC 10 5

(28) (29)

26 Reaccin derecha 1 9 8 O funcion2 dK x2 C xC ; 4 5 5 funcion2 := K O Dfunc2 d diff funcion2, x Dfunc2 := K O EI$subs x = l, Dfunc2 K 22 O 1 9 xC 2 5 1 2 9 8 x C xC 4 5 5

(30)

(31) (32)

You might also like