Constant-pressure Monte Carlo
In constant-pressure Monte Carlo a trial change in the volume becomes one of the Monte Carlo moves. The weighting function, w, is given by (Ref 1 Eq. 2)
for a change in volume, , one has
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle r={\frac {w_{\rm {new}}}{w_{\rm {old}}}}=\exp \left[-\beta \left(\Delta U+p\Delta V-Nk_{B}T\ln {\frac {V+\Delta V}{V}}\right)\right]}
If then the move is accepted, and if then r is compared with a random number . If then the move is accepted.