If you're calculating at constant volume how do you take into account the effects of thermal expansion on the heat capacity? If there's thermal expansion and you hold it at a fixed volume, wouldn't the system be under extreme pressures? If so, wouldn't this pressure increase affect lattice properties and therefore specific heat?