Molecular Moments and Polarizabilities Calculator
Overview
The Python code is designed for calculating higher-order moments and polarizabilities of small molecules. It is a versatile tool that provides insights into the molecular properties essential for understanding electronic structure and molecular interactions. The moments and polarizabilites so calculated are used as the parameter sets for the SCME code.
Features
Moments Calculation
- Dipole Moment
- Quadrupole Moment
- Octapole Moment
- Hexadecapole Moment
Polarizabilities Calculation
- Dipole-Dipole Polarizability
- Dipole-Quadrupole Polarizability
- Quadrupole-Quadrupole Polarizability
How to Use
Running the code [with PYSCF]
conda create --name cpol-pyscf
conda activate cpol-pyscf
pip3 install cpol-pyscf
copy the following H2O molecule geometry in a molecule.xyz file
3
Properties=species:S:1:pos:R:3 pbc="F F F"
O -0.00000000 0.00000000 0.06664447
H 0.76804750 0.00000000 -0.52889132
H -0.76804750 0.00000000 -0.52889132
And run the following script to test out the implementation with pyscf
from pyscf import gto
from ase.io import read
from cpol_pyscf import Pols
import numpy as np
from ase.visualize import view
from ase.units import Bohr, Ha
mol = gto.Mole()
molecule = read("molecule.xyz")
mol.atom = "molecule.xyz"
mol.basis = "augccpvqz"
mol.build()
field_strength_F = 0.00486/Ha*Bohr
pols = Pols(molecule,mol, irrep=False, field_strength_F=field_strength_F)
print("dd polarizability")
print(pols.calc_dd_pol())
print("dq polarizability")
print(pols.calc_dq_pol())
print("qq polarizability")
print(pols.calc_qq_pol())
Metadata
Release files for cpol-pyscf 0.1.16
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 |
|---|---|---|---|---|
| cpol_pyscf-0.1.16.tar.gz | 8.9 kB | Without provenance | Details for cpol_pyscf-0.1.16.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cpol_pyscf-0.1.16-py3-none-any.whl | Python 3 | none | any | Details for cpol_pyscf-0.1.16-py3-none-any.whl |
Total release size: 18.1 kB
Release files / cpol_pyscf-0.1.16.tar.gz
| Download URL | cpol_pyscf-0.1.16.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
087622730a196048b2660578c9409acccb13730723014aea16508a0397570cb3
|
|
BLAKE2b-256 checksum How to use checksums |
b246e27cd1b5957a12da983bebb4e9e8048c29d504169b24ea6895f820687283
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.4
|
Release files / cpol_pyscf-0.1.16-py3-none-any.whl
| Download URL | cpol_pyscf-0.1.16-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d77583ea877d4db8b3edff9e94fd43f1d539f9111f787a0c134a72a4ba03f19
|
|
BLAKE2b-256 checksum How to use checksums |
9efaaf411b3bddcb86f8ec5c6d4a23280c0af228856b6c6181464aedfdca8cd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.4
|
Security for cpol-pyscf 0.1.16
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.