Categories in Physics and Simulations