| 1 |
|
| 2 |
#============================================ |
| 3 |
# AUTO Demo r3b: Computing unstable manifolds |
| 4 |
#============================================ |
| 5 |
|
| 6 |
import os,data |
| 7 |
|
| 8 |
if not os.path.exists('s.V1'): |
| 9 |
auto('r3b.auto') |
| 10 |
|
| 11 |
print "\n*** Compute the Floquet eigenfunction***" |
| 12 |
V1 = loadbd('V1') |
| 13 |
flq = run(V1(12),c='r3b.flq',sv='flq') |
| 14 |
|
| 15 |
print "\n*** Extract data for the selected orbit from s.flq***" |
| 16 |
startman = data.get(flq('UZ1'),eps=1e-5) |
| 17 |
|
| 18 |
print "\n*** Time integration using continuation***" |
| 19 |
startV1b = run(startman,e='man',c='man.V1b.0',sv='startV1b') |
| 20 |
|
| 21 |
print "\n*** Compute the unstable manifold***" |
| 22 |
V1b = run(startV1b,c='man.V1b.1') |
| 23 |
save(rl(V1b),'V1b') |
| 24 |
|
| 25 |
print "\n***Clean the directory***" |
| 26 |
clean() |
| 27 |
|