Skip to main content

Calculation of electronic aromaticity indicators

Project description

The ESIpy program is aimed at the calculation of population analysis and aromaticity indicators from different Hilbert-space partitions using the PySCF module. The program supports both restricted and unrestricted calculations for single-determinant wavefunctions, and correlated wavefunctions from a restricted object (RHF). The atomic partitions supported by the program are Mulliken, Löwdin, meta-Löwdin, Natural Atomic Orbitals (NAO), and Intrinsic Atomic Orbitals ( IAO).

The on-line documentation can be found here.

Citation

All the calculations performed for the creation and implementation of this program have been conducted in the following scientific paper:

Joan Grèbol-Tomàs, Eduard Matito, Pedro Salvador, Chem. Eur. J. 2024, 30, e202401282.

Also, find it on-line here. If you are publishing the results obtained from ESIpy, remember to cite the program. The code is licensed under the GNU GPLv3. See the LICENSE file for details. See the on-line documentation for details on how to use the program. If you encounter any bugs, please feel free to report them on the Issues page, or send an email to joan.grebol@dipc.org.

Installation

ESIpy can be installed through:

pip install esipython

The latest stable version can be obtained through:

pip install --upgrade esipython

The latest non-stable version available on Github can be obtained through:

pip install --upgrade git+https://github.com/jgrebol/ESIpy.git

For a detailed explanation on how to run the code and how to customize it, please see the documentation.

Getting started

ESIpy works on the object ESI, which will contain all the information required for the calculation. It is recommended to initialize the object with all the data, rather than adding it once the initialization process is finished.

The simplest form of input follows a usual PySCF calculation

    from pyscf import gto, dft
    import esipy

    mol = gto.Mole()
    mol.atom = '''
    6        0.000000000      0.000000000      1.393096000
    6        0.000000000      1.206457000      0.696548000
    6        0.000000000      1.206457000     -0.696548000
    6        0.000000000      0.000000000     -1.393096000
    6        0.000000000     -1.206457000     -0.696548000
    6        0.000000000     -1.206457000      0.696548000
    1        0.000000000      0.000000000      2.483127000
    1        0.000000000      2.150450000      1.241569000
    1        0.000000000      2.150450000     -1.241569000
    1        0.000000000      0.000000000     -2.483127000
    1        0.000000000     -2.150450000     -1.241569000
    1        0.000000000     -2.150450000      1.241569000
    '''
    mol.basis = 'sto-3g'
    mol.spin = 0
    mol.charge = 0
    mol.symmetry = True
    mol.verbose = 0
    mol.build()

    mf = dft.KS(mol)
    mf.kernel()

    ring = [1, 2, 3, 4, 5, 6]
    arom = esipy.ESI(mol=mol, mf=mf, rings=ring, partition="nao")
    arom.print()

To avoid the single-point calculation, the attribute save will save the AOMs and a dictionary containing information about the molecule and calculation into a binary file in disk. Hereafter, these will be accessible at any time. It is also recommended to use a for-loop scheme for all the partitions, as the computational time to generate the matrices is minimal and independent of the chosen scheme.

    ring = [1, 2, 3, 4, 5, 6]
    name = "benzene"
    for part in ["mulliken", "lowdin", "meta_lowdin", "nao", "iao"]:
        arom = esipy.ESI(mol=mol, mf=mf, rings=ring, partition=part, save=name)
        arom.print()

Additionally, one can generate a directory containing the AOMs in AIMAll format. These files are readable from ESIpy, but also from Eduard Matito's ESI-3D code. These are written through the method writeaoms():

    arom = esipy.ESI(mol=mol, mf=mf, rings=[1,2,3,4,5,6], partition="nao")
    arom.writeaoms("benzene")

Further work

  • Approximations for the MCI calculation in large systems.
  • Read the AOMs (or the data required for their calculation) from other source programs and store them as ESIpy Smo.
  • Split the calculation into orbital contributions.
  • Adaptation of some indicators to non-closed circuits (e.g., linear chains).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

esipython-1.0.6.tar.gz (54.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

esipython-1.0.6-py3-none-any.whl (53.6 kB view details)

Uploaded Python 3

File details

Details for the file esipython-1.0.6.tar.gz.

File metadata

  • Download URL: esipython-1.0.6.tar.gz
  • Upload date:
  • Size: 54.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for esipython-1.0.6.tar.gz
Algorithm Hash digest
SHA256 dc7ab149dce8bb56e21fffe18167be071fd14ff50433dc05a980589e7258961e
MD5 3bd8b00e2720f9fbe37ea719ebed4c72
BLAKE2b-256 f1df95065ea9756867f186088ef922776f5d2970d99ff178830086898ec390a6

See more details on using hashes here.

File details

Details for the file esipython-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: esipython-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 53.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for esipython-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8bd0237bc321a4866b68855516978c0840bfe680e8879ac41c6037300ef43555
MD5 31bb310e0ce99500e4ae6847253492d0
BLAKE2b-256 33a0d24b174fced7e05ab5e074cfdb4105f4406ca19573f16178aba45e1e0006

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page