1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455
| import time import math import numpy as np import matplotlib.pyplot as plt from matplotlib.gridspec import GridSpec from matplotlib import cm from matplotlib.colors import Normalize from scipy.integrate import solve_ivp from scipy.interpolate import CubicSpline from scipy.optimize import brentq, minimize
T_START = time.time()
MU = 3.00348e-6 AU_KM = 1.495978707e8 YEAR_S = 365.25636 * 86400.0 TU_S = YEAR_S / (2.0 * math.pi) TU_DAY = TU_S / 86400.0 VU_MS = AU_KM / TU_S * 1000.0
ALPHA_MIN_DEG = 4.5 ALPHA_MAX_DEG = 28.0 N_YEARS = 5.0 SIGMA_V = 0.02 DV_FIX = 0.05 AZ_LO, AZ_HI = 100.0e3, 400.0e3 TAU_LO, TAU_HI = 10.0, 90.0 N_SAMPLES = 3001
def lagrange_l1(): f = lambda x: (x - (1 - MU) * (x + MU) / abs(x + MU) ** 3 - MU * (x - 1 + MU) / abs(x - 1 + MU) ** 3) return brentq(f, 0.9, 0.999, xtol=1e-15)
XL1 = lagrange_l1() GAMMA = 1.0 - MU - XL1
def pseudo_potential(x, y, z): r1 = np.sqrt((x + MU) ** 2 + y * y + z * z) r2 = np.sqrt((x - 1 + MU) ** 2 + y * y + z * z) return 0.5 * (x * x + y * y) + (1 - MU) / r1 + MU / r2 + 0.5 * MU * (1 - MU)
C_L1 = 2.0 * pseudo_potential(XL1, 0.0, 0.0)
def rhs_with_stm(t, s): x, y, z, vx, vy, vz = s[:6] xm = x + MU xp = x - 1.0 + MU r1 = math.sqrt(xm * xm + y * y + z * z) r2 = math.sqrt(xp * xp + y * y + z * z) r13, r23 = r1 ** 3, r2 ** 3 r15, r25 = r13 * r1 * r1, r23 * r2 * r2 a, b = 1.0 - MU, MU
ax = 2.0 * vy + x - a * xm / r13 - b * xp / r23 ay = -2.0 * vx + y - a * y / r13 - b * y / r23 az = -a * z / r13 - b * z / r23
base = -a / r13 - b / r23 uxx = 1.0 + base + 3.0 * a * xm * xm / r15 + 3.0 * b * xp * xp / r25 uyy = 1.0 + base + 3.0 * a * y * y / r15 + 3.0 * b * y * y / r25 uzz = base + 3.0 * a * z * z / r15 + 3.0 * b * z * z / r25 uxy = 3.0 * a * xm * y / r15 + 3.0 * b * xp * y / r25 uxz = 3.0 * a * xm * z / r15 + 3.0 * b * xp * z / r25 uyz = 3.0 * a * y * z / r15 + 3.0 * b * y * z / r25
A = np.zeros((6, 6)) A[0, 3] = A[1, 4] = A[2, 5] = 1.0 A[3, 0], A[3, 1], A[3, 2], A[3, 4] = uxx, uxy, uxz, 2.0 A[4, 0], A[4, 1], A[4, 2], A[4, 3] = uxy, uyy, uyz, -2.0 A[5, 0], A[5, 1], A[5, 2] = uxz, uyz, uzz
out = np.empty(42) out[:6] = (vx, vy, vz, ax, ay, az) out[6:] = (A @ s[6:].reshape(6, 6)).ravel() return out
def cross_y_down(t, s): return s[1]
cross_y_down.terminal = True cross_y_down.direction = -1
def initial_state(x0, z0, vy0): s0 = np.zeros(42) s0[:6] = (x0, 0.0, z0, 0.0, vy0, 0.0) s0[6:] = np.eye(6).ravel() return s0
def half_period_shot(x0, z0, vy0): sol = solve_ivp(rhs_with_stm, (0.0, 4.0), initial_state(x0, z0, vy0), method="DOP853", rtol=1e-12, atol=1e-12, events=cross_y_down, first_step=1e-4) if len(sol.t_events[0]) == 0: raise RuntimeError("No half-period crossing found.") return sol.t_events[0][0], sol.y_events[0][0]
def correct_halo(x0, z0, vy0, tol=1e-11, max_iter=40): """Newton iteration on (x0, vy0) so that vx = vz = 0 at the half period.""" for _ in range(max_iter): th, sf = half_period_shot(x0, z0, vy0) vxf, vyf, vzf = sf[3], sf[4], sf[5] if abs(vxf) < tol and abs(vzf) < tol: return x0, vy0, th phi = sf[6:].reshape(6, 6) d = rhs_with_stm(0.0, sf) axf, azf = d[3], d[5] jac = np.array([ [phi[3, 0] - axf / vyf * phi[1, 0], phi[3, 4] - axf / vyf * phi[1, 4]], [phi[5, 0] - azf / vyf * phi[1, 0], phi[5, 4] - azf / vyf * phi[1, 4]], ]) dx0, dvy0 = np.linalg.solve(jac, -np.array([vxf, vzf])) x0 += dx0 vy0 += dvy0 raise RuntimeError("Differential correction did not converge.")
def linear_guess(ax_km): c2 = MU / GAMMA ** 3 + (1 - MU) / (1 - GAMMA) ** 3 wp = math.sqrt((2 - c2 + math.sqrt(9 * c2 ** 2 - 8 * c2)) / 2) k = (wp ** 2 + 1 + 2 * c2) / (2 * wp) ax = ax_km / AU_KM return XL1 + ax, k * wp * ax
def evaluate_orbit(x0, z0, vy0, th, n=N_SAMPLES): T = 2.0 * th t_eval = np.linspace(0.0, T, n) sol = solve_ivp(rhs_with_stm, (0.0, T), initial_state(x0, z0, vy0), method="DOP853", rtol=1e-12, atol=1e-12, t_eval=t_eval) X = sol.y[:6] mono = sol.y[6:, -1].reshape(6, 6) lam = float(np.max(np.abs(np.linalg.eigvals(mono)))) period_day = T * TU_DAY
dx = X[0] - (1.0 - MU) rng = np.sqrt(dx ** 2 + X[1] ** 2 + X[2] ** 2) alpha = np.degrees(np.arccos(-dx / rng)) speed = np.sqrt(X[3] ** 2 + X[4] ** 2 + X[5] ** 2) jacobi = 2.0 * pseudo_potential(X[0], X[1], X[2]) - speed ** 2 d_c = C_L1 - jacobi[0] dv_ins_abs = d_c / (2.0 * speed.max()) * VU_MS
return dict(t_day=t_eval * TU_DAY, X=X, alpha=alpha, period=period_day, lam=lam, s=math.log(lam) / period_day, a_min=alpha.min(), a_max=alpha.max(), dv_ins_abs=dv_ins_abs, jacobi_drift=np.ptp(jacobi), closure=float(np.linalg.norm(X[:, -1] - X[:, 0])), x0=x0, vy0=vy0, z0=z0)
az_grid = np.arange(AZ_LO, AZ_HI + 1.0, 10.0e3) orbits = [] for i, az in enumerate(az_grid): z0 = az / AU_KM if i == 0: seed = None for ax_km in (200e3, 250e3, 150e3, 300e3): try: gx, gv = linear_guess(ax_km) seed = correct_halo(gx, z0, gv) break except (RuntimeError, np.linalg.LinAlgError): continue if seed is None: raise RuntimeError("Initial halo orbit could not be found.") x0, vy0, th = seed else: if i >= 2: gx = 2 * orbits[-1]["x0"] - orbits[-2]["x0"] gv = 2 * orbits[-1]["vy0"] - orbits[-2]["vy0"] else: gx, gv = orbits[-1]["x0"], orbits[-1]["vy0"] x0, vy0, th = correct_halo(gx, z0, gv) orbits.append(evaluate_orbit(x0, z0, vy0, th))
T_FAMILY = time.time() - T_START
az = az_grid a_min_arr = np.array([o["a_min"] for o in orbits]) a_max_arr = np.array([o["a_max"] for o in orbits]) s_arr = np.array([o["s"] for o in orbits]) dv_ins_arr = np.array([o["dv_ins_abs"] for o in orbits]) dv_ins_arr = dv_ins_arr - dv_ins_arr[0]
sp_amin = CubicSpline(az, a_min_arr) sp_amax = CubicSpline(az, a_max_arr) sp_s = CubicSpline(az, s_arr) sp_dv = CubicSpline(az, dv_ins_arr) sp_x0 = CubicSpline(az, [o["x0"] for o in orbits]) sp_vy0 = CubicSpline(az, [o["vy0"] for o in orbits])
def dv_keep_per_year(s, tau): return (365.25 / tau) * (SIGMA_V * np.exp(s * tau) + DV_FIX)
def total_cost(az_km, tau_day): return sp_dv(az_km) + N_YEARS * dv_keep_per_year(sp_s(az_km), tau_day)
def tau_optimal(s): """Root of SIGMA_V * exp(x) * (x - 1) = DV_FIX with x = s * tau (Newton, vectorised).""" x = np.full_like(np.asarray(s, dtype=float), 2.0) for _ in range(60): f = SIGMA_V * np.exp(x) * (x - 1.0) - DV_FIX df = SIGMA_V * np.exp(x) * x x = x - f / df return x / s
AZ_G, TAU_G = np.meshgrid(np.linspace(AZ_LO, AZ_HI, 301), np.linspace(TAU_LO, TAU_HI, 301)) J_G = total_cost(AZ_G, TAU_G) FEAS_G = (sp_amin(AZ_G) >= ALPHA_MIN_DEG) & (sp_amax(AZ_G) <= ALPHA_MAX_DEG) J_MASKED = np.where(FEAS_G, J_G, np.inf) ib = np.unravel_index(np.argmin(J_MASKED), J_MASKED.shape) grid_best = (AZ_G[ib], TAU_G[ib], J_G[ib])
SCALE = np.array([1.0e5, 10.0])
def obj(u): p = u * SCALE return float(total_cost(p[0], p[1]))
cons = [ {"type": "ineq", "fun": lambda u: float(sp_amin(u[0] * SCALE[0]) - ALPHA_MIN_DEG)}, {"type": "ineq", "fun": lambda u: float(ALPHA_MAX_DEG - sp_amax(u[0] * SCALE[0]))}, ] bnds = [(AZ_LO / SCALE[0], AZ_HI / SCALE[0]), (TAU_LO / SCALE[1], TAU_HI / SCALE[1])] res = minimize(obj, np.array([grid_best[0], grid_best[1]]) / SCALE, method="SLSQP", bounds=bnds, constraints=cons, options={"ftol": 1e-12, "maxiter": 200}) az_slsqp, tau_slsqp = res.x * SCALE
def true_orbit(az_km): z0 = az_km / AU_KM x0, vy0, th = correct_halo(float(sp_x0(az_km)), z0, float(sp_vy0(az_km))) return evaluate_orbit(x0, z0, vy0, th, n=6001)
az_lo_exact = brentq(lambda a: true_orbit(a)["a_min"] - ALPHA_MIN_DEG, az[0] + 1.0, 200.0e3, xtol=1e-3) az_hi_exact = brentq(lambda a: true_orbit(a)["a_max"] - ALPHA_MAX_DEG, 250.0e3, az[-1] - 1.0, xtol=1e-3) best = true_orbit(az_lo_exact) tau_star = float(tau_optimal(best["s"])) dv_ins_star = float(sp_dv(az_lo_exact)) dv_keep_star = float(dv_keep_per_year(best["s"], tau_star)) j_star = dv_ins_star + N_YEARS * dv_keep_star
T_TOTAL = time.time() - T_START
print("=" * 72) print("Sun-Earth L1 halo orbit design for a space-weather satellite") print("=" * 72) print(f"L1 distance from Earth : {GAMMA * AU_KM:12.1f} km") print(f"Time unit / velocity unit : {TU_DAY:10.4f} day / {VU_MS:10.2f} m/s") print(f"Family computed (n = {len(az):d}) : {T_FAMILY:6.2f} s") print("-" * 72) print(f"{'Az [km]':>10s} {'T [day]':>9s} {'lambda':>9s} {'a_min[deg]':>11s} " f"{'a_max[deg]':>11s} {'dV_ins+[m/s]':>13s}") for i in range(0, len(az), 5): o = orbits[i] print(f"{az[i]:10.0f} {o['period']:9.3f} {o['lam']:9.1f} {o['a_min']:11.3f} " f"{o['a_max']:11.3f} {dv_ins_arr[i]:13.3f}") print("-" * 72) print("Feasible Az range (exact, nonlinear model)") print(f" lower bound (a_min = {ALPHA_MIN_DEG:.1f} deg) : {az_lo_exact:12.1f} km") print(f" upper bound (a_max = {ALPHA_MAX_DEG:.1f} deg) : {az_hi_exact:12.1f} km") print("-" * 72) print("Optimisation results") print(f" grid search : Az = {grid_best[0]:10.1f} km, tau = {grid_best[1]:6.2f} day, J = {grid_best[2]:8.4f} m/s") print(f" SLSQP : Az = {az_slsqp:10.1f} km, tau = {tau_slsqp:6.2f} day, J = {res.fun:8.4f} m/s " f"(success = {res.success})") print(f" verified : Az = {az_lo_exact:10.1f} km, tau = {tau_star:6.2f} day, J = {j_star:8.4f} m/s") print("-" * 72) print("Optimal orbit (nonlinear model)") print(f" period : {best['period']:10.4f} day") print(f" unstable eigenvalue : {best['lam']:10.2f} (e-folding time {1.0 / best['s']:.2f} day)") print(f" SEV angle range : {best['a_min']:.4f} - {best['a_max']:.4f} deg") print(f" initial state (x0, vy0): {best['x0']:.9f}, {best['vy0']:.9f}") print(f" closure error : {best['closure']:.3e}") print(f" Jacobi constant drift : {best['jacobi_drift']:.3e}") print(f" insertion increment : {dv_ins_star:8.3f} m/s") print(f" station keeping : {dv_keep_star:8.3f} m/s/yr x {N_YEARS:.0f} yr = {N_YEARS * dv_keep_star:.3f} m/s") print(f" total cost J : {j_star:8.3f} m/s") print("-" * 72) print(f"Total computation time : {T_TOTAL:6.2f} s") print("=" * 72)
plt.rcParams.update({"font.size": 11, "axes.titlesize": 13, "axes.labelsize": 11}) fig = plt.figure(figsize=(22, 13)) gs = GridSpec(2, 3, figure=fig, left=0.04, right=0.98, bottom=0.06, top=0.92, wspace=0.18, hspace=0.24) norm_az = Normalize(AZ_LO / 1e3, AZ_HI / 1e3) cmap = cm.viridis
ax1 = fig.add_subplot(gs[0, 0], projection="3d") Xo = best["X"] px = (Xo[0] - XL1) * AU_KM / 1e3 py = Xo[1] * AU_KM / 1e3 pz = Xo[2] * AU_KM / 1e3 xl = (px.min() - 60, px.max() + 60) yl = (py.min() - 60, py.max() + 60) zl = (pz.min() - 30, pz.max() + 60) ax1.plot(px, py, pz, color="tab:red", lw=2.2, label="Optimal halo orbit") ax1.plot(px, py, np.full_like(pz, zl[0]), color="gray", lw=1.0, alpha=0.7) ax1.plot(px, np.full_like(py, yl[1]), pz, color="gray", lw=1.0, alpha=0.7) ax1.plot(np.full_like(px, xl[0]), py, pz, color="gray", lw=1.0, alpha=0.7) ax1.plot(xl, [0, 0], [0, 0], color="k", ls="--", lw=1.0, label="Sun-Earth line") ax1.scatter([0], [0], [0], color="tab:blue", s=70, label="L1") ax1.text(xl[1], 0, 0, " to Earth", color="k") ax1.text(xl[0], 0, 0, "to Sun ", color="k", ha="right") ax1.set_xlim(*xl); ax1.set_ylim(*yl); ax1.set_zlim(*zl) ax1.set_box_aspect((np.ptp(xl), np.ptp(yl), np.ptp(zl))) ax1.set_xlabel("x - x_L1 [10$^3$ km]", labelpad=10); ax1.set_ylabel("y [10$^3$ km]", labelpad=12); ax1.set_zlabel("z [10$^3$ km]", labelpad=6) ax1.set_title("(a) Optimal halo orbit in the rotating frame") ax1.legend(loc="upper left", fontsize=9) ax1.view_init(elev=24, azim=-62)
ax2 = fig.add_subplot(gs[0, 1], projection="3d") for o, a in zip(orbits[::3], az[::3]): ax2.plot((o["X"][0] - XL1) * AU_KM / 1e3, o["X"][1] * AU_KM / 1e3, o["X"][2] * AU_KM / 1e3, color=cmap(norm_az(a / 1e3)), lw=1.4) ax2.plot(px, py, pz, color="tab:red", lw=2.6) ax2.scatter([0], [0], [0], color="k", s=40) ax2.set_xlabel("x - x_L1 [10$^3$ km]", labelpad=10); ax2.set_ylabel("y [10$^3$ km]", labelpad=12); ax2.set_zlabel("z [10$^3$ km]", labelpad=8) ax2.set_title("(b) Halo family (red: optimal)") ax2.view_init(elev=20, azim=-40) sm = cm.ScalarMappable(norm=norm_az, cmap=cmap) sm.set_array([]) cb = fig.colorbar(sm, ax=ax2, shrink=0.6, pad=0.14) cb.set_label("A$_z$ [10$^3$ km]")
ax3 = fig.add_subplot(gs[0, 2]) ax3.add_patch(plt.Circle((0, 0), ALPHA_MIN_DEG, color="tab:red", alpha=0.25, label="Exclusion zone")) ax3.add_patch(plt.Circle((0, 0), 0.27, color="gold", zorder=5)) for a_km, col, ls, lab in [(AZ_LO, "tab:orange", "--", "Az = 100 000 km (violates)"), (az_lo_exact, "tab:red", "-", f"Az = {az_lo_exact:,.0f} km (optimal)"), (300.0e3, "tab:green", "-", "Az = 300 000 km")]: o = orbits[int(round((a_km - AZ_LO) / 10.0e3))] if a_km != az_lo_exact else best dxo = o["X"][0] - (1.0 - MU) ang = np.degrees(np.arccos(-dxo / np.sqrt(dxo ** 2 + o["X"][1] ** 2 + o["X"][2] ** 2))) phi = np.arctan2(o["X"][2], o["X"][1]) ax3.plot(ang * np.cos(phi), ang * np.sin(phi), color=col, ls=ls, lw=2.0, label=lab) ax3.set_aspect("equal") ax3.set_xlim(-32, 32); ax3.set_ylim(-32, 32) ax3.axhline(0, color="gray", lw=0.6); ax3.axvline(0, color="gray", lw=0.6) ax3.set_xlabel("Angle toward +y [deg]"); ax3.set_ylabel("Angle toward +z [deg]") ax3.set_title("(c) Sky view from Earth (Sun at the origin)") ax3.legend(loc="upper right", fontsize=9) ax3.grid(alpha=0.3)
ax4 = fig.add_subplot(gs[1, 0]) ax4.axhspan(0, ALPHA_MIN_DEG, color="tab:red", alpha=0.15) ax4.axhspan(ALPHA_MAX_DEG, 40, color="tab:red", alpha=0.15) for a_km, col, lab in [(AZ_LO, "tab:orange", "Az = 100 000 km"), (az_lo_exact, "tab:red", "Az = optimal"), (250.0e3, "tab:green", "Az = 250 000 km"), (AZ_HI, "tab:purple", "Az = 400 000 km")]: o = orbits[int(round((a_km - AZ_LO) / 10.0e3))] if a_km != az_lo_exact else best ax4.plot(o["t_day"], o["alpha"], color=col, lw=2.0, label=lab) ax4.axhline(ALPHA_MIN_DEG, color="k", ls="--", lw=1.0) ax4.axhline(ALPHA_MAX_DEG, color="k", ls="--", lw=1.0) ax4.set_ylim(0, 35) ax4.set_xlabel("Time [day]"); ax4.set_ylabel("Sun-Earth-spacecraft angle [deg]") ax4.set_title("(d) Constraint history over one revolution") ax4.legend(loc="upper center", ncol=2, fontsize=9) ax4.grid(alpha=0.3)
ax5 = fig.add_subplot(gs[1, 1]) az_f = np.linspace(AZ_LO, AZ_HI, 600) s_f = sp_s(az_f) tau_f = tau_optimal(s_f) keep_f = N_YEARS * dv_keep_per_year(s_f, tau_f) ins_f = sp_dv(az_f) ax5.axvspan(AZ_LO / 1e3, az_lo_exact / 1e3, color="tab:red", alpha=0.15, label="Infeasible") ax5.axvspan(az_hi_exact / 1e3, AZ_HI / 1e3, color="tab:red", alpha=0.15) ax5.plot(az_f / 1e3, ins_f, color="tab:blue", lw=2.0, label="Insertion increment") ax5.plot(az_f / 1e3, keep_f, color="tab:green", lw=2.0, label="Station keeping (5 yr)") ax5.plot(az_f / 1e3, ins_f + keep_f, color="k", lw=2.5, label="Total cost J") ax5.scatter([az_lo_exact / 1e3], [j_star], color="tab:red", s=200, marker="*", zorder=6, label="Optimum") ax5.set_xlabel("A$_z$ [10$^3$ km]"); ax5.set_ylabel("$\\Delta V$ [m/s]") ax5.set_title("(e) Trade-off along the halo family") ax5.legend(loc="upper left", fontsize=9) ax5.grid(alpha=0.3)
ax6 = fig.add_subplot(gs[1, 2], projection="3d") AZ_P, TAU_P = np.meshgrid(np.linspace(az_lo_exact, 260.0e3, 161), np.linspace(TAU_LO, TAU_HI, 161)) J_P = total_cost(AZ_P, TAU_P) ax6.plot_surface(AZ_P / 1e3, TAU_P, J_P, cmap="viridis", rstride=2, cstride=2, linewidth=0, antialiased=True, alpha=0.92) LIFT = 0.5 az_v = np.linspace(az_lo_exact, 260.0e3, 100) tau_v = tau_optimal(sp_s(az_v)) ax6.plot(az_v / 1e3, tau_v, total_cost(az_v, tau_v) + LIFT, color="k", lw=2.2, label="Optimal $\\tau$ for each A$_z$") ax6.scatter([az_lo_exact / 1e3], [tau_star], [j_star + LIFT], color="tab:red", s=300, marker="*", edgecolor="k", depthshade=False, label="Optimum") ax6.legend(loc="upper left", fontsize=9) ax6.set_xlabel("A$_z$ [10$^3$ km]", labelpad=8) ax6.set_ylabel("$\\tau$ [day]", labelpad=8) ax6.set_zlabel("J [m/s]", labelpad=6) ax6.set_zlim(0, float(J_P.max())) ax6.set_title("(f) Cost surface J(A$_z$, $\\tau$) over the feasible region") ax6.set_box_aspect((1.3, 1.0, 0.75)) ax6.view_init(elev=30, azim=-50)
fig.suptitle("Orbit optimization of a Sun-Earth L1 space-weather satellite", fontsize=17, y=0.975) fig.savefig("l1_halo_optimization.png", dpi=130) plt.show()
|