Skip to main content

A package for calculating molecular moments and polarizabilities using PySCF

Project description

Molecular Moments and Polarizabilities Calculator

License

HMPOLImage

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())

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

cpol_pyscf-0.1.6.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

cpol_pyscf-0.1.6-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file cpol_pyscf-0.1.6.tar.gz.

File metadata

  • Download URL: cpol_pyscf-0.1.6.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for cpol_pyscf-0.1.6.tar.gz
Algorithm Hash digest
SHA256 eab1a5a42537efea5edd69a915f4764e4008522edd6c379e36428fd228c85553
MD5 da048758f6dcf4696f6819dc0ebb644b
BLAKE2b-256 017bde7e053a4be703af0a6d74bcebd3eb80b66a967cfcd30afb849da6d8a0c3

See more details on using hashes here.

File details

Details for the file cpol_pyscf-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: cpol_pyscf-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for cpol_pyscf-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9dec995d4dbe19c838fd025a9d2d24d77a1e82c4415f927ac6d5d59ec0d5b97f
MD5 3f07d4402179b355b82ef31b1e69c8e2
BLAKE2b-256 eac8d8a66f06b675ea0481274a9cb61adfb56f0578e9a1ce99c2d2f6512da631

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