DihedralParametrizer GUI v3
WaNo and Settings

Input files and parameters: (DihedralParametrizer3 tab)
-
Molecule input:
- Molecule_pdb: Import PDB file of the molecule, either from your hard drive or from the Parametrizer WaNo preceding the DihedralParametrizer WaNo in the Workflow.
- Molecule_spf: Import SPF file containing the nonbonded force field (electrostatic and Lennard Jones) of the molecule, either from your hard drive or from the Parametrizer WaNo preceding the DihedralParametrizer WaNo in the Workflow. Note: Dihedral energy profiles and force-fields are only computed if the spf file contains dihedral information (automatically generated by the Parametrizer).
-
DFT Options Like QuantumPatch, the DihedralParametrizer employs Quantum Chemistry Engines to compute molecular energies. For the DihedralParametrizer, DFTBplus (DFTB as implemented in DFTB+), XTB and Turbomole (DFT) are available. If Turbomole (requires a Turbomole license and installation not included in the software package) is chosen, additional settings for basis-set and functional are enabled. While Benchmarks are still ongoing, we recommend to use Turbomole with BP86 and def2-SVP. The XTB option is relatively new, so please use with precaution. You can find a description of QM engines here.
-
Algorithm settings The standard settings are depicted in the screenshot of the DihedralParametrizer WaNo above. We recommend to leave all parameters as they are and only adapt resources.
- DH_scan_steps: Number of data points for the spline fit of the resulting dihedral force field. Recommended value is 20. Explanation: To compute the potential of a dihedral angle, each dihedral angle is rotated around 360° in equal sized steps. At each step the dihedral angle is kept fixed at the current value and the rest of the geometry is relaxed using Metropolis Monte-Carlo with a classical force field to avoid clashes. DFT single point calculation is then performed on the resulting configuration and the energies of all configurations are used to compute a dihedral force field in form of a spline fit on the data points.
- parallel_DH_scans: To ensure smooth potentials and avoid fluctuations between two adjacent scan steps (close in angle space), multiple MC relaxations and single point evaluations per data point can be performed. The configuration with minimal energy is chosen for each angle.
- scf_iter: In each iteration, the dihedral force-field of the previous step is applied for the relaxation of the molecule, leading to an increased accuracy of the force-field energy: In the first iteration, only nonbonded internal interactions with standard values are used, and updated each iteration cycle with the latest forcefield resulting from the dihedral scans (bonded DH-FF) and, if enabled, forcefield optimization (nonbonded). If the "optimize forcefield" is used (see below), do at least 3 scf iterations. For molecules with a single dihedral only, this value is set to 1 automatically.
- DH_scan_relax_options (displayed, when "show DHP scan relaxation options" is checked): We recommend to leave these values as they are.
- T_init: inital temperature of the relaxation of each configuration during the dihedral scan
- T_acc: final temperature of the relaxation of each configuration during the dihedral scan, gradually reduced starting from T_init.
- dphi: random changes to the configurations (i.e. their angles) are drawn from a uniform random distribution [-dphi,dphi].
- mc_steps: measure for number of MC steps. The total number is set to N_steps = mc_steps * no_dh ** 2, where no_dh is the number of dihedral angles of your molecule.
- forcefield_optimization: The intramolecular interaction can be optimized when fitting forcefield parameters to a set of training configurations.
- optimize: Enable this forcefield optimization
- train_set_generation: There are three methods to generate or read in training sets:
- vacuum_wide: Generates a training set of random configurations. Clashes are removed from the train set using a Metropolis acceptance criterion at temperature T_acc in the sampling subbox.
- from_deposit: Read in configurations from a deposit morphology via the restarfile.zip from Deposit. Note: This may cause a bias in your training set.
- from_file: Read in the trainings set from a previous DHP run (all_coords.npy, all_energies.dat).
- no_samples: Number of configurations in you training set, in case vacuum_wide is chosen. We recommend to use ~x10 as many training configurations as numbers of atoms in your molecule, e.g. approx. 1000 for alpha-NPD. Note that in case of parallel usage of DHP, a subset of 80% of the training set is assigned randomly to each core during the forcefield optimization.
- sampling/T_acc: see above at "vacuum_wide" train set generation.
Parallelization and Performance: (Resources tab)
DihedralParametrizer can be run in parallel or as a serial run. We recommend to use at least 20 cores, as execution with multiple threads offers two advantages:
- Workload of DFT(B) computations is distributed over multiple cores. This large part to the DHP runtime scales almost linearly with the numbers of processors. The total number of single points increases with the number of dihedral angles in the molecule, "DHP_scan_staps" and "no_samples" (see above).
- When forcefield optimization is enabled, i.e. intramolecular forcefield parameters are fitted to DFT using a set of training configurations, this optimization is done in parallel on each thread using a slightly different train set and different random initial state. The parameters providing the best fit on an independent test set are used in the further simulation progress.
The required memory depends on the size of your compound. For average sized small organic compounds (~100 Atoms) 4000MB are recommended. Check the manual of your DFT engine for details.
Recommended Resources:
| Resource | Recommendation |
|---|---|
| CPUs per Node: | 32 |
| Number of Nodes: | 1 (No parallelization on more than a single node available) |
| Memory: | 4GB per core |
| Walltime: | Depending on the size of the compounds and the number of data points and the number of dihedrals of your molecule, the parametrization may range from 1h to over a day. |
| Queue: | Default |
Output Files
Main output files
| Filename | File description | Interface to module... |
|---|---|---|
| molecule.pdb | PDB-file containing atom positions, as provided as input file. | Deposit |
| dihedral_forcefield.spf | Force-field file for Deposit including the nonbonded force field (partial charges and Lennard-Jones parameters) and the dihedral force field computed for this module. | Deposit |
| DihedralScans/DHATOMS_energy_TYPE_iter*.png | For each dihedral identified by four DHATOMS, energy profiles for TYPE=DFTEnergy, Dihedral, LJ_coulomb are printed. Check for smoothness and clashes (high profiles). | None |
| OptimizationOutput/corellation_test_set_rank.png, OptimizationOutput/corellation_train_set_rank.png | For each rank (thread), the correlation of forcefield energies and DFT energies of training and test set are displayed in these files. The best correlation has an ending "min.png" and these final parameters of this thread are used in the further progress of the DHP. Check the correlation plot to estimate the quality of the potential parameter fit. A narrow distribution around a straight line with slope one through the origin indicates a good fit. | None |
Train set output
In addition to the standard output, the DHP provides data of the training set, either as training input for another DHP run (see "train_set_generation" in the settings description above) or to use elsewhere, e.g. as training set in other modules.
| Filename | File description | Interface to module... |
|---|---|---|
| all_coords.npy | Coordinates of the full train set in numpy format. This file can be used as input train set coordinates for another DHP run. | DHP |
| all_energies.dat | Total energies of the full train set in numpy format. This file can be used as input train set energies for another DHP run. | DHP |
| all_homo_lumo.dat | HOMO and LUMO energies of the train set configurations | None |
| all_charges.dat | Partial charges (derived from ESP fit in case of Turmobole engine) of all train set configurations. | None |
| all_train_data.npz | File combining all data mentioned above, accessible via np.load("all_train_data.npz",allow_pickle=True)[key] with key="coords","partial_charges","total_energies","homos","lumos". Metadata on the DFT engine settings used to compute these quantities is provided with the key "DFTOptions". | None |
Example for HOMO/LUMO profiles
NOTE: these files look slightly different in the new version of DHP.
![]() |
![]() |
|---|---|
| HOMO profile for Triphenylamine | LUMO profile for Triphenylamine |
The results of the search are

