The transfer of comets from parabolic to short-period orbits: numerical studies