Simulation and characterization of trajectories in Sun-Jupiter-Comet system