RASPA3 3.0.13
A molecular simulation code for computing adsorption and diffusion in nanoporous materials
|
Restart-files are automatically written (and updated every 5000 cycles). Consider for example the following Gibbs-ensemble simulation
At the end of the simulation you will find in the output
-directory the files
To use these restart-files to start from the saved (and hopefully equilibrated) postions, first copy these files to the working directory (the location of the simulation.json
).
This is because the restart-files in the output-directory are overwritten every run. Next change the simulation.json
to use the restart-files
The contents of the restart files look like
So, the component-name as the key, and the value is an array of positions, and information on the simulation-box (during NPT or Gibbs the box changes). CO2 molecules are usually modeled as rigid
and implemented using quaternions.
The quaternions are computed from the positions using singular-value decompositions. The advantage is that, even when the positions are input by hand and do not satisfy the rigid constraints, an optimal mapping or best fit is obtained. For output restart-files, reading these in, should result in the exact same positions and energies.
Note because the positions are already equilibrated in this case, you can lower the amount of initialization cycles. This is the main point of using restart-file. But if you use the files to run at different conditions (for example a different temperature) you would still need a significant amount of initialization cycles.
The number of CreateNumberOfMolecules
should be put to zero, since the molecules are read from the restart-files. However, you still have the freedom to create additional molecules on top of what was read from the restart-files. This might be usefull to construct very high density systems.
Binary restart-files are usefull in case of system crashes or limits on running-times in computer clusters. By continuing from the binary restart-file you would get identical results are running the long job, i.e. it contains the entire state of the simulation. Note that therefore whatever you change in the simulation.json
is ignored since it uses the state from the binary restart-file.
During the simulation a file named restart_data.bin
is written out. The option to continue from this file is
Note not everything can be recovered, like written pdb-movies. The setting
controls how often the file is written out. The default is every 5000 cycles.
NOTE: the format of the binary-restart files will keep changing until version RASPA 3.1. That means that you probably cannot use restart-files from a different version. After the release of RASPA 3.1 we will start the process of making them backwards-compatible.