Debian Codegraph @

07p/demos/pcl/pcl.auto

raw
1 # AUTO demo pcl
2 #
3 # Lorenz system
4 # compute the EtoP connection via Lin's method
5
6 print "\n1st run - continue equilibrium 0 and branches of secondary equilibria"
7 r1 = run(e='pcl',ICP=['rho'],NDIM=3,ILP=0,ITNW=7,
8 STOP=['HB1'],UZSTOP={1:31.6},DS=0.1,DSMAX=2.0,
9 unames={1:'xgamma',2:'ygamma',3:'zgamma',4:'x',5:'y',6:'z',
10 7:'x+',8:'y+',9:'z+',10:'x-',11:'y-',12:'z-'},
11 parnames={1:'rho',2:'beta',3:'sigma',
12 11:'T',12:'mu',13:'h',14:'T+',15:'delta',16:'T-',17:'eps',
13 21:'sigma+',22:'sigma-',23:'eta',25:'Zx',26:'Zy'})
14
15 print "\n2nd run - switch to the periodic orbit and continue in rho up to 24.0579"
16 r2 = run(r1('HB2'),ICP=['rho','T'],IPS=2,NTST=50,
17 STOP=[],UZSTOP={'rho':24.0579})
18
19 print "\n3rd run - extend the system"
20 r3 = run(r2('UZ1'),ICP=['mu','h','T'],IPS=4,NDIM=6,NBC=7,NINT=1,
21 STOP=['BP1'],UZSTOP={},DS=-0.1,DSMIN=1e-7,DSMAX=1.0)
22
23 print "\n4th run - normalize the Floquet bundle"
24 r4 = run(r3('BP1'),ISW=-1,
25 STOP=[],UZSTOP={'h':1.0},DS=1,DSMIN=1e-5,DSMAX=100)
26
27 print "\n5th run - integrate backwards from the periodic orbit"
28 print "measures the distance to Sigma = { x=10 } in sigma+"
29 print "UZ point corresponds to an intersection with Sigma"
30 r5 = run(r4('UZ1'),ICP=['T+','mu','T','sigma+'],ISW=1,NDIM=9,NBC=11,
31 STOP=['UZ1'],UZR={'sigma+':0},UZSTOP={},DS=1.0)
32
33 print "\n6th run - integrate away from the equilibrium up to Sigma"
34 print "(second UZ is the one we want)"
35 r6 = run(r5('UZ1'),ICP=['T-','sigma-','T+','mu','T'],NDIM=12,NBC=15,
36 STOP=['UZ2'],UZR={'sigma-':0})
37
38 print "\n7th run - put starting data for Lin vector and Lin gap in"
39 print "Zx, Zy, Zz and eta"
40 print "close the gap (with some intermediate solutions)"
41 r7 = run(r6('UZ2'),ICP=['eta','rho','delta','eps','T-','T+','mu','T'],
42 NBC=17,NINT=2,NPR=10,THL={'T':0,'T+':0,'T-':0},
43 STOP=['UZ1'],UZR={'eta':0},DS=-0.01,DSMIN=1e-7,DSMAX=0.1)
44 save(r7,'closegap')
45
46 # plot this, have a look at the solution coordinates 'x-'-vs-'z-' and 'x+'-vs-'z+'
47 #plot(r7)
48 #wait()
49
50 print "\n8th run - keep the gap closed and continue in rho,beta"
51 start8 = load(r7('UZ1'),ICP=['rho','beta','delta','eps','T-','T+','mu','T'],
52 STOP=['LP1'],UZR={'rho':25},UZSTOP={'rho':80},ILP=1,NPR=200,DS=0.1,DSMAX=1)
53 r8 = merge(run(start8) + run(start8,DS='-'))
54 save(r8,'cont')
55
56 clean()
57 print "\nDone."