soprano.calculate.gulp.w99#
Classes and functions for using the W99 force field in GULP. This force field only applies to organic molecules. More information can be found in the original paper by Donald E. Williams:
D.E. Williams, Improved Intermolecular Force Field for Molecules Containing H, C, N, and O Atoms, with Application to Nucleoside and Peptide Crystals - Journal of Computational Chemistry, Vol. 22, No. 11, 1154-1166 (2001)
Functions
|
Calculate the W99 force field atom types for a given structure. |
|
Calculate the W99 force field energy using GULP. |
Exceptions
- exception soprano.calculate.gulp.w99.W99Error[source]#
Bases:
Exception
- add_note()#
Exception.add_note(note) – add a note to the exception
- with_traceback()#
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- soprano.calculate.gulp.w99._w99_field_definition(s, etol)[source]#
Output the W99 field definition for GULP input. System must already have w99 types calculated
- soprano.calculate.gulp.w99.find_w99_atomtypes(s, force_recalc=False)[source]#
Calculate the W99 force field atom types for a given structure.
Parameters:s (ase.Atoms): the structure to calculate the atomtypes onforce_recalc (bool): whether to recalculate the molecules even ifalready present. Default is False.
- soprano.calculate.gulp.w99.get_w99_energy(s, charge_method='eem', Etol=1e-06, gulp_command='gulp', gulp_path=None, save_charges=False)[source]#
Calculate the W99 force field energy using GULP.
Parameters:s (ase.Atoms): the structure to calculate the energy ofcharge_method (Optional[str]): which method to use for atomic partialcharge calculation. Can be any of‘eem’, ‘qeq’ and ‘pacha’.Default is ‘eem’.Etol (Optional[float]): tolerance on energy for intermolecularpotential cutoffs (relative to singleinteraction energy). Default is 1e-6 eV.gulp_command (Optional[str]): command required to call the GULPexecutable.gulp_path (Optional[str]): path where the GULP executable can befound. If not present, the GULP commandwill be invoked directly (assuming theexecutable is in the system PATH).save_charges (Optional[bool]): whether to retrieve also the chargesand save them in the Atoms object.False by default.Returns:energy (float): the calculated energy