| 1 |
|
| 2 |
#================================ |
| 3 |
# AUTO demo abcb |
| 4 |
# BPCONT for generic periodic BVP |
| 5 |
#================================ |
| 6 |
|
| 7 |
pgm="abcb" |
| 8 |
ld(pgm) |
| 9 |
|
| 10 |
print "\n***"+pgm+": run 1: equilibrium continuation***" |
| 11 |
r1=run(sv=pgm+'.1') |
| 12 |
|
| 13 |
print "\n***"+pgm+": run 2: cycle continuation***" |
| 14 |
r2=run(r1('HB1'),IPS=2,ICP=[1,11],IPLT=1,sv=pgm+'.2') |
| 15 |
|
| 16 |
print "\n***"+pgm+": run 3: switch to LP continuation***" |
| 17 |
sw3=run(r2('LP1'),ICP=[1,2,11],ISW=2,IPLT=0,NPR=10,sv=pgm+'.3.sw') |
| 18 |
print "\n***"+pgm+": run 3: LP continuation (fw)***" |
| 19 |
sw3=load(sw3,ICP=[2,1,11],NMX=50,RL1=10.0) |
| 20 |
run(sw3,sv=pgm+'.3.fw') |
| 21 |
|
| 22 |
print "\n***"+pgm+": run 3: LP continuation (bw)***" |
| 23 |
sb3=run(sw3,DS='-',sv=pgm+'.3.bw') |
| 24 |
|
| 25 |
print "\n***"+pgm+": run 4: cycle continuation (bw)***" |
| 26 |
sb4=run(sb3('LP1'),ICP=[1,11],ISW=1,NMX=10,NPR=2,sv=pgm+'.4.bw') |
| 27 |
|
| 28 |
print "\n***"+pgm+": run 4: cycle continuation (fw)***" |
| 29 |
sf4=run(sb4('EP1'),ITMX=10,DS='-',sv=pgm+'.4.fw') |
| 30 |
|
| 31 |
print "\n***"+pgm+": run 5: switch to BP continuation***" |
| 32 |
sw5=run(sf4('BP1'),ICP=[1,2,3,11],ISW=3,NMX=50,NPR=10,ISP=1, |
| 33 |
DS=0.001,DSMAX=0.01,sv=pgm+'.5.sw') |
| 34 |
|
| 35 |
print "\n***"+pgm+": run 5: BP continuation (fw)***" |
| 36 |
run(sw5,sv=pgm+'.5.fw') |
| 37 |
|
| 38 |
print "\n***"+pgm+": run 5: BP continuation (bw)***" |
| 39 |
run(sw5,DS='-',sv=pgm+'.5.bw') |
| 40 |
|
| 41 |
print "\n***Clean the directory***" |
| 42 |
cl() |