Input, Output, and Workflow

An overview of key files and basic operation

Input

Dissolve takes a single main input file that contains all of the definitions for species, configurations, forcefield parameters, and the actual description of what simulation to perform. Essentially, this file is a blueprint for the entire simulation, but does not contain any information on the current state of the simulation. The current state of the simulation - every calculated property, every coordinate of every atom etc. - is stored in the restart file. The restart file, if it exists, is read in immediately after Dissolve has finished parsing the main input file, and is written out periodically as the simulation progresses. If you remove your restart file (or choose to ignore it with the -i switch) then your simulation is effectively reset, and begins again from the start with no memory of anything.

The restart file is named after the input file, with the suffix .restart appended - e.g. if the input file is water-3000.txt the restart file for the simulation will be water-3000.txt.restart. Dissolve also keeps a second, backup restart file with the suffix .restart.bak, containing the previous saved state of the simulation.

External Data

Certain modules may require external data - this data does not have to be stored in the same directory as the main input file, since Dissolve uses relative paths for any referenced external files.

Workflow

Once the input file(s) have been successfully loaded, Dissolve enters its main loop, beginning from the last iteration number stored in the restart file, if present. The main loop steps through all defined layers of modules and executes them sequentially, at the frequencies defined. This is the core of Dissolve’contained in that tell Dissolve “what to do”.

From the command-line, a useful number of iterations to run can be specified with the -n command-line option.

Output

Dissolve writes its restart file every 10 iterations of the main loop, unless specified otherwise. For safety, a backup of the previous restart file is kept in .restart.prev, in case something bad should happen. It is important to note that no other output files are written. Individual modules may provide options to save specific data or calculated quantities as the simulation progresses, but the Dissolve GUI should be the principal tool for observing progress in a simulation.

Last modified March 10, 2023: Web docs styling (#1350) (43924dc)