The basis species represent the possible range of chemical compositions for all the species of interest.
As used here, a set of basis species is valid only if it satisifes two conditions: 1) the number of basis species is the same as the number of chemical elements (including charge) in those species and 2) the square matrix representing the elemental stoichiometries of the basis species has a real inverse.
To create a basis definition, call basis
with the names or formulas of the basis species in the species
argument, or all numeric values as species indices (rownumbers in thermo()$OBIGT
).
The special names pH, pe and Eh can also be used; they get translated into the names of the proton (H+) and electron (e-) as appropriate.
If desired, include the state
for the named species and the logarithms of activity (fugacity for gases) in logact
.
The latter defaults to zero (unit activity) if not specified.
To modify an existing basis definition, the physical states or logarithms of activities of species can be changed by calling basis
with a species
argument that has the formulas (not names) or indices of species in the existing basis.
If either of the second or third arguments to basis
is of type character, it refers to the physical state (if present in thermo()$OBIGT$state
) or a chemical activity buffer
(if present in thermo()$buffers$name
).
If either of these arguments is numeric it specifies the logarithms of activities (or fugacities for gases) of the basis species.
In case pH, pe or Eh is named, the logarithm of activity of the basis species is converted from these values.
For example, a value of 7 for pH is stored as a logarithm of activity of -7.
Whenever basis
is called with NULL values of both state
and logact
, the new set of species, if they are a valid basis set, completely replaces any existing basis definition.
If this occurs, any existing species definition (created by the species
function) is deleted.
Call basis
with delete
set to TRUE or species
set to "" to clear the basis definition and that of the species
, if present.
If the value of basis
is one of the keywords in the following table, the corresponding set of basis species is loaded, and their activities are given preset values.
The basis species identified by these keywords are aqueous except for (liq), (gas) and (hematite).
CHNOS |
, , , , |
CHNOS+ |
, , , , , |
CHNOSe |
, , , , , |
CHNOPS+ |
, , , , , , |
CHNOPSe |
, , , , , , |
MgCHNOPS+ |
, , , , , , , |
MgCHNOPSe |
, , , , , , , |
FeCHNOS |
, , , , , |
FeCHNOS+ |
, , , , , , |
QEC4 |
cysteine, glutamic acid, glutamine, , |
QEC |
cysteine, glutamic acid, glutamine, , |
QEC+ |
cysteine, glutamic acid, glutamine, , , |
QCa |
glutamine, cysteine, acetic acid, , |
QCa+ |
glutamine, cysteine, acetic acid, , , |
The logarithms of activities of amino acids in the QEC4 basis are -4 (i.e., basis II in Dick, 2016); those in QEC and QEC+ are set to approximate concentrations in human plasma (see Dick, 2017).