Skip to main content

Automation wrapper for the Cowan atomic structure code

Project description

Cowan Runner

WARNING: The Cowan code must be obtained separately. This tool only automates execution and parsing.

Python automation tool for running the Cowan atomic structure code and parsing results (Slater integrals, spin–orbit constants) for a given atomic configuration and respective XAS final state

This project does NOT include the Cowan code itself.


REQUIREMENTS

You must have the Cowan executables installed and available in your system PATH:

  • rcn
  • rcn2
  • rcg

The original Cowan code is required separately.


WHAT THIS TOOL DOES

  • Automatically generates IN36
  • Runs Cowan (rcn, rcn2, rcg)
  • Parses the results
  • Extracts: • Fk (same-shell) • Fk (cross-shell) • Gk (exchange) • Zeta (spin–orbit)
  • Converts all values to eV

USAGE

Run:

python cowan_runner.py

The script will prompt for the required atomic and configuration parameters.


EXAMPLE

For Ni²⁺ 3d⁸ with a 2p core hole, run:

python cowan_runner.py

The script will ask:

Atomic number (Z): 28
Element symbol (e.g. Co, Ni, Ce,...): Ni
Ionization (e.g. 3+): 2+
Open subshell (e.g. 3d,4d,4f): 3d
Shell to create a hole (e.g. 2p,3d): 2p
Occupation number n (e.g. 7 for 3d7): 8

Select Cowan control mesh:
 90  = non-relativistic
190 = relativistic (standard)
290 = relativistic (recommended for heavy atoms / f systems)

Mesh [290 default]: 290

Example output:

Time spent: 0 hr 0 min 0.4 sec

--- Ni2+  3d8 ---
zeta_3d      = 0.0826 eV
F2           = 12.2328 eV
F4           = 7.5969 eV

--- Ni2+  2p5 3d9 ---
zeta_2p      = 11.5070 eV
zeta_3d      = 0.1022 eV
G1pd         = 5.7829 eV
F2pd         = 7.7204 eV
G3pd         = 3.2898 eV
F2           = 13.0052 eV
F4           = 8.0836 eV

NOTES

  • The Cowan CODE directory must be accessible via PATH
  • This repository does NOT distribute Cowan binaries
  • Designed for atomic multiplet and spectroscopy calculations
  • The mesh details can be found on COWAN documentation

Citation

If you use this tool in published work, please cite both this repository and the original Cowan code.

Cowan code:

R. D. Cowan, "The Theory of Atomic Structure and Spectra", University of California Press, 1981.

BibTeX:

@book{cowan1981theory, title={The Theory of Atomic Structure and Spectra}, author={Cowan, Robert D.}, year={1981}, publisher={University of California Press} }

LICENSE

MIT License

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

cowan_runner-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

cowan_runner-0.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file cowan_runner-0.1.0.tar.gz.

File metadata

  • Download URL: cowan_runner-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for cowan_runner-0.1.0.tar.gz
Algorithm Hash digest
SHA256 003b86ca7c52b18dcad12ddce689c0925eb2c5597afb6959fa9e396877d5dbf1
MD5 47d1d6bc7795a0f55d3808128150bd1b
BLAKE2b-256 9328332d2173c2102780f26193193bac388b481bfc7adadecebf0f6dfb069550

See more details on using hashes here.

File details

Details for the file cowan_runner-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cowan_runner-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for cowan_runner-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8daef194263fc0acaf086bf6b099a1d2586116a1fe03824e902bbc1c1eb08f8
MD5 86a176b0300a7e36b0f4b275d42ba763
BLAKE2b-256 252e77bc8404872f975c3b2f5b2ef0622b392b00a7b5a3b257fb6869d2bbea74

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