| 1 |
#========= |
| 2 |
# Demo kpr |
| 3 |
#========= |
| 4 |
|
| 5 |
pgm = 'kpr' |
| 6 |
|
| 7 |
print "Starting from analytical solution" |
| 8 |
print pgm, ": first run : continuation in the period T" |
| 9 |
r1=run('kpr',c='kpr.1',sv='1') |
| 10 |
|
| 11 |
print pgm, ": second run : locate the homoclinic orbit" |
| 12 |
r2=run(r1('UZ1'),c='kpr.2',sv='2') |
| 13 |
|
| 14 |
print pgm, ": third run : generate adjoint variables" |
| 15 |
r3=run(r2('UZ1'),c='kpr.3',sv='3') |
| 16 |
|
| 17 |
print pgm, ": fourth run : continue the homoclinic orbit" |
| 18 |
r3=r3+run(r3,c='kpr.4',ap='3') |
| 19 |
|
| 20 |
print pgm, ": fifth run : continue in reverse direction" |
| 21 |
r3=r3+run(r3()[0],c='kpr.5',ap='3') |
| 22 |
|
| 23 |
print pgm, ": sixth run : increase the period" |
| 24 |
r6=run(r2('EP1'),c='kpr.6',sv='6') |
| 25 |
|
| 26 |
print pgm, ": seventh run : recompute the branch of homoclinic orbits" |
| 27 |
r7=run(r6('UZ1'),c='kpr.7',sv='7') |
| 28 |
|
| 29 |
print pgm, ": eighth run : continue central saddle-node homoclinics" |
| 30 |
r8=run(r7('UZ1'),c='kpr.8',sv='8') |
| 31 |
|
| 32 |
print pgm, ": ninth run : continue homoclinics from codim-2 point" |
| 33 |
r9=run(r8('UZ1'),c='kpr.9',sv='9') |
| 34 |
|
| 35 |
print pgm, ": tenth run : 3-parameter curve of inclination-flips" |
| 36 |
r10=run(r3('UZ1'),c='kpr.10',sv='10') |
| 37 |
|
| 38 |
print pgm, ": eleventh run : another curve of inclination-flips" |
| 39 |
r11=run(r3('UZ2'),c='kpr.11',sv='11') |
| 40 |
|
| 41 |
print pgm, ": twelfth run : non-central saddle-node homoclinics" |
| 42 |
r12=run(r7('UZ1'),c='kpr.12',sv='12') |
| 43 |
|
| 44 |
print pgm, ": thirteenth run : non-central saddle-node homoclinics" |
| 45 |
r12=r12+run(r8('UZ1'),c='kpr.13',ap='12') |