Computation of harmonic current in traction lines with vehicle motion