| 1 |
# initial part |
| 2 |
print "find the Branch point" |
| 3 |
r = run(e='p2c',NDIM=3,ILP=0,STOP="BP1",MXBF=0,DS=0.3,DSMAX=25,NPAR=23) |
| 4 |
|
| 5 |
# initial part |
| 6 |
print "find the Hopf bifurcation" |
| 7 |
r = r + run(r('BP1'),ISW=-1,STOP="HB1") |
| 8 |
|
| 9 |
print "a solution branch starting from the Hopf bifurcation" |
| 10 |
sol = run(r('HB1'),IPS=2,ICP=[1,11],NTST=50,UZSTOP={1:21}) |
| 11 |
|
| 12 |
print "continue zero eigenfunction until eigenvalue" |
| 13 |
zero = run(sol, |
| 14 |
NDIM=6,IPS=4,ICP=[12,11,10],NBC=7,NINT=1, |
| 15 |
DS=1.e-3,DSMIN=1.e-5,DSMAX=1.e-2,STOP=["BP2"]) |
| 16 |
bp = zero('BP1') |
| 17 |
|
| 18 |
print "switch to continuation of nontrivial eigenfunction" |
| 19 |
norm1 = run(bp,ISW=-1,UZSTOP={10:1.0},STOP=[]) |
| 20 |
|
| 21 |
# Add initial "connection" into the last three dimensions and do |
| 22 |
# the first homotopy |
| 23 |
print "homotopy in (T,h1)" |
| 24 |
h1 = run(norm1, |
| 25 |
NDIM=9,ICP=[13,11,12,21,14,15,16,17,18,19,20,22],ISW=1,ISP=0, |
| 26 |
NBC=19,THL={13:0,11:0}, |
| 27 |
DS=0.1,DSMIN=1e-10,DSMAX=500, |
| 28 |
UZR={21:0},UZSTOP={},STOP=["UZ3"]) |
| 29 |
|
| 30 |
print "homotopy in (r,h2)" |
| 31 |
h2 = run(h1('UZ3'),NINT=0, |
| 32 |
ICP=[11,1,12,14,15,16,17,18,19,20,22],DS=-1,DSMIN=1.e-5,NBC=19, |
| 33 |
UZR={22:0},STOP=["UZ1"]) |
| 34 |
|
| 35 |
print "homotopy in (T,r)" |
| 36 |
h3 = run(h2,DS=1, |
| 37 |
ICP=[13,1,11,12,14,15,16,17,18,19,20],NBC=19, |
| 38 |
UZR={13:[3,4]}, UZSTOP={13:5}, STOP=[]) |
| 39 |
|
| 40 |
print "fwd continuation in two system parameters" |
| 41 |
cont = load(h3('UZ1'),DS=1.e-5,DSMIN=1.e-7,DSMAX=0.5, |
| 42 |
ICP=[1,3,11,12,14,15,16,17,18,19,20],UZR={},UZSTOP={}, |
| 43 |
NTST=50,NMX=450,NPR=60) |
| 44 |
contb = run(cont) |
| 45 |
print "bwd continuation in two system parameters" |
| 46 |
contf = run(cont,DS='-') |
| 47 |
save(mb(rl(contf+contb)),'cont') |
| 48 |
cl() |