In fact, the science of thermodynamics began with an analysis, by the great engineer Sadi Carnot, of the problem of how to build the best and most efficient engine, and this constitutes one of the few famous cases in which engineering has contributed to fundamental physical theory. Another example that comes to mind is the more recent analysis of information theory by Claude Shannon. These two analyses, incidentally, turn out to be closely related.
volume I; lecture 44, "The Laws of Thermodynamics"; section 44-1, "Heat engines; the first law"; p. 44-2 - The Feynman Lectures on Physics (1964)