05.10.2013 Views

Polymers in Confined Geometry.pdf

Polymers in Confined Geometry.pdf

Polymers in Confined Geometry.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.4. SIMULATION OF UNCONFINED WORM-LIKE CHAINS 49<br />

ˆt1<br />

θ1<br />

ˆt2<br />

θ2<br />

ˆtm<br />

˜tm<br />

Figure 4.1: Trial move <strong>in</strong> MC-algorithm for the WLC. The randomly chosen segment m is<br />

changed, whereas all other tangents are kept fixed.<br />

posit<strong>in</strong>g m with δθ where the angle θm → ˜ θm = θm + δθ must be changed. We<br />

tested this algorithm but it did not show any major advantage neither <strong>in</strong> accuracy<br />

nor speed (one has to calculate trigonometrical functions <strong>in</strong> every step). S<strong>in</strong>ce it<br />

is not easily generalized <strong>in</strong>to three dimensions the preference has been given to<br />

the first algorithm, s<strong>in</strong>ce it can supply a general code for arbitrary dimensions.<br />

Step 2: For the chosen trial move the change <strong>in</strong> configuration energy ∆e must<br />

be calculated. The advantage of the algorithm is, that this energy change is given<br />

by a simple term, s<strong>in</strong>ce the orientation on only two jo<strong>in</strong>ts is changed (see aga<strong>in</strong><br />

figure 4.1)<br />

∆e = −k<br />

N<br />

i=1<br />

˜t (n)<br />

i<br />

<br />

= −k ˜t (n)<br />

m − ˆt (n)<br />

<br />

m ·<br />

· ˜t (n)<br />

i+1 − ˆt (n)<br />

i<br />

θm<br />

˜θm<br />

ˆtm+1<br />

· ˆt (n)<br />

<br />

i+1<br />

<br />

ˆt (n)<br />

m+1 + ˆt (n)<br />

<br />

m−1<br />

θm+1<br />

ˆtm+1<br />

θm+1<br />

ˆtN<br />

θN<br />

ˆtN<br />

θN<br />

for: i = 1, . . . , N, (4.27)<br />

which can be easily implemented by us<strong>in</strong>g two dummy segments with length zero<br />

ˆt0 = ˆtN+1 = 0.<br />

Step 3: Accord<strong>in</strong>g to the Metropolis algorithm <strong>in</strong>troduced <strong>in</strong> section 4.3.2<br />

this move is f<strong>in</strong>ally accepted, if the total configuration energy is reduced ∆e < 0.<br />

In the case of an energy <strong>in</strong>crease, it is accepted correspond<strong>in</strong>g to the Boltzmann<br />

weight x < exp(−∆e) by draw<strong>in</strong>g another random number 0 ≤ x < 1. Otherwise<br />

the move is rejected<br />

ˆt (n+1)<br />

i<br />

=<br />

˜t (n)<br />

i<br />

accepted<br />

. (4.28)<br />

ˆt (n)<br />

i rejected<br />

Step 4 is set <strong>in</strong> brackets, s<strong>in</strong>ce it is not useful to take a samples from the<br />

configuration dur<strong>in</strong>g every MC-step. Two successive configurations are normally<br />

strongly correlated. So we estimate the correlation time τ of one observable (see<br />

page 44), which is taken as the sample step size, after which a configuration is<br />

taken. This correlation time is also used to determ<strong>in</strong>e the error estimate on the<br />

averages.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!