Kyle Bradley was pronounced dead by the side of the railway line in Wrenthorpe near Wakefield on Saturday.
Another boy aged 16 and a woman aged 18 were left with non-life threatening injuries.
Local residents said there had been problems with young people playing near to the track before.
An inquest into the death of a 16-year-old boy who climbed on to a train and touched overhead power lines has been opened and adjourned in Wakefield.