| 1 |
|
| 2 |
Computation of Periodic Solutions of the CR3BP |
| 3 |
---------------------------------------------- |
| 4 |
|
| 5 |
Running the Python script r3b.auto will generate the families of periodic |
| 6 |
solutions L1, H1, and V1, for the case of the mass-ratio mu=0.063 : |
| 7 |
|
| 8 |
auto r3b.auto | auto('r3b.auto') |
| 9 |
|
| 10 |
where as in the following examples, the left hand side command can be used |
| 11 |
at the shell prompt, and the right hand side command at the Python CLUI |
| 12 |
prompt. Note that the commands starting with @ work in both interfaces, |
| 13 |
but cannot be used in the expert scripts with a .py suffix. |
| 14 |
|
| 15 |
For example, the data generated for the Lyapunov family L1 will consist of |
| 16 |
|
| 17 |
b.L1 - the bifurcation diagram data |
| 18 |
s.L1 - a selection of periodic orbits |
| 19 |
d.L1 - diagnostic data, including Floquet multipliers |
| 20 |
|
| 21 |
The necessary labeled starting solutions are first computed and stored |
| 22 |
in the file s.start. Each starting solution is an equilibrium ("libration |
| 23 |
point"), and its data also contains the period of a bifurcating family of |
| 24 |
periodic orbits. |
| 25 |
The Table below shows the label of each of the starting solutions in |
| 26 |
s.start, indicating which libration point it corresponds to, and which |
| 27 |
family of periodic orbits it will generate: |
| 28 |
|
| 29 |
Label Libration Pt. Family |
| 30 |
1 L1 L1 |
| 31 |
2 L1 V1 |
| 32 |
3 L2 L2 |
| 33 |
4 L2 V2 |
| 34 |
5 L3 L3 |
| 35 |
6 L3 V3 |
| 36 |
7 L4 V4 |
| 37 |
8 L5 V5 |
| 38 |
|
| 39 |
Note (by looking at the constant-files c.r3b.*) that actually only the |
| 40 |
starting solutions labeled 1 and 2 are used in the current calculations, |
| 41 |
as executed by the Python script. |
| 42 |
|
| 43 |
Starting solution for other values of mu can be generated using the script |
| 44 |
compute_lps.py, for instance by running |
| 45 |
|
| 46 |
autox compute_lps.py 0.05 | import compute_lps |
| 47 |
| compute_lps.compute(0.05) |
| 48 |
|
| 49 |
After that, it is necessary to run r3b.auto again to regenerate the |
| 50 |
families. |
| 51 |
|
| 52 |
The demos L1a, H1a, H1b, H1c, V1a, V1b can be run subsequent to the r3b |
| 53 |
demo to compute 2D unstable manifolds of selected periodic orbits that |
| 54 |
belong to the L1, V1, and H1 families. |
| 55 |
|
| 56 |
|
| 57 |
Computing Unstable Manifolds of Periodic Orbits in the CR3BP |
| 58 |
------------------------------------------------------------ |
| 59 |
|
| 60 |
Instructions for computing 2-d unstable manifolds of periodic orbits |
| 61 |
in the Circular Restricted 3-Body Problem (CR3BP) using AUTO-07p. |
| 62 |
|
| 63 |
The instructions below are for the Halo family L1 in AUTO demo L1a. |
| 64 |
=================================================================== |
| 65 |
|
| 66 |
Instructions for computing 2-d unstable manifolds of other periodic |
| 67 |
orbits in the CR3BP are similar (Demos H1a, H1b, H1c, V1a, V1b), and |
| 68 |
are given after these instructions. |
| 69 |
|
| 70 |
Select a labeled solution which has exactly one Floquet multiplier with |
| 71 |
absolute value greater than 1. (Floquet multipliers can be found in the file |
| 72 |
d.L1 generated by demo r3b.) Enter the label of the periodic solution |
| 73 |
in the file L1a.auto at label= in L1a.auto. Also enter the size of the |
| 74 |
initial step into the direction of the unstable manifold there at step= |
| 75 |
Note that representative values of these three quantities have already |
| 76 |
been entered there. |
| 77 |
Now run the Python script L1a.auto: |
| 78 |
|
| 79 |
auto L1a.auto | auto('L1a.auto') |
| 80 |
|
| 81 |
This will run r3b.auto as above if this was not already done. |
| 82 |
|
| 83 |
Through various computational steps the execution of the Python script |
| 84 |
will result in AUTO files b.L1a, s.L1a, and d.L1a, where the orbits in |
| 85 |
s.L1a constitute the manifold, which can be viewed with the graphics |
| 86 |
program plaut04 or r3bplaut04 : |
| 87 |
|
| 88 |
@pl L1a or @r3b L1a | plot3('L1a',r3b=True) |
| 89 |
|
| 90 |
The various steps executed by the Python commands in the script file |
| 91 |
L1a.auto are explained below, however, showing instead the equivalent |
| 92 |
Linux versions of these AUTO commands. |
| 93 |
|
| 94 |
The Python script L1aX.auto in L1a does the same as L1a.auto, but with |
| 95 |
additional calculations that generate additional AUTO data files, e.g., |
| 96 |
to detect heteroclinic connections. Some of these additional runs take |
| 97 |
quite a bit of CPU time and generate big data files. |
| 98 |
---------------------------------------------------------------------------- |
| 99 |
---------------------------------------------------------------------------- |
| 100 |
|
| 101 |
Detailed AUTO shell and Python commands for the L1a demo. |
| 102 |
--------------------------------------------------------- |
| 103 |
|
| 104 |
mkdir r3b | mkdir r3b |
| 105 |
cd r3b | cd r3b |
| 106 |
@dm r3b | demo('r3b') |
| 107 |
|
| 108 |
Copy the r3b demo to the local directory r3b. |
| 109 |
|
| 110 |
auto r3b.auto | auto('r3b.auto') |
| 111 |
|
| 112 |
Generate the CR3BP AUTO data files. |
| 113 |
|
| 114 |
autox ext.py L1 3 -1e-5 | import ext |
| 115 |
| sext=ext.get('L1',3,-1e-5) |
| 116 |
|
| 117 |
Convert the data for a selected labeled solution from s.L1, |
| 118 |
adding a zero adjoint variable. The solution label is 3, |
| 119 |
and the initial step size into the unstable manifold is -1e-5. |
| 120 |
The ext.py script looks for the relevant Floquet multiplier in |
| 121 |
d.L1. The converted solution will be written in the file s.ext |
| 122 |
or stored in sext. |
| 123 |
|
| 124 |
@r flq ext | flq=run(sext,c='flq',e='flq') |
| 125 |
|
| 126 |
Compute the Floquet eigenfunction. Free scalar variables in |
| 127 |
this run (see c.flq) are: |
| 128 |
|
| 129 |
PAR(1) = unfolding parameter |
| 130 |
PAR(4) = multiplier |
| 131 |
PAR(5) = norm of eigenfunction |
| 132 |
|
| 133 |
If this run is successful then PAR(5) should become nonzero, |
| 134 |
in fact, PAR(5) should reach the value 1. If the run is |
| 135 |
not successful then see REMARK 1 below. |
| 136 |
|
| 137 |
@sv flq | save(flq,'flq') |
| 138 |
|
| 139 |
Save the results in b.flq, s.flq, and d.flq . |
| 140 |
|
| 141 |
autox data.py | import data |
| 142 |
| startman=data.get(flq('UZ1')) |
| 143 |
|
| 144 |
Extract data for a selected orbit from s.flq. These data |
| 145 |
are for both the orbit and its Floquet eigenfunction. It |
| 146 |
is assumed that s.flq contains only one labeled solution, |
| 147 |
with label 2. If you did the "optional" computation (see |
| 148 |
Remark 2) then you may need to change the label of the |
| 149 |
restart solution: |
| 150 |
autox data.py flq n | startman=data.get(flq(n)) |
| 151 |
where n is the different label number. |
| 152 |
The extracted data may be saved in a file called s.startman, |
| 153 |
which contains a new starting solution that can be used as |
| 154 |
a base for the manifold computations. |
| 155 |
The orbit coordinates are at "time zero", and the Floquet |
| 156 |
eigenfunction are saved at PAR(25:30) and PAR(31:36), |
| 157 |
respectively. |
| 158 |
|
| 159 |
@R man L1a.0 startman | startL1a = run(startman,e='man',c='man.L1a.0') |
| 160 |
|
| 161 |
This step does a time integration using continuation in the |
| 162 |
"period" T, i.e., PAR(11), which here is the "integration |
| 163 |
time". The labeled solutions from this run all correspond |
| 164 |
to the same orbit, except that the orbit gets longer and |
| 165 |
longer. The starting point of the orbit is the point on the |
| 166 |
periodic orbit at "time zero" plus a small distance (epsilon) |
| 167 |
into the direction of the unstable manifold. In AUTO, epsilon |
| 168 |
corresponds to PAR(6). This parameter epsilon is initialized |
| 169 |
in the file flq.dat . (The sign of epsilon is significant!) |
| 170 |
The parameters in this run (see c.man.L1a.0) are: |
| 171 |
|
| 172 |
PAR(3) = energy |
| 173 |
PAR(11) = integration time |
| 174 |
PAR(12) = length of the orbit |
| 175 |
PAR(21) = x-coord at end point |
| 176 |
PAR(22) = y-coord at end point |
| 177 |
PAR(23) = z-coord at end point |
| 178 |
|
| 179 |
@sv startL1a | save(startL1a,'startL1a') |
| 180 |
|
| 181 |
Save the results in b.startL1a, s.startL1a, and d.startL1a . (*) |
| 182 |
|
| 183 |
@R man L1a.1 startL1a | L1a=run(startL1a,c='man.L1a.1') |
| 184 |
|
| 185 |
Look at c.man.L1a.1 to see from which label in s.startL1a this |
| 186 |
run starts. In this run the y-coordinate of the end point |
| 187 |
(PAR(22)) is kept fixed, while the "period" (PAR(11)), |
| 188 |
i.e., the total integration time, is allowed to vary, as |
| 189 |
is the value of epsilon, i.e., PAR(6). Note that if PAR(6) |
| 190 |
becomes "large" then the manifold may no longer be accurate. |
| 191 |
The free parameters in this run are: |
| 192 |
|
| 193 |
PAR(3) = energy |
| 194 |
PAR(6) = "starting distance" |
| 195 |
PAR(11) = integration time |
| 196 |
PAR(12) = length of the orbit |
| 197 |
PAR(21) = x-coord at end point |
| 198 |
PAR(23) = z-coord at end point |
| 199 |
|
| 200 |
@sv L1a | save(L1a,'L1a') |
| 201 |
|
| 202 |
Save the results in b.L1a, s.L1a, and d.L1a . |
| 203 |
|
| 204 |
@R man L1a.2 startL1a | L1a2=run(startL1a,c='man.L1a.2') |
| 205 |
|
| 206 |
Another run, starting from a longer initial orbit, which |
| 207 |
computes part of the manifold. The free parameters are the |
| 208 |
same as in the preceding run. This computation results in |
| 209 |
the orbit winding around the selected periodic L1 orbit. |
| 210 |
|
| 211 |
@sv L1a2 | save(L1a2,'L1a2') |
| 212 |
|
| 213 |
Save the results in b.L1a2, s.L1a2, and d.L1a2 . |
| 214 |
|
| 215 |
---------------------------------------------------------------------------- |
| 216 |
---------------------------------------------------------------------------- |
| 217 |
|
| 218 |
Use |
| 219 |
|
| 220 |
auto clean.auto | auto('clean.auto') |
| 221 |
|
| 222 |
to remove all generated files. |
| 223 |
|
| 224 |
---------------------------------------------------------------------------- |
| 225 |
---------------------------------------------------------------------------- |
| 226 |
----------------------------REMARK 1---------------------------------------- |
| 227 |
---------------------------------------------------------------------------- |
| 228 |
---------------------------------------------------------------------------- |
| 229 |
If the run to compute the Floquet eigenfunction is not successful, i.e., if |
| 230 |
PAR(5) does not become nonzero, then try to compute the Floquet eigenfunction |
| 231 |
in more stages, as follows: |
| 232 |
|
| 233 |
Give the label of the selected solution, and a value that |
| 234 |
is smaller than the associated Floquet multiplier (magnitude |
| 235 |
greater than 1) . |
| 236 |
|
| 237 |
autox ext.py L1 3 -1e-5 2000 | import ext |
| 238 |
| sext=ext.get('L1',3,-1e-5,2000) |
| 239 |
@R flq 2 ext | flq=run(sext,c='flq.2',e='flq') |
| 240 |
|
| 241 |
Continue the approximate multiplier; If all goes well then |
| 242 |
the actual multiplier will be detected as a branch point |
| 243 |
(BP) with Label 2. Free scalar variables in this run are: |
| 244 |
|
| 245 |
PAR(1) = unfolding parameter |
| 246 |
PAR(4) = multiplier |
| 247 |
PAR(5) = norm of eigenfunction |
| 248 |
|
| 249 |
@sv flq | save(flq,'flq') |
| 250 |
@R flq 3 | flq=run(flq,e='flq',c='flq.3') |
| 251 |
|
| 252 |
Switch branches at the BP, thereby generating the nonzero |
| 253 |
Floquet eigenfunction. The free scalar variables are : |
| 254 |
|
| 255 |
PAR(1) = unfolding parameter |
| 256 |
PAR(4) = multiplier |
| 257 |
PAR(5) = norm of eigenfunction |
| 258 |
|
| 259 |
If all goes well then PAR(5) should become nonzero, and the |
| 260 |
corresponding solution should have Label 4. |
| 261 |
|
| 262 |
@sv flq | save(flq,'flq') |
| 263 |
---------------------------------------------------------------------------- |
| 264 |
---------------------------------------------------------------------------- |
| 265 |
----------------------------REMARK 2---------------------------------------- |
| 266 |
---------------------------------------------------------------------------- |
| 267 |
---------------------------------------------------------------------------- |
| 268 |
One can also follow the orbit, its multiplier and eigenfunction, as follows: |
| 269 |
|
| 270 |
@R flq 4 | flq=run(flq,e='flq',c='flq.3') |
| 271 |
|
| 272 |
Free scalar variables in this run are |
| 273 |
|
| 274 |
PAR(1) = unfolding parameter |
| 275 |
PAR(4) = multiplier |
| 276 |
PAR(11) = period |
| 277 |
|
| 278 |
The norm, PAR(5), of the eigenfunction is fixed in this run. |
| 279 |
|
| 280 |
@sv flq | save(flq,'flq') |
| 281 |
---------------------------------------------------------------------------- |
| 282 |
---------------------------------------------------------------------------- |
| 283 |
|
| 284 |
The instructions below are for the Halo family H1 in AUTO demo H1a. |
| 285 |
=================================================================== |
| 286 |
|
| 287 |
Follow the instructions for L1a above, where you replace L by H throughout, |
| 288 |
for instance you can run everything in one go using |
| 289 |
|
| 290 |
auto H1a.auto | auto('H1a.auto') |
| 291 |
|
| 292 |
or with the extra calculations: |
| 293 |
|
| 294 |
auto H1aX.auto | auto('H1aX.auto') |
| 295 |
|
| 296 |
The Floquet eigenfunction is now computed from label 7 with step size -1e-3. |
| 297 |
|
| 298 |
The detailed commands are likewise, except for the manifold calculations |
| 299 |
following (*) (at @sv startL1a): |
| 300 |
|
| 301 |
@R man H1a.1 startH1a | H1a=run(startH1a,e='man',c='man.H1a.1') |
| 302 |
|
| 303 |
Look at c.man.H1a.1 to see from which label in s.startH1a this |
| 304 |
run starts. In this run the x-coordinate of the end point |
| 305 |
(PAR(21)) is kept fixed, while the "period" (PAR(11)), |
| 306 |
i.e., the total integration time, is allowed to vary, as |
| 307 |
is the value of epsilon, i.e., PAR(6). Note that if PAR(6) |
| 308 |
becomes "large" then the manifold may no longer be accurate. |
| 309 |
The free parameters in this run are: |
| 310 |
|
| 311 |
PAR(3) = energy |
| 312 |
PAR(6) = "starting distance" |
| 313 |
PAR(11) = integration time |
| 314 |
PAR(12) = length of the orbit |
| 315 |
PAR(22) = y-coord at end point |
| 316 |
PAR(23) = z-coord at end point |
| 317 |
|
| 318 |
@sv H1a | save(H1a,'H1a') |
| 319 |
|
| 320 |
Save the results in b.H1a, s.H1a, and d.H1a . |
| 321 |
|
| 322 |
@R man H1a.2 startH1a | hetH1a=run(startH1a,e='man',c='man.H1a.2') |
| 323 |
|
| 324 |
Another run, starting from a longer initial orbit, which |
| 325 |
computes part of the manifold. The free parameters are the |
| 326 |
same as in the preceding run. This computation results in |
| 327 |
the detection of a connecting orbit. |
| 328 |
|
| 329 |
@sv hetH1a | save(hetH1a,'hetH1a') |
| 330 |
|
| 331 |
Save the results in b.hetH1a, s.hetH1a, and d.hetH1a . |
| 332 |
---------------------------------------------------------------------------- |
| 333 |
---------------------------------------------------------------------------- |
| 334 |
|
| 335 |
The instructions below are for the Halo family H1 in AUTO demo H1b. |
| 336 |
=================================================================== |
| 337 |
|
| 338 |
Follow the instructions for L1a above, where you replace L by H, and a by b |
| 339 |
throughout; for instance you can run everything in one go using |
| 340 |
|
| 341 |
auto H1b.auto | auto('H1b.auto') |
| 342 |
|
| 343 |
or with the extra calculations: |
| 344 |
|
| 345 |
auto H1bX.auto | auto('H1bX.auto') |
| 346 |
|
| 347 |
The Floquet eigenfunction is now computed from label 3 with step size -1e-5. |
| 348 |
|
| 349 |
The detailed commands follow the ones for H1a above, except that there |
| 350 |
is one extra run: |
| 351 |
|
| 352 |
@R man H1b.3 startH1b | het2H1b=run(startH1b,e='man',c='man.H1b.3') |
| 353 |
|
| 354 |
Another run, starting from a longer initial orbit, which |
| 355 |
computes part of the manifold. The free parameters are the |
| 356 |
same as in the preceding run. This computation results in |
| 357 |
the detection of another connecting orbit. |
| 358 |
|
| 359 |
@sv het2H1b | save(het2H1b,'het2H1b') |
| 360 |
|
| 361 |
Save the results in b.het2H1b, s.het2H1b, and d.het2H1b . |
| 362 |
---------------------------------------------------------------------------- |
| 363 |
---------------------------------------------------------------------------- |
| 364 |
|
| 365 |
The instructions below are for the Halo family H1 in AUTO demo H1c. |
| 366 |
=================================================================== |
| 367 |
|
| 368 |
Follow the instructions for L1a above, where you replace L by H, and a by c |
| 369 |
throughout; for instance you can run everything in one go using |
| 370 |
|
| 371 |
auto H1c.auto | auto('H1c.auto') |
| 372 |
|
| 373 |
The Floquet eigenfunction is now computed from label 68 with step size -1e-2. |
| 374 |
|
| 375 |
The detailed commands follow the ones for H1a above, except that the last |
| 376 |
run is left out, and so the H1cX.auto script is not necessary. |
| 377 |
|
| 378 |
---------------------------------------------------------------------------- |
| 379 |
---------------------------------------------------------------------------- |
| 380 |
|
| 381 |
The instructions below are for the Halo family V1 in AUTO demo V1a. |
| 382 |
=================================================================== |
| 383 |
|
| 384 |
Follow the instructions for L1a above, where you replace L by V throughout, |
| 385 |
for instance you can run everything in one go using |
| 386 |
|
| 387 |
auto V1a.auto | auto('V1a.auto') |
| 388 |
|
| 389 |
The Floquet eigenfunction is now computed from label 8 with step size -1e-5. |
| 390 |
|
| 391 |
The detailed commands are likewise, except for the manifold calculations |
| 392 |
following (*) (at @sv startL1a): |
| 393 |
|
| 394 |
@R man V1a.1 startV1a | V1a=run(startV1a,e='man',c='man.V1a.1') |
| 395 |
|
| 396 |
Look at c.man.V1a.1 to see from which label in s.startV1a this |
| 397 |
run starts. In this run the z-coordinate of the end point |
| 398 |
(PAR(23)) is kept fixed, while the "period" (PAR(11)), |
| 399 |
i.e., the total integration time, is allowed to vary, as |
| 400 |
is the value of epsilon, i.e., PAR(6). Note that if PAR(6) |
| 401 |
becomes "large" then the manifold may no longer be accurate. |
| 402 |
The free parameters in this run are: |
| 403 |
|
| 404 |
PAR(3) = energy |
| 405 |
PAR(6) = "starting distance" |
| 406 |
PAR(11) = integration time |
| 407 |
PAR(12) = length of the orbit |
| 408 |
PAR(21) = x-coord at end point |
| 409 |
PAR(22) = y-coord at end point |
| 410 |
|
| 411 |
@sv V1a | save(V1a,'V1a') |
| 412 |
|
| 413 |
Save the results in b.V1a, s.V1a, and d.V1a . |
| 414 |
---------------------------------------------------------------------------- |
| 415 |
---------------------------------------------------------------------------- |
| 416 |
|
| 417 |
The instructions below are for the Halo family V1 in AUTO demo V1b. |
| 418 |
=================================================================== |
| 419 |
|
| 420 |
Follow the instructions for L1a above, where you replace L by V, and a by b |
| 421 |
throughout; for instance you can run everything in one go using |
| 422 |
|
| 423 |
auto V1b.auto | auto('V1b.auto') |
| 424 |
|
| 425 |
or with the extra calculations: |
| 426 |
|
| 427 |
auto V1bX.auto | auto('V1bX.auto') |
| 428 |
|
| 429 |
The Floquet eigenfunction is now computed from label 12 with step size 1e-5. |
| 430 |
|
| 431 |
The detailed commands are likewise, except for the manifold calculations |
| 432 |
following (*) (at @sv startL1a): |
| 433 |
|
| 434 |
@R man V1b.1 startV1b | V1b=run(startV1b,e='man',c='man.V1b.1') |
| 435 |
|
| 436 |
Look at c.man.V1b.1 to see from which label in s.startV1b this |
| 437 |
run starts. In this run the x-coordinate of the end point |
| 438 |
(PAR(21)) is kept fixed, while the "period" (PAR(11)), |
| 439 |
i.e., the total integration time, is allowed to vary, as |
| 440 |
is the value of epsilon, i.e., PAR(6). Note that if PAR(6) |
| 441 |
becomes "large" then the manifold may no longer be accurate. |
| 442 |
The free parameters in this run are: |
| 443 |
|
| 444 |
PAR(3) = energy |
| 445 |
PAR(6) = "starting distance" |
| 446 |
PAR(11) = integration time |
| 447 |
PAR(12) = length of the orbit |
| 448 |
PAR(22) = y-coord at end point |
| 449 |
PAR(23) = z-coord at end point |
| 450 |
|
| 451 |
@sv V1b | save(V1b,'V1b') |
| 452 |
|
| 453 |
Save the results in b.V1b, s.V1b, and d.V1b . |
| 454 |
|
| 455 |
@R man V1b.2 startV1b | hetV1b=run(startV1b,e='man',c='man.V1b.2') |
| 456 |
|
| 457 |
Another run, starting from a longer initial orbit, which |
| 458 |
computes part of the manifold. The free parameters are the |
| 459 |
same as in the preceding run. This computation results in |
| 460 |
the detection of a connecting orbit. |
| 461 |
|
| 462 |
@sv hetV1b | save(hetV1b,'hetV1b') |
| 463 |
|
| 464 |
Save the results in b.hetV1b, s.hetV1b, and d.hetV1b . |
| 465 |
---------------------------------------------------------------------------- |
| 466 |
---------------------------------------------------------------------------- |