Math & Equations Reference
The exact formulas used by the calculation engine for reactions, H₂ production, and membrane transport. All internal computation is performed in SI units; user-facing inputs are converted before these equations are applied.
Formula Parsing & Molecular Weight
Every chemical formula is parsed into an element-count map; molecular weight sums atomic weights.
Equation Parsing
A full equation is split on the arrow into reactants and products, each with a stoichiometric coefficient.
Stoichiometric H₂ Yield (limiting reactant)
For each reactant, compute the H₂ it could produce; the minimum is the limiting-reactant yield.
Rate-Based & Hybrid Reactions
Rate-based reactions use a measured H₂ rate directly; hybrid reactions cap the stoichiometric total by the measured rate.
For stoichiometric reactions the rate is the constant average: ṅ_H₂ = n_H₂,stoich / t_duration, then zero after the duration elapses.
Half-Reaction Balancing (aqueous)
The standard algorithm balances O with H₂O, H with H⁺ (acidic) or OH⁻ (basic), and charge with e⁻.
- Balance non-H/O elements (assumed balanced in the entered skeleton).
- Balance O by adding H₂O to the deficient side.
- Balance H by adding H⁺ to the deficient side (acidic).
- Balance charge by adding e⁻ to the more positive side.
- For basic medium: add OH⁻ to both sides for each H⁺, then cancel excess H₂O.
Validation checks atom balance, charge balance, and electron balance (electrons cancel in a full equation; appear on one side in a half-reaction).