I have been following the responses to this question with interest and thought I needed to get back into the fray to try and clear up some things.
Most of my work on gas pipelines has been with long onshore transmission pipelines in Australia carrying dry gas so I had not anticpated the responses about very low ground temperatures, offshore pipelines and wet gas but they do add an extra dimension to the topic.
My pipeline models include the JT cooling effect, as all good pipeline models do, and the results match the major pipeline modelling software packages and also very closely match real operating pipelines so the cooling is definitely real and can be accurately predicted.
JT cooling does matter on long pipelines where the gas temperature can fall up to 10degC below the ground temperature and this is despite the heat transfer through the pipe wall.
With reference to the response from zdas04 my experience is that the gas approach to soil temperature usually takes around 30 to 50km and if the pipeline is working really hard up to 120 km. I'm sure this happens much quicker with offshore wet gas pipelines.
malancha's response is very interesting and I think I can clear up a few things here. I believe that the cooling effect upstream of the valve is mainly due to adiabatic expansion and not JT cooling (though this will be present as well). Consider a pipeline 10km long staring at 5000kPa and depressuring it to 500kPa. At the end of the blowdown the pipeline contains only the gas that was in the 1km at the far end of the pipeline. Remember your basic thermodynamic studies, if you take a volume of gas in a container and expand it to a larger volume and lower pressure it cools down - if it happens reasonably quickly then this is adiabatic expansion. You need to be very careful in calculating the JT cooling effect across the valve as the gas arriving at the valve has already dropped significantly so the two cooling effects are additive. You can get some extremely cold temperatures from this when depressurising compressor stations.
Jepster adds yet another temperature effect. I'm sure that the localised cooling is a result of liquid condensing in the pipeline and running down to low spots where it then evaporates back into the gas flow. The cooling is the result of the vaporisation energy being drawn out of the liquid. I have seen this before when we vaccuum dry pipelines and water pockets in the bottom of valve bodies can freeze (even in our hot ambient temperatures) and potentially fracture the valve.
OK so now I want to restate my original question which is "WHY JT COOLING AND NOT ADIABATIC COOLING" as there is clearly no flow discontinuity that is normally associated with JT?
I am putting together a well documented calculation paper on gas pipeline flow modelling (steady state only) which tries to pull together and explain all of the competing effects on pressure and temperature and will make the paper available when it is finished. Hopefully it will make the topic easier to understand for those that are new to the field or those that need a better understanding of it. Any further suggestions are welcome - especially an answer to my still outstanding question "JT or not JT".
Dennis Kirk Engineering