The $variation block
The $variation block sets up the variations (see Parameter-search Grid).
This block can appear multiple times in the input file.
The input parameters that are set in this block are listed below.
Block parameters
Parameter
Value Type
Description
Remarks
name
string
The name for the variation object.
The main variation must be named
main.type
string
The type of the variation object. The allowed values are cartesian, coupled and explicit.
pars
List[string]
The names of the parameters associated with the variation (see Interaction Parameters).
Atomtype parameter names can optionally be followed by
include INCLand/orexclude EXCL, whereINCLandEXCLare thepairs_includeandpairs_excluderegular expressions, respectively (see Atomtype Parameters).
Type cartesian
Parameter
Value Type
Description
Remarks
function
List[expression]
(Optional) A list of mathematical expressions that correspond to the components of the enhanced-cartesian-variation scaling function (see Cartesian Variation).
Each expression accepts numbers, the usual operations
+,-,*,/,**as well as the functionsexpandlog. The original components of a variation member can be referred to asx[0],x[1], etc. The expressions cannot contain spaces.start
List[numerical]
The components of the cartesian-variation origin.
step
List[numerical]
The components of the cartesian-variation step.
size
List[numerical]
The dimensions of the cartesian variation.
Type coupled
Parameter
Value Type
Description
Remarks
using
object reference
The name of the variation to which the variation at hand is coupled.
Depends on the variation to which it refers.
function
List[expression]
The list of mathematical expressions that correspond to the components of the coupling function (see Coupled Variation).
Each expression accepts numbers, the usual operations
+,-,*,/,**as well as the functionsexpandlog. The original components of a variation member can be referred to asx[0],x[1], etc. The expressions cannot contain spaces.
Type explicit
Parameter
Value Type
Description
Remarks
dim
numerical
The number of dimensions of the grid members, i.e. how many parameters are defined by each grid point.
This value must match with the number of parameters specified in the
parsoption.values
List[numerical]
The explicit parameter values associated with each grid member. The values are read in batches of size
dimfor each grid point.The resulting grid is uni-dimensional with size equal to the number of entries divided by
dim.
Note
Parameters that are not listed above can also be supplied.
They are not recognized by the program in any special way, but are
parsed and made available in the Customization API,
together with all the other block parameters, as an
InputParameters
object.
Example
See Tutorial for a commented example.