Debian Codegraph @

07p/demos/um2/um2.auto

raw
1
2 #==============
3 # Demo um2
4 #==============
5
6 print "\n***Grow an initial orbit by continuation***"
7 init = run(e='um2',
8 unames = {1:'x',2:'y'},
9 parnames = {1:'theta',2:'eps',3:'r0',4:'r1',11:'Period'},
10 NDIM=2,IPS=4,ICP=['Period','r1'],
11 NTST=60,IPLT=3,NBC=3,ITNW=7,
12 DS=0.05,DSMIN=1e-5,DSMAX=10.0,
13 THL={'Period':0},
14 UZSTOP={'r1':0.6},
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.1})
20 save(decr, '2')
21
22 print "\n***Allow the initial condition to move around a small circle***"
23 circle = run(decr,ICP=['theta','Period'],NPR=1,DS='-',DSMIN=1e-5,
24 UZSTOP={'theta': [1.25, -0.75]})
25 save(circle, '3')
26
27 print "\n***Clean the directory***"
28 cl()