calculate.KH | R Documentation |
‘calculate.KH()' utilizes the subcrt function from Jeffrey Dick’s CHNOSZ R package to calculate equilibrium constants.
calculate.KH(reactants, moles, phases, temperature, pressure)
reactants |
A vector of all components involved in the reaction, both reactants and products. |
moles |
A vector of the molar coefficients for the reaction, with negative values indicating reactants and positive values indicating products. |
phases |
A vector of the phases for all components in the reaction, either "aq", "l", or "g". |
temperature |
Temperature of the system, in Kelvin. |
pressure |
The pressure of the system, in atm. |
For the following chemical equilibrium: \loadmathjax \mjdeqnCO_2(aq)+H_2O(l) \rightleftharpoons HCO_3^2-(aq)+H^+(aq)ASCII representation an example can found below
calculate_KH(c("CO2","H2O","HCO3-","H+"),c(-1,-1,1,1),c("aq","l","aq","aq"), 273.15+37,1.7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.