The pantograph–catenary dynamic interaction analysis program (PantoCat) addresses the need for a dynamic analysis code able to analyse models of the complete overhead energy collecting systems that include all mechanical details of the pantographs and the complete topology and structural details of the catenary. PantoCat is a code based on the finite element method, for the catenary, and multibody dynamics methods, for the pantograph, integrated via a co-simulation procedure. A contact model based on a penalty formulation is selected to represent the pantograph–catenary interaction. PantoCat enables models of catenaries with multiple sections, including their overlap, the operation of multiple pantographs and the use of any complex loading of the catenary or pantograph mechanical elements including aerodynamic effects. The models of the pantograph and catenary are fully spatial being simulated in tangential or curved tracks, with or without irregularities and perturbations. User-friendly interfaces facilitate the construction of the models while the post-processing facilities provide all quantities of interest of the system response according to the norms and industrial requirements.