The Spanish Formula 1 Grand Prix will be held at the Circuit de Catalunya racetrack near Barcelona from the 10th to the 12th of May. Furthermore, Barcelona will host at the same time from the 11th to the 19th of May the International Motor Show along with the X-Games, the world’s largest extreme sports competition. These three events will turn the city into a unique Motor experience for nine days.
Here you have the link for the Spanish Formula 1 Grand Prix. It tells you how to reach the racetrack from the centre of Barcelona.
http://www.circuitcat.com/en/circuit/comollegar.php
Have a look at the exciting activities and exhibitors the International Motor Show will be offering to all visitors:
http://www.salonautomovil.com/en/location
https://www.truebarcelona.com/event/x-games-extreme-sports-competition/