exercises:2021_uzh_acpc2:ex01
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
exercises:2021_uzh_acpc2:ex01 [2021/04/26 07:23] – [Part II: Force Field Parameter] mrossmannek | exercises:2021_uzh_acpc2:ex01 [2021/05/17 11:35] (current) – [Part III: Radial distribution function] Fix type mrossmannek | ||
---|---|---|---|
Line 278: | Line 278: | ||
</ | </ | ||
- | ===== Part III: Radial distribution | + | ===== Part III: Radial distribution |
+ | In this section we analyze the dependence of the radial distribution function (rdf), g(r), on the temperature of the system. To do so, you should plot g(r) against various temperatures and examine the effects. | ||
+ | You can use VMD (as explained below) or write your own program (Fortran, C, C++, Python etc.) to calculate the rdf. | ||
- | Use VMD or write your own program (Fortran, C, C++, Python etc.) to calculate radial distribution g(r). Plot g(r), and against various the temperatures to examine the effects. | + | VMD comes with an extension for exactly this purpose: In the VMD Main window open “Extensions → Analysis” click on “Radial Pair Distribution function g(r)“. In the appearing window use “Utilities → Set unit cell dimensions” to tell VMD the size of the simulation box you used. After that use Selection 1 and 2 to define the atomic types that you want to calculate the rdf for, for example “element Ar”. In the plot window, use the " |
- | VMD comes with an extension for exactly this purpose: In the VMD Main window open “Extensions → Analysis” click on “Radial Pair Distribution function g(r). In the appearing window use “Utilities → Set unit cell dimensions” to let VMD know the simulation box you used. After that use Selection 1 and 2 to define the atomic types that you want to calculate the rdf for, for example “element Ar”. In the plot window, use " | + | |
< | < | ||
* Plot g(r) at 84, 300 and 400 K into the same graph. | * Plot g(r) at 84, 300 and 400 K into the same graph. | ||
- | * What are the differences in the height of the first peak, and why does temperature contribute to the differences? | + | * What are the differences in the height of the first peak, and why/how does the temperature contribute to the differences? |
- | * Compared | + | * Compare your results |
</ | </ | ||
<code - exp_gr.dat> | <code - exp_gr.dat> | ||
Line 441: | Line 442: | ||
10.2150 | 10.2150 | ||
10.2831 | 10.2831 | ||
- | 10.3512 | + | 10.3512 |
10.4193 | 10.4193 | ||
10.4874 | 10.4874 | ||
Line 454: | Line 455: | ||
</ | </ | ||
- | ===== Part IV: Ensembles | + | ===== Part IV: Other Ensembles |
- | In previous | + | In the previous |
- | Step up NVT calculation, | + | To set up an NVT calculation, |
Line 475: | Line 476: | ||
| | ||
| | ||
- | Step up NPT calculation, | + | To set up an NPT calculation, |
& | & | ||
Line 502: | Line 503: | ||
< | < | ||
**TASK** | **TASK** | ||
- | *Run calculation using NVT at 300K, check the temperature, and energy of the whole system, and compare the result to NVE (300K), and rationalize | + | |
- | *Run calculation using NVT (300K) until the system is equilibrated then run NVE, check the temperature, and energy of the whole system, and compare to previous NVE simulation. | + | |
- | | + | |
+ | </ | ||
+ | |||
+ | <note tip> | ||
+ | You have multiple options on how to restart a CP2K calculation off of a previous one. What all approaches have in common, is that you need to make use of the RESTART-files which are automatically written by CP2K (unless you explicitly disable them). | ||
+ | For the purposes of this example, you should see a file called '' | ||
+ | These files are nothing but another input file. However, their parameters are set such that they continue a CP2K calculation from the last step of the simulation which generated the RESTART file. | ||
+ | Here are two options for how you can use these RESTART-files: | ||
+ | 1. Directly using the RESTART as an input. | ||
+ | - You can copy the RESTART file to a new input file: < | ||
+ | - Now you can change the input to your liking (e.g. change the ensemble, etc.) | ||
+ | - And finally simply run CP2K with the new input file: < | ||
+ | 2. You can also tell CP2K to load a specific RESTART-file. | ||
+ | - Write a new input file as usual: < | ||
+ | - Add an [[https:// | ||
+ | < | ||
+ | & | ||
+ | RESTART_FILE_NAME ar108-1.restart | ||
+ | &END EXT_RESTART</ | ||
+ | - And now, again, simply run CP2K: < | ||
</ | </ |
exercises/2021_uzh_acpc2/ex01.1619421817.txt.gz · Last modified: 2021/04/26 07:23 by mrossmannek