Book contents
- Frontmatter
- Contents
- Preface
- Preface to first edition
- A note about software
- 1 Introduction
- 2 Modeling overview
- Part I Equilibrium in natural waters
- 3 The equilibrium state
- 4 Solving for the equilibrium state
- 5 Changing the basis
- 6 Equilibrium models of natural waters
- 7 Redox disequilibrium
- 8 Activity coefficients
- 9 Sorption and ion exchange
- 10 Surface complexation
- 11 Automatic reaction balancing
- 12 Uniqueness
- Part II Reaction processes
- Part III Applied reaction modeling
- Appendix 1 Sources of modeling software
- Appendix 2 Evaluating the HMW activity model
- Appendix 3 Minerals in the LLNL database
- Appendix 4 Nonlinear rate laws
- References
- Index
11 - Automatic reaction balancing
Published online by Cambridge University Press: 05 August 2012
- Frontmatter
- Contents
- Preface
- Preface to first edition
- A note about software
- 1 Introduction
- 2 Modeling overview
- Part I Equilibrium in natural waters
- 3 The equilibrium state
- 4 Solving for the equilibrium state
- 5 Changing the basis
- 6 Equilibrium models of natural waters
- 7 Redox disequilibrium
- 8 Activity coefficients
- 9 Sorption and ion exchange
- 10 Surface complexation
- 11 Automatic reaction balancing
- 12 Uniqueness
- Part II Reaction processes
- Part III Applied reaction modeling
- Appendix 1 Sources of modeling software
- Appendix 2 Evaluating the HMW activity model
- Appendix 3 Minerals in the LLNL database
- Appendix 4 Nonlinear rate laws
- References
- Index
Summary
Conveniently, perhaps even miraculously, the equations developed in Chapter 5 to accomplish basis swaps can be used to balance chemical reactions automatically. Once the equations have been coded into a computer program, there is no need to balance reactions, compute equilibrium constants, or even determine equilibrium equations by hand. Instead, these procedures can be performed quickly and reliably on a small computer.
To balance a reaction, we first choose a species to appear on the reaction's left side, and express that species' composition in terms of a basis B. The basis might be a list of the elements in the species' stoichiometry, or an arbitrary list of species that combine to form the left-side species. Then we form a second basis B′ composed of species that we want to appear on the reaction's right side. To balance the reaction, we calculate the transformation matrix relating basis B′ to B, following the procedures in Chapter 5. The transformation matrix, in turn, gives the balanced reaction and its equilibrium constant.
Calculation procedure
Two methods of balancing reactions are of interest. We can balance reactions in terms of the stoichiometries of the species considered. In this case, the existing basis B is a list of elements and, if charged species are involved, the electron e−. Alternatively, we may use a dataset of balanced reactions, such as the llnl database. Basis B, in this case, is the one used in the database to write reactions. We will consider each possibility in turn.
- Type
- Chapter
- Information
- Geochemical and Biogeochemical Reaction Modeling , pp. 169 - 180Publisher: Cambridge University PressPrint publication year: 2007