| 1 |
# This script computes the initial circle of solutions for mu=0 |
| 2 |
# as well as the bifurcating branches which give us the |
| 3 |
# Lagrange points. It then plots the full bifurcation diagram. |
| 4 |
|
| 5 |
# Load 3d.c and c.3d into the AUTO CLUI |
| 6 |
|
| 7 |
# Add a stopping condition so we only compute the loop once |
| 8 |
|
| 9 |
# We tell AUTO to stop when parameter 16 is 0.991, parameter 1 is -0.1, |
| 10 |
# or parameter 1 is 1.1. If parameter1 is 0.5 we just report |
| 11 |
# a point. |
| 12 |
|
| 13 |
# We also want to compute branches for the first 4 bifurcation |
| 14 |
# points. |
| 15 |
|
| 16 |
# IPS=0 tells AUTO to compute a family of equilibria. |
| 17 |
|
| 18 |
# Compute the circle. |
| 19 |
# This command parses returns a Python object which contains |
| 20 |
# all of the data in the file in an easy to use format. |
| 21 |
circle = run('3d',UZR={-16:0.991, -1:[-0.1,1.1], 1:0.5}, MXBF=-4, IPS=0) |
| 22 |
|
| 23 |
# Use the label of the last solution of the previous calculation |
| 24 |
# and use this solution as the starting point of the next |
| 25 |
# calculation. |
| 26 |
|
| 27 |
# Do not compute any bifurcating branches. |
| 28 |
|
| 29 |
# We tell AUTO to stop when parameter 16 is 1.0, parameter 1 is -0.1, |
| 30 |
# or parameter 1 is 1.1. If parameter1 is 0.5 we just report |
| 31 |
# a point. |
| 32 |
|
| 33 |
# Run the calculation |
| 34 |
lagrangep = run(circle, MXBF=0, UZR={-16:1.0, -1:[-0.1,1.1], 1:0.5}) |
| 35 |
|
| 36 |
# Save the circle and data in b.lagrange_points, s.lagrange_points, |
| 37 |
# and d.lagrange_points. |
| 38 |
save(circle + lagrangep, 'lagrange_points') |
| 39 |
|
| 40 |
# Plot the solutions |
| 41 |
p3('lagrange_points') |