autodE is a Python package that relies on external electronic structure codes and requires:
- Python > v. 3.6
- One of:
- ORCA > v. 4.0
- Gaussian09
- Gaussian16
- NWChem > v. 6.6
- QChem > 5.4
- One of:
Python dependencies listed here are best satisfied using conda (anaconda or miniconda); the following guide assumes a conda install.
autodE is available through conda and can be installed with:
$ conda install autode --channel conda-forge
If the environment cannot be solved see here. A Linux installation tutorial is available here.
To build from source first clone the repository and cd
there:
$ git clone https://github.com/duartegroup/autodE.git $ cd autodE
then, install the appropriate dependencies (you may want to create a new virtual environment) and install:
$ conda install --file requirements.txt --channel conda-forge $ pip install .
Note
A working C++ compiler supporting C++11 is required. Tested with clang and gcc.
In a bash shell within Windows Subsystem for Linux follow the steps above.
Warning
Windows installation is only supported within Windows Subsystem for Linux (WSL)
autodE will find any electronic structure theory packages with implemented wrappers (ORCA, NWChem, Gaussian, XTB and MOPAC) that are available from your PATH environment variable. To check the expected high and low level methods are available:
>>> import autode as ade
>>> ade.methods.get_hmethod()
ORCA(available = True)
>>> ade.methods.get_lmethod()
XTB(available = True)
If a MethodUnavailable
exception is raised see the :doc:`troubleshooting page <troubleshooting>`.
If autodE cannot be imported please open a issue on GitHub.
If the high and/or low level electronic structure methods have been installed for the first time, it may be useful to check they're installed correctly. To run a quick optimisation of H2:
>>> import autode as ade
>>> h2 = ade.Molecule(smiles='[H][H]')
>>> h2.optimise(method=ade.methods.get_lmethod())
>>> h2.optimise(method=ade.methods.get_hmethod())
>>> h2.energy
Energy(-1.16401 Ha)
>>> h2.atoms
Atoms([Atom(H, 0.3805, 0.0000, 0.0000), Atom(H, -0.3805, 0.0000, 0.0000)])
If an AtomsNotFound
exception is raised it is likely that the electronic structure
package is not correctly installed correctly.
Note
Calculations are performed on 4 CPU cores by default, thus the high and low-level methods must be installed as their parallel versions where appropriate.