Debian Codegraph @

07p/demos/snh/tb.auto

raw
1 # AUTO demo snh
2 #
3 # Bifurcations of global reinjection orbits near a saddle-node Hopf bifurcation
4 # compute the codimension-zero PtoE connection using homotopy
5
6 print "\n1st run - find and continue equilibrium a : x=y=0, phi=-acos(-0.5*nu2)"
7 # [ b would be x=y=0, phi=acos(-0.5*nu2) ]
8 r1 = run(e='snh',ICP=['nu1'],NDIM=3,ILP=0,ITNW=7,ITMX=10,
9 STOP=['HB1'],DS=0.1,DSMAX=1.0,DSMIN=1e-4,NPAR=26,
10 unames={1:'xgamma',2:'ygamma',3:'phigamma',4:'x',5:'y',6:'phi',
11 7:'x-',8:'y-',9:'phi-'},
12 parnames={1:'nu1',2:'nu2',3:'d',4:'codim',
13 5:'delta',6:'eps',7:'mu',8:'h',9:'T-',10:'T+',11:'T',
14 21:'sigma-'})
15
16 print "\n2nd run - switch to the periodic orbit and continue in nu1 up to 0.74"
17 r2 = run(r1('HB1'),ICP=['nu1','T'],IPS=2,NTST=100,
18 STOP=[],UZSTOP={'nu1':0.74},DSMAX=0.1)
19
20 print "\n3rd run - extend the system"
21 r3 = run(r2('UZ1'),ICP=['mu','h','T'],IPS=4,NDIM=6,NBC=7,NINT=1,
22 STOP=['BP1'],UZSTOP={},DS=-0.1,DSMAX=1)
23
24 print "\n4th run - normalize the Floquet bundle"
25 r4 = run(r3('BP1'),ISW=-1,DS=0.1,
26 STOP=[],UZSTOP={'h':1.0},DSMAX=100)
27
28 print "\n5th run - integrate away from the periodic orbit in negative time."
29 print "puts a starting value into sigma- (which measures the distance to W^u(b))"
30 print "UZ points denote intersections with W^u(b)"
31 r5 = run(r4('UZ1'),ISW=0,ICP=['T-','mu','T','sigma-'],NDIM=9,NBC=11,
32 PAR={'delta':1e-4,'codim':0},UZSTOP={'sigma-':0},DS=-1.0)
33
34 print "\n6th run - improve the connection"
35 r6 = run(r5('UZ1'),ICP=['T-','mu','T','delta'],
36 THL={'T':0,'T-':0},UZSTOP={'T-':-200})
37
38 print "\n7th run - find folds (tangencies of codimension-zero connection)"
39 r7 = run(r6('UZ1'),ICP=['nu1','mu','T','delta','T-'],NINT=2,ILP=1,
40 STOP=['LP2'],UZSTOP={},DS=-0.1,DSMAX=0.1)
41
42 print "\n8th run - continue left fold (t_b)"
43 t = run(r7('LP1'),ICP=['nu1','T','delta','nu2','T-','mu'],ISW=2,ISP=0,ITMX=20,
44 STOP=['LP1'])
45 r8 = merge(run(t)+run(t,DS='-'))
46
47 print "\n9th run - continue right fold (t_b)"
48 t = run(r7('LP2'),ICP=['nu1','T','delta','nu2','T-','mu'],ISW=2,ISP=0,
49 STOP=['LP1'])
50 r9 = merge(run(t)+run(t,DS='-'))
51
52 save(rl(r8+r9),'tb')
53
54 clean()
55 print "\nDone."