The definition of the termination parameters follows, with a maximum mission duration of 5 Earth days. The altitude range above Itokawa is also defined between 150 meters and 5 km. Follows the definition of the design variable range, that PyGMO will use during the optimisation. This range is as follows: - Initial semi-major axis between 300 and 2000 meters. - Initial eccentricity between 0 and 0.3. - Initial inclination between 0 and 180 deg. - Initial longitude of the ascending node between 0 and 360 deg. The system of bodies is then setup using the `create_simulation_bodies()` helper, and a radius for Itokawa of 161.915 meters. Finally, the acceleration models are setup using the `get_acceleration_models()` helper. """ # Load spice kernels spice.load_standard_kernels() # Set simulation start and end epochs mission_initial_time = 0.0 mission_duration = 5.0 * constants.JULIAN_DAY # Define Itokawa radius itokawa_radius = 161.915 # Set altitude termination conditions minimum_distance_from_com = 150.0 + itokawa_radius maximum_distance_from_com = 5.0E3 + itokawa_radius # Set boundaries on the design variables design_variable_lb = (300, 0.0, 0.0, 0.0) design_variable_ub = (2000, 0.3, 180, 360)
def test_load_default_kernels(): # load_standard_spice_kernels() spice_interface.load_standard_kernels()