
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

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