Skip to main content

The Complicator

Code Authors: Grayson Boyer, Everett Shock Data Compilers: GEOPIG Lab, Apar Prasad

This is a Python package for estimating standard state thermodynamic properties and Helgeson-Kirkham-Flowers (HKF) equation of state parameters for aqueous metal complexes with monovalent ligands using published methods from Sverjensky et al. (1997) and Shock et al. (1997)

Installation

This package can be installed through PyPI with: pip install Complicator

Usage

The best way to learn about the Complicator is through the WORM Portal (worm-portal.asu.edu). Check out Jupyter notebook demo 4-2-1 in the WORM Library that is available when you log in.

What follows is a brief example of how the Complicator can be used.

Supply a dataframe containing names of metals, ligands, stability constants for the first through fourth association at 25 °C, and optionally, standard state entropies of association for the first through fourth association complex. An example is assigned to the variable df_input in the example below.

import pandas as pd
from Complicator import complicate

df_input = pd.DataFrame({
        "Metal":["Ag+", "Al+3"],
        "Ligand":["OH-", "OH-"],
        "BETA_1":[2, 9.03], # stability constant for the first association complex
        "BETA_2":[3.97, 17.6], # second stability constant
        "BETA_3":[float('NaN'), 26.4], # third stability constant
        "BETA_4":[float('NaN'), 33.8], # fourth stability constant
        "Sass_1":[float('NaN'), 36.5], # entropy of association for the first complex (cal/mol/K)
        })

df_out, _, _, _ = complicate(df_in=df_input)

df_out

The output is a dataframe containing estimated thermodynamic properties, parameters for the revised Helgeson Kirkham Flowers (HKF) equation of state, and more. The format of the output is explained in more detail here. This Water-Organic-Rock-Microbe (WORM) database format is designed to be compatible with the free and open source online geochemical modeling platform WORM Portal. Estimated thermodynamic properties of complexes from the Complicator can be used in conjunction with the rest of the WORM database to:

  • calculate properties of reactions and create activity or predominance diagrams.
  • expand the number of aqueous complexes available in geochemical speciation (equilibration) and mass transfer calculations.

Release files for complicator 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for complicator 0.4.0
File Size Uploaded
complicator-0.4.0.tar.gz 175.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for complicator 0.4.0
File Interpreter ABI Platform
complicator-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 324.0 kB

Release files / complicator-0.4.0.tar.gz

Download URL complicator-0.4.0.tar.gz
Size 175.1 kB
Tags Source
SHA-256 checksum
How to use checksums
539fa610bab0901d69b589112f1789c15d4202f975e3d39033cd3f0be123c808
BLAKE2b-256 checksum
How to use checksums
cb5fab000a3b24808a049211d4b4ab428dff4be734cd166a0c9082f810d1c536
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / complicator-0.4.0-py3-none-any.whl

Download URL complicator-0.4.0-py3-none-any.whl
Size 148.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c10ba49b9209c167d5ec282b22578dbee14d446c991f0fb995026748c077200c
BLAKE2b-256 checksum
How to use checksums
31a780e5d9e80dc02304866941b14f07459de6cf8fca35707811e1f5feb04afb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page