A particle-simulator which takes relativistic effects into account