Simulation of bacterial self-chemotaxis