soprano.calculate.gulp.charges#
Get charges using GULP
Functions
|
Calculate the atomic partial charges using GULP. |
- soprano.calculate.gulp.charges.get_gulp_charges(s, charge_method='eem', save_charges=True, gulp_command='gulp', gulp_path=None)[source]#
Calculate the atomic partial charges 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’.save_charges (Optional[bool]): whether to save or not the charges inthe given ase.Atoms object. Default isTrue.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).Returns:charges(np.array(float)): per-atom partial charges