mescla.prep.units¶
Unit conversion for major-ion chemistry.
Mixing algebra is linear in any consistent concentration unit, so Mescla never requires a conversion. You want one anyway for two reasons: charge balance is only meaningful in meq/L, and reaction stoichiometry is only readable in molar units.
Species names are matched case-insensitively and ignore charge notation, so
"Ca", "Ca2+", "CA++" and "calcium" all resolve to the same ion.
Functions
The factors used to convert each species, and where they come from. |
|
Equivalent weight (g/eq) of a named ion, or NaN when unknown or neutral. |
|
Return the |
|
Convert concentrations to milliequivalents per litre: |
|
Convert concentrations to millimoles per litre: |
Classes
A dissolved species: molar mass in g/mol and formal charge. |