Coder Social home page Coder Social logo

oldkingnearby / pnextract Goto Github PK

View Code? Open in Web Editor NEW

This project forked from imperialcollegelondon/pnextract

0.0 1.0 0.0 2.24 MB

Pore network extraction from micro-CT images of porous media

Home Page: http://www.imperial.ac.uk/earth-science/research/research-groups/perm/research/pore-scale-modelling

Shell 1.78% Makefile 1.67% C++ 96.54%

pnextract's Introduction

pnextract -- pore-network extraction

This code extracts a conventional pore network from a micro-CT image. It is a re-write of the maximal-ball network extraction algorithm by Dong and Blunt, 2009. It is used as a base for the generalized network extraction code Raeini, Bijeljic and Blunt 2017, sponsored by TOTAL. However, here the modules for extracting the generalized network elements (corners) are not included.
The network parameters has been calibrated to reproduce single-phase flow properties, and water-wet relative permeability for a set of sandstone rocks. The code uses a new scale-independent shape factor definition to characterize pores and throats, published in Bultreys et al. 2018.

Instructions

A sample input file, Image.mhd, is provided in the doc folder, in ascii (text) format. Please use this file together with a 8-bit micro-CT image, similar to the Images on our website.

To extract a pore network, decompress the bin/pnextract.exe.7z and run, in a Windows Command Prompt:
bin\pnextract.exe Image.mhd

See the pnextract wiki for more instructions!

Build instructions:

The code is already compiled to bin/pnextract.exe, a Win64 executable, using mingw compilers.

The compilation can be done in Linux by running './AllMake' bash script.

The './AllMakeMinGW' bash script compiles the code for Windows machines. Run './AllClean' beforhand, to avoid mixing the intermidiate Linux and Windows object files.

Dependencies

The included voxelImage library is the main prerequisite. voxelImage itself can optionally be linked to libz and libtiff to support reading .raw.gz and 3D .tif files. Stripped down versions of both of these libraries are provided in the thirdparty directory for compatibility and ease of compilation.

Licence

The code and executables are provided as is, without any kind of warranty; use at your own risk.

For contact and further information see Imperial College - pore-scale consortium website, or send me an email: [email protected]

References

H. Dong and M. J. Blunt, "Pore-network extraction from micro-computerized-tomography images", Phys. Rev. E 80, 036307 (2009) https://doi.org/10.1103/PhysRevE.80.036307

A Q Raeini, B Bijeljic, and M J Blunt, "Generalized network modeling: Network extraction as a coarse-scale discretization of the void space of porous media", Phys. Rev. E 96, 013312 (2017) https://doi.org/10.1103/PhysRevE.96.013312

T Bultreys, Q Lin, Y Gao, A Q Raeini, A AlRatrout, B Bijeljic, and M J Blunt . "Validation of model predictions of pore-scale fluid distributions during two-phase flow", Phys. Rev. E 97, 053104 (2018) https://link.aps.org/doi/10.1103/PhysRevE.97.053104

pnextract's People

Contributors

aliraeini avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.