Subsections

# NPT Ensemble

## The Problem

The constant volume ensemble is not very convenient for the study of phase transitions. Some experimental values, like the excess properties, are measured at constant pressure, not at constant volume, therefore it would be nice to have a method to simulate the isobaric conditions also. The average of the value in the NPT ensemble is given as: here we again made the transformation to the primed'' coordinates, rescaling them by the box dimensions. Now we have to develop a Markov chain that samples the phase space with the probability distribution proportional to .Metropolis algorithm is implemented in the same way as for NVT ensemble, but now we also allow the volume to change. We have two kinds of the Monte Carlo moves: particles displacement, performed the same way as in the NVT simulations, and Volume change. The acceptance criterium is, of course, modified now, as instead of the energy difference between the old and new states, it is based on the difference of enthalpies: (7)

## NPT MC algorithm

1.
Prepare the initial configuration of the system with the desired density (box size and number of particles). Usually just a simple cubic lattice works.
2.
Loop through the particles:
• Pick up a particle and decide its new position by choosing the displacement components at random ( is a random number from 0 to 1, is the maximum allowed displacement).
• Calculate the energy change, induced by the displacement and decide, whether accept it or not, according to the Metropolis criterium.
• If the new configuration is accepted, update position, energy, etc.
• Pick the next particle, etc.

3.
Make a volume change as . Calculate new energy of the system. and from equation (7), and decide, whether to accept it or not, based on the Metropolis criterium.
4.
Calculate necessary averages, print out the results, etc. Go back to step 2. Next: Quiz Up: Calculation of Thermodynamic Properties. Previous: Thermodynamic Properties in NVT

© 1997 Boris Veytsman and Michael Kotelyanskii
Thu Nov 13 19:07:05 EST 1997
{"ft_lang_label":"__label__en","ft_lang_prob":0.92127645,"math_prob":0.9378843,"size":1151,"snap":"2022-05-2022-21","text_gpt3_token_len":240,"char_repetition_ratio":0.09851787,"word_repetition_ratio":0.0,"special_character_ratio":0.19200695,"punctuation_ratio":0.119617224,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9722077,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26],"im_url_duplicate_count":[null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-05-19T12:16:03Z\",\"WARC-Record-ID\":\"<urn:uuid:a7be1ade-fb1f-489f-a1fa-236a2097893a>\",\"Content-Length\":\"7150\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:913b8599-591f-48c5-9d66-cb389de9b535>\",\"WARC-Concurrent-To\":\"<urn:uuid:ec2bdd89-fc1d-4966-b4e1-08307ab7ae1c>\",\"WARC-IP-Address\":\"83.229.67.40\",\"WARC-Target-URI\":\"http://borisv.lk.net/matsc597c-1997/simulations/Lecture4/node2.html\",\"WARC-Payload-Digest\":\"sha1:SZV45HEEFWCGAPBWE74LZQ2THT4GQ7VK\",\"WARC-Block-Digest\":\"sha1:7DCPYCDKQPNHTICRRQ6BXJWNTHKN35OP\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-21/CC-MAIN-2022-21_segments_1652662527626.15_warc_CC-MAIN-20220519105247-20220519135247-00238.warc.gz\"}"}