Hello,
Following your advice, I have been digging in the examples to see how a REMD simulation is performed with i-pi.
Seems like the test that I should follow (if that's not the best, please let me know) is:
IPI_HOME/examples/regtest/ph2/remd-nvt/remd_nvt.xml
I was not able to find documentation on REMD in the manual, so I would like to ask a few questions about it.
1. At the beginning of the xml file, there is a comment:
<!-- REGTEST
COMMAND(8) i-pi-driver -h localhost -p 31415 -m sg -o 30.0
ENDREGTEST -->
<!-- With REMD is necessary to use threading='False' in regtests -->
Does it mean we cannot use multiple threads for different replicas, or is only for the test? Let's say I have 16 threads available to perform the simulation, and my energy function can calculate the energy with 2 threads. This means that I would be able to run 8 parallel energy calculations with two threads each (I am using openmp parallelization in the energy calculation). How would I ask for that in the xml? From the manual, seems like I can run multiple instances of my driver (if I understood it properly) connected to the same socket. Would it be enough to run then 8 instances of the driver?
2. I also see in that example, that one needs to set a system for each replica, and for each system we can set the number of beads. I assume that is the way to run RE-PIMD, correct?
3. Looking into ipi/inputs/smotion/remd.py, i assume that the stride keyword in:
<smotion mode="remd">
<remd>
<stride> 2 </stride>
</remd>
</smotion>
is the exchange rate between replicas. Is that correct?
4. When the REMD runs, there will be exchange of temperatures in the simulation. Let's say we have two replicas R1 and R2, initially at Ta and Tb respectively. At a given time t, R1 and R2 exchange the temperature, so not R1 is at T=Tb, and R2 is at T=Ta. Let's assume we are saving the trajectory of R1 and R2 in R1_pos.xyz and R2_pos.xyz. The configurations in R1_pos.xyz will always contain the configurations of R1, independently of which is it's temperature, or will that file contain the configurations at Ta independently of the replica ID?
That's all for now. Thanks in advance!