Freight and passenger railroad cars and locomotives have flanges on the inside of the wheel. The inside of the wheel has a larger diameter than the outside. The flange keeps the wheels on the track. The same principle is used on model railroads and most toy trains.