[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ESPResSo-users] randomness in Langevin thermostat
From: |
Henri |
Subject: |
Re: [ESPResSo-users] randomness in Langevin thermostat |
Date: |
Tue, 02 Jan 2018 09:51:26 +1300 |
Hi Reza,
The random number generator can be seeded by setting the value "system.seed".
You can find out about it in the documentation.
http://espressomd.org/html/doc/espressomd.html#espressomd.system.System.seed
The samples folder also has a minimal example of its usage.
https://github.com/espressomd/espresso/blob/python/samples/minimal_random_number_generator.py
Happy new year to you too!
Kind regards,
Henri
On Mon, 2018-01-01 at 23:16 +0330, Mohammadreza Niknam Hamidabad wrote:
> Hi all,
>
> I've got a confusing problem. I have a Langevin thermostat in my system and I
> put particles in my
> simulation box. Every time I run for a 1000 time steps and print the position
> of a specific
> particle, I've got exact same X Y Z for that particle in all of my runs. So
> how can I simulate
> movement of a drop of ink in water (Diffusion)?
> Is there any seed for randomness in Langevin?
> " system.thermostat.set_langevin(kT=1.2, gamma=1.0) "
>
> By the way happy new year.
>
> sincere,
> Reza
>
>