Polymers in Confined Geometry.pdf
Polymers in Confined Geometry.pdf
Polymers in Confined Geometry.pdf
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
4.4. SIMULATION OF UNCONFINED WORM-LIKE CHAINS 47<br />
So the average and the error are easily calculated with m<strong>in</strong>or storage overhead.<br />
The only drawback is, when a block<strong>in</strong>g technique has to be used to free the<br />
samples of the ‘omnipresent’ correlation <strong>in</strong> MC simulations, then all the averages<br />
have to be stored anyway.<br />
4.3.5 Random number generators<br />
The quality of Monte-Carlo simulations depends crucially on the quality of the<br />
pseudo-random numbers used. The quality of the l<strong>in</strong>ear congruential generators,<br />
as for example implemented <strong>in</strong> most standard libraries, have poor statistical<br />
quality and a very small period. Other generators have to be used. There is a<br />
large list of different types but most of them fail to pass statistical tests rather<br />
spectacularly. There is no exact measure for the quality of a generator but there<br />
exists a list of structural mathematical and statistical tests which give a ‘feel<strong>in</strong>g’<br />
for the quality.<br />
A good overview over the important details of random number generators and<br />
examples is given <strong>in</strong> the review [28].<br />
A fast generator with sufficient quality is based on the l<strong>in</strong>ear feedback shift<br />
register or Tausworthe generator (see [27] and [29]). The implementation from<br />
the GNU Scientific Library 5 has been used <strong>in</strong> our simulation. The advantage of<br />
this generator, besides its structural mathematical qualities, is its speed. The<br />
random number generation consumes up to one forth of the computational time<br />
of our simulations. Test with different generator have been performed, but the<br />
Tausworthe generator seems to be good enough.<br />
If for some reason an even better generator is needed, the RANLUX generator<br />
described <strong>in</strong> [30] should be used, which can provide, by choice of a numerical<br />
constant, uncorrelated numbers down to the last digit of the used float<strong>in</strong>g po<strong>in</strong>t<br />
variable. This has been theoretically justified by chaos theory. The quality of<br />
this generator goes on costs of computational speed which is up to 20 times lower<br />
than <strong>in</strong> the aforementioned generator.<br />
4.4 Simulation of unconf<strong>in</strong>ed worm-like cha<strong>in</strong>s<br />
Simulation of semi-flexible polymers are based on the discrete worm-like cha<strong>in</strong><br />
model as <strong>in</strong>troduced <strong>in</strong> section 2.3.2. The basic Hamiltonian is given by eq. (2.13),<br />
which can be directly used to perform simulations<br />
N−1 <br />
e = βH ({ti}) = −k ˆti · ˆti+1 with k = βεl 2 , (4.25)<br />
i=1<br />
5 http://www.gnu.org/software/gsl/manual/gsl-ref 17.html#SEC262 (17.11.2004)