PSCF v1.1
|
Model and Parameters (Prev) Running a Program (Next)
To perform a typical self-consistent field theory (SCFT) calculation, a PSCF program generally reads three different types of input file:
All PSCF programs use similar formats for the parameter and command files. Several different formats are used for field files.
When any PSCF program is executed, the parameter file is processed first. This file defines the basic parameters of a physical problem of interest, and is used to initialize the state of the program. The parameter file contains basic physical information about chemical structures (e.g., monomer properties and block polymer structures), the composition of the system of interest, interactions among the constituents (Flory-Huggins chi parameters), a description of the spatial domain of interest (e.g., a unit cell of a periodic structure), a description of a spatial discretization of that domain, and some other algorithmic parameters. The name of the parameter file is specified as command line argument when a PSCF program is invoked, as the argument of the "-p" command line option.
The parameter file for a simple SCFT calculation generally contains the following 4 sections:
An example of a simple parameter file for the pscf_fd program is presented and discussed here .
A field file contains a description of a set of fields (i.e., functions of position) that are associated with different monomer types. Every SCFT calculation must read an input file that contains an initial guess for the self-consistent field chemical potential fields. The name of the required input field file is given as a parameter to a command in the command file.
The command file is processed after the parameter file, and controls program flow after initialization. The command file is a script that contains a list of commands that are interpreted and executed in the order they appear within the file. The name of the command file is also specified by a command line argument (the argument of the "-c" command line option).
Many commands in a command file require field data to be read from or written to specific data files. For example, the first step in solving a SCFT problem is usually to read an initial guess for the chemical potential fields from an input field file. The last steps of such a computation may then include writing the converged chemical potential and monomer concentration fields to output files. The names of these input and output field files and various other data files are specified as parameters of commands within the command file.
Each line of a command file starts with a capitalized command name, followed by zero or more arguments. A simple command file for using one of the pscf_pc programs to perform an SCFT calculation might look like this:
This file instructs the program to:
Model and Parameters (Prev) User Guide (Up) Running a Program (Next)