A package to calculate various stoichometric features of compounds.
Project description
chem_calc
The module chem_calc calculates chemical and physical properties based on the stoichometry of a chemical compound.
The 20+ available properties (or features) used in this package are elemental properties from the CRC Handbook of Chemistry and Physics as well as the NIST X-ray Mass Attenuation Coefficients Database.
Available properties
CRC Handbook of Chemistry and Physics
Property / Feature | Tag |
---|---|
Number of 4f electrons | '4f' |
Number of 5d electrons | '5d' |
Combined number of 4f and 5d electrons | 'add4f5d' |
Absolute value of the difference of number of 4f and 5d electrons | 'sub4f5dabs' |
Number of electrons | 'allelectrons' |
Number of valence outer shell electrons | 'val_e' |
Atomic number | 'atomicnumber' |
Atomic weight | 'atomicweight' |
First ionization energy | 'ionenergy' |
Pauling electronegativity of most common oxidation state | 'el_neg_chi' |
van der Waals radius | 'R_vdw_element' |
Covalent radius | 'R_cov_element' |
Atomic number to mass number ratio | 'zaratio' |
Excitation energy | 'ex_energy' |
Period | 'period' |
Elemental density | 'density' |
NIST X-ray Mass Attenuation Coefficients Database for features at 662 keV and include the following:
Property / Feature | Tag |
---|---|
Coherent scattering coefficient | 'co_scatt' |
Incoherent scattering coefficient | 'inco_scatt' |
Photoelectric absorption | 'pe_abs' |
Coherent attenutation coefficient | 'atten_co' |
Incoherent attenutation coefficient | 'atten_inco' |
Methods
- how_many -- Returns the number of atoms in a given chemical formula.
>>> import chem_calc
>>> chem_calc.chem_calc('H2O').howmany
3.0
- total -- Returns the feature total for a given chemical formula.
>>> import chem_calc
>>> chem_calc.chem_calc('H2O',feature='atomicweight').total
18.014710000000001
- avg_feature -- Returns the average value of a property for a given chemical formula.
>>> import chem_calc
>>> chem_calc.chem_calc('H2O',feature='atomicweight').avg_feature
6.0049033333333339
Installation
Use 'pip' to install from pypi:
pip install chem_calc
or 'pip' to install from github:
pip install git+https://github.com/garne041/chem_calc.git
or clone the package using git:
git clone https://github.com/garne041/chem_calc.git
Requirements
Requires numpy, pickle, and pandas
License
The original code that this project is based on https://repl.it/@Supakri2680/Molecular-Mass-Calculator2. In keeping with this mentality, all code is released under the MIT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file chem_calc-0.0.3.tar.gz
.
File metadata
- Download URL: chem_calc-0.0.3.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f911770abc2217452e5fe767b44d6924a7a77955f943e9d314895e0c4c66675 |
|
MD5 | 1abc60da2d4db0e419eadb28e3d7132f |
|
BLAKE2b-256 | 1aed11feee326c05926b611d72c958e1973c803e94484bd532e042b8921997bd |
File details
Details for the file chem_calc-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: chem_calc-0.0.3-py3-none-any.whl
- Upload date:
- Size: 42.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 631a26a4c3e39f3909b0469313cd65473f45a8486590148967973b458ebff6b8 |
|
MD5 | d6f9e8f0ee577ed4b74cd400d131a8a7 |
|
BLAKE2b-256 | 279548df44efe8526f3fb84f6bf68126236a73c349728e7e116b018414828aa9 |