exercises:2017_ethz_mmm:replica_2017
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
exercises:2017_ethz_mmm:replica_2017 [2017/05/10 14:56] – dpasserone | exercises:2017_ethz_mmm:replica_2017 [2017/05/11 08:05] – dpasserone | ||
---|---|---|---|
Line 32: | Line 32: | ||
7) Change your password as in point 4) using TMP-PASSW2 as old password and set EMPA-PASSW | 7) Change your password as in point 4) using TMP-PASSW2 as old password and set EMPA-PASSW | ||
+ | </ | ||
============================================ | ============================================ | ||
Line 145: | Line 146: | ||
</ | </ | ||
- | Finally, this is the command to run the tempering, with an exchange move attempted every 1000 step and an initial temperature $t that is different from replica to replica. The last numbers are random seeds that are used for choosing which replica to exchange and for the Metropolis criterion. | + | Finally, this is the command to run the tempering, with an exchange move attempted every 1000 step of molecular dynamics |
< | < | ||
Line 151: | Line 152: | ||
</ | </ | ||
+ | ===== Adapting the output files ===== | ||
+ | We must now make some postprocessing on the output files. The goal is to performs averages at different temperatures. These averages are enhanced by the exchanges that were performed between different molecular dynamics replica. Note that temperature is set by a thermostat. | ||
+ | |||
+ | <note tip> | ||
+ | **Example**. Processor 0 starts with temperature T0=2 K, processor 1 with temperature T1=2.44 K. | ||
+ | After 1000 steps, an exchange step is attempted and accepted with some probability (see theory slides, and also the paper | ||
+ | [[doi> | ||
+ | But you can see it also as the **configurations** of T0=2 K and the one of T1=2.44 K are changing, thus improving the sampling at both temperature. | ||
+ | </ | ||
+ | |||
+ | The script '' | ||
+ | |||
+ | <note tip> | ||
+ | - prunes the '' | ||
+ | - For all the '' | ||
+ | - Compute the **q4** order parameter for all structure files and create '' | ||
+ | - now paste the '' | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Reordering the replica: one temperature, | ||
+ | |||
+ | At this point, we have a set of '' | ||
+ | |||
+ | <note tip> | ||
+ | * Consider each file t_epot_q4_etot.*.out (processor by processor). Say you consider the number 5 (6th replica): '' | ||
+ | * At the step 50000, the file shows the following line: | ||
+ | '' | ||
+ | |||
+ | indicating a temperature of 6.7133746. | ||
+ | * The file '' | ||
+ | '' | ||
+ | |||
+ | indicating that at the 6th replica (column **7**), we have the temperature **6**, which is (see input file) T=6.63 K. Meaning that at step 50000, the thermostat is keeping replica 5 around the temperature T=6.63 K. | ||
+ | * This means that this line has to be stored in the temperature file number **6**. | ||
+ | </ | ||
+ | |||
+ | At the end of the procedure performed by the small script section: | ||
+ | <code bash> | ||
+ | NP=16 | ||
+ | NP1=$[NP-1] | ||
+ | rm torder* | ||
+ | for repl in `seq 0 $NP1` | ||
+ | do | ||
+ | echo $repl | ||
+ | awk -v rep=$repl ' | ||
+ | i=0 | ||
+ | for a in `cat rep_$repl` | ||
+ | do | ||
+ | i=$[i+1] | ||
+ | head -$i t_epot_q4_etot.$repl.out | tail -1 >> torder.$a | ||
+ | done | ||
+ | done | ||
+ | </ | ||
exercises/2017_ethz_mmm/replica_2017.txt · Last modified: 2020/08/21 10:15 by 127.0.0.1