When a black hole is enclosed in cavity asymptotically flat space, an effective volume can be introduced, and pressure further defined as its conjugate variable. By this means, extended phase space constructed cavity, which resembles that the anti-de Sitter (AdS) many aspects. However, there are still some notable dissimilarities simultaneously. In work, Joule--Thomson (JT) effect of holes, wid...