Okay, full disclosure. This folder and the organization of this code is MESSY. 
Here's the layout of things to understand what's what.

# "direct.ipynb"
This is the symbolic manipulation done to create the state space equations for the direct numerical part.

# "main.py"
Is the averaging solution and the direct numerical solution actually being done.

**The top half is the averaging solution, adapted from code in MATLAB given by Nikhil Bajaj.** Most of this code is translated into Python with the help of ChatGPT 4.0, and then checked for congruency by hand. 

The second half lazily redefines all the parameters and then implements a simple ODE solver on the state-space equations for the direct simulation.

Finally, everything is plotted and the figure is saved.

If you have any questions, contact me at dane.sabo@pitt.edu
