Debian Codegraph @

07p/demos/snh/h1b.auto

raw
1 # AUTO demo snh
2 #
3 # Bifurcations of global reinjection orbits near a saddle-node Hopf bifurcation
4 # compute the 1-reinjection homoclinic orbit with respect to equilibrium point
5 # b
6
7 print "\n1st run - homotopy backwards in time from equilibrium b : x=y=0, phi=acos(-0.5*nu2)"
8 r1 = run(e='snh',ICP=['T','omega'],NDIM=3,ILP=0,ITNW=7,IPS=9,ISTART=3,IEQUIB=-2,
9 PAR={'nu1':0.5,'nu2':-1.88},NPAR=26,
10 UZSTOP={'omega':0},DS=-0.01,
11 unames={1:'xgamma',2:'ygamma',3:'phigamma'},
12 parnames={1:'nu1',2:'nu2',3:'d',11:'T',20:'omega'})
13
14 print "\n2nd run - improve connection"
15 r2 = run(r1('UZ1'),ICP=['T','nu1'],DSMAX=10,UZSTOP={'T':-2000})
16
17 print "\n3rd run - follow connection forwards and backwards"
18 st = load(r2('UZ1'),ICP=['nu1','nu2'],
19 IEQUIB=1,ISTART=1,DSMIN=1e-9,DS=-0.005,DSMAX=0.005)
20 r3 = merge(run(st,UZSTOP={},ILP=1,STOP=['LP20'],NTST=200) +
21 run(st,UZSTOP={'nu2':-1.999},NTST=50,DS='-'))
22 save(r3,'h1b')
23
24 clean()
25 print "\nDone."