Introduction

The casual user has no need to explicitly call this module.

pytzer.props contains functions that retrieve the universal properties of ions and electrolytes. By universal, we mean that these do not change depending on the exact model set-up, unlike the Pitzer model coefficients.

pytzer.props.charges

For an input array of "ion" names - following the pytzer naming conventions - returns the charge on each ion, and separate lists of cations, anions, and neutral species.

Syntax

zs, cations, anions, neutrals = pytzer.props.charges(ions)

Input

Variable Description
ions numpy array of ion (and neutral species) names

Outputs

Variable Description
zs Charge on each ion (or zero for neutrals), in the same order as input ions
cations numpy array of cation names
anions numpy array of anion names
neutrals numpy array of neutral species names