The basic structure of the program is as follows: There is a file
called model.h that contains all the information specific to a
particular model. For example, the model file that we include by
default with the LATTICEEASY distribution encodes a model with two
scalar fields and with the potential
(4.1) |
To run the program you will need to set the parameters for your run (grid size, time step, etc.), compile the program, and run. All of the adjustable parameters are in the file parameters.h. So the only two files that you as a user should ever need to modify are model.h and parameters.h. Of course you are free to examine the rest of the program and make any modifications to it you wish, as long as you leave the credits paragraph at the beginning of latticeeasy.cpp intact. The program is heavily commented so it should be possible for anyone with a good amount of programming experience to understand what the different parts are doing.
The following sections describe in turn how to run the program for a particular model and how to incorporate new models into the program.