Geochemical reaction modeling of carbon dioxide