Sbai7 / pn-stitcher

Pore-network stitching method

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PN-Stitcher

PN-Stitcher is the source code of pore-network stitching method (PNSM). This method provides large-enough representative pore-network (PN) for a core that encompasses a larger scale of heterogeneities than is possible using conventional pore-scale modeling approaches while it is still computationally efficient. Details of this method are explained in this paper and preprint.

The original code is written in Fortran (.f90 files) and compiled via GFortran. The format of input and output PN files is StatOil format. For more details on this format, please see the appendix of Sochi (2007).

In order to compile the source code, you can download and install GNU Compiler Collection from MinGW. After completing the installation, type this line in Windows Command Prompt:

gfortran pn_stitcher.f90 > pn_stitcher

This should generate the executable file ('pn_stitcher.exe'). In order to run the executable file, after having appropriate input file and PN files in the same folder as the executable file, type this line in Windows Command Prompt:

pn_stitcher.exe input.txt

The input file ('input.txt') has eight lines. Line 1 and 5 are Fortran comments. Line 2 and 3 are the prefix of PNs at the left and right, respectively. Line 4 is the prefix of the stitched PN. Line 6 and 7 are the folder address of original PNs and Line 8 is the folder address where the stitched PN will be written at.

The PN two-phase flow simulation is carried out using PoreFlow. For more details on this flow solver, please check out Valvatne and Blunt (2004). Other PN flow solvers can also be used, such as PN-Flow and OpenPNM, that can read PN files in StatOil format.

For any questions or comments, please contact me at kohanpu2@illinois.edu

About

Pore-network stitching method


Languages

Language:Fortran 95.2%Language:MATLAB 4.8%