Docsity

Homework 5: Solving Reaction-Diffusion System using Finite-Difference and FFT methods - Pr, Assignments of Mathematics

Toggle sidebar
bg1
AMATH 301
Homework 5: Autumn 2007
DUE: Friday, December 7 at 11 p.m.
I Consider the reaction-diffusion system
Ut= (1 โˆ’U2โˆ’V2)U+ฮฒ(U2+V2)V+D1โˆ‡2U
Vt=โˆ’ฮฒ(U2+V2)U+ (1 โˆ’U2โˆ’V2)V+D2โˆ‡2V
where ฮฒ= 1, D1=D2= 0.1, โˆ‡2=โˆ‚2
x+โˆ‚2
yand x, y, โˆˆ[โˆ’10,10]. Assume periodic
boundary conditions and use n= 64 for the number of discrete points.
Initial Conditions Start with spiral initial conditions in Uand V.
[X,Y]=meshgrid(x,y); m=1; % number of spirals
u=tanh(sqrt(X.^2+Y.^2)).*cos(m*angle(X+i*Y)-(sqrt(X.^2+Y.^2)));
v=tanh(sqrt(X.^2+Y.^2)).*sin(m*angle(X+i*Y)-(sqrt(X.^2+Y.^2)));
Transform the PDE and use ode45 to advance the solution in time for tspan = 0 : 0.5 : 10.
(a) Solve the system using a finite-difference scheme. (See Lecs. 7.1-7.3)
ANSWER: ode45 solution output should be A1.dat
(b) Solve the system using FFTs. Compare with (a). (See Lecs. 7.4-7.5)
ANSWER: ode45 solution output should be A2.dat

Partial preview of the text

Download Homework 5: Solving Reaction-Diffusion System using Finite-Difference and FFT methods - Pr and more Assignments Mathematics in PDF only on Docsity!

AMATH 301

Homework 5: Autumn 2007

DUE: Friday, December 7 at 11 p.m.

I Consider the reaction-diffusion system

Ut = (1 โˆ’ U 2 โˆ’ V 2 )U + ฮฒ(U 2 + V 2 )V + D 1 โˆ‡^2 U Vt = โˆ’ฮฒ(U 2 + V 2 )U + (1 โˆ’ U 2 โˆ’ V 2 )V + D 2 โˆ‡^2 V

where ฮฒ = 1, D 1 = D 2 = 0.1, โˆ‡^2 = โˆ‚ x^2 + โˆ‚ y^2 and x, y, โˆˆ [โˆ’ 10 , 10]. Assume periodic boundary conditions and use n = 64 for the number of discrete points. Initial Conditions Start with spiral initial conditions in U and V.

[X,Y]=meshgrid(x,y); m=1; % number of spirals u=tanh(sqrt(X.^2+Y.^2)).cos(mangle(X+iY)-(sqrt(X.^2+Y.^2))); v=tanh(sqrt(X.^2+Y.^2)).sin(mangle(X+iY)-(sqrt(X.^2+Y.^2)));

Transform the PDE and use ode45 to advance the solution in time for tspan = 0 : 0.5 : 10. (a) Solve the system using a finite-difference scheme. (See Lecs. 7.1-7.3) ANSWER: ode45 solution output should be A1.dat

(b) Solve the system using FFTs. Compare with (a). (See Lecs. 7.4-7.5) ANSWER: ode45 solution output should be A2.dat