Kink-Breather-AntiKink
> time_0:=time():
> Title:=`Kink-Breather-AntiKink`:
> m:=3: # the total number of basic elements
> v[1,1]:=1: v[1,2]:=0: v[1,3]:=0.35: v[1,4]:=0: # Breather
> v[2,1]:=-1: v[2,2]:=-0.55: v[2,3]:=0: v[2,4]:=20: # AntiKink
> v[3,1]:=1: v[3,2]:=0.8: v[3,3]:=0: v[3,4]:=-10:# Kink
> B_p:=SGe_parameters(m,v):
> N:=B_p[0,0]; # the number of solitons
> Soliton:=(x,t)->SGe_backlund(x,t,N,B_p);
> Nt:=25: Nx:=35:
> L0:=0.9*v[3,4]: L1:=0.9*v[2,4]:
> T0:=0: T1:=3*2*Pi/(v[1,3]*sqrt(1-v[1,2]^2)):
> st:=time():
> A:=SGe_matrix(Soliton,L0,L1,T0,T1,Nx,Nt):
> matrixplot(A,axes=frame,labels=[t,x,``]);
> CPU_running_time:=time()-st;
> st:=time():
> Nt:=50:
> SGe_animate(Soliton,Title,L0,L1,T0,T1,Nx,Nt);
> CPU_running_time:=time()-st;
> st:=time():
> Nx:=15: Na:=15:
> SGe_ribbon(Soliton,Title,L0,L1,T0,T1,Nx,Nt,Na);
> CPU_running_time:=time()-st;
> st:=time():
> Np:=10:
> SGe_pendulum(Soliton,Title,L0,L1,T0,T1,Nx,Nt,Np);
> CPU_running_time:=time()-st;
> Total_CPU_running_time_(in_seconds):=time()-time_0;