COmoving Computer Acceleration (COCA):
N-body simulations in an emulated frame of reference
COmoving Computer Acceleration (COCA) is a hybrid framework that interfaces machine learning with an $N$-body simulator so that the correct physical equations of motion are solved in an emulated frame of reference, thereby correcting any emulation error by design. This approach solves for the perturbation of particle trajectories around the machine-learnt solution, which is computationally cheaper than the full solution yet converges to the truth with more force evaluations. In cosmological particle-mesh simulations with a CNN-predicted frame, COCA reduces errors and requires fewer force evaluations than a standard simulation, even for data outside the training range.