Acessibilidade / Reportar erro

Wang-Landau sampling in three-dimensional polymers

Abstract

Monte Carlo simulations using Wang-Landau sampling are performed to study three-dimensional chains of homopolymers on a lattice. We confirm the accuracy of the method by calculating the thermodynamic properties of this system. Our results are in good agreement with those obtained using Metropolis importance sampling. This algorithm enables one to accurately simulate the usually hardly accessible low-temperature regions since it determines the density of states in a single simulation.

Homopolymers; Wang-Landau sampling; Interaction self avoiding walk


Wang-Landau sampling in three-dimensional polymers

A. G. Cunha NettoI; C. J. SilvaI; A. A. CaparicaI; R. DickmanII

IInstituto de Física, Universidade Federal de Goi´as, C. P.131, 74.001-970, Goiânia (GO), Brazil

IIUniversidade Federal de Minas Gerais, C.P.702, Belo Horizonte (MG), Brazil

ABSTRACT

Monte Carlo simulations using Wang-Landau sampling are performed to study three-dimensional chains of homopolymers on a lattice. We confirm the accuracy of the method by calculating the thermodynamic properties of this system. Our results are in good agreement with those obtained using Metropolis importance sampling. This algorithm enables one to accurately simulate the usually hardly accessible low-temperature regions since it determines the density of states in a single simulation.

Keywords: Homopolymers; Wang-Landau sampling; Interaction self avoiding walk

I. INTRODUCTION

With the rapid development of computer processors, numerical simulations using the Monte Carlo method have become a well established tool for the study of proteins, polymers and spin-glass models. When a Monte Carlo simulation using Metropolis importance sampling [1] is carried out at a fixed temperature, the quality of the data depends on the distance from criticality, and therefore, multiple computer runs should be performed for each temperature. In order to speed up the simulation several methods have been suggested to overcome problems such as slow dynamics which makes the Metropolis algorithm inefficient, and to study systems with a rough energy landscape with multiple local minima in free energy. Important examples are the cluster-flip Swendsen-Wang algorithm [2], which has been used to reduce critical slowing down at second order phase transitions, the multicanonical method [3] which was introduced to overcome the barrier between coexisting phases at first order phase transitions, the broad histogram method [4] which directly calculates the density of states with only one computer run, and the flat histogram method [5] which generates a flat histogram in energy space similar to multicanonical simulations. The drawback of the flat histogram method is the slow diffusion of the random walk which is the same as in the multicanonical method. Nevertheless, no method is more efficient than that recently proposed by Wang and Landau [6-9] which allows one to get around these difficulties even for large systems.

In this work we present results of simulations of three-dimensional lattice polymer chains [10] using Wang-Landau sampling, and calculate thermodynamic properties of the system. The method is described in Sec. II. Sec. III provides a brief background on the algorithm. The results are given in Sec. IV and we summarize and conclude in Sec. V.

II. THE MODEL

We consider a homopolymer consisting of N monomers which may assume any self avoiding walk (SAW) configuration on a three-dimensional lattice. Assuming that the polymer is in a bad solvent, there is an effective monomer-monomer attraction in addition to the self-avoidance constraint representing excluded volume. For every pair of nonbonded nearest-neighbor monomers the energy of the polymer is reduced by e (See Fig. 1).


Therefore, the interaction between two nonbonded monomers i and j is given by

where d is the lattice constant.

The Hamiltonian for the model can be written as

where s = 1 (0) if the site i is occupied (vacant), and the sum is over nearest-neighbor pairs [11]. (The sum is understood to exclude pairs of bonded segments along the chain). We are interested in the equilibrium properties at temperature T. (In the following, temperature is measured in units of e/kB, where kB is the Boltzman's constant.)

In order to generate a Markov process for sampling configurations we have first to define a protocol of movements. We used the so-called reptation or "slithering snake" move which consists of randomly adding a monomer to one end of the chain and removing a monomer from the other end, maintaining the size of the polymer constant. We define one Monte Carlo step as N attempted moves. At certain moments, one end of the chain may not be able to move, but successive motions of the other end release it from the trap.

III. THE METHOD

The Wang-Landau algorithm calculates the density of states g(E) by carrying out a random walk in energy space with an acceptance probability proportional to 1/g(E) instead of the usual Boltzmann weight e used in the conventional Monte Carlo simulation. The probability of energy E changes therefore from g(E)e in the Metropolis scheme to an almost constant probability in the Wang-Landau method. As a result the probability minimum which appears at first order phase transitions, for example, practically vanishes. The simulation is performed such that if E1 is the energy of the current configuration and E2 is the energy of a possible new configuration, the acceptance probability is given by

For each accepted configuration we accumulate an energy histogram H(E). Since the density of states is not known a priori, Wang and Landau proposed to set g(E) = 1 initially, for all energy levels.

To study large systems the energy space is divided into bins and the random walk is carried out independently in each segment. As the random walk in energy space is performed, whenever a move to a configuration with energy E is accepted the density of states is updated by multiplying it by a "modification factor" f > 1 that accelerates the diffusion of the random walk, and an unit is added to the histogram H(E), i.e.

The initial choice of f is f0 = e = 2.71828.... The density of states is multiplied by f until the accumulated histogram H(E) is flat. We then reduce f by setting

and resetting H(E) = 0 for all energy values.

This process is repeated; the simulation converges to the true value of g(E) when f is approximately 1. In our simulations the criterion of flatness was taken as each value of the histogram reaching at least 80% of the mean value á H(E) ñ. The histograms are generally checked after each 1000 Monte Carlo steps.

IV. RESULTS

In this section we present results obtained for chains of lattice homopolymers using the Wang-Landau algorithm and compare them with those obtained using Metropolis algorithm importance sampling. In Fig. 2 we show the density of states for a chain of 50 monomers.


The ground state is achieved by shaping a configuration rolled up like a snail (see Fig. 3). The energy of this configuration is obtained by counting the number of nonbonded nearest-neighbor pairs. In our simulations the polymer was always set initially in this configuration and, using the algorithm described above, the density of states was estimated as a result of a random walk in the energy space.


Knowing the density of states, one can calculate any thermodynamic property A of the system through the canonical average

where á A ñE is the microcanonical average of observable A obtained during the simulation, g(E) is the density of states for each energy level E, and Z is the partition function

In Monte Carlo simulations using Metropolis sampling we fix the temperature and determine the thermodynamic average áAñT. Therefore a new simulation is needed for each value of temperature. In Wang-Landau sampling we estimate the density of states and then calculate any thermodynamic property of interest by means of a simple algebraic operation. The computational time in our simulations was about ten times smaller using the Wang-Landau method as compared with the Metropolis algorithm.

In Fig. 4 we show the result for the internal energy via Wang-Landau sampling, evaluated using the relation


and compare it with that obtained via the Metropolis algorithm.

The specific heat can be determined from the fluctuations in the internal energy

The temperature dependence of the specific heat is shown in Fig. 5. Much more CPU time would be needed to obtain significantly better results using the Metropolis algorithm. One can see clearly from these results that the Wang-Landau method yields a better description in the low-temperature regime.


The temperature dependence of the mean square end-to-end distance, given by

is shown in Fig. 6.


Differentiating expression 6 with regard to temperature using á R2ñ as the observable A, we obtain the fluctuation of the mean square end-to-end distance as

The temperature dependence of the derivative of the mean square end-to-end distance is shown in Fig. 7. The coil-globule phase transition is characterized by a peak in the derivative of á R2ñ similar to the specific heat. We believe that the low-temperature peak corresponds to excitations of the surface of the typically compact, folded configuration. This effect is more pronounced in short chains.


An advantage of this algorithm is that we can readily calculate the free energy and entropy, quantities that are not directly accessible in conventional Monte Carlo simulations. In terms of the density of states, the free energy can be calculated from the partition function

The temperature dependence of the free energy obtained from our simulation is shown in Fig. 8 for a homopolymer with N = 50 monomers.


The entropy is a key thermodynamic quantity that cannot be calculated directly by conventional Monte Carlo simulation. It can be estimated by integration over other thermodynamic quantities, such as specific heat, but these calculations are somewhat unreliable since the specific heat itself is not easy to estimate accurately. With an accurate density of states estimated by the Wang-Landau method, the entropy can be calculated simply using

In Fig. 9 we show our result for the temperature dependence of the entropy for a homopolymer chain of N = 50 monomers.


V. CONCLUSIONS

We study the thermodynamic behavior of a three-dimensional homopolymer chain in lattice using the Wang-Landau sampling. We show that the density of states directly obtained by this algorithm enables one to calculate thermodynamic properties even for large systems with only one computer run. We also note from the temperature dependence of the specific heat and the mean square end-to-end distance that the low-temperature region is better explored by this method than by standard Monte Carlo simulation. Finally, thermodynamic quantities such as the free energy and the entropy, which are not easily accessible by conventional methods, are directly estimated from the density of states.

Acknowledgments

The authors would like to thank the Coordenação de Aperfeiçoamento de Pessoal de Nível Superior (CAPES), the Conselho Nacional de Desenvolvimento Científico e Tecnológico (CNPq) and the Fundação de Apoio à Pesquisa (FUNAPE-UFG) for financial support.

Received on 31 October, 2005

  • [1] N. Metropolis, A. W. Rosenbluth, M. N. Rosenbluth, A. H. Teller, and E. Teller, J. Chem. Phys. 21 1087 (1953).
  • [2] R. H. Swendsen and J.-S. Wang, Phys. Rev. Lett. 58, 86 (1987).
  • [3] B. A. Berg and T. Neuhaus, Phys. Rev. Lett. 68, 9 (1992).
  • [4] P. M. C. de Oliveira, Eur. Phys. J. B 6, 111 (1998).
  • [5] J.-S. Wang, Eur. Phys. J. B 8, 287 (1999).
  • [6] F. Wang and D. P. Landau, Phys. Rev. Lett. 86, 2050 (2001).
  • [7] F. Wang and D. P. Landau, Phys. Rev. E 64, 056101 (2001).
  • [8] D. P. Landau and F. Wang, Braz. J. Phys. 34, 354 (2004).
  • [9] D. P. Landau, S.-H. Tsai, and M. Exler, Am. J. Phys. 72, 1294 (2004).
  • [10] P. G. de Gennes, Scaling Concepts in Polymer Physics (Cornell Univ. Press, Ithaca, NY, 1979).
  • [11] R. Dickman, J. Chem. Phys. 96, 1516 (1992).

Publication Dates

  • Publication in this collection
    23 Oct 2006
  • Date of issue
    Sept 2006

History

  • Received
    31 Oct 2005
Sociedade Brasileira de Física Caixa Postal 66328, 05315-970 São Paulo SP - Brazil, Tel.: +55 11 3091-6922, Fax: (55 11) 3816-2063 - São Paulo - SP - Brazil
E-mail: sbfisica@sbfisica.org.br