Constraining Dark Matter Physics With Cosmological Simulations