The Modelling of Tunnel entrances and exits