force.ex = ex;
force.bz = bz;
stt.addForce(force);
Simulation s = new Simulation(stt);
s.prepareAllParticles();
// The simulation always creates its own copy of particles
// (in fact the setting class does so)
// and we would like to obtain the reference to our initial particle p.
p = s.particles.get(0);