Question: d u j d t = 6 u j u j + 1 - u j - 1 2 x - u j + 2

dujdt=6ujuj+1-uj-12x-uj+2-2uj+1+2uj-1-uj-22x3.
To ensure the solution is stable, the stability condition must be satisfied
1.089x3.
Write a MATLAB program that solves the equation in the discretization form using RK4 above.
Solve it in the region -10x10 with a grid size x=0.1, and use periodic boundary
conditions: x(-10)=x(10)
Integrate from t=0 to t=2, using an appropriate time-step that satisfies the stability
condition. For each of the initial conditions below, plot the solution at t=2 and comment on
the results.
Use a single soliton as initial condition, that is,u(x,0)=u1(x,0). Set v=20 and x0=0.
u1(x,t)=-v2cosh2(12v2(x-vt-x0)).
Two-soliton solurion:
u(x,0)=-6/cosh^2(x)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!