The determination of the bulk modulus in a constrained solid