I think I am beginning to understand Zeppos confusion over the definition of pressure.
Backalong two important statements were made.
Zeppos:
the proper definition of the system, ie system-environment interface.
I agreee that inadequate definition/understanding of the system boundary can lead to confusion.
DrDu:
"p in (pV=nRT) is an internal pressure, but the p in (H=U+pV) is the external pressure." That is not true. The variables in the definition of the thermodynamical potentials are always the internal variables of the system.
Is quite correct, but a bit convoluted with the double negative.
The pressure in the first law is always the system pressure.
When we want to do calculations we obviously have to supply a value or formula for this pressure.
In many circumstances we can equate the system pressure to the external pressure, which does not alter. Lots of texts rush over this important fact and just perform substitution without justification.
In the event that the external pressure does alter during the process this is accounted for in the first law, not by the pdV component but by a separate work term.
Some versions of the first law, eg the flow version, add several more terms as a result changes in internal pressure.
Since there is a preponderance of mechanical scientists/engineers in this forum I usually find myself defending the chemical/chemeng approach.
However in this case I would urge Zeppos to look at mechanical engineering steam tables.
Have a look at this thread and inparticular post#4
What would be the effect of drawing the system boundary to include or exclude the balloon skin if the experiment was carried out in a vacuum?