Beruflich Dokumente
Kultur Dokumente
DEPARTMENT OF MATHEMATICS
ARIGNAR ANNA GOVERENMENT ARTS COLLEGE
NAMAKKAL-637 002
2014-2015
CERTIFICATE
This is to certify that the minor project entitled
SIMULATING SOLUTIONS TO ORDINARY DIFFERENTIAL EQUATIONS
&WAVE PROPAGATION IN MATLAB submitted in partial fulfilment
Of the requirement
of
under
my supervision and
Guidance and that no part of the minor project has been submitted
for the ab o v e s aid min o r p r o j ec t o r other similar titles or prizes
and that the work has not been published in part or full in any
scientific or popular journals or magazines.
ACKNOWLEDGEMENT
First of all, I wish to express my deep sense of gratitude to the Lord
Almighty for his graceful blessings and giving me the good chance to get up on
the better steps.
I
place
on
record
my
heartful
and
sincere
thanks
to
Dr. V.RADHA, M.Com., M.Phil., Ph.D., Principal, Arignar Anna Government Arts
College, Namakkal.
It is my pride and pleasure to express my deep sense of sincere and
profound gratitude to my supervisor Dr. V. GANESAN, M.Sc., M.Phil., B.Ed.,
Ph.D., Head, Department of Mathematics, Arignar Anna Government Arts
College, Namakkal, for his scientific and valuable guidance, readiness and his
perennial interest in the welfare of the students.
I express my thankfulness to the authorities of Periyar University, Salem
and Gandhigram Rural Institute for providing the materials necessary for my
research work.
I would like to express my heartful thanks to my beloved parents, friends
and research scholars from various universities for their encouragement and
constant help which enabled me to complete my mini project.
(P.RADHA)
PREFACE
This mini project presents the salient aspect of the subject
matter in two chapters. simulation solution to ordinary differential
equations in matlab, and film casting, wave propagation with matlab
code,one dimensional wave propagation with matlab code, two
dimensional wave propagation with matlab code, three dimensional
wave propagation with matlab code, some examples are numbered
serially in this project.
we gives the necessary introduction to SIMULATING
SOLUTIONS TO ORDINARY DIFFERENTIAL EQUATIONS &WAVE
PROPAGATION IN MATLAB
Chapter I deals with simulation solution to ordinary differential
equations in matlab.
Chapter II deals with the wave propagation in matlab
CONTENT
CERTIFICATE
ACKNOWLEDGEMENT
PREFACE
CHAPTER NO.
TITLE
INTRODUCTION
I
II
PAGE NO.
16
CONCLUTION
27
REFERENCE
29
BUDGET
30
INTRODUCTION
Differential equations (DEs) play a prominent role in todays
industrial setting. Many physical laws describe the rate of change of
a quantity with respect to other quantities. Since rate of change is
simply another phrase for derivative, these physical laws may be
written as DEs. For example, Newtons Second Law o f Motion states
that the rate of change of momentum of an object is equal to the sum
of the imposed forces. Normally this is written as
F = ma,
where F represents the total imposed force. However, if we let x
denote the position of the object, then this may be rewritten as
F mx
Hence, Newtons Second Law of Motion is a second-order
ordinary differential equation.
There are many applications of DEs. Growth of microorganisms
and Newtons Law of Cooling are examples of ordinary DEs (ODEs),
1
while conservation of mass and the flow of air over a wing are
examples of partial DEs (PDEs). Further, predator-prey models and
the Navier-Stokes equations governing fluid flow are some examples
of systems of DEs.
Many introductory ODE courses are devoted to solution
techniques to determine the analytic solution of a given, normally
linear, ODE.
While these techniques are important, many real-life processes
may be modeled with systems of DEs. Further, these systems may be
nonlinear. Nonlinear systems of DEs may not have exact solutions.
However, we still desire some type of solution.
There
are
many
numerical
techniques
to
obtain
an
also has the advantage that the internal command guide may be used
to create graphical user interfaces (GUIs) to help facilitate this
exploration. The GUIs ensure that the students are not bogged down
with reading and understanding MATLAB code.
In this mini project, we will discuss how to use MATLAB to
simulate the solution to DEs. Then projects the author has assigned
involving real-world applications of DEs will be described.
One project models the industrial process of wave propagation
with matlab code,one dimensional wave propagation with matlab
code,two dimensional wave propagation with matlab code, three
dimensional wave propagation with matlab code, some examples
are numbered.
CHAPTER-I
SIMULATING SOLUTIONS TO ORDINARY
DIFFERENTIAL EQUATIONS IN MATLAB
MATLAB provides many commands to approximate the
solution. Suppose that the system of ODEs is written in the form
y ' f ( y)
Where y represents the vector of dependent variables and f
represents the vector of right-handside functions. All of the
commands require three arguments:
a filename which returns the value of the right-hand-side vector f,
vector representing the domain of the independent variable t
Set of initial conditions
and then explore the effect of this by simulation, first by recalculating the differential equation specification (this would be
achieved by using the uparrow key " to recall the previously typed
expressions, there is no need to physically re-type them)
>> a1 = kd/m; a0 = ks/m; b1 = kd/m; b0 = ks/m;
>> a = [1,a1,a0]; b= [b1,b0];
and then re-running the simulation and plotting the results (again,
use the uparrow key to repeat these already-typed commands)
>> y = lsim(b,a,u,t);
>> plot(t,y,b-,t,u,r-.)
>> legend(Car height y,road height u)
>> xlabel(Time (s))
>> ylabel(height)
>> title(Road height and car height)
>> grid on
11
12
14
15
CHAPTER-II
WAVE PROPAGATION IN MATLAB
The final project explored the propagation of waves on a taut
string This process is governed by the following PDE.
2
2u
2 u
c
t 2
x 2
u 0, t 0
u L, t 0
u x,0 f x
u
x, 0 g x
t
2
x 2
z 2
v
t 2
(1)
pi 1, j ,k 2 pi , j ,k pi 1, j ,k
x2
pi , j 1,k 2 pi , j ,k pi , j 1,k
z2
1 pi , j ,k 1 2 pi , j ,k pi , j ,k 1
(2)
v2
t2
2 pi , j ,k pi 1, j ,k pi , j 1,k 2 pi , j ,k pi , j 1,k
p
pi 1, j ,k 2 pi , j ,k pi , j ,k 1 v 2 t 2 i 1, j ,k
(3)
2
x
z2
17
The single point to be computed (the circle) lies on the upper plane
at time k+1.
FIGURE 2
Schematic representation of the three-dimensional (x, z, t) operator.
We therefore need two planes of the wavefield (at k-1, and k) to
start the propagation. As in the 1D case, it is critical that the first
two planes represent the desired initial conditions. In Figure 3a
below, the initial wavefield starts at the centre of the plane and then,
after 80 time iteration of computing the wavefield, we get the
wavefield shifted to the left as evident in part (b). Note that the
amplitude and shape of the wave field has been preserved.
18
(a)
(b)
19
20
end
% Get singel copies of the two excitation arrays and one
latter array.
for ix = 1:nx
xary(ix)=ix;
s1(ix) = p(1, ix);
s2(ix) = p(2, ix);
s40(ix) = p(40, ix);
end
% Plot the data
figure (1); plot(xary,s2,'r--',xary,s1,'b','LineWidth',3);
xlabel('x','FontSize',20), ylabel('Amp','FontSize',20)
title(' \it{ Wave on string}', 'FontSize',20)
figure (2); plot(xary,s40,'g:',xary,s2,'r-',xary,s1,'b','LineWidth',3);
xlabel('x','FontSize',20), ylabel('Amp','FontSize',20)
title(' \it{ Wave on string}', 'FontSize',20)
21
22
23
(a)
(b)
(a)
(b)
(c)
(d)
APPENDIX B
Portion of MATLAB code for modelling 3D data that propagates the
wave.
figure(3); mesh( p);
xlabel('x','FontSize',20), ylabel('t','FontSize',20),
zlabel('Amp','FontSize',20)
title(' \it{ Wave on string}', 'FontSize',20)
Portion of MATLAB code for modelling 3D data that
propagates the wave.
%*********************************************************
% Compute each time layer
for it = 3:ntd
it
% Compute each x trace
for ix = 2:nx-1
%Compute each sample in trace
for iz = 2:nz-1
p = vol(ix, iz, it-1);
ptm1 = vol(ix, iz, it-2);
25
26
CONCLUSIONS
SIMULATING
SOLUTIONS
TO
ORDINARY
DIFFERENTIAL
27
REFERENCES:
[1] Acierno, D., L. Di Maio, C. Ammirati, Film Casting of Polyethylene
Terephthalate: Experiments and Model Comparisons, Polymer
Engineering and Science, Vol. 40, pp. 108-117, 2000.
[2] Advani, S., C. Tucker III, The Use of Tensors to Describe and
Predict Fiber Orientation In Short Fiber Composites, Journal of
Rheology, Vol. 31, pp. 751-784, 1987.
[3] Baird, D., D. Collais, Polymer Processing, John Wiley and Sons,
New York, 1998.
[4] Denn, M., Process Modeling, Longman Inc., New York, 1986.
[5] Doufas, A., A, McHugh, C. Miller, Simulation of Melt Spinning
Including Flow-Induced Crystallization Part I: Model Development
and Predictions, Journal of Non-Newtonian Fluid Mechanics, Vol. 92,
pp. 27-66, 2000.
[6] Eisele, P., R. Killpack, Propene, Ullmans Encyclopedia of
Industrial Chemistry, 1993 ed.
[7] Fisher, R., M. Denn, Mechanics of Nonisothermal Polymer Melt
Spinning, American Institute of Chemical Engineers Journal, Vol. 23,
No. 1, pp. 23-28.
28
29