OK. If you ignore rail gradient (a simplification to get started on this) the first thing to account for is rolling resistance. See here <http://en.wikipedia.org/wiki/Rolling_resistance> for a coefficient. That will give a (more or less) constant force the engine must provide to maintain any speed. To accelerate you can use F=m.a, i.e for your mass and tractive force/effort you can calculate an acceleration. You will have to guess your tractive effort as a function of engine setting, maybe a simple ratio i.e 8=100%, 4=50% ??
The other thing that affects all this is aero drag which is a drag force usually proportional to speed squared, and will really only play a part at higher speeds, but is you want to include it you will need to find a suitable drag coefficient for your train.
The gradient force is the component of the weight (W.cos.theta) where theta is the angle to the horizontal.
It all gets a bit complicated when you have some of the train on the level, some on the up grade, some on down grade etc!
Cheers,
Terry