In calculating work during an adiabatic process I sometimes see two different equations being used. In one equation they use the specific heat $C_v$ and in another equation $c_p$ is used, why is that?
- $W = -C_v*(T_2 - T_1)$
- $w = -c_p*(T_e - T_i)$
When to use equation 1 and when to use equation 2?
EDIT:
I think if pressure is constant then to calculate the work $c_p$ should be used. In case the volume stays constant $C_v$ should be used.
OR
When heat is leaving, $c_p$ should be used. When heat is entering $C_v$ should be used.