Actually, I was not trying to tie the two problems together.
The first case, in response to your original tire example of isentropic internal expansion and isenthalpic expansion through the valve, my question was simply where did the work (done by the isentropic expanding gas in the tire) go? I...