Identical Molecule Averaging

Summary

QuantumPatch allows the averaging of partial charges for identical molecules after each self-consistent iteration. This can benefit convergence for crystal systems.

Input preparation

Input for this functionality can be prepared using the script MolecularTools/LayerAnalysis.py.

LayerAnalysis.py <systemfile> <layer_height> <offset_to_first_layer>
Example:
LayerAnalysis.py tpbi.cml 5.0 2.7

This will output

* a PDB version of the systemfile (experimental)
* a Pymol selection script to visualize the result
* an annotated file to be plugged into the System.PointChargeAveraging.filename of QuantumPatch ( Make sure to review this file before.)

You can visualize this result using pymol by opening the PDB file and then using the command "@tpbi_output.pml" to color the molecules. One such output is:  Different moltypes and layers are now colored in different colors.

QuantumPatch Input File

The QuantumPatch settings file requires two additional inputs:

  • PointChargeAveraging:
  • enabled: true
  • filename: molecule_output_averagemols.txt

The input file is a text file. Each line contains integers of molecules to be treated identically. Comments start with a hash #.

Important Remarks

  • Make sure that at least one calculation was carried out on each of the specified molecules in the averaging lists. Otherwise those molecules will be counted as completely uncharged.
  • The averaging will be done every time in between self consistent iteration between all molecules inside the lists. Also the partial charges of the ones, which were not updated are taken into account. This is regardless on whether a calculation was carried out on the molecules or not.
  • In other words: It's best, if these molecules all reside in the Core shell or in SCF shells.

The results of the search are