This is collection of code from my undergraduate honours thesis from the Mechanical Engineering Department at McGill University. It performs numerical simulations of spacecraft flying in formation in low Earth orbit subject to J2 and aerodynamic drag perturbations. My adviser was Prof. Arun K. Misra and this work was undertaken in the Space Flight Dynamics Lab in 2009.
For more info, please see my honours thesis: https://www.researchgate.net/publication/278327611_The_Effect_of_Aerodynamic_Drag_Forces_on_the_Formation_Flying_of_Satellites