Skip to main content

pyfhiaims – an FHI-aims Python suite

For a more complete set of documentation see: https://fhi-aims-club.gitlab.io/pyfhiaims/

Installation

You can install pyfhiaims from PyPI via pip:

pip install pyfhiaims

Or, alternatively, you can install it from the main branch of this Git repository:

git clone https://gitlab.com/FHI-aims-club/pyfhiaims.git
cd pyfhiaims
pip install .

Usage

The main purpose of the package is to provide an interface to build input files for FHI-aims and to parse its outputs.

The input files can be created in the following way:

  • geometry.in - build from ASE or pymatgen objects:
from ase.build import bulk
from pyfhiaims.geometry import AimsGeometry

cu = bulk('Cu', 'fcc', a=3.6)
aims_cu = AimsGeometry.from_atoms(cu)
aims_cu.write_file("geometry.in")
  • control.in - build from Python dictionary:
import os
from pyfhiaims.control import AimsControl

# create the dictionary of input parameters
params = {"xc": "pbe",
          "species_dir": os.path.join(os.getenv("AIMS_SPECIES_DIR"), "light"),
          "k_grid": (7, 7, 7)
          }

# create the AimsControl object
control_in = AimsControl(parameters=params)
control_in.write_file(aims_cu)

The FHI-aims output file can be parsed in the following way:

from pyfhiaims import AimsStdout

stdout = AimsStdout("aims.out")

Then you can access all the parsed results (stdout.results), run metadata (runtime choices and some geometry statistics — stdout.metadata), warnings (stdout.warnings), and errors. Also, stdout.is_finished_ok tells if FHI-aims run has been finished without any errors.

There are several properties defined that make access to different widely used values easier, like energy and forces. Also, the top level keys of stdout.results dictionary can be accessed using dot notation (so run times can be accessed with stdout.final["time"]).

There are many values that are parsed from the aims.out file; you are welcome to explore stdout.results dictionary.

Support

Just write us an issue in the issue tracker!

Roadmap

To be written...

Contributing

Contributions are extremely welcome!

Authors and acknowledgment

The package was written by:

  • Tom Purcell
  • Andrei Sobolev

License

The project is licensed under MIT license.

Metadata

Release files for pyfhiaims 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyfhiaims 1.2
File Size Uploaded
pyfhiaims-1.2.tar.gz 80.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyfhiaims 1.2
File Interpreter ABI Platform
pyfhiaims-1.2-py3-none-any.whl Python 3 none any Details

Total release size: 172.0 kB

Release files / pyfhiaims-1.2.tar.gz

Download URL pyfhiaims-1.2.tar.gz
Size 80.0 kB
Tags Source
SHA-256 checksum
How to use checksums
28e53d6457b578762e7d7af2c3f1cda5f886b837469f3b1ccad2cd06a207ed6f
BLAKE2b-256 checksum
How to use checksums
191886012858afc45b70a87ea8d29c1bd8f15c74ebcefee2af806875f7762180
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / pyfhiaims-1.2-py3-none-any.whl

Download URL pyfhiaims-1.2-py3-none-any.whl
Size 91.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ab540cdf6980cf524417763b3e321467cd23dc7d6c9698d0b426c7d0398088d
BLAKE2b-256 checksum
How to use checksums
0c3bb039234ddd517bd938043051937408185979589385e31bda848505b2bcbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release history Release notifications | RSS feed

This release

1.2 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page