Modeling the fluid flow of carbon dioxide through permeable media