Professional Documents
Culture Documents
B-Spline Interpolation Method For Solving Differential Equations
B-Spline Interpolation Method For Solving Differential Equations
net/publication/333810850
CITATIONS READS
0 2,050
1 author:
Ali Zyarah
Iraqi Ministry of Education, General Directorate of Education for the Holy Karbala
11 PUBLICATIONS 20 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Ali Zyarah on 16 June 2019.
By
Supervised by
سورة الرمحن
To the one who has taught me the tender without waiting….
To the one who has carried his name proudly…. My Father
To the very-devoted ….
To the candle who illuminates the darkness of my life…
My Sister
To My Friends
To who are so distinguished ….
Who are with me in the road to success and goodness….
ali
Acknowledgments
Praise is to God, Lord of the world, and best prayers and peace be
unto his last messenger Mohammed, and his pure descendants, and his
noble companions.
Signature:
Name : Assistant Professor Dr. Adil Mohamad Hassan Rizaq
Date : / /2013
Signature:
Name : Professor Dr. Ali Hussain Battor
Head of mathematics department,
College of education for Girls, University
of Kufa.
Date : / /2031
Linguistic Supervisor Certification
Signature:
Name :
Date : / / 2013
Scientific Supervisor Certification
Signature:
Name :
Date : / / 2013
Examining Committee Certification
We certify that we have read this thesis ''B-Spline
Interpolation Method for Solving Differential
Equations '' and as an Examining Committee, we
examined the student in its content, and that in our
opinion it meets all the requirements for the degree of
Master of Science in mathematics.
Signature :
Name : Ali Hassan Mohammed.
The Title : professor
Date : / / 2013.
Chairman
Signature :
Signature :
Name :Dr. Hayder Jabbar Abood
Name : Dr.Fadhel Subhi Fadhel
The Title : professor
The Title : Assistant Professor
Date : / / 2013
Date : / / 2013
Member
Member
Signature :
Name : Dr. Adil Mohamad Hassan Rizaq
The Title : Assistant professor.Dr.
Date : / / 2013.
Supervisor
Signature :
Name : Dr.Dhaferah Jaafar Abd Ali
The Title : Assistant professor
Dean of the College of Education for Girls .
University of Kufa .
Date: / / 2013
Abstract
The main objectives of the thesis are solution the differential
equation using B-spline method. In the thesis, the concept of B-spline
method is addressed and the B-spline basis functions and curves are
investigated. The analysis is made by solving Cox-de Boor equations and
plot results for the basis functions of different degrees and U-vector
configurations. De Boor algorithm is also employed in order to
accomplish this task. An idea emerged from this study and applied to
generate curve designs by manipulating control points.
Introduction v
vii
Conclusion 68
Future Work 69
References 70
Summary in
75
Arabic
Introduction
Section two explains FDM for solving PDE's with some examples of
the Elliptic equations and Hyperbolic equations.
In section one, we solve the PDEs with boundary condition and two
initial conditions by B-spline method.
Timothy Irwin Mueller [30], (1986), did his PhD project on Geometric
Modelling with Multivariate B-splines. His thesis investigates the use of a
parametric box spline surface representation over a three direction grid to
define spline surfaces over three, four, five, and six-sided regions.
Fredrik Anderson [10], (2003), did his MSc project on Bézier and B-
spline Technology. His project extended to both curves and surfaces with
many examples demonstrating the concepts.
Christopher K. Ingram [7], (2003), did his M.Sc. project on the
development and generalization of a geometric B-spline curves over the
triangular domain. The geometrical construction mimics the control point
blending that occurs with uniform B-Splines.
Burg, et al [9], (2003 ), represented the free surface about viscous hulls
by B-splines in conjunction with the generation of quality viscous grids.
The method used to approximate a surface is defined via the elevations of
the y-coordinates in a three dimensional unstructured surface mesh to a
B-Spline approximating surface.
A U
i , j 1
ij xi x j B iU x i FU G
i 1
, (1.1.2)
3- Hyperbolic Equation
It describes the seismic movements and the movements of the wave.
We need to provide a solution process, as well as two initial conditions
and two boundary conditions to check the property B 2 4AC 0 , [35].
1.2. Finite Difference Method
FDM is for finding numerical solution of PDE's. It is the most
popular method for solving PDE's. The starting point is the conservation
equation in differential form. The given region or domain is divided into
a network of rectangles called grid. The points of intersection of these
lines are called grid points or mesh points. At each grid point, the
differential equation is approximated by replacing the partial derivatives
by their corresponding difference approximations. This results in
algebraic equations for each grid point, in which the variable value at that
point and a certain number of neighboring points appears as unknown. In
other words, by knowing value of that variable at a particular point can be
calculated. In principle, the FDM can be applied to any grid type.
However, in practice finite difference method is the best suitable for only
structured grids, [13].
When necessary, these methods are also used to obtain variable
values at locations other than grid point. On structured grids, the FDM is
very simple and effective. It is especially easy to obtain higher order
schemes on regular grids. The disadvantage of FDM is that the
conservation is not enforced unless special care is taken. Also, the
restriction to simple geometries is a significant disadvantage in complex
flow. The first step in obtaining a numerical solution using FDM is to
discretize the geometric solution (i.e. a numerical grid must variable
associated with it and must provide one algebraic equation).
The algebraic equation thus obtained is a relation between the
variable values at that point and at some of the neighboring points. It is
obtained by replacing each term of the PDE at the particular point by a
finite difference approximation. Also, the number of equations and
unknowns must be equal However, at boundary where variable values are
known, no equation is needed.
An introduction to techniques of this type is presented in this section:
1.2.1.Elliptic Equations [3]
The elliptic PDE that we consider is the Poisson equation
2u 2u
( x , y ) (x , y ) f (x , y ) (1.2.1.1)
x 2 y 2
The lines x x i and y y j are grid lines, and their intersections are the
mesh points of the grid. For each mesh point in the interior of the grid,
(x i , y j ) ,for i 1, 2,..., n 1 and j 1, 2,..., m 1 , we use the Taylor series in
2u u (x i , y j 1 ) 2u (x i , y j ) u (x i , y j 1 ) k 2 4u
(x i , y j ) (x i , j ) (1.2.1.3)
y 2 k2 12 y 4
where j ( y j 1 , y j 1 )
By substituting these formulas in equation (1.2.1.1) allows us to
express the Poisson equation at the point, (x i , y j ) as
u (x i 1 , y j ) 2 u (x i , y j ) u (x i 1 , y j ) u (x i , y j 1 ) 2 u (x i , y j ) u (x i , y j 1 )
h2 k2
h 2 4u k 2 4u
f (x i , y j ) ( , y ) ( x i , j ) (1.2.1.4)
12 x 4 12 y 4
i j
where w i , j approximates u (x i , y j )
If n m 4 , the problem has the grid given in figure (1.2.3.1), and the
difference equation (1.2.1.5) is 4w i , j w i 1, j w i 1, j w i , j 1 w i , j 1 0
where the right sides of the equations are obtained from the boundary
conditions. In fact, the boundary conditions imply that
w 1,0 w 2,0 w 3,0 w 0,1 w 0,2 w 0,3 0,
w 1,4 w 4,1 25, w 2,4 w 4,2 50, w 3,4 w 4,3 75,
So the linear system associated with this problem has the form
4 1 0 1 0 0 0 0 w 1 25
0
1 4 1 0
1 0 0 0 0 w 2 50
0 1 4 0 0 1 0 0 0 w 3 150
1 0 0 4 1 0 1 0 0 w 4 0
0 1 0 1 4 1 0 1 0 w 5 0
0 0 1 0 1 4 0 0 1 w 6 50
0 0 0 1 0 0 4 1 0 w 7 0
0 0 0 0 1 0 1 4 1 w 8 0
0 0 0 0
0 1 0 1 4 w 9 25
Example (1.2.1.2):[2]
To find the numerical solution to the steady state heat flow equation
U xx U tt 0 0x 2 , 0 y 2
2u 2 u
2
(x , t ) (x , t ) 0, 0 x l, t 0 (1.2.2.1)
t 2 x 2
subject to the conditions
u (0, t ) u (l , t ) 0, for t 0
u
u (x ,0) f (x ), and (x ,0) g (x ), for 0x l
t
where α is a constant dependent on the physical conditions of the
problem. Select an integer m > 0 to define the x-axis grid points using
h = l/m. In addition, select a time-step size k > 0. The mesh points (xi ,tj )
are defined by xi = i h and tj = j k for each i = 0, 1, ... ,m and j = 0,1,…,n
At any interior mesh point (xi , tj ), the wave equation becomes
2u 2 u
2
(x i , t j ) (x i , t j ) 0 (1.2.2.2)
t 2 x 2
which leads to the difference equation
w i , j 1 2 w i , j w i , j 1 w i 1, j 2 w i , j w i 1, j
2 0 (1.2.2.3)
k2 h2
k
Define . Then we can write the difference equation as
h
w i , j 1 2 w i , j w i , j 1 2w i 1, j 2 2w i , j 2w i 1, j 0
and solve for wi,j+1, the most advanced time-step approximation, to obtain
w i , j 1 2(1 2 )w i , j 2 (w i 1, j w i 1, j ) w i , j 1 (1.2.2.4)
xi wi.20
0 0
0.1 2.3292169944
0.2 2.5877852523
0.3 2.8292169944
0.4 2.9512565163
0.5 1
0.6 2.9512565163
0.7 2.8292169944
0.8 2.5877852523
0.9 2.3292169944
1 2
Introduction
The famous numerical method of spline has unique polynomials
between each two points. So the main polynomial of spline is the union of
these sub polynomials. Spline polynomial deals with usual basis.
The basis B-spline method is determined by knot vector with respect to
De Boor algorithm. A set of points called control plays a fantastic role for
finding main polynomial belong to the same data.
This chapter consists of three sections. Section one includes the basis
background of B-spline curves, the basis function of B-spline, knot
vectors and control points. Section two gives the numerical solution of
ODE's using B-spline. Section three gives the comparison between the
FDM and B-spline method for solving ODE's.
If p 0
t ti t i p 1 t
N i , p (t ) N i , p 1 (t ) N i 1, p 1 (t ) (2.1.2.3)
ti p ti t i p 1 t i 1
where
1- N i ,p 1 for t i t t i p
2- N i ,p 0 for t0 t ti , t i p t t i n ,
n
3- N
i 0
i ,p 1 t [t p 1 , t n 1 ] Normalizing property
coordinates. The parameter t will vary from t min to t max along the B-
spline curve. Also during calculations, the convention of 0/0 = 0 (by
definition) must be adopted for the recursion to work. Their calculation
is completely driven by the predetermined knot vector.
Table (2.1.2.1) : B-Spline Basis Function
U = [0 0 0 1 1 1]
N 0,2 (1 t ) 2
N 1,2 2t 2t 2
N 2,2 t 2
0 t 1/ 2 1/ 2 t 1
N 0,3 0
N 0,3 (1 2t )3
N 1,3 2(t 1)3
N 1,3 2t (7t 2 9t 3)
N 2,3 2(t 1) 2 (4t 1)
N 2,3 2t 2
(3 4t )
N 3,3 14t 3 24t 2 12t 2
N 3,3 2t 3 N 4,3 (2t 1)3
U = [5(0) 5(1)]
N 0,4 (1 t ) 4
N 1,4 4t (1 t )3
N 2,4 6t 2 (1 t ) 2
N 3,4 4t 3 (1 t )
N 4,4 t 4
U = [7(0) 7(1)]
N 0,6 (1 t ) 6
N 1,6 3t (1 t ) 5
N 2,6 12t 2 (1 t ) 4
N 3,6 20t 3 (1 t )3
N 4,6 15t 4 (1 t ) 2
N 5,6 6t 5 (1 t )
N 6,6 t6
1
t 1
2
N 0,7 0
N 1,7 2(1 t ) 7
N 2,7 16t 7 98t 6 252t 5 350t 4 280t 3 126t 2 28t 2
N 3,7 58t 7 308t 6 672t 5 770t 4 490t 3 168t 2 28t 2
N 4,7 128t 7 588t 6 1092t 5 1050t 4 560t 3 168t 2 28t 2
N 5,7 198t 7 798t 6 1302t 5 1120t 4 560t 3 168t 2 28t 2
N 6,7 240t 7 882t 6 1344t 5 1120t 4 560t 3 168t 2 28t 2
N 7,7 254t 7 896t 6 1344t 5 1120t 4 560t 3 168t 2 28t 2
N 8,7 (2t 1) 7
Figure(2.1.2.1) The Basis Functions for the Interval Figure(2.1.2.2) The Basis Functions for the Interval
Figure(2.1.2.4) The Basis Functions for the Interval Figure(2.1.2.3) The Basis Functions for the Interval
Figure(2.1.2.5) The Basis Functions for the Interval 0 t 1 U = [8(0) 1/2 8(1)]
5. Use the boundary conditions to solve for end ordinate values of control
points.
6. Substitute B-spline curves and the derivatives into the differential
equation or boundary value problem.
7. Calculate the remaining interior ordinates of the control points by
evaluating the differential equation at the corresponding abscissa of the
collocation points.
The Root Mean Square Error is a technique used :
N
1
RMS
N
(f
i 1
i g i )2 (2.2.2)
where f i is the approximation solution of B-spline and g i the exact
solution.
A reasonable baseline value for a successful approximation has been set
at RMS ≥ .
Example (1.3.1) :[1] solve y 5 y 36 y 0 (2.2.3)
0 t 1/ 2 1/ 2 t 1
N 0,3 0
N 0,3 (1 2t )3
N 1,3 2(t 1)3
N 1,3 2t (7t 9t 3)
2
Calculate the B-spline curve equations and the required B-spline curve
derivatives.
1
For the first interval 0 t
2
3
y (t ) B i N i , p
i 0
3
y (t ) B i N i, p
i 0
3
y (t ) B i N i, p
i 0
y (t ) B 0 N 0,3
B1N 1,3
B 2 N 2,3
B 3N 3,3
y (t ) B 0 N 0,3
B1N 1,3
B 2 N 2,3
B 3N 3,3
Hence
y (t ) B 0 (1 2t )3 B1[2t (7t 2 9t 3)] B 2[2t 2 (3 4t )] B 3[2t 3 ]
y (t ) (42B1 24B 0 24B 2 6B 3 ) t 2 (24B 0 36B1 12B 2 ) t 6B1 6B 0
y (t ) (84B1 48B 0 48B 2 12B 3 ) t 24B 0 36B1 12B 2
1
For the second interval: t 1
2
and hence
y (t ) B 1[2(1 2t )3 ] B 2 [2(t 1) 2 (4t 1)]
B 3 [14t 3 24t 2 12t 2)] B 4 [(2t 1)3 ]
y (t ) (24B 2 6B1 42B 3 24B 4 ) t 2 (12B1 36B 2 48B 3 24B 4 ) t
12B 2 6B1 12B 3 6B 4
y (t ) (12B1 12B 2 12B 3 12B 4 ) t 12B1 12B 2 12B 3 12B 4
By applying the boundary conditions to Equation (2.2.3)
y (0) 0 gives B0 0 y 0
y (1) 1 gives B4 1 y 5
B 2 y 3 2.7344
5 1
At t x 4 use the equation for t 1
6 2
Now that all of the coordinates for the control points have been
calculated, we can be substituted into the B-spline curve equation:
1
For the first interval 0 t
2
y (t ) 12.7344*[2t (7t 2 9t 3)] 2.7344*[2t 2 (3 4t )] 3.5156*[2t 3 ]
1
For the second interval: t 1
2
y f (x , y , y )
y g (x , y ) a x b (2.3.1)
with boundary conditions y (a) y a , y (b ) y b
dy d 2y
The approximation of the derivatives and at a node points
dx dx 2
119t
e 5 / 2 (sin( ))
y 2
119
e 5t / 2 (sin( ))
2
Solution: (n = 10)
From the boundary condition at x = 0 , we obtain
n= 1: at x = 0, y1 = 0
n= 10: at x =1, y10 = 1
1 2 8
x2 , x 3 ,..., x 9
9 9 9
For the rest of the nodes, the following FDM will be applied:
81y i 1 171y i 126 y i 1 0
i 1 2 3 4 5 6 7 8 9 10
-2
y
-4
-6
-8
-10
0 0.2 0.4 0.6 0.8 1
x
Figure (2.3.1) : solution of example (2.3.1) using the FDM with n=1000
-2
y
-4
-6
-8
-10
0 0.2 0.4 0.6 0.8 1
x
1 0 0 0 y 1 0
9 14 9
0 y 2 0
0 9 14 9 y 3 0
0 0 0 1 y 4 1
Figure (2.3.4) the exact and Figure (2.3.5) the exact and
numerical solutions of example numerical solutions of example
(2.3.2) using the FDM (2.3.2) using the B-spline method
CONCLUSIONS :
The B-spline method was further verified by comparing it with the
numerical Finite Difference Method. The targeted RMS ≥ was not
easily achievable by FDM despite the large number of nodes used (up to
1000 nodes) in the case of the example (2.3.1) and in example (2.3.2).
Another proof
to the superiority of the B-spline method.
Introduction
This chapter is connected with the solution of partial differential
equations PDE's using 2-dimensional B-spline method. Many examples
are examined to clarify the method.
For efficiency of the B-spline method, comparison with the FDM's is
made. The error found for the in B-spline is less than that in FDM.
If p 0
t ti t i p 1 t
N i , p (t ) N i , p 1 (t ) N i 1, p 1 (t ) (3.1.3)
ti p ti t i p 1 t i 1
and in the W-direction
If q 0
1 if r j r r j 1
M j ,0 ( r ) (3.1.4)
0 otherwise
If q 0
r rj rj q 1 r
M j ,q (r ) M j ,q 1 (r ) M j 1,q 1 (r ) (3.1.5)
r j q r j rj q 1 ri 1
where
1- N i , p (t )M j ,q (r ) 0 for all i , j , p , q , t , r
n m
2- N
i 0 j 0
i ,p (t )M j ,q (r ) 1 for all (t , r ) [0,1] [0,1]
Similarly, the first derivative of the B-spline surface with respect to the
parameter r is:
n m
S r (t , r ) B i , j N i , p (t )M j ,q (r ) (3.1.7)
i 0 j 0
Solution (1):
1-Select the appropriate knot vector that provides the resolution required
for the solution. Since the PDE's of the second order, the least U-vector
and W-vector to choose are of degree 4.
U = [5(0) 5(1)]
W = [5(0) 5(1)]
3- Calculate the abscissa and ordinate coordinates for the control points.
Since the Greville Abscissa approach has been chosen, use equations
(3.1.11) &(3.1.12) to calculate the Greville Abscissa for required control
points.
Table (3.1.2): Greville Abscissa of U-direction & W-direction
i xi j yj
1 2 1 2
2 1/4 2 1/4
3 1/2 3 1/2
4 3/4 4 3/4
5 1 5 1
T (t , r ) N 0,4 (t )[B 0,0 M 0,4 (r ) B 0,1M 1,4 (r ) B 0,2 M 2,4 (r ) B 0,3M 3,4 (r ) B 0,4 M 44 (r )]
N 1,4 (t )[B 1,0 M 0,4 (r ) B 1,1M 1,4 (r ) B 1,2 M 2,4 (r ) B 1,3M 3,4 (r ) B 1,4 M 44 (r )]
N 2,4 (t )[B 2,0 M 0,4 (r ) B 2,1M 1,4 (r ) B 2,2 M 2,4 (r ) B 2,3 M 3,4 (r ) B 2,4 M 44 (r )]
N 3,4 (t )[B 3,0 M 0,4 (r ) B 3,1M 1,4 (r ) B 3,2 M 2,4 (r ) B 3,3 M 3,4 (r ) B 3,4 M 44 (r )]
N 4,4 (t )[B 4,0 M 0,4 (r ) B 4,1M 1,4 (r ) B 4,2 M 2,4 (r ) B 4,3 M 3,4 (r ) B 4,4 M 44 (r )]
T (t , r ) (1 t ) 4 [B 0,0 *(1 r ) 4 B 0,1 *4r (1 r )3 B 0,2 *6r 2 (1 r ) 2 B 0,3 *4r 3 (1 r ) B 0,4 * r 4 ]
4 t (1 t )3 [B1,0 *(1 r ) 4 B1,1 *4r (1 r )3 B 1,2 *6r 2 (1 r ) 2 B 1,3 4r 3 (1 r ) B 1,4 * r 4 ]
6 t 2 (1 t )2 [B 2,0 *(1 r ) 4 B 2,1 *4r (1 r )3 B 2,2 *6r 2 (1 r ) 2 B 2,3 4r 3 (1 r ) B 2,4 * r 4 ]
4 t 3 (1 t ) [B 3,0 *(1 r ) 4 B 3,1 *4r (1 r )3 B 3,2 *6r 2 (1 r ) 2 B 3,3 4r 3 (1 r ) B 3,4 * r 4 ]
t 4 [B 4,0 *(1 r ) 4 B 4,1 *4r (1 r )3 B 4,2 *6r 2 (1 r ) 2 B 4,3 4r 3 (1 r ) B 4,4 * r 4 ]
4 4
T r r (t , r ) B i , j N i ,4 (t )M j ,4 (r )
i 0 j 0
Solution (2)
Select an appropriate knot vector that provides the resolution required
for the solution. Since the PDE's of second order, the least U-vector and
W-vector to choose are of degree 6.
U = [7(0) 7(1)]
W = [7(0) 7(1)]
N 0,6 (1 t ) 6 M 0,6 (1 r ) 6
N 1,6 6t (1 t )5 M 1,6 6r (1 r )5
N 2,6 15t 2 (1 t ) 4 M 2,6 15r 2 (1 r ) 4
N 3,6 20t 3 (1 t )3 M 3,6 20r 3 (1 r )3
N 4,6 15t 4 (1 t ) 2 M 4,6 15r 4 (1 r ) 2
N 5,6 6t 5 (1 t ) M 5,6 6r 5 (1 t )
N 6,6 t 6 M 6,6 r 6
Calculate the abscissa and ordinate coordinates for the control points.
Since the Greville Abscissa approach has been chosen, use equations
(3.1.11) & (3.1.12) to calculate the Greville Abscissa for required control
points.
Table (3.1.8): Greville Abscissa of U-direction & W-direction
i xi j yj
1 2 1 2
2 1/6 2 1/6
3 1/3 3 1/3
4 1/2 4 1/2
5 2/3 5 2/3
6 5/6 6 5/6
7 1 7 1
2 2 2 2 2
1 2 1/6 2 -0.1667
2 2 1/3 2 0.58
3 2 1/2 2 -1.1350
4 2 2/3 2 1.5133
5 2 5/6 2 -1.45
6 2 1 2 1
2 1 2 1/6 0
2 2 2 1/3 0
2 3 2 1/2 0
2 4 2 2/3 0
2 5 2 5/6 0
2 6 2 1 0
6 1 1 1/6 -1.9030
6 2 1 1/3 3.0899
6 3 1 1/2 -4.2203
6 4 1 2/3 4.6937
6 5 1 5/6 -4.1082
6 6 1 1 2.7183
1 6 1/6 1 -0.4531
2 6 1/3 1 1.5766
3 6 1/2 1 -3.0853
4 6 2/3 1 4.1137
5 6 5/6 1 -3.9415
The substitute B-spline surface and the derivatives into the differential
equation,
2T 2T
2 (x 2 y 2 ) e xy Tt t (t , r ) T r r (t , r ) (t 2 r 2 ) e t r
x 2
y
2 2 2 2
Solution (3)
Select an appropriate knot vector that provides the resolution required
for the solution. Since the PDE's of second order, the least U-vector and
W-vector to choose are of degree 8.
U = [9(0) 9(1)]
W = [9(0) 9(1)]
Calculate all required basis functions
Table (3.1.13): Basis functions of 2-direction U and W
U-direction W-direction
N 0,8 (1 t )8 M 0,8 (1 r )8
N 1,8 8t (1 t ) 7 M 1,8 8r (1 r ) 7
N 2,8 28t 2 (1 t ) 6 M 2,8 28r 2 (1 r ) 6
N 3,8 56t 3 (1 t ) 5 M 3,8 56r 3 (1 r ) 5
N 4,8 70t 4 (1 t ) 4 M 4,8 70r 4 (1 r ) 4
N 5,8 56t 5 (1 t ) 3 M 5,8 56r 5 (1 r )3
N 6,8 28t 6 (1 t ) 2 M 6,8 28r 6 (1 r ) 2
N 7,8 8t 7 (1 t ) M 7,8 8r 7 (1 r )
N 8,8 t8 M 8,8 r 8
Calculate the abscissa and ordinate coordinates for the control points.
Since the Greville Abscissa approach has been chosen, use equations
(3.1.11) & (3.1.12) to calculate the Greville Abscissa for required control
points.
Table (3.1.14): Greville Abscissa of U-direction & W-direction
i xi J yj
1 2 1 2
2 1/8 2 1/8
3 1/4 3 1/4
4 3/8 4 3/8
5 1/2 5 1/2
6 5/8 6 5/8
7 3/4 7 3/4
8 7/8 8 7/8
9 1 9 1
T (t , r ) N 0,4 (t )[B 0,0 M 0,4 (r ) B 0,1M 1,4 (r ) B 0,2 M 2,4 (r ) B 0,3M 3,4 (r ) B 0,4 M 44 (r )]
N 1,4 (t )[B 1,0 M 0,4 (r ) B 1,1M 1,4 (r ) B 1,2 M 2,4 (r ) B 1,3M 3,4 (r ) B 1,4 M 44 (r )]
N 2,4 (t )[B 2,0 M 0,4 (r ) B 2,1M 1,4 (r ) B 2,2 M 2,4 (r ) B 2,3 M 3,4 (r ) B 2,4 M 44 (r )]
N 3,4 (t )[B 3,0 M 0,4 (r ) B 3,1M 1,4 (r ) B 3,2 M 2,4 (r ) B 3,3 M 3,4 (r ) B 3,4 M 44 (r )]
N 4,4 (t )[B 4,0 M 0,4 (r ) B 4,1M 1,4 (r ) B 4,2 M 2,4 (r ) B 4,3 M 3,4 (r ) B 4,4 M 44 (r )]
The substitute B-spline surface and the derivatives into the differential
equation,
2T 2T
0 Tt t (t , r ) T r r (t , r ) 0
x 2 y 2
i j t r Bi.j
1 1 1/4 1/4 0.7756
2 1 1/2 1/4 -1.7878
3 1 3/4 1/4 1.3312
1 2 1/4 1/2 -1.7610
2 2 1/2 1/2 3.4854
3 2 3/4 1/2 -2.3629
1 3 1/4 3/4 2.4614
2 3 1/2 3/4 -5.2667
3 3 3/4 3/4 3.0170
Table (3.1.22) :The values of the interior of Plane Heat
T ( t , r ) = (113.7781)*t 4 * r 4 (170.6688)*t 3 * r 4 (78.2245)*t 2 * r 4 (10.6672)*t * r 4
(170.6688)*t 4 * r 3 256*t 3 * r 3 (117.3408)*t 2 * r 3 16*t * r 3
(78.2245)*t 4 * r 2 (117.3408)*t 3 * r 2 (53.7840)*t 2 * r 2 (7.3344)*t * r 2
(10.6672)*t 4 * r 16*t 3 * r (7.3344)*t 2 * r t * r
Table (3.1.23) : Approximation vs Exact solution
Approximatio Exact
t r
n solution solution
2 2 2 2
1/4 1/4 -0.0177 0.0625
1/2 1/2 -0.0916 0.25
3/4 3/4 -0.0466 0.5625 RMS
1 1 1 1 0.2767
Solution (2)
Select the appropriate knot vector that provides the resolution required
for the solution. Since the PDE's of second order, the least U-vector and
W-vector to choose are of degree 8.
U = [9(0) 9(1)]
W = [9(0) 9(1)]
N 7,8 8t 7 (1 t ) M 7,8 8r 7 (1 r )
N 8,8 t 8 M 8,8 r 8
Calculate the abscissa and ordinate coordinates for the control points.
Since the Greville Abscissa approach has been chosen, use equations
(3.1.11) &(3.1.12) to calculate the Greville Abscissa for required control
points.
Table (3.1.31): Greville Abscissa of U-direction & W-direction
i xi j yj
1 2 1 2
2 1/8 2 1/8
3 1/4 3 1/4
4 3/8 4 3/8
5 1/2 5 1/2
6 5/8 6 5/8
7 3/4 7 3/4
8 7/8 8 7/8
9 1 9 1
2T 2T
Example (3.2.1): 2 (x 2 y 2 ) e xy where T is the temperature
x 2
y
change in the indicated direction, such that 0 x 1 and 0 y 1
Boundary condition T (0, y ) 0 , T (x ,0) x , T (1, y ) e y , T (x ,1) x e 1 ,
and compare the exact solution T (x , y ) e .
xy
1
Solution: If n m 3 , h k , for each i 1, 2 and j 1, 2 . and
2
where l i (m 1 j )(n 1) for each i 1, 2 and j 1, 2
1
w 1,0 , w 2,0 2 , w 0,1 w 0,2 w 0,3 0,
3 3
2
1 1 2 1
w 1,3 e , w 2,3 e , w 3,1 e , w 3,2 e 3
1
3 3
Table (4.2.1): The values of FDM
i 1 2 3 4
wi 0.478225 0.9562 0.1227 -0.269025
RMS of B-spline
RMS of FDM
Order 5
1.2067 2.3641
1
If n m 4 , h k , for each i 1, 2,3 and j 1, 2,3 . And where
4
1
4 w i , j w i 1, j w i 1, j w i , j 1 w i , j 1
yj
x i e
h2
Expressing this in terms of the relabeled interior grid points wi = u(Pi)
implies that the equations at the points Pi are:
1 1 34
P1 : 4w 1 w 2 w 4 w 0,3 w 1,4 * *e
16 4
1 1 34
P2 : 4w 2 w 3 w 1 w 5 w 2,4 * *e
16 2
1 3 34
P3 : 4w 3 w 2 w 6 w 4,3 w 3,4 * *e
16 4
1 1 12
P4 : 4w 4 w 5 w 1 w 7 w 0,2 * *e
16 4
1
1 1
P5 : 4w 5 w 6 w 4 w 2 w 8 * *e 2
16 2
1
1 3
P6 : 4w 6 w 5 w 3 w 9 w 4,2 * *e 2
16 4
1
1 1
P7 : 4w 7 w 8 w 4 w 0,1 w 1,0 * *e 4
16 4
1
1 1
P8 : 4w 8 w 9 w 7 w 5 w 2,0 * *e 4
16 2
1
1 3
P9 : 4w 9 w 8 w 6 w 3,0 w 4,1 * *e 4
16 4
1
w 1,0 , w 2,0 1 , w 3,0
3
4 2 4
w 0,1 w 0,2 w 0,3 0,
1 1 1 1 3 1
w 1,4 e , w 2,4 e , w 3,4 e
4 2 4
1 1 3
w 4,1 e 4
, w 4,2 e 2
, w 4,3 e 4
RMS of B-spline
RMS of FDM
order 9
1.2164 2.7478
Example (3.2.2): The governing equation for a two dimensional heat
transfer problem with no heat generation is the Laplace Equation,
2T 2T
0 where T is the temperature change in the indicated
x 2 y 2
direction, such that 0 x 1 and 0 y 1
Solution
1
If n m 4 ,, h k , for each i 1, 2,3 and j 1, 2,3 . And where
4
4 w i , j w i 1, j w i 1, j w i , j 1 w i , j 1 0
P1 : 4w 1 w 2 w 4 w 0,3 w 1,4
P2 : 4w 2 w 3 w 1 w 5 w 2,4
P3 : 4w 3 w 2 w 6 w 4,3 w 3,4
P4 : 4w 4 w 5 w 1 w 7 w 0,2
P5 : 4w 5 w 6 w 4 w 2 w 8 0
P6 : 4w 6 w 5 w 3 w 9 w 4,2
P7 : 4w 7 w 8 w 4 w 0,1 w 1,0
P8 : 4w 8 w 9 w 7 w 5 w 2,0
P9 : 4w 9 w 8 w 6 w 3,0 w 4,1
RMS of B-spline
RMS of FDM
Order 5
0.2767 0.7161
1
If n m 5 ,, h k , for each i 1, 2,3, 4 and j 1, 2,3, 4 . And where
5
4 w i , j w i 1, j w i 1, j w i , j 1 w i , j 1 0
RMS of B-spline
RMS of FDM
Order 5
0.2767 0.5582
The Program of Basis Function of B-Spline By the
porgram's "Visual Studio ".
Public Class Form1
If p = 0 Then
If u(i) <= x And x <= u(i + 1) Then
N(i, 0) = 1
Else
N(i, 0) = 0
End If
Else
End If
N(i, p) = p1 + p2
End If
Label1.Text = Label1.Text & " N(" & i & "," & p & ") = " & N(i, p)
& " "
Next
Label1.Text = Label1.Text & vbNewLine
Next
End Sub
End Class
In this thesis, the expansion of the solution of ordinary
differential equations was studied, where the one dimensional
equations is expanding to more. This work is achieved via the
interpolation B-spline.
For detecting the powerful of B-spline method, the
comparison with update method of Finite Difference Method is
implanted.
The test examples show that the amount of errors in B-
spline is less than that of the Finite difference Method.
1- Approximations of surface through B-spline.
[3] Burden, R.L. and Faires, J.D; "Numerical Analysis", sixth edition, An
International Thomson publishing company(ITP), 2010.
[4] C. de Boor "A Practical Guide to Splines", vol. 27, Springer, New
York, NY, USA. 30, (2001).
[5] C. Deng, X. Yang (2007). "A Local Fitting Algorithm for Converting
Planar Curves to B-splines", Department of Mathematics, Zhejiang
University Publications.
University,2002.
[7] C. K. Ingram, MSc Thesis (2003). "A Geometric B-Spline Over the
Triangular Domain" , University of Waterloo. Ontario, Canada.
[14] G.Farin," Curves and Surfaces for CAGD – A Practical Guide", 5th
Edition. San Diego CA: Academic Press, 2002.
[19] J. Goh, A.A. Majid and A.I.M. Ismail (2010). "A Comparison of
Some Splines-Based Methods for the One-dimensional Heat Equation",
World Academy of Science, Engineering and Technology 70. pp.858-
861, Pinang, Malaysia.``
[20] J. Goh, A.A. Majid and A.I.M. Ismail (2012). "Cubic B-Spline
Collocation Method for One-dimensional Heat and Advection-Diffusion
Equations", World Academy of Science, Engineering and Technology,
Pinang, Malaysia.
[22] K-L Chung, W-E Yan, (1994). A Fast Algorithm for Cubic B-spline
Curve Fitting, Computer & Graphics, Vol.18, No.3, pp.327-334
] [35الدلفي ،حسن مجيد حسون ومشكور ،محمود عطا هللا ,,التحليل الهندسي
والعددي التطبيقي ،،الجامعة التكنولوجية ،بغداد .(1999) ،
[ ]36ترجمة عطا هللا ثامر العاني ,,المعادالت التفاضلية الجزئية للكليات العلمية
والهندسية ،،جامعة بغداد ،بيت الحكمة. )3891( ،
املستخلص
واحد من بين مخططات السيطرة األقوى واألكثر تنوعا -Bسبالين يعد
في اندراج -Bسبالين لتصميم ونمذجة المنحنيات والسطوح و يمكن استخدام
البيانات الذي واحد من أهم مواضيعه وكذلك في حل المعادالت االعتيادية والجزئية.
إن األهداف الرئيسة لهذه الرسالة هي حل المعادلة التفاضلية الجزئية بطريقة -Bسبالين
وتنفيذها في بعض التطبيقات .فتناولت الرسالة نبذة مختصرة عن المعادالت الجزئية وحلها
بطريقة الفروق المنتهية .وتناولت مفهوم -Bسبالين و تتقصى خواص دواله األساسية
ومنحنياته .وقد أجرت الرسالة تحليالتها عن طريق حل معادالت كوكس -دي بور ورسم
النتائج للدالة األساس في مختلف الدرجات وتكوين متجهات U-كما اجرت التحليل في أنواع
منحنيات -Bسبالين من خالل حل المعادالت ذات الصلة وعن طريق استخدام فرض لقيم
متجهات U-ونقاط السيطرة .ولذلك فقد وردت النتائج بهيأة رسوم بيانية واستخدمت خوارزمية
دي بور في إنجاز هذه المهمة .فبرزت فكرة من الدراسة تم تطبيقها لتوليد تصاميم منحنى عن
طريق التالعب بمواقع نقاط السيطرة.
واعتمدت طريقة تجميع –Bسبالين بصورة تقريبية لحل مسائل القيمة الحدية للمعادالت
التفاضلية االعتيادية والجزئية .ان حل المعادلة التفاضلية الجزئية يكمن مع الشروط الحدودية
واثنين من الشروط االبتدائية على شكل لوحة معدنية معينة بين 0و 3على ِكال المحورين .وقد
تمت المقارنة مع طريقة الفروقات المحدودة لحل المعادالت التفاضلية االعتيادية والجزئية من
هو أقل من اجل المزيد من التحقق .ومن خالل االمثلة لوحظ إن مقدار الخطأ في -Bسبالين
طريقة الفروق المنتهية.
مجهورية الع اق
ج معة الكرروفرة
مُررردمة إىل جملس كليررة الرتِيررة للبن ر ت /جر ر معة الكرروفة كجز م ر
تردم هب
إشــــراف
1434هـ 2213م