Professional Documents
Culture Documents
1
2
df
dx
f 2 f dV
where C=C(x)
1
2
dC
D
dx
dC
2
Cu
K r C 2mC dV
dx
d 2T
Q
2
dx
k
with boundary conditions
T(0) T(L) 0
Integrating twice, one obtains
Qx 2
T
C1x C 2
2k
Q(Lx x 2 )
T
2k
Rayleigh-Ritz Method
FEM variational approach attributed to Lord Rayleigh
(1842-1919) & Walter Ritz (1878-1909)
Let
T C3 (x 2 Lx)
dT
C3 (2x L)
dx
Now integrate
J
1 df
2 dx
Thus
J
f 2 f dV (let f T, k, 0, Q)
1
kC32 (2x L) 2 2QC3 (x 2 Lx) Adx
2
AkC32 L3 AC3QL3
J
6
6
0
C3
6
6
Therefore,
Q
C3
2k
Q(Lx x 2 )
or T
2k
Variation Methods
Given a function u(x), the following constraints must
be met
(1) satisfies the constraints u(x1)=u1 and
u(x2)=u2
(2) is twice differentiable in x1<x<x2
(3) minimizes the integral
J
x2
x1
du
F x, u, dx
dx
(1)
dx u
u
where
(i)
du
i
dx
Hence,
x2
x1
F d F
d 2
F
L
(
1)
u dx u (1)
dx 2 u (2)
n
d
F
n (n ) 0
dx
u
and
u u
F x, y, u, , d
x y
F
F
F
0
u x (u / x)
y (u / y)
dT
dx
F
T
,
ky
u y
y
2
F
,
Q
u
k y dT
C1 , F
2 dy
k dT
J(T) x
2
dx
k y dT
2 dy
C 2 , F QT C3
QT d
A Rayleigh-Ritz Example
Begin with the equation
d2u
u x 0 0 x 1
2
dx
with boundary conditions
u(0) u(1) 0
First find the variational statement (J)
du
J x, u,
dx
du
dx
u 2xu dx
u(x) a 0 a1x a 2 x 2
with boundary conditions
u(0) a 0 0
u(1) a1 a 2 0
Now,
1
J 3a1 1
5
0 a1
a1 10 6
18
Finally
5
u(x) x(1 x)
18
0x L
for x 0
for x L
or
q
1 L
T x TL L x
K
K x
T x TL
Q z dz dy
q
Q 2 2
L
L x
K
2K
in
A
2 L
x x
2
Bu=g on
B=
,
,L
x 0 x
0
Au f
We now introduce a set of weighting functions (test
functions) Wi, and construct an inner product
(Wi,) that is set to zero this forces the error of
the approximate differential equation to zero
(average).
d A c f
i
Example:
d 0
2u 2u
2 2 f x, y
x y
2u 2u
i , i dxdy i 2 2 f x, y dxdy 0
y
x
u
i u i u
u
i
dy dx
i f x, y dxdy 0
y
x
x x y y
d2u
f 0
2
dx
u=0 x=0
du
=0 x=L
dx
0<x<L
i , 0 i dx 0
or
d2u
i
f dx 0
2
dx
du
0 at x=L
dx
f
c1
2
f
u x 2 2xL
2
Wi i
i , 0
Least Squares
,
ci
Method of Moments
i
x
, 0
i=0,1,2,L
Wi x x i
x x , 0
i
xi
Sub domain
1 for x in subinterval i
Wi
0 for x outside i
,
ci
ci
dxdy 2 c dxdy 0
2
, 2 dx 0
ci
ci
2c1 f
u c11 c1 x 2 2xL
u
c1 2x 2L
x
2u
2c1
2
x
2 2c
0
f 2dx 0
f
c1
2
f 2
u x 2xL
2
Some observations:
(1) no integration by parts required not a weak form
(2) the Neumann boundary conditions do not appear naturally
(3) in this case i must satisfy global boundary conditions,
which is difficult in most problems