Weighted Residual Method

You might also like

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 3

COMPARISON GRAPHS:

LEAST SQUARE METHOD OF WEIGHTED RESIDUAL METHOD:


-d2U/dx2 = sin(πx) for 0<x<1, at x = 0, U = 0; at x = 1, U = 0

[a] Solution using 2nd order polynomial as approximate trial solution:

U(x) = 1/π(x-x2) for 0<x<1

[b] Solution using 3rd order polynomial as approximate trial solution:

U(x) = 1/π(x-x2) for 0<x<1

[c] Solution using classical method as exact solution:

U(x) = 1/π2(sinπx) for 0<x<1 LEAST SQUARE METHOD


0.120
x U(x) - [a] U(x) - [b] U(x) - [c]
0.00 0.000 0.000 0.000 0.100
0.10 0.029 0.029 0.031
0.080
0.20 0.051 0.051 0.060
0.30 0.067 0.067 0.082 0.060
0.40 0.076 0.076 0.096
0.040
0.50 0.080 0.080 0.101
0.60 0.076 0.076 0.096 0.020
0.70 0.067 0.067 0.082
0.80 0.051 0.051 0.060 0.000
0.00 0.10 0.20 0.30 0.40 0.50 0.60 0.70 0.80 0.90 1.00
0.90 0.029 0.029 0.031
1.00 0.000 0.000 0.000 U(x) - [a] U(x) - [b] U(x) - [c]

COLLOCATION METHOD OF WEIGHTED RESIDUAL METHOD:


-d2U/dx2 = sin(πx) for 0<x<1, at x = 0, U = 0; at x = 1, U = 0

[a] Solution using 2nd order polynomial as approximate trial solution:

U(x) = 1/2(x-x2) for 0<x<1

[b] Solution using 3rd order polynomial as approximate trial solution:

U(x) = √3/4(x-x2) for 0<x<1

[c] Solution using classical method as exact solution:

U(x) = 1/π2(sinπx) for 0<x<1 COLLOCATION METHOD


0.140
x U(x) - [a] U(x) - [b] U(x) - [c]
0.120
0.00 0.000 0.000 0.000
0.10 0.045 0.039 0.031 0.100
0.20 0.080 0.069 0.060 0.080
0.30 0.105 0.091 0.082
0.40 0.120 0.104 0.096 0.060

0.50 0.125 0.108 0.101 0.040


0.60 0.120 0.104 0.096
0.020
0.70 0.105 0.091 0.082
0.80 0.080 0.069 0.060 0.000
0.00 0.10 0.20 0.30 0.40 0.50 0.60 0.70 0.80 0.90 1.00
0.90 0.045 0.039 0.031
U(x) - [a] U(x) - [b] U(x) - [c]
0.040

0.020

0.000
0.00 0.10 0.20 0.30 0.40 0.50 0.60 0.70 0.80 0.90 1.00

1.00 0.000 0.000 0.000 U(x) - [a] U(x) - [b] U(x) - [c]
GALERKIN METHOD OF WEIGHTED RESIDUAL METHOD:
-d2U/dx2 = sin(πx) for 0<x<1, at x = 0, U = 0; at x = 1, U = 0

[a] Solution using 2nd order polynomial as approximate trial solution:

U(x) = 12/π3(x-x2) for 0<x<1

[b] Solution using 3rd order polynomial as approximate trial solution:

U(x) = 12/π3(x-x2) for 0<x<1

[c] Solution using classical method as exact solution:

U(x) = 1/π2(sinπx) for 0<x<1 GALERKIN METHOD


0.120
x U(x) - [a] U(x) - [b] U(x) - [c]
0.00 0.000 0.000 0.000 0.100
0.10 0.035 0.035 0.031
0.080
0.20 0.062 0.062 0.060
0.30 0.081 0.081 0.082 0.060
0.40 0.093 0.093 0.096
0.040
0.50 0.097 0.097 0.101
0.60 0.093 0.093 0.096 0.020
0.70 0.081 0.081 0.082
0.80 0.062 0.062 0.060 0.000
0.00 0.10 0.20 0.30 0.40 0.50 0.60 0.70 0.80 0.90 1.00
0.90 0.035 0.035 0.031
1.00 0.000 0.000 0.000 U(x) - [a] U(x) - [b] U(x) - [c]

MODIFIED GALERKIN METHOD OF WEIGHTED RESIDUAL METHOD:


-d2U/dx2 - U + x2 = 0 for 0<x<1, at x = 0, U = 0; at x = 1, dU/dx = 1

[a] Solution using 1st order polynomial as approximate trial solution:

U(x) = 9x/8 for 0<x<1

[b] Solution using classical method as exact solution:

U(x) = (sin(x) + 2sin(1-x))/sin(1)) + x 2 - 2 MODIFIED GALERKIN METHOD


for 0<x<1 1.200
x U(x) - [a] U(x) - [b]
1.000
0.00 0.000 0.000
0.10 0.113 -0.010 0.800
0.20 0.225 -0.019
0.600
0.30 0.338 -0.028
0.40 0.450 -0.035 0.400
0.50 0.563 -0.041
0.200
0.60 0.675 -0.043
0.70 0.788 -0.042 0.000
0.00 0.10 0.20 0.30 0.40 0.50 0.60 0.70 0.80 0.90 1.00
0.80 0.900 -0.035
-0.200
0.90 1.013 -0.022
1.00 1.125 0.000 U(x) - [a] U(x) - [b]

You might also like