dPdTtr
returns values of $(dP/dT)Ttr$, where $Ttr$ represents the transition temperature, of the phase transition at the high-$T$ stability limit of the x
th species in thermo$obigt
(no checking is done to verify that the species represents in fact one phase of a mineral with phase transitions). dPdTtr
takes account of the Clapeyron equation, $(dP/dT)Ttr$=$DS/DV$, where $DS$ and $DV$ represent the changes in entropy and volume of phase transition, and are calculated using subcrt
at Ttr from the standard molal entropies and volumes of the two phases involved. Using values of dPdT
calculated using dPdTtr
or supplied in the arguments, Ttr
returns as a function of P
values of the upper transition temperature of the mineral phase represented by the x
th species.
nonideal
takes a list of dataframes (in proptable
) containing the standard molal properties of the identified species
.
The function bypasses (leaves unchanged) properties of the proton (H+), electron (e-), and all species whose charge (determined by the number of Z in their makeup
) is equal to zero.
The values of IS
are combined with Alberty's (2003) equation 3.6-1 (Debye-Huckel equation) and its derivatives, to calculate apparent molal properties at the specified ionic strength(s) and temperature(s).
The lengths of IS
and T
supplied in the arguments should be equal to the number of rows of each dataframe in proptable
, or one to use single values throughout.
The apparent molal properties that can be calculated include G
, H
, S
and Cp
; any columns in the dataframes of proptable
with other names are left untouched.
A column named loggam
(logarithm of gamma, the activity coefficient) is appended to the output dataframe of species properties.
which.balance
returns, in order, which column(s) of species
all have non-zero values. It is used by diagram
and transfer
to determine a conservant (i.e. basis species that are conserved in transformation reactions) if none is supplied by the user.
spearman
calculates Spearman's rank correlation coefficient for a
and b
.
unitize
scales the logarithms of activities given in logact
so that the logarithm of total activity of residues is equal to zero (i.e. total activity of residues is one), or to some other value set in logact.tot
. length
indicates the number of residues in each species. If logact
is NULL, the function takes the logarithms of activities from the current species definition. If any of those species are proteins, the function gets their lengths using protein.length
.