Did anyone build a locomotive out of a naval engine to move it from factory to shipyard?
Short answerNot in that simple form, but early ship, train, mine, and stationary engines began close together before their designs diverged.
NotesEarly steam applications drew from a common pool of machinery, so similar engines appeared in ships, trains, mines, and stationary work. Each use later developed its own constraints and layouts. Direct interchange eventually became impossible because a marine engine, locomotive engine, and stationary plant had diverged too far. The change shows how steam technology split into specialized engineering fields from a shared industrial base.