atomic-femdvr
Kohn-Sham solver for isolated atoms using the finite-element discrete variable representation (FE-DVR).
- Pseudo-atoms with norm-conserving pseudopotentials in UPF format, including pseudopotentials without pseudo-atomic orbitals (e.g. SG15)
- All-electron atoms (non-relativistic), plus approximate scalar-relativistic (Koelling-Harmon) and ZORA treatments
- LDA and GGA functionals: PBE built in, all others via libxc
- Confined atomic orbitals with polarization functions for use as localized basis functions or projectors, exported on a logarithmic grid (Quantum ESPRESSO style), on the FE-DVR grid, or as spherical Bessel transforms; dipole matrix elements
- Photoemission: scattering phase shifts and dipole matrix elements to continuum states
🚀 Installation
$ python3 -m pip install atomic_femdvr
The built-in exchange-correlation driver provides PBE. Other functionals (e.g. the LDA used for the NIST benchmark) need the libxc Python bindings, which are not on PyPI; see the installation guide.
💪 Getting started
Calculations are defined by a JSON input file. A pseudo-atom with a confinement
potential and polarization orbitals (examples/Si_Pseudo.json):
{
"control": { "storage_dir": "./Si_pseudo" },
"sysparams": {
"element": "Si",
"file_upf": "../tests/data/Si/Si.oncvpsp.upf",
"lmax": 2,
"nmax": 1
},
"dft": { "xc_functional": "PBE", "mixing_scheme": "anderson", "alpha_mix": 0.5 },
"confinement": {
"type": "SoftStep",
"rc": 20.0,
"ri_factor": 0.5,
"polarization_mode": "SoftCoul"
},
"output": { "output_wfc_qe": true, "output_wfc_bessel": true }
}
$ cd examples
$ atomic_femdvr pseudoatomic Si_Pseudo.json -t scf,nscf out
This solves the Kohn-Sham equations self-consistently (scf), computes two
confined radial functions each for s, p and d (nscf), and writes them to out/.
All energies are in Hartree and all lengths in bohr. The all-electron solver is
run with atomic_femdvr atomic (see examples/Ne_full.json).
See the documentation for the input reference, the method and the output formats.
✅ Validation
- All-electron: LDA eigenvalues agree with the NIST atomic reference data (Ne, to 2e-6 Ha).
- Pseudo-atoms: eigenvalues reproduce the all-electron reference energies stored by ONCVPSP in the UPF file to about 0.5 meV (Mo, Si).
The scalar-relativistic and ZORA options are approximate and have not been benchmarked. Details are in the documentation.
📖 Citation
If you use atomic-femdvr in your work, please cite it as described in CITATION.cff.
⚖️ License
The code is licensed under the MIT License. The test pseudopotentials in
tests/data are taken from PseudoDojo (M. J. van
Setten et al., Comput. Phys. Commun. 226, 39 (2018)) and distributed under
CC BY 4.0; see tests/data/README.md.
👐 Contributing
Contributions, whether filing an issue, making a pull request, or forking, are appreciated. See CONTRIBUTING.md for more information.
Development installation
$ git clone https://github.com/michaelschueler/atomic-femdvr.git
$ cd atomic-femdvr
$ python3 -m pip install -e .
$ python3 -m pytest tests
The NIST benchmark test is skipped unless pylibxc is installed. With
tox installed (pip install tox tox-uv), tox -e py runs
the tests, tox -e lint the linter and tox -e docs builds the documentation in
docs/build/html.
Making a release
tox -e finish removes the -dev suffix from the version, builds and uploads
the package to PyPI, tags the release, and bumps the version. It needs a PyPI
token in the keyring (keyring set https://upload.pypi.org/legacy/ __token__).
After pushing, create a release on GitHub from the new tag.
🍪 Template
This package was created from @cthoyt's cookiecutter-snekpack template.
Metadata
Release files for atomic_femdvr 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| atomic_femdvr-0.1.0.tar.gz | 54.4 kB | Without provenance | Details for atomic_femdvr-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| atomic_femdvr-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for atomic_femdvr-0.1.0-py3-none-any.whl |
Total release size: 117.8 kB
Release files / atomic_femdvr-0.1.0.tar.gz
| Download URL | atomic_femdvr-0.1.0.tar.gz |
|---|---|
| Size | 54.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3df261b40bc1aa2067e67efd2bbe246c9e5a5847ef8de40d0d728003b1926e43
|
|
BLAKE2b-256 checksum How to use checksums |
145b57b5be11cc319b88c7210b96f91f1d334c38843e4b20e832cd434efda0f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / atomic_femdvr-0.1.0-py3-none-any.whl
| Download URL | atomic_femdvr-0.1.0-py3-none-any.whl |
|---|---|
| Size | 63.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a6ef5a21b3f6a78ce7ee6062d9f8535202b17de93c454743eeb5799e019cb43
|
|
BLAKE2b-256 checksum How to use checksums |
0c148d00ea82cad00abf3dae27423a7317565e83b45d43fa27a3ee622466e2ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for atomic_femdvr 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.