File: um3.auto

package info (click to toggle)
auto-07p 0.9.1%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 16,200 kB
  • sloc: fortran: 22,644; f90: 19,340; python: 19,045; ansic: 11,116; sh: 1,079; makefile: 618; perl: 339
file content (35 lines) | stat: -rw-r--r-- 1,047 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

#==============
# Demo um3
#==============

print "\n***Grow an initial orbit by continuation***"
init = run(e='um3',
           unames = {1:'x',2:'y',3:'z'},
           parnames = {1:'theta',2:'eps',3:'r0',4:'r1',11:'Period'},
           NDIM=3,IPS=4,ILP=0,ISP=0,ICP=['Period','r1'],
           NTST=60,IPLT=3,NBC=4,
           DS=5e-2,DSMIN=1e-5,DSMAX=1e1,
           THL={'Period':0.},
           UZSTOP={'r1':1.},
           NPAR=11)
save(init, '1')

print "\n***Decrease the value of the problem parameter eps***"
decr = run(init,ICP=['eps','Period'],DS='-',DSMAX=1.0,UZSTOP={'eps':0.01})
save(decr, '2')

print "\n***Part 1 of the unstable manifold***"
startman = load(decr, ICP=['theta','Period'],NPR=1,
                DS=5e-2,DSMIN=1e-5,DSMAX=1e0,
                UZSTOP={'theta':[1.25,-0.75],'Period':1e4})
part1 = run(startman)

print "\n***Part 2 of the unstable manifold"
part2 = run(startman,DS='-')

print "\n***Merge, relabel and save the orbits***"
save(relabel(merge(part1+part2)),'3')

print "\n***Clean the directory***"
cl()