Particle simulations using geometric numerical analysisÂ