[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ESPResSo] bug in random.tcl in mbtools
From: |
Jacob Kirkensgaard |
Subject: |
[ESPResSo] bug in random.tcl in mbtools |
Date: |
Tue, 17 Mar 2009 15:47:42 +0100 |
Hi all mbtools users
In the file random.tcl in the mbtools package the following lines are
found
# Now choose a random orientation vector. Actually it's not
# strictly random if we do it like this (fix)
lappend orient [expr [t_random]]
lappend orient [expr [t_random]]
lappend orient [expr [t_random]]
I think replacing with these lines should fix it:
lappend orient [expr 2*[t_random]-1]
lappend orient [expr 2*[t_random]-1]
lappend orient [expr 2*[t_random]-1]
This means we are now sampling all directions in space instead of only
the cone consisting of vectors with positive coordinates.
Best,
Jacob Kirkensgaard
Copenhagen University
- [ESPResSo] bug in random.tcl in mbtools,
Jacob Kirkensgaard <=
- Re: [ESPResSo] bug in random.tcl in mbtools, Tristan Bereau, 2009/03/18
- Re: [ESPResSo] bug in random.tcl in mbtools, duenweg, 2009/03/19
- Re: [ESPResSo] bug in random.tcl in mbtools, Jacob Kirkensgaard, 2009/03/19
- Re: [ESPResSo] bug in random.tcl in mbtools, Tristan Bereau, 2009/03/19
- Re: [ESPResSo] bug in random.tcl in mbtools, Torsten Stuehn, 2009/03/19
- Re: [ESPResSo] bug in random.tcl in mbtools, Markus Deserno, 2009/03/19
- Re: [ESPResSo] bug in random.tcl in mbtools, duenweg, 2009/03/19
- Re: [ESPResSo] bug in random.tcl in mbtools, Markus Deserno, 2009/03/19