| 1 |
|
| 2 |
#============== |
| 3 |
# Demo um3 |
| 4 |
#============== |
| 5 |
|
| 6 |
print "\n***Grow an initial orbit by continuation***" |
| 7 |
init = run(e='um3', |
| 8 |
unames = {1:'x',2:'y',3:'z'}, |
| 9 |
parnames = {1:'theta',2:'eps',3:'r0',4:'r1',11:'Period'}, |
| 10 |
NDIM=3,IPS=4,ILP=0,ISP=0,ICP=['Period','r1'], |
| 11 |
NTST=60,IPLT=3,NBC=4, |
| 12 |
DS=5e-2,DSMIN=1e-5,DSMAX=1e1, |
| 13 |
THL={'Period':0.}, |
| 14 |
UZSTOP={'r1':1.}, |
| 15 |
NPAR=11) |
| 16 |
save(init, '1') |
| 17 |
|
| 18 |
print "\n***Decrease the value of the problem parameter eps***" |
| 19 |
decr = run(init,ICP=['eps','Period'],DS='-',DSMAX=1.0,UZSTOP={'eps':0.01}) |
| 20 |
save(decr, '2') |
| 21 |
|
| 22 |
print "\n***Part 1 of the unstable manifold***" |
| 23 |
startman = load(decr, ICP=['theta','Period'],NPR=1, |
| 24 |
DS=5e-2,DSMIN=1e-5,DSMAX=1e0, |
| 25 |
UZSTOP={'theta':[1.25,-0.75],'Period':1e4}) |
| 26 |
part1 = run(startman) |
| 27 |
|
| 28 |
print "\n***Part 2 of the unstable manifold" |
| 29 |
part2 = run(startman,DS='-') |
| 30 |
|
| 31 |
print "\n***Merge, relabel and save the orbits***" |
| 32 |
save(relabel(merge(part1+part2)),'3') |
| 33 |
|
| 34 |
print "\n***Clean the directory***" |
| 35 |
cl() |