Working with thermal machines, entropy don't depends on material which do the cycle, almost directly... the entropy is:
dS \leq \frac{\delta Q}{T}
being equal if the process is reversible, and less if the process is not reversible.
Well, if you work with a simple (without interchange of mass) expansive system the entropy will deppend on variations of internal energy:
TdS = dU + pdV
In your case, the Joule-Kelvin effect:
"Change in temperature of a thermally insulated gas* when it is forced through a small hole or a porous material"
This gas must be a real gas, because ideal gas can't be detained with a porous material since its particles have not volume.
Lets have a open adiabatic recipient with a pair of adiabatic and mobile pistons, one in each side of the open recipient and in the middle we have a porous material.
When we start, the second piston is over the porous material, so all the gas is "at left". When we begin to move the left piston, the gas will be compressed and the right piston will advance to the right, letting particles move across the porous material.
At the end, the left piston will be near the porous material and all the gas will be in the right of the recipient.
Calling p1,V1,T1 the conditions of the gas when it is at left, and p2,V2,T2 at right, let's have:
From 1st. principle, we have:
\Delta U = Q - W = -W_{adiabatic}
Because the gas crosses the tube in adiabatic conditions, so:
W = p_{1}(0-V_{1}) + p_{2}(V_{2}-0) = p_{2}V_{2} - p_{1}V_{1} = - \Delta U = - (U_{2} - U_{1})
then...
<br />
U_{2} + p_{2}V_{2} = U_{1} + p_{1}V_{1} ...
<br />
H_{2} = H_{1}
So the entalpy is the same at the begin than at the end, but that process is not reversible so its not isoentalpic.
To calculate the variation of entropy in that process, we can use that entropy is an state function to build a isoentalpic process between state 1 and 2. Using the definition of entalpy (without interchange of material with the exterior, to simplify): dH = -TdS - Vdp and because dH = 0, let's have:
TdS = Vdp
Solving that differential equation between states 1 and 2 you will have the variation of entropy. Obviously you need the relation f(p,V,T) (that is, the thermal equation) to do.
MiGUi
(If a term is not correctly spelt or so, I'm sorry but I'm not english, I do what I can :) )