Text this: Accelerating Giant-impact Simulations with Machine Learning