Skip to content

Open-source code to perform studies of MICP treatment and CO2 assessment.

License

Notifications You must be signed in to change notification settings

daavid00/py-micp

Repository files navigation

Build Status Code style License: GPL v3

py-micp: An Open-Source Simulation Workflow for Field-Scale Application of Microbially Induced Calcite Precipitation Technology for Leakage Remediation

This repository contains runscripts to simulate microbially induced calcite precipitation (MICP) treatment in different domains; in addition to CO2 injection assessment in leakage paths before and after MICP application. We refer to paper [A] for an extended description of the background.

The numerical examples accompanying this module are:

  • full_diagonal_leak,
  • full_double_leak,
  • full_single_leak,
  • quarter_diagonal_leak,
  • quarter_double_leak,
  • quarter_single_leak,
  • top_vs_vertical_variable_injection, and
  • towards_more_optimal_injection_strategies.

The scripts in these examples can be easily modified to run different studies changing input parameter values, spatial domain properties, and implemented models in OPM Flow.

Installation

You will first need to install/download

  • Flow (tested with Flow==release/2022.04)
  • Python (tested with Python==3.10.5)
  • GNU Octave (tested with GNU Octave==7.1.0)
  • MRST (tested with MRST==2022a)

You will also need to install some python packages see requirements.txt for a complete list. You can install all the required python packages in a virtual environment with the following commands:

# Clone the repo
git clone https://github.com/daavid00/py-micp.git
# Get inside the folder
cd py-micp
# Create virtual environment
python3 -m venv .venv
# Activate virtual environment
source .venv/bin/activate
# Upgrade pip and setuptools
pip install --upgrade pip setuptools wheel
# Install the python requirements
pip install -r requirements.txt

You can install Flow from binary packages on Ubuntu Linux 16.04 or 18.04 and Red Hat Enterprise Linux 6 or 7. Installing instruction is found here. The OPM webpage also has instruction for installation on other systems. Once you have installed Flow, GNU Octave, and downloaded MRST:

  • Edit line 11 of the python scripts (e.g., 'quarter_single_leak.py') with the full path to your 'flow' executable (e.g., '~/Opm/opm-simulators/build-cmake/bin /flow').
  • Edit line 2 of the GNU Octave scripts (e.g., 'quarter_single_leak.m') with the full path to your MRST 'startup.m' file (e.g., '~/mrst-2022a/startup.m').

Running the scripts

  • From the terminal, e.g., for the quarter_single_leak system:

python3 quarter_single_leak.py

Paper

[A] Tveit, S. and Landa-Marbán, D. Field-scale optimization of injection strategies for leakage mitigation using microbially induced calcite precipitation. Submitted. https://doi.org/10.13140/RG.2.2.22042.16324

Contact

David Landa-Marbán (dmar@norceresearch.no).

About

Open-source code to perform studies of MICP treatment and CO2 assessment.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published