I know shaft work in is expressed as $$ \int v dp $$
In a turbine with fluid in at P1 and V1, and fluid out at P2 and V2, the fluid 1 exerts pressure on the turbine blades equal to P1. The blades must then exert pressure back such that P_blades+P2 = P1. As the fluid undergoes expansion over the blades, it does boundary work $$\int p dv $$
since p is always equal to P_blades+P2, clearly $$\int p_{blades} dv = \int p dv -\int p_2 dv$$
And the integral of p_blades is considered the shaft work.
Thus it seems the shaft work the boundary work - atmospheric work. However when I do problems with this method I do not get the right answer (the answer with the vdp integral).
Why is this model not correct?