pyfhiaims


Namepyfhiaims JSON
Version 0.0.7 PyPI version JSON
download
home_pageNone
SummaryAn FHI-aims official Python package
upload_time2025-02-06 15:51:53
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseMIT
keywords electronic structure fhi-aims
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pyfhiaims – an FHI-aims Python suite 

## Installation

You can install `pyfhiaims` from PyPI via `pip`:
```bash
pip install pyfhiaims
```

Or, alternatively, you can install it from the main branch of this Git repository:
```bash
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:
```python
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:
```python
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:
```python
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.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pyfhiaims",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "Thomas Purcell <purcell@fhi-berlin.mpg.de>, Andrei Sobolev <sobolev@ms1p.org>",
    "keywords": "electronic structure, FHI-aims",
    "author": null,
    "author_email": "Thomas Purcell <purcell@fhi-berlin.mpg.de>, Andrei Sobolev <sobolev@ms1p.org>",
    "download_url": "https://files.pythonhosted.org/packages/22/d2/5ce46ac0445892265ffeeff167ed6f72dbf79e547ae458fbabb0f717a7ce/pyfhiaims-0.0.7.tar.gz",
    "platform": null,
    "description": "# pyfhiaims \u2013 an FHI-aims Python suite \n\n## Installation\n\nYou can install `pyfhiaims` from PyPI via `pip`:\n```bash\npip install pyfhiaims\n```\n\nOr, alternatively, you can install it from the main branch of this Git repository:\n```bash\ngit clone https://gitlab.com/FHI-aims-club/pyfhiaims.git\ncd pyfhiaims\npip install .\n```\n\n## Usage\nThe main purpose of the package is to provide an interface to build input files \nfor FHI-aims and to parse its outputs.\n\nThe input files can be created in the following way:\n* `geometry.in` - build from ASE or pymatgen objects:\n```python\nfrom ase.build import bulk\nfrom pyfhiaims.geometry import AimsGeometry\n\ncu = bulk('Cu', 'fcc', a=3.6)\naims_cu = AimsGeometry.from_atoms(cu)\naims_cu.write_file(\"geometry.in\")\n```\n\n* `control.in` - build from Python dictionary:\n```python\nimport os\nfrom pyfhiaims.control import AimsControl\n\n# create the dictionary of input parameters\nparams = {\"xc\": \"pbe\",\n          \"species_dir\": os.path.join(os.getenv(\"AIMS_SPECIES_DIR\"), \"light\"),\n          \"k_grid\": (7, 7, 7)\n          }\n\n# create the AimsControl object\ncontrol_in = AimsControl(parameters=params)\ncontrol_in.write_file(aims_cu)\n```\n\nThe FHI-aims output file can be parsed in the following way:\n```python\nfrom pyfhiaims import AimsStdout\n\nstdout = AimsStdout(\"aims.out\")\n```\nThen you can access all the parsed results (`stdout.results`),\nrun metadata (runtime choices and some geometry statistics \u2014 \n`stdout.metadata`), warnings (`stdout.warnings`), and errors.\nAlso, `stdout.is_finished_ok` tells if FHI-aims run has been finished \nwithout any errors.\n\nThere are several properties defined that make access to different \nwidely used values easier, like `energy` and `forces`. \nAlso, the top level keys of `stdout.results` dictionary can be accessed \nusing dot notation (so run times can be accessed with \n`stdout.final[\"time\"]`). \n\nThere are many values that are parsed from the `aims.out` file; you are \nwelcome to explore `stdout.results` dictionary. \n\n## Support\nJust write us an issue in the issue tracker!\n\n## Roadmap\nTo be written...\n\n## Contributing\nContributions are extremely welcome!\n\n## Authors and acknowledgment\nThe package was written by:\n * Tom Purcell\n * Andrei Sobolev\n\n## License\nThe project is licensed under MIT license.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "An FHI-aims official Python package",
    "version": "0.0.7",
    "project_urls": {
        "repository": "https://gitlab.com/FHI-aims-club/pyfhiaims/"
    },
    "split_keywords": [
        "electronic structure",
        " fhi-aims"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6b1d791386969dfd55aa68f43a0695d9a85109c995cb139f86c97564d1f53f4f",
                "md5": "34006b086667e6ae313b1396bf734d5d",
                "sha256": "9457c24c99a539ad61dc0e2f119f5b89f050bb311a386599e9ddb02013149e83"
            },
            "downloads": -1,
            "filename": "pyfhiaims-0.0.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "34006b086667e6ae313b1396bf734d5d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 95064,
            "upload_time": "2025-02-06T15:51:51",
            "upload_time_iso_8601": "2025-02-06T15:51:51.019243Z",
            "url": "https://files.pythonhosted.org/packages/6b/1d/791386969dfd55aa68f43a0695d9a85109c995cb139f86c97564d1f53f4f/pyfhiaims-0.0.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "22d25ce46ac0445892265ffeeff167ed6f72dbf79e547ae458fbabb0f717a7ce",
                "md5": "6d0fa8147dbc152203b44bba3bae59f7",
                "sha256": "f8b06acf65feb92f45d69a66c21984d306fffa81ca6f1d7179fe0ac569bc7a58"
            },
            "downloads": -1,
            "filename": "pyfhiaims-0.0.7.tar.gz",
            "has_sig": false,
            "md5_digest": "6d0fa8147dbc152203b44bba3bae59f7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 78696,
            "upload_time": "2025-02-06T15:51:53",
            "upload_time_iso_8601": "2025-02-06T15:51:53.382172Z",
            "url": "https://files.pythonhosted.org/packages/22/d2/5ce46ac0445892265ffeeff167ed6f72dbf79e547ae458fbabb0f717a7ce/pyfhiaims-0.0.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-06 15:51:53",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "codeberg": false,
    "gitlab_user": "FHI-aims-club",
    "gitlab_project": "pyfhiaims",
    "lcname": "pyfhiaims"
}
        
Elapsed time: 1.64138s