| 1 |
|
| 2 |
#========= |
| 3 |
# Demo plp |
| 4 |
#========= |
| 5 |
|
| 6 |
print "\n***Compute stationary solutions***" |
| 7 |
plp = run(e='plp',c='plp.ss') |
| 8 |
|
| 9 |
print "\n***Compute periodic solutions***" |
| 10 |
for hb in plp('HB'): |
| 11 |
ps = run(hb,c='plp.ps') |
| 12 |
plp = plp + ps |
| 13 |
|
| 14 |
print "\n***Relabel and save the plp output files***" |
| 15 |
plp = rl(plp) |
| 16 |
save(plp, 'plp') |
| 17 |
|
| 18 |
print "\n***Follow Hopf bifurcation***" |
| 19 |
hbstart = load(plp("HB1"), c='plp.hb') |
| 20 |
loci = run(hbstart) |
| 21 |
loci = loci + run(hbstart, DS='-') |
| 22 |
loci = merge(loci) |
| 23 |
|
| 24 |
print "\n***Follow periodic orbit folds: Starting data***" |
| 25 |
lpstart = run(plp('LP1'),c='plp.plp') |
| 26 |
|
| 27 |
print "\n***Follow periodic orbit folds***" |
| 28 |
loci = loci + merge(run(lpstart) + run(lpstart, DS='-')) |
| 29 |
|
| 30 |
print "\n***Relabel and save the loci output files***" |
| 31 |
loci = rl(loci) |
| 32 |
save(loci, 'loci') |
| 33 |
|
| 34 |
print "\n***Compute an isola of periodic solutions***" |
| 35 |
isostart = load(loci('UZ4'), c='plp.iso') |
| 36 |
iso = merge(run(isostart) + run(isostart, DS='-')) |
| 37 |
iso = relabel(iso) |
| 38 |
save(iso, 'iso') |
| 39 |
|
| 40 |
print "\n***Clean the directory***" |
| 41 |
cl() |