Skip to content

ss0832/pygxtb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pygxtb

PyPI version PyPI Downloads

An unofficial Python/ASE interface for the g-xTB semi-empirical method.

Enables easy usage of g-xTB within Python scripts. Features automatic binary configuration and full ASE calculator support.

Credits & References

This package is a wrapper around the g-xTB method and builds upon existing ASE interface concepts.

g-xTB Method & Binary

The binary and parameters wrapped in this package are obtained from the Grimme Lab repository.

Reference Implementation

The ASE calculator implementation in this package is inspired by and references the work of:

Installation

install via pip:

pip install pygxtb

Usage with ASE

from ase.build import molecule
from pygxtb import PygxTB

# Create a water molecule
atoms = molecule("H2O")

# Attach the calculator
# It automatically finds the binary/parameters inside the package
calc = PygxTB()
atoms.calc = calc

# Calculate Potential Energy
energy = atoms.get_potential_energy()
print(f"Energy: {energy:.6f} eV")

# Calculate Forces
forces = atoms.get_forces()
print("Forces (eV/Ang):")
print(forces)

# Access Dipole Moment
dipole = atoms.get_dipole_moment()
print(f"Dipole: {dipole}")

License

GNU General Public License v3 (GPLv3)

See LICENSE for details.

About

An unofficial Python/ASE interface for the g-xTB semi-empirical method.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages