The intent of this project is to create a 3-body simulator that will eventually generate an optimal trajectory from an orbit about the Earth to an orbit about the Moon, then generate an optimal control sequence in order to stay in the reference trajectory.
To start, we will assume the following:
These assumptions can be removed at later phases with additional modeling.
Using an arbitrary central body (C) with an inertial reference frame as well as an arbitrary number of external "planets" (O), the equations of motion can be represented as the following:
Where i is the ith body of interest and j is the jth external planet. This equation will be the governing equation for each body other than the central body (including satellites and all "planets"). Since satellites are low in mass, we will ignore their pull on the other bodies but the external planets will affect each other.
To allow for trajectory optimization, we will take to account the position of the moon at all times, this will result in size 12 state vector, with the state being:
After the optimal trajectory has been generated, the state can be reduced to a state vector of size 6.
Taking the derivative of the state vector yields
We add
In the generation of the optimimal trajectory, perturbations will be ignored, but in the optimal control problem, external perturnbations will be included in order to work the controller. In this project, only gravitational perturbations and aerodynamic perturbations will be considered.
Gravitational perturbations come in the form of 3rd body forces (in a 2 body problem) and the geometry of the planetary bodies that a spacecraft may be orbiting.
3rd body forces will be generated through the dynamics of the system. The geometric perturbations will be represented by the
- System Dyanmics
- Path Constraints
- Boundary Constraints
- Path and Control Bounds
- Time and Time-Dependent State Bounds
- Allow rendezvous with other spacecraft
- Allow central body changes
- Change code to reflect above changes
https://epubs.siam.org/doi/pdf/10.1137/16M1062569
https://www.youtube.com/watch?v=yMJ_VU3jt7c