Molecular/crystal structure optimizer
Project description
berny
— Molecular optimizer
This Python 2/3 package can optimize molecular and crystal structures with respect to total energy, using nuclear gradient information.
In each step, it takes energy and Cartesian gradients as an input, and returns a new structure estimate.
The algorithm is an amalgam of several techniques, comprising redundant internal coordinates, iterative Hessian estimate, trust region, line search, and coordinate weighing, mostly inspired by the optimizer in the Gaussian program.
Installing
Install and update using Pip:
pip install -U pyberny
Example
from berny import Berny, geomlib
optimizer = Berny(geomlib.readfile('geom.xyz'))
for geom in optimizer:
# get energy and gradients for geom
optimizer.send((energy, gradients))
Links
- Documentation: https://azag0.github.io/pyberny
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyberny-0.3.4.tar.gz
(23.6 kB
view hashes)
Built Distribution
Close
Hashes for pyberny-0.3.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6aeda6d88e3dd39dd42058a761150f6b2899f3a85c77302a4473428f92a39757 |
|
MD5 | a45811cc50664b0e84a2794c999cc95a |
|
BLAKE2b-256 | b9328585bab6b41bbd466df3a23c1bc31b369ef2c3be122f51acf2d405b1b17f |