| 1 |
#========= |
| 2 |
# Demo san |
| 3 |
#========= |
| 4 |
|
| 5 |
pgm = 'san' |
| 6 |
|
| 7 |
print "Starting from analytical solution" |
| 8 |
print pgm, ": first run : continuation in PAR(1)" |
| 9 |
san=load('san',IPS=9,NDIM=3,ISP=0,ILP=0,ITNW=7,JAC=-1,NTST=35,IEQUIB=0,DS=0.05) |
| 10 |
r1=run(san,ICP=[1,8],UZSTOP={1:0.25}) |
| 11 |
|
| 12 |
print pgm, ": second run : generate adjoint variables" |
| 13 |
r2=run(r1,ICP=[9,8],ITWIST=1,NMX=2,UZSTOP={}) |
| 14 |
|
| 15 |
print pgm, ": third run : continue homoclinic orbit and adjoint" |
| 16 |
r3=run(r2,ICP=[4,8,10,21,33],IPSI=[1,13],NMX=50,NPR=20,UZR={4:1.0,21:0,33:0}) |
| 17 |
save(r3,'3') |
| 18 |
|
| 19 |
print pgm, ": fourth run : no convergence without dummy step" |
| 20 |
r4=run(r1,ICP=[4,8,10,21,33],ITWIST=1,IPSI=[1,13],NMX=50,UZR={33:0}) |
| 21 |
|
| 22 |
print pgm, ": fifth run : continue non-orientable orbit" |
| 23 |
r5=run(r3('UZ2'),ICP=[1,8,10,21,33],NMX=20,DS='-',sv='5') |
| 24 |
|
| 25 |
print pgm, ": sixth run : restart and homotopy to PAR(4)=1.0" |
| 26 |
r6=run(san,ICP=[4,8],UZSTOP={4:1}) |
| 27 |
|
| 28 |
print pgm, ": seventh run : homotopy to PAR(5)=0.0" |
| 29 |
r7=run(r6,ICP=[5,8],UZSTOP={5:0},DS='-') |
| 30 |
|
| 31 |
print pgm, ": eighth run : homotopy to PAR(1)=0.5" |
| 32 |
r8=run(r7,ICP=[1,8],UZSTOP={1:0.5},DS='-') |
| 33 |
|
| 34 |
print pgm, ": ninth run : homotopy to PAR(2)=3.0" |
| 35 |
r9=run(r8,ICP=[2,8],UZSTOP={2:3.0}) |
| 36 |
|
| 37 |
print pgm, ": tenth run : homotopy to PAR(7)=0.25" |
| 38 |
r10=run(r9,ICP=[7,8],UZSTOP={7:0.25}) |
| 39 |
|
| 40 |
print pgm, ": eleventh run : continue in PAR(7) to detect orbit flip" |
| 41 |
r11=run(r10,ICP=[7,8,31],IPSI=[11],UZR={31:0.0},UZSTOP={7:-0.5},DS='-') |
| 42 |
save(r11,'11') |
| 43 |
|
| 44 |
print pgm, ": twelfth run : three-parameter continuation of orbit flip" |
| 45 |
of = r11('UZ1') |
| 46 |
r12=run(of,ICP=[7,8,6],IPSI=[],NPR=5,NMX=20,IFIXED=[11],UZR={},UZSTOP={},DS='-') |
| 47 |
save(r12,'12') |