PSCF v1.1
|
Parameter File - Syntax (Prev) Parameter File - Mixture Block (Next)
Users of PSCF require precise documentation of the required format for each block that can appear with a parameter file of a PSCF program. This page describes a representation that we use to concisely indicate the format of each parameter file block. This format representation is similar to that of the actual block, supplemented by notation to indicate the data types of parameter values and the use of special symbols to indicate syntactical elements such as array-valued parameters, optional elements and selectable subblocks.
As a simple first example of this sort of description, the overall syntax for a pscf_fd parameter file is shown below:
This description should look familiar, except for the inclusion of a Sweep{...} block, which is an optional element that was omitted from our example file. In such a description, the syntax Label{...} is used to indicate a nested subblock, for which the format of the subblock must be described separately somewhere else. The appearance of an asterisk (*) after any block or parameter label is used to indicate that the element is optional (i.e., omittable). Parameters and subblock labels that are not followed by an asterisk thus indicate required elements. The appearance of a "#" symbol after a block label indicate that the block is selectable. The above description thus indicates that the Iterator and Sweep blocks are both optional selectable elements.
As a second example, the format for a Mixture block in any PSCF parameter file can be given compactly as follows:
In this example, we see that the locations at which values of individual parameters would appear in an actual parameter file have been replaced by labels that specify the type of parameter value, such as int or real. The word Array followed by opening a closing square brackets enclosing a type descriptor is describe an array-value parameter. Note that default values for some optional elements (nSolvent and vMonomer) are given as comments enclosed in parentheses.
This sort of compact format description must be generally supplemented by a table and/or text that contains an explanation of the the meaning of each parameter, comments about allowed values for particular parameters, values for dimensions of arrays or matrices, relationships among choices of parameter values, and any other required supplementary information.
The following conventions, most of which are illustrated in the above examples, are used in this type of parameter file format summary:
Parameter File - Syntax (Prev) Parameter Files (Up) Parameter File - Mixture Block (Next)