| Procedure | Location | Procedure Type | Description |
|---|---|---|---|
| add_digits | text_buffer_module | Subroutine | Append the decimal digits of an integer. |
| add_int | text_buffer_module | Subroutine | Append an integer. |
| add_point_to_trajectory | halo_module | Subroutine | Add a point to a trajectory variable. |
| add_real | text_buffer_module | Subroutine | Append a real number, in JSON syntax, in double precision (also when |
| add_real_array | text_buffer_module | Subroutine | Append a JSON array of real numbers ( |
| add_real_list | text_buffer_module | Subroutine | Append a list of real numbers, separated by commas ( |
| add_str | text_buffer_module | Subroutine | Append a string. |
| allocate_body_eph | splined_ephemeris_module | Subroutine | |
| ballistic_derivs | halo_module | Subroutine | Equations of motion for a ballistic segment. |
| cache | halo_module | Subroutine | Cache all the data in a segment. |
| clear | text_buffer_module | Subroutine | Empty the buffer (the storage is kept, to be reused). |
| close_config_file | config_file_module | Subroutine | Open the file. |
| compute_jacobian_stm | halo_module | Subroutine | Compute the (scaled) sparse Jacobian analytically ( |
| compute_rdot | halo_module | Function | compute rdot, which is d(rmag)/dt. |
| compute_rdot_vecs | halo_module | Subroutine | compute the rmag and rdot vectors, given the state vectors |
| constraint_violations | halo_module | Subroutine | Computes the constraint violation vector for the mission. |
| cross | astro_partials_module | Function | |
| cross_matrix | astro_partials_module | Function | [w x]: x*v = w cross v |
| define_problem_size | halo_module | Subroutine | Returns the size variables for the "forward-backward" formulation of the problem. |
| delete_file | halo_module | Subroutine | Delete a file if it exists |
| destroy_body_eph | splined_ephemeris_module | Subroutine | |
| destroy_body_eph_interface | splined_ephemeris_module | Subroutine | |
| destroy_jpl_ephemeris_splined | splined_ephemeris_module | Subroutine | |
| destroy_moon_pa_frame | splined_moon_frame_module | Subroutine | Reset the object's workspace (the global splines are kept). |
| destroy_trajectory | halo_module | Subroutine | Destroy a trajectory (deallocate the data arrays). |
| earth_moon_frame_matrices | halo_module | Subroutine | The Moon-centered Earth-Moon rotating frame transformations at |
| eclipse_fc | halo_eclipse_opt_submodule | Subroutine | The objective and the constraints for sqpopt: halo's continuity constraints, then the eclipse rows. |
| eclipse_gjac | halo_eclipse_opt_submodule | Subroutine | The gradient of the objective and the Jacobian values for sqpopt: halo's analytic Jacobian, then the eclipse rows (central differences). |
| eclipse_optimize | halo_module | Interface | |
| epochs_in_range | halo_eclipse_opt_submodule | Function | If all the node epochs of |
| equilibrate | halo_eclipse_opt_submodule | Subroutine | Equilibrate the continuity Jacobian at |
| equilibrate_scales | halo_module | Subroutine | Set the opt var scales from the sensitivities ( |
| eval_rows | halo_eclipse_opt_submodule | Subroutine | The eclipse rows (and, optionally, their partials, in the order of the rows' columns),
for the |
| export_rp_ra_json_file | halo_module | Subroutine | Export the rp/ra file. |
| export_trajectory_json_file | halo_module | Subroutine | Export the trajectory JSON file. |
| find_rows | halo_eclipse_opt_submodule | Subroutine | Check the shadow function along the whole trajectory (every |
| frame_to_j2000 | splined_moon_frame_module | Function | The rotation matrix from the MOON_PA frame to J2000 at |
| generate_eclipse_data | halo_module | Subroutine | Propagate all the segments with a dense time step and export the Eclipsing data w.r.t. Earth. In this file, any point <0 is in eclipse. |
| generate_mkspk_setup_file | halo_module | Subroutine | Generate the mkspk setup file. See |
| generate_patch_points | halo_module | Subroutine | Generates the patch points (unnormalized, moon-centered) from the CR3BP normalized guess. |
| generate_pck_file | halo_module | Subroutine | Generate a PCK (JSON version) to go with the BSP file.
Note: this kernel can be read by |
| get_case_name | halo_module | Function | Returns a string that can be used for file names, etc. (read the values of the global variables). |
| get_char | config_file_module | Subroutine | Get a character variable from the config file. |
| get_int | config_file_module | Subroutine | Get an integer variable from the config file. |
| get_logical | config_file_module | Subroutine | Get a logical variable from the config file. |
| get_problem_arrays | halo_module | Subroutine | Get the arrays for the problem |
| get_r | splined_ephemeris_module | Function | |
| get_r_splined | splined_ephemeris_module | Subroutine | |
| get_real | config_file_module | Subroutine | Get a real variable from the config file. |
| get_real_vec | config_file_module | Subroutine | Get a real vector from the config file. |
| get_rv | splined_ephemeris_module | Function | |
| get_rv_derivative_splined | splined_ephemeris_module | Subroutine | The time derivative of the splined state returned by get_rv_splined
(the derivative of each component's spline: so |
| get_rv_dot | splined_ephemeris_module | Function | time derivative of each component's spline |
| get_rv_splined | splined_ephemeris_module | Subroutine | |
| get_scales_from_segs | halo_module | Subroutine | Populate the |
| get_segment_inputs | halo_module | Subroutine | Gets the initial states of a segment |
| get_segment_outputs | halo_module | Subroutine | After propagating a segment, this gets the outputs. |
| get_sparsity_pattern | halo_module | Subroutine | Returns the sparsity pattern for the "forward-backward" Halo problem. |
| get_sun_fraction | halo_utilities_module | Function | Compute the "sun fraction" for eclipses by the Earth, using the circular cubic shadow model (the apparent positions of the Sun and the Earth). |
| get_x_from_json_file | halo_module | Subroutine | Read the JSON solution file and put the |
| halo_export | halo_module | Subroutine | export an iteration from the solver |
| halo_func | halo_module | Subroutine | Compute the solver function (all the constraint violations) |
| halo_grad | halo_module | Subroutine | Compute the gradient of the solver function (Jacobian matrix). Dense version. |
| halo_grad_info | halo_module | Subroutine | Info function for the gradients. |
| halo_grad_sparse | halo_module | Subroutine | Compute the gradient of the solver function (Jacobian matrix). Sparse version. |
| halo_solver_main | halo_module | Subroutine | Main program to solve the Halo targeting problem. |
| halo_user_input_check | halo_module | Subroutine | nlesolver's |
| identity_stm | halo_module | Function | The 6x6 identity matrix, as a vector (the initial state transition matrix). |
| initialize_body_eph_interface | splined_ephemeris_module | Subroutine | |
| initialize_globals | splined_ephemeris_module | Subroutine | initialize the earth and sun ephemeris. |
| initialize_moon_pa_frame | splined_moon_frame_module | Subroutine | Read the table and compute the (global) splines, for the time span |
| initialize_splinded_ephemeris | splined_ephemeris_module | Subroutine | the ephemeris must be initialized before this is called |
| initialize_the_mission | halo_module | Subroutine | Initialize the mission. |
| initialize_the_solver | halo_module | Subroutine | Initialize the mission. |
| int_to_string | halo_module | Function | integer to string with optional zero padding |
| iteration_epochs | halo_module | Subroutine | Send the epochs at the constraint points (where segments 2k-1 and 2k end) for
the solver's current |
| iteration_trajectory | halo_module | Subroutine | Propagate the segments for the solver's current |
| j2000_to_frame | splined_moon_frame_module | Function | The rotation matrix from J2000 to the MOON_PA frame at |
| jacobian_is_cached | halo_module | Function | True if |
| ks_aggregate | halo_eclipse_opt_submodule | Function | The KS aggregate of values |
| merge_rows | halo_eclipse_opt_submodule | Subroutine | Add the new rows: a segment already in the list gets the union of the sample ranges. |
| my_func | halo_module | Subroutine | Wrapper for the constraint violation function (use by NumDiff) |
| newton_export | halo_eclipse_opt_submodule | Subroutine | The Newton finish's iteration printout. |
| newton_finish | halo_eclipse_opt_submodule | Subroutine | The Newton finish ( |
| newton_func | halo_eclipse_opt_submodule | Subroutine | The Newton finish's functions: halo's continuity constraints, then |
| newton_grad | halo_eclipse_opt_submodule | Subroutine | The Newton finish's Jacobian: halo's analytic one, then the active eclipse rows (central differences, see eval_rows). |
| open_config_file | config_file_module | Subroutine | Open the file. |
| outer | astro_partials_module | Function | |
| pines_gravity | astro_partials_module | Subroutine | Spherical harmonic gravity acceleration, and optionally its gradient , with Pines' formulation (see the module documentation). Includes the central (point mass) term. |
| plot_trajectory | halo_module | Subroutine | Plot the trajectory using matplotlib and/or generate a text file (for MKSPK) |
| point_gradient | astro_partials_module | Function |
|
| pointmass_gravity_gradient | astro_partials_module | Function | Gravity gradient of a point mass at the origin: . |
| populate_body_eph | splined_ephemeris_module | Subroutine | populate the |
| print_constraint_defects | halo_module | Subroutine | Print the |
| propagate_segment | halo_module | Subroutine | Propagate a segment (assumes the inputs have already been populated) |
| propagate_segment_stm | halo_module | Subroutine | Propagate a segment with its state transition matrix, and compute the analytic
partials of its final rotating-frame state (for |
| put_data_in_segment | halo_module | Subroutine | Set all the data in a segment. |
| put_x_in_segments | halo_module | Subroutine | Take the |
| qrm_solver | halo_module | Subroutine | Custom solver that uses QR_MUMPS |
| read_config_file | halo_module | Subroutine | Read the config file that defines the problem to be solved and set all the global variables. |
| read_epoch | halo_module | Subroutine | Read the epoch info from a config file. |
| removed_columns | halo_module | Function | The columns (optimization variables) of the full problem that are removed
(fixed) by the problem options. The full problem has 7 columns per node
( |
| report_change | halo_eclipse_opt_submodule | Subroutine | Print how far the optimization moved the solution. |
| reserve | text_buffer_module | Subroutine | Make sure the buffer has room for |
| row_columns | halo_eclipse_opt_submodule | Subroutine | The variables a row of segment |
| row_ks | halo_eclipse_opt_submodule | Function | The KS aggregate of the shadow function at a row's samples, for the given start epoch,
final epoch [days] and initial rotating-frame state (a copy of the segment is propagated,
with output every |
| rpy_to_rot | splined_moon_frame_module | Subroutine | Roll, pitch and yaw (rad) to the rotation matrix (as in |
| scale_row_columns | halo_eclipse_opt_submodule | Subroutine | Multiply the eclipse rows' partials by the optimization's variable scaling |
| scaled | text_buffer_module | Subroutine |
(), correctly rounded to an integer, when the
result is about to . |
| segment_trajectory_json | halo_module | Subroutine | The JSON object of a segment's trajectory (for export_trajectory_json_file),
replacing the contents of |
| segs_to_propagate | halo_module | Subroutine | Given the functions to be computed, returns the segments that need to be propagated. |
| set_segment_inputs | halo_module | Subroutine | Sets all the info in a segment for it to be propagated. |
| set_segment_outputs | halo_module | Subroutine | Set the outputs of a segment, assuming it has been propagated elsewhere |
| spline_body_eph | splined_ephemeris_module | Subroutine | |
| split | text_buffer_module | Subroutine | Veltkamp's split of a double into two halves of 26 bits: . |
| step_limits | halo_eclipse_opt_submodule | Function | The largest change of each of the optimization's variables in one sqpopt iteration
( |
| third_body_gravity_gradient | astro_partials_module | Function | Gradient of the third-body acceleration , , with respect to the spacecraft position (the indirect term does not depend on it): . This is also the gradient of Battin's equivalent form (the same function). |
| trajectory_export_func | halo_module | Subroutine | Export a trajectory point during propagation. |
| two_body_rotating_frame_matrices | astro_partials_module | Subroutine | The 6x6 state transformations of a two-body rotating frame (as defined by the
toolkit's |
| two_prod | text_buffer_module | Subroutine | Dekker's exact product: exactly (barring overflow), without FMA. |
| uncache | halo_module | Subroutine | Restore all the segment data form the cache. |
| union_columns | halo_eclipse_opt_submodule | Subroutine | With |
| update_epoch | halo_module | Subroutine | Update the variables for the reference epoch in the mission class. Either computes the et from the calendar state, or vice versa. |
| write_json_real_array | halo_module | Subroutine | Write a JSON name and real array ( |
| write_optvars_to_file | halo_module | Subroutine | Write the current |
| write_solution_plot_data | halo_module | Subroutine | Write the data for the solution plots ( |