Está en la página 1de 30

Método de Ritz

Supongamos que tenemos un problema que viene definido por:

d 2
2
  f ( x) C.B.  (a)  A  (b)  B
dx

Se define una función de funciones de la forma

 1  d 
b 2

J ( )       f ( x) ( x)dx
 2  dx 
a  

aggutier@lauca.usach.cl
Si  minimiza a J() entonces es solución de la ecuación
diferencial, en ese caso J se llama funcional asociado a la
ecuación diferencial

Si * es una aproximación de la solución  entonces J(*)


será una aproximación a J(), donde J(*) > J()
J()
infimo
J()

supremo

aggutier@lauca.usach.cl
Metodología del Método de Ritz

d 2
2
  f ( x)
dx b
 1  d  2 
J ( )       f ( x) ( x)dx
 (a)  A  2  dx 
a  
 (b)  B

1.- Elegir una familia de funciones para 


Por ejemplo: (x) = a + b x + c x2
(x) = a + b x + c x2 + d x3
etc..

aggutier@lauca.usach.cl
Cálculo de la función J()
b
 1  d *  2 
J ( )    
* *
  f ( x) ( x)dx
a 
2 dx  
 

Encontrar el mínimo

dJ ( * )
*
0
d

Determinación de los coeficientes de 

aggutier@lauca.usach.cl
Ejemplo

d 2
2
  sen( x)  (0)  0  (1)  0
dx
f ( x)  sen( x)

 * ( x)  a  bx  cx 2
 * ( 0)  0  a  * (1)  0  a  b  c  c  b
*
 ( x)  bx  bx 2
 ( x)  bx  x
* 2

d * ( x )
 b1  2 x 
dx
2
1  d ( x ) 
*
1

2  dx  2

  b 1  4 x  4 x 2  f ( x) * ( x)  sen( x)b( x  x 2 )
aggutier@lauca.usach.cl
2
1  d ( x) 
*
1 2

2  dx 

  b 1  4 x  4 x 2
2
 f ( x) * ( x)  sen( x)b( x  x 2 )

1
1 2
J      b 1  4 x  4 x  b( x  x ) sen( x)dx
* 2 2 
0 
2 
2
b
J  *    0.1047b
6

 
dJ  *

d  b2


 0.1047b   0
b
 7.793x10  2 b  0.2338
db 
db  6 3

 ( x)  0.23377x  x
* 2

aggutier@lauca.usach.cl
d 2
2
  sen ( x)  (0)  0  (1)  0
dx
d  d   d   d 
    sen ( x ) d    sen ( x )dx    cos( x )  c1
dx  dx   dx   dx 
d  (cos( x )  c1 )dx   sen ( x)  c1 x  c2

 0   sen(0)  c1 0  c2  0  c2  0
 1  sen(1)  c11  c2  0  c1  0.8414

 x   sen( x)  0.8414 x
aggutier@lauca.usach.cl
0.08
0.06

0.06

fexacta( x)
0.04
faprox( x)

0.02

0 0
0 0.2 0.4 0.6 0.8 1
0 x 1

aggutier@lauca.usach.cl
Aumentando el grado del polinomio

 * ( x)  a  bx  cx 2  dx 3
 * (0)  0  a  * (1)  0  a  b  c  d  d  b  c
 * ( x)  bx  cx 2  (b  c) x 3  * ( x)  bx  x 3  cx 2 (1  x)
d * ( x) d
dx

dx
  
b x  x 3  cx 2 (1  x)  b(1  3 x 2 )  cx (2  3 x)
2
1  d ( x) 
*

2  dx 
1

  b(1  3 x 2 )  cx (2  3 x)
2
2

1 2

 b (1  3 x 2 ) 2  c 2 x 2 (2  3 x) 2  2bcx(1  3 x 2 )( 2  3 x)
2

 
f ( x) * ( x)  sen( x) b x  x 3  cx 2 (1  x) 
aggutier@lauca.usach.cl
1

J  *     2

1 2
b (1  3 x 2 2
)  c 2 2
x ( 2  3 x ) 2
 2bcx (1  3 x 2
)( 2  3x ) 

dx
 
0

 sen( x) bx  x  cx (1  x)
3 2
 

aggutier@lauca.usach.cl
Aplicación del Método de Ritz
d 2
2
  f ( x)  (a)  A  (b)  B
dx
b
 1  d  2 
J ( )       f ( x) ( x)dx
 2  dx 
a  
Si A = B = 0 es posible escribir directamente una solución aproximada dada por

 ( x)  ( x  a)( x  b)(C0  C1 x  C2 x 2  C3 x 3  ........)


Por lo tanto se puede escribir Minimizando

J J J
J  J C0 , C1 , C2 , C3 ,...... 0 0  0.........
C0 C1 C2

aggutier@lauca.usach.cl
Ejemplo:
Se tienen dos placas paralelas planas de igual tamaño y forma “forma triangular”. En
un principio las placas están separadas por una película de fluído. Si las placas están
alineadas una sobre otra y se mueven acercándose con una velocidad V, mientras el
fluido incompresible está siendo evacuado fuera de las placas, el campo de presiones
generado entre las placas satisface la ecuación de Reynolds-Poisson.

 2 P  2 P 12 V
2
 2  3
 G  cte.
x y h
Mientras la presión es nula a lo largo del contorno descrito por las líneas y = 0 ; y =
2 - √3 *x ; y= √3 *x
y 1
z

h
2
x 3

aggutier@lauca.usach.cl
Solución:
Exacta:
2P 2P
x 2
 2 G
y
G

P ( x, y )   y  2  3 x y  3 x y
4
 
Aproximada
P ( e ) ( x, y )  N1 ( x, y ) P1  N 2 ( x, y ) P2  N 3 ( x, y ) P3
1 N i ( x, y )  ai  bi x  ci y
x j y k  xk y j y j  yk xk  x j
ai  bi  ci 
det det det

2
3
x 0 1.154 0.577
y 0 0.0 1.00

aggutier@lauca.usach.cl
P ( e ) ( x, y )  N i ( x, y ) Pi  N j ( x, y ) Pj  N k ( x, y ) Pk

P(x,y) debe minimizar el funcional J para ser solución de la


ecuación diferencial, por lo tanto debe ocurrir que:


 
J ( e ) J P ( e )
0
Pi Pi

 1  P ( e )  2 1  P ( e )  2 
J ( P )    
(e) (e)
   (e)
  GP  dxdy
D 
2 x  2  y  
 

J ( e )  P ( e )   P ( e )  P ( e )   P ( e )  P ( e ) 
         G dxdy  0
Pi A( e ) 
x Pi  x  y Pi  y  Pi 

aggutier@lauca.usach.cl
P ( e ) N i N j N P ( e ) N i N j N
 Pi  Pj  k Pk  Pi  Pj  k Pk
x x x x y y y y

  P ( e )  N i   P ( e )  N j   P ( e )  N k
        
Pi  x  x Pj  x  x Pk  x  x

  P ( e )  N i   P ( e )  N j   P ( e )  N k
        
Pi  y  y Pj  y  y Pk  y  y

J ( e )  N N j N  N  N N j N  N 
   i Pi  Pj  k Pk  i   i Pi  Pj  k Pk  i  GN i dxdy  0
Pi A( e ) 
x x x  x  y y y  y 
J ( e )  N i N j N k  N j  N i N j N k  N j 
    Pi  Pj  
Pk  
 Pi  Pj  
Pk   GN j dxdy  0
Pj A( e ) 
x x x  x  y y y  y 
J ( e )  N N j N  N  N N j N  N 
   i Pi  Pj  k Pk  k   i Pi  Pj  k Pk  k  GN k dxdy  0
Pk A( e ) 
x x x  x  y y y  y 

aggutier@lauca.usach.cl
Factorizando por Pi con i = i,j,k....

  Pi   Pi  
 N i N i N i N j N i N k    N i N i N i N j N i N k   
( e )  x x x x x x  Pj    y y y y y y  Pj   GN i dxdy  0
A  P  P  
  k  k

  Pi   Pi  
 N i N N N N k N j    N i N N N N k N j   
( e )  x x x x x x  j  y y y y y y  j
j j j j j j
  P     P   GN j dxdy  0
A  P  P  
  k  k

  Pi   Pi  
 N k N i N k N j N k N k    N k N i N k N j N k N k   
( e )  x x x x x x  Pj    y y y y y y  Pj   GN k dxdy  0
A  P  P  
  k  k

aggutier@lauca.usach.cl
 J   N i N i N i N i N i N j N i N j N i N k N i N k 
      
 Pi   x x y y x x y y x x y y   Pi 
 J   N j N j N j N j N j N k N j N k   
       dxdy Pj 
 Pj  
x x y y x x y y P 
 J   N k N k N k N k   k
 P  
 k  x x y y 
 Ni   0
   
 G   N j dxdy   0 
N   0
 k  
 J ( e ) 
 
 Pi 
 J ( e ) 
   K (e)
P(e)
 R(e)
 0
 Pj 
 J ( e ) 
 
P
 k 

aggutier@lauca.usach.cl
 N i N i N i N i N i N j N i N j N i N k N i N k 
 x x  y y x x

y y x x

y y 

N j N j N j N j N j N k N j N k 
K (e)      dxdy
 x x y y x x y y 
 N k N k N k N k 
  
 x x y y 
 Ni 
 
R( e)  G   N j dxdy
N 
 k

 N i N j N i N j 
K (e)
ij     dxdy i  i, j , k
 x x y y 
(e)
Ri  G  N i dxdy i  i, j , k

aggutier@lauca.usach.cl
Ejemplo:
Se tienen dos placas paralelas planas de igual tamaño y forma
“forma cuadrada”. En un principio las placas están separadas
por una película de fluído. Si las placas están alineadas una
sobre otra y se mueven acercándose con una velocidad V,
mientras el fluido incompresible está siendo evacuado fuera de
las placas, el campo de presiones generado entre las placas
satisface la ecuación de Reynolds-Poisson.

 2 P  2 P 12 V
2
 2  3
 G  cte.
x y h
Mientras la presión es nula a lo largo del contorno descrito por
las líneas x = 0, y = 0, x = 1, y = 1

aggutier@lauca.usach.cl
z y
1

h y
x
1
x

El funcional de esta ecuación está dado por:

 1  P  1  P 
2  2

J ( P )          GP  dxdy
D 
2  x  2  y  

aggutier@lauca.usach.cl
y
Se seleccionan elementos
triangulares para abordar el
problema y se hace la 3
discretización 4 2

1
El polinomio de interpolación x
para el tipo de elemento está
dado por:
 
P e ( x, y )  N  P e  N i Pi e  N j Pje  N k Pke
an  bn x  cn y
Nn  n  i, j , k
2
ai  x j yk  xk y j bi  y j  yk ci  xk  x j
aggutier@lauca.usach.cl
J e J ( P e )

Pi Pi
 P e   P e  P e   P e  P e 
         G dxdy  0
 x Pi  x  y Pi  y  Pi 
Efectuando
P e N e N i N j N k
  Pi  Pj  Pk
x x x x x
  P e  N i   P e  N j   P e  N k
        
Pi  x  x Pj  x  x Pk  x  x
Se tiene:
 N i N j N k N i N i N j N k N i 
 ( x Pi  x Pj  x Pk ) x  ( y Pi  y Pj  y Pk ) y  GN i dxdy  0

aggutier@lauca.usach.cl
J  N i N j N k N i N i N j N N 
  ( Pi  Pj  Pk ) ( Pi  Pj  k Pk ) i  GN i dxdy  0
Pi  x x x x y y y y 

J  N i N j N k N j N i N j N k N j 
  ( Pi  Pj  Pk ) ( Pi  Pj  Pk )  GN j dxdy  0
Pj  x x x x y y y y 

J  N i N j N k N k N i N j N N 
  ( Pi  Pj  Pk ) ( Pi  Pj  k Pk ) k  GN k dxdy  0
Pk  x x x x y y y y 

 J   N i N i N i N i N i N j N i N j N i N k N i N k 
      
 Pi   x x y y x x y y x x y y   Pi 
 J   N j N j N j N j N j N k N j N k   
       dxdy Pj 
 Pj  
x x y y x x y y
 P 
 J  N k N k N k N k   k
 
 P   x x y y 
 k
 Ni   0
   
 G   N j dxdy   0 
N   0
 k  
aggutier@lauca.usach.cl
N i bi N j bj N k bk
  
x 2 x 2 x 2
N i c N j cj N k ck
 i  
y 2 y 2 y 2

 bi b j ci c j 
K ij    2  2 dxdy
e

 4  4 
1
e
K ij  bib j  ci c j 
4

Ri   GN i dxdy  G
e

aggutier@lauca.usach.cl
Lo que se debe armar es solo estos términos
y
b b
 i j c c
i j 
K    2  2 dxdy
e
 4 3
ij
4 4  3
1
K ije  bib j  ci c j  4 5 2
4

R   GN i dxdy  G
i
e
1
3
1 2 x
N 1 2 3 4 5
X 0 1 1 0 0.5
Y 0 0 1 1 0.5

aggutier@lauca.usach.cl
Elemento 1 a1= x2 y5- y2 x5 b 1= y2 - y 5 c1= x5- x2
a1= 0.5 b1= - 0.5 c1= - 0.5
5
y a2= x5 y1- y5 x1 b 2= y5 - y 1 c2= x1- x5
a2= 0.0 b2= 0.5 c2= - 0.5
a5= x1 y2- y1 x2 b 5= y1 - y 2 c5= x2- x1
x a5= 0.0 b5= 0.0 c5= 1.0
1 2 1 0 0 
2    1 1 0  
 
 1 0.5 0.5 
Matriz de Rigidez:  1/ 2 0  0.5
1 K 1   0 1 / 2  0.5
e
K ij  bib j  ci c j   0.5  0.5 1 
4
 1
R   GN i dxdy  G
i
e
G
3 R1  1
12  
1
aggutier@lauca.usach.cl
Elemento 2 a2= x3 y5- y3 x5 b 2= y3 - y 5 c2= x5- x3
a2= 0.0 b2= 0.5 c2= - 0.5
3
a3= x5 y2- y5 x2 b 3= y5 - y 2 c3= x2- x5
a3= -0.5 b3= 0.5 c3= 0.5
5 a5= x2 y3- y2 x3 b 5= y2 - y 3 c5= x3- x2
a5= 1.0 b5= -1.0 c5= 0.0
1 1 0 
2 2    1 1 1  
 
 1 0.5 0.5 
Matriz de Rigidez:  1/ 2 0  0.5
1 K 2   0 1 / 2  0.5
e
K ij  bib j  ci c j   0.5  0.5 1 
4
 1
R   GN i dxdy  G
i
e
G
3 R 2  1
12  
1
aggutier@lauca.usach.cl
Elemento 3 a3= x4 y5- y4 x5 b 3= y4 - y 5 c3= x5- x4
4 3 a3= -0.5 b3= 0.5 c3= 0.5
a4= x5 y3- y5 x3 b 4= y5 - y 3 c4= x3- x5
a4= 0.0 b4= -0.5 c4= 0.5
a5= x3 y4- y3 x4 b 5= y3 - y 4 c5= x4- x3
5
a5= 1.0 b5= 0.0 c5= -1.0
1 1 1 

2   1 0 1

  
 1 0.5 0.5 

Matriz de Rigidez:  1/ 2 0  0. 5
1 K 3   0 1 / 2  0.5
e
K ij  bib j  ci c j   0.5  0.5 1 
4
 1
R   GN i dxdy  G
i
e
G
3 R 3  1
12  
1
aggutier@lauca.usach.cl
Elemento 4 a4= x1 y5- y1 x5 b 4= y1 - y 5 c4= x5- x1
4 a4= 0.0 b4= 0.5 c4= 0.5
a1= x5 y4- y5 x4 b 1= y5 - y 4 c1= x4- x5
a1= 0.0 b1= -0.5 c1= 0.5
5 a5= x4 y1- y4 x1 b 5= y1 - y 4 c5= x4- x1
a5= 0 b5= 1.0 c5= 0.0
1


Matriz de Rigidez:  1/ 2 0  0.5


1 K 4   0 1 / 2  0.5
e
K ij  bib j  ci c j   0.5  0.5 1 
4
 1
R   GN i dxdy  G
i
e
G
3 R 4  1
12  
1
aggutier@lauca.usach.cl
Ensamble de Matrices y vectores de Fuerza
 1/ 2 0  0.5  1/ 2 0  0.5  1/ 2 0  0.5  1/ 2 0  0.5
K 1   0 1 / 2  0.5 
K2   0 1 / 2  0.5 K 3   0 1 / 2  0.5 
K4   0 1 / 2  0.5
 0.5  0.5 1   0.5  0.5 1   0.5  0.5 1   0.5  0.5 1 
1 1 1 1
G  2 G G  4 G
R1  1 R  1 R 3  1 R  1
12   12   12   12  
1 1 1 1

1 0 0 0  1  P1  0.1666
0 1 0 0
  1  P2  0.1666
 
 
0 0 1 0  1  P3   G 0.1666
   0.1666
0 0 0 1  1 P4
   
 1  1  1  1 4   P5  0.3333

P5=G/12

aggutier@lauca.usach.cl

También podría gustarte