GAFF is a general force field: it works for almost any organic molecule, but its charges and torsions are generic. This module refines a GAFF force field for your molecule against quantum chemistry.
1. Analyse¶
Enter the SMILES, charge and multiplicity and press ◎ Analyze. The module finds the rotatable bonds and lists them, so you can choose which to refine. You can also start from an existing force field.
2. Refine charges¶
Boltzmann-weighted RESP charges from a conformer ensemble: conformers are sampled, minimised (GFN2-xTB or AIMNet2), and RESP charges are fitted on the lowest ones and averaged by population. This gives charges that represent the molecule as a whole, not one frozen conformation.
| Setting | Options |
|---|---|
| Conformers | number used in the fit (default 5) |
| RESP level | HF/6-31G* (standard RESP, compatible with GAFF), B3LYP/def2-SVP, BLYP/def2-SVP (fastest) |
RESP fits an electrostatic potential, so this step always uses HF or DFT.
3. Refine dihedrals¶
For each selected rotatable bond, the torsion is scanned with constraints, and the force-field torsion terms are refitted to the reference energies.
| Reference | Speed | Notes |
|---|---|---|
| DFT energies on xTB geometries | moderate | the default, a good balance |
| DFT geometries and energies | slowest | one consistent level |
| GFN2-xTB | seconds per bond | screening |
| AIMNet2 | seconds per bond | organic molecules |
The default DFT level is r²SCAN-D4/def2-SVP with RI-J. Scan points (default 7) sets the resolution of each scan.
Output¶
| Format | Files |
|---|---|
| VeloxChem | ff_gen JSON |
| OpenMM | XML + PDB |
| GROMACS | .itp, .top and .gro |