Setup Files
The following setup files can be given as additional input to PQ. The names of the used files need to be provided with the according
Setup File Keys in the .in file if the name does not match the default name.
Moldescriptor
Default Name: moldescriptor.dat
The moldescriptor file is used to assign every atom in the system to a molecular unit, also called moltype. These molecular units can be as small
as just a single atom or as big as a whole molecule. They are numbered consecutively starting from 1 and are given in the third column of
the .rst file as described in the Restart File section. The moldescriptor file is structured into groups for every moltype,
which have the following form:
line 1: name n_atoms chargeline 2 to (n_atoms + 1): atom_type_name atom_type_index point_charge global_vdW_index
The parameters name, n_atoms, and charge in the first line denote the name of the moltype, the number of atoms in the moltype, and the total charge of the moltype in units of the elementary charge e. The following lines contain the name of the atom type, the index of the MM atom type, the MM point charge in units of e and the global van der Waals index for each atom in the moltype. The atom type name is irrelevant for internal calculations, but will be printed to various Output Files. The index of the atom type is relevant for defining intra- and intermolecular non-bonded interactions in the GUFF File. The point charge as well as the global van der Waals type are only relevant for MM atoms that are not treated via the GUFF File. The global van der Waals index is used to assign identical elements exposed to a similar chemical environment from different moltypes to the same atom type.
Attention
Providing a moldescriptor file is optional for pure QM calculations, but becomes mandatory if there are MM atoms present in the
system and/or pressure coupling is enabled via the Pressure Coupling Keys in the .in file. If no moldescriptor file is
provided, the element symbol (as given by the Restart File) will be printed to the output files instead of the
atom type name. In case of a pure QM calculation the charge of the moltype, the atom_type_index as well as the point_charge can be
set to 0 and the global_vdW_type can be omitted. For MM calculations that utilize just the GUFF File, the
point_charge can be set to 0 and the global_vdW_type can be omitted.
QM atoms with moltype 0 in the Restart File have no moldescriptor entry and always count as neutral in the
total QM charge. Give charged QM atoms their own moltype in the moldescriptor file.
Attention
If an intra- or intermolecular water model has been selected via the Input File, the water moltype must be specified using a single line in the moldescriptor file of the following form:
where the moltype_number integer denotes the moltype number corresponding to the water molecules. Additionally, the specified water moltype must contain exactly three atoms, namely “O”, “H” and “H”, in this specific order. Furthermore, if an intermolecular water model has been selected, the charge of each atom must coincide with the partial charge defined by the associate intermolecular water potential.
Note
For QM/MM calculations, each moltype may contain an optional line between its first line and its last atom line:
where energy is the QM energy of the isolated, geometry-optimized moltype in kcal/mol, computed with the same QM method. After every
QM calculation, this energy is summed once for each moltype molecule in the QM region and subtracted from the total energy and the
reported QM energy; the subtracted sum is printed as E(QM-REF) in the .info and .en files. Without it, the total energy
jumps by the QM energy of a molecule whenever the molecule enters or leaves the QM region. With exact smoothing, the sum is formed for every configuration and weighted with its global smoothing factor.
Once one moltype has this line, every moltype needs it, and QM-only molecules with moltype 0 are not allowed.
GUFF File
Default Name: guff.dat
The grand unified force field (GUFF) file can be used to define the non-bonding force field parameters for the MM atoms in the system. The GUFF file defines the Coulomb potential VCoulomb via equation (1) and the non-Coulombic potential Vnon-Coulomb via the generalized equation (2) for every atom type index in every moltype of the system in the following format:
moltype_1; atom_type_index_1; moltype_2; atom_type_index_2; rcut; c0; c1; c2; c3; c4; c5; c6; c7; c8; c9; c10; c11; c12; c13; c14; c15; c16; c17; c18; c19; c20; c21; c22(1)\[V_{\text{Coulomb}} = \frac{c_0}{r}\](2)\[V_{\text{non-Coulomb}} = \frac{c_1}{r^{c_2}} + \frac{c_3}{r^{c_4}} + \frac{c_5}{r^{c_6}} + \frac{c_7}{r^{c_8}} + \frac{c_9}{1 + e^{c_{10} (r - c_{11})}} + \frac{c_{12}}{1 + e^{c_{13} (r - c_{14})}} + c_{15} e^{c_{16} (r - c_{17})^{c_{18}}} + c_{19} e^{c_{20} (r - c_{21})^{c_{22}}}\]
The moltype and atom_type_index are defined as in the Moldescriptor file. Utilizing equation (2), Lennard-Jones, Buckingham and Morse potentials, as well as arbitrary combinations of them can be used for the description of the non-Coulombic interactions. The parameter rcut gives the cutoff radius for the non-bonded interactions. Distances are given in Å and energies in kcal/mol. The units of the parameters are chosen accordingly.
Attention
All entries in the GUFF file need to be separated via a semicolon ;. Furthermore, defining all possible interactions is mandatory. If a certain
potential is not needed, the corresponding coefficients are set to 0.
Using the GUFF file requires the Moldescriptor setup file to be provided as well.
Note
GUFF entries corresponding to interactions between water moltypes (as defined in the Moldescriptor setup file) may be omitted. If such entries are provided nonetheless, they will be ignored. The cutoff radius for van der Waals interactions between water molecules can be adjusted via the rnoncoulomb key in the Input File.
DFTB Setup File
Default Name: dftb_in.template
The DFTB setup file is used by PQ to generate the dftb_in.hsd file, which is used as input for calculations by the DFTB+ software.
As such, it has the same structure and keywords as the human-readable structured data (HSD) file for a single point calculation.
The documentation of which can be found here.
There is an additional keyword, named __GUESS__, that can be used within the Hamiltonian of the DFTB setup file.
If the __GUESS__ flag is included, the charges will be read for an initial guess in every step of the MD simulation except the first.
Attention
Providing a DFTB setup file is mandatory if the qm_prog keyword is set to dftbplus.
Topology File
The topology file defines bonded force-field terms and distance constraints by
global atom index. It is a section-based file. A section starts with a section
keyword and ends with END. Lines starting with # are ignored.
The accepted section keywords are SHAKE, BONDS, ANGLES,
DIHEDRALS, IMPROPERS, DIST_CONSTRAINTS and J_COUPLINGS. Section
keywords are case-insensitive, and dashes in the keyword are treated like
underscores.
The topology line formats are:
SHAKE: atom_1 atom_2 distance [unused_fourth_field]BONDS: atom_1 atom_2 bond_type [*]ANGLES: atom_1 atom_2 atom_3 angle_type [*]DIHEDRALS: atom_1 atom_2 atom_3 atom_4 dihedral_type [*]IMPROPERS: atom_1 atom_2 atom_3 atom_4 improper_typeDIST_CONSTRAINTS: atom_1 atom_2 lower_distance upper_distance force_constant dforce_constant_dtJ_COUPLINGS: atom_1 atom_2 atom_3 atom_4 j_coupling_type
Fields named atom_* are unitless global atom indices. Fields named
*_type are unitless indices into the corresponding parameter-file section.
Distances in SHAKE and DIST_CONSTRAINTS are given in Å. The
DIST_CONSTRAINTS force constant is given in
\(\frac{\text{kcal}}{\text{mol Å}^2}\) and dforce_constant_dt in
\(\frac{\text{kcal}}{\text{mol Å}^2\text{ fs}}\).
The optional fourth field in SHAKE entries is accepted for legacy input
files but is not used by the reader.
Rules of the file
Atom indices start at 1 and count all atoms of the start file in the order of the molecules (the global atom index). An index of 0 or larger than the number of atoms is an error. The atoms of one line can belong to different molecules.
The atoms of one line must differ, otherwise the reader stops with an error.
DIST_CONSTRAINTSadditionally requires lower_distance not greater than upper_distance.Only the first word of a header line is read. Further words are ignored, so headers with counts such as
BONDS 220 330 50(written by some tools) are accepted, but the numbers are not checked against the number of lines.Every section ends with
END(case-insensitive). A missingENDis an error that names the line. Blank lines and#comments (also at the end of a line) are allowed everywhere.A section may appear more than once; the entries are added in file order. The sections need not be in any particular order.
The number of fields per line is fixed (see the formats above). A different number is an error that names the line and the expected number.
Types are resolved later. A
bond_type,angle_type,dihedral_typeorimproper_typethat has no entry in the Parameter File is reported when the force field is set up, not while the topology is read.
The linker marker *
The optional * at the end of a BONDS, ANGLES or DIHEDRALS line
marks a linker term. For such a term the Coulomb and non-Coulomb energy and
forces of the pair of terminal atoms are corrected while the term is
evaluated, and only if the distance of that pair is within the Coulomb cutoff.
Use it for terms that connect two molecules (the amyloid example marks its
MM-MM linker bonds this way). Any other extra word at the end of the line is an
error.
# rigid water: the two O-H distances of a molecule (Å)
SHAKE
1 2 0.9572
1 3 0.9572
END
BONDS
1 2 1
13 15 1 * # linker bond between two molecules
END
ANGLES
2 1 3 1
END
DIHEDRALS
1 2 3 4 1
END
IMPROPERS
1 2 3 4 1
END
DIST_CONSTRAINTS
1 2 0.9 1.1 10.0 0.0
END
Note
topology_file is mandatory when force-field
is set to on or bonded, or when shake is set to
on or shake.
Parameter File
The parameter file defines the parameters used by the force-field sections in
the Topology File. Like the topology file, it is a section-based file and
every section is terminated with END. Lines starting with # are ignored.
The accepted section keywords are TYPES, BONDS, ANGLES,
DIHEDRALS, IMPROPERS, J_COUPLINGS and NONCOULOMBICS. Section
keywords are case-insensitive, and dashes in the keyword are treated like
underscores.
The parameter line formats are:
TYPES: dummy dummy dummy dummy dummy dummy scale_14_coulomb scale_14_vdwBONDS: bond_type equilibrium_distance force_constantANGLES: angle_type equilibrium_angle force_constantDIHEDRALS: dihedral_type force_constant periodicity phaseIMPROPERS: improper_type force_constant periodicity phaseJ_COUPLINGS: j_coupling_type j_0 force_constant a b c phase [symmetry]
The NONCOULOMBICS header may be followed by LJ, BUCKINGHAM or
MORSE. If no type is given, LJ is used.
NONCOULOMBICS LJ: atom_type_1 atom_type_2 c6 c12 [cutoff]NONCOULOMBICS BUCKINGHAM: atom_type_1 atom_type_2 a d_rho c6 [cutoff]NONCOULOMBICS MORSE: atom_type_1 atom_type_2 dissociation_energy well_width equilibrium_distance [cutoff]
If the optional non-Coulombic cutoff is omitted or set to a negative value, the global Coulomb cutoff is used.
Units
All values are plain numbers; the unit is fixed per column. Distances are in Å, energies in kcal/mol, angles and phases in degrees. Force constants are per squared length or squared angle, the angular one per radian (not per degree).
Section |
Column |
Unit and energy expression |
|---|---|---|
|
scale_14_coulomb, scale_14_vdw |
unitless factors between 0 and 1 (the first six columns are not used) |
|
equilibrium_distance |
Å |
force_constant |
kcal/mol/Ų, \(E = \frac{1}{2} k (r - r_0)^2\) |
|
|
equilibrium_angle |
degrees |
force_constant |
kcal/mol/rad², \(E = \frac{1}{2} k (\alpha - \alpha_0)^2\) |
|
|
force_constant |
kcal/mol, \(E = k \, (1 + \cos(n \varphi + \delta))\) |
periodicity \(n\) |
unitless, not negative |
|
phase \(\delta\) |
degrees |
|
|
j_0, force_constant, a, b, c |
read as plain numbers; the j-coupling term is not part of the force calculation yet |
phase |
degrees |
|
|
c6, c12 |
kcal/mol Å6 and kcal/mol Å12, \(E = c_{12}/r^{12} + c_6/r^6\) (the sign of the attractive part is part of c6) |
|
a, d_rho, c6 |
kcal/mol, 1/Å and kcal/mol Å6, \(E = a \, e^{d_\rho r} + c_6/r^6\) |
|
dissociation_energy, well_width, equilibrium_distance |
kcal/mol, 1/Å and Å, \(E = D \, (1 - e^{-w (r - r_0)})^2\) |
|
cutoff |
Å (negative or omitted: the global Coulomb cutoff) |
BONDS
1 1.2 1.3
END
NONCOULOMBICS LJ
1 2 0.1 1.2 12.0
END
Note
parameter_file is mandatory when force-field
is set to on or bonded.
M-SHAKE File
The M-SHAKE file defines one reference geometry per molecule type for the
mshake constraint mode. It uses repeated extended-XYZ-like blocks:
3
moltype = 1;
H 0.0 0.0 0.0
O 1.0 1.0 1.0
H 2.0 2.0 2.0
The first line of each block is the number of atoms in the reference geometry.
The second line must contain moltype = <id>; and is parsed with the same
command syntax as the input file. The moltype value is the molecule type
defined in the Moldescriptor. It is followed by one atom line per
reference atom: atom name and Cartesian coordinates. The atom names must match
the atom names of the referenced molecule type.