Geochemical reaction and open systems