Morten,
I'd agree that the JT effect is not applicable to ideal gases, and represents a change in internal energy only. I'd agree that theoretic approach is given which does not match reality, and that JT effect is dependent on the material characteristics, specifically Cp and Cv, and ratio of Cp/Cv
for a set temperature and pressure range, determines whether throttling will result in increase in temperature. At STP, argon does not show the effect. At cryo temperatures, it is a major factor. For pulling water or pumping fluids over large changes in elevation , the JT effect will be noticeable (the z term is not neglected ). For water, JT effect changes with gravitational effect, will increase or decrease going up or down over large elevation change.
If an oil field were deep under ground and under large pressure, I would expect that the pressure gradient between atmospheric and field pressure would have to be controlled because of JT effect and fractionation (off-gassed products would have different JT coefficeint, may increase temperature upon throttling).
I believe the effect is primarily due to van der Waals and compressability, not directly from ideal gas law. Not all adiabatic isenthalpic expansion results in temperature increase. It depends on the JT coefficient, pressure and temperature.
I would never have considered this if I hadn't worked in a cryo plant. Feed from nitrogen goes to the oxygen condenser to go below the highest available pressure point in the inversion curve, then JT effect provides the cooling. Oxygen feeds the argon condenser in a daisy chain effect, and enough LN/LOx was always kept on site to reload the condenser any time an impurity occurred. Wish I understood it as well as the large brained mathematician and mechanical engineer they sent from Tonawanda, but it's a few billion working brain cells above my level.
Probably would be a better question for cryo or petroleum forums. I've been out of that area since Bhopal.