| 1 |
|
| 2 |
#======================== |
| 3 |
# AUTO Demo lcbp |
| 4 |
# BPCONT for limit cycles |
| 5 |
#======================== |
| 6 |
|
| 7 |
pgm="lcbp" |
| 8 |
load(pgm) |
| 9 |
|
| 10 |
print "\n***"+pgm+": run 1: cycle continuation***" |
| 11 |
r1=run(sv=pgm+'.1') |
| 12 |
bp=r1('BP1') |
| 13 |
|
| 14 |
print "\n***"+pgm+": run 1: branch switch***" |
| 15 |
run(bp,ISW=-1,NMX=5,NPR=1,sv=pgm+'.1.sw') |
| 16 |
|
| 17 |
for isw in [2,3]: |
| 18 |
|
| 19 |
if isw==2: |
| 20 |
msg="\n***"+pgm+": run 2: BP cont non-generic " |
| 21 |
bp=load(bp,ICP=[1,2,11]) |
| 22 |
else: |
| 23 |
msg="\n***"+pgm+": run 3: BP cont generic " |
| 24 |
bp=load(bp,ICP=[1,2,3,11]) |
| 25 |
solprefix=pgm+'.'+str(isw)+'.' |
| 26 |
|
| 27 |
print msg+"(sw)***" |
| 28 |
sw=run(bp,ISW=isw,NMX=20,NPR=10,DS=1.e-4,UZSTOP={1:0},sv=solprefix+'sw') |
| 29 |
|
| 30 |
print msg+"(fw)***" |
| 31 |
run(sw,NMX=50,DS=0.01,sv=solprefix+'fw') |
| 32 |
|
| 33 |
print msg+"(bw)***" |
| 34 |
run(sw,NMX=50,DS=-0.01,STOP=['LP1','BP1'],sv=solprefix+'bw') |
| 35 |
|
| 36 |
print "\n***Clean the directory***" |
| 37 |
cl() |