Giter Site home page Giter Site logo

poreflow's Introduction

Poreflow

Modelling flow at the rock pore scale

Compilation

cd src/
make

The binaries are stored in bin/

Hourglass example

In this simple example we:

  • Create a simple image of a pore channel with a hourglass profile.
  • Generate a tetrahedral mesh using the Tarantula meshing code.
  • Use dolfin to model stokes flow through the channel and calculate the flux and permeability.
# Create an image 47^3 voxels in size, norrowest width of hourglass. Write file in vox image format.
./bin/create_hourglass -s 47 -t 8 -c vox -o hourglass.vox

# Mesh image using tarantula's voxmesher
voxmesher hourglass.conf

# Convert Tarantula's .spm file into GMSH format.
./bin/tarantula2gmsh -v hourglass.spm

# Convert GMSH file into Dolfin's xml format.
dolfin-convert hourglass.msh hourglass.xml

# Run Stokes FEM model using a direct solver and the Taylor-Hood element pair.
python python/stokes-dolfin.py -D -e 0 hourglass.xml 

You will see that the file velocity000000.vtu has been created. Use ParaView to visualise the velocity profile.

Small Berea Sandstone example

In this simple example we:

# Extract 64^3 voxels from micro-CT image. Write out file in vox image format.
cd data/
unzip 33505696.ZIP 
mv Image Berea
./bin/convert_microct -c vox -s 64 Berea

# Mesh image using tarantula's voxmesher
voxmesher Berea.conf

# Convert Tarantula's .spm file into GMSH format.
../bin/tarantula2gmsh -v Berea.spm

# Convert GMSH file into Dolfin's xml format.
dolfin-convert Berea.msh Berea.xml

# Run Stokes FEM model using a direct solver and the Taylor-Hood element pair.
python python/stokes-dolfin.py -D -e 4 Berea.xml

You will see that the file velocity000000.vtu has been created. Use ParaView to visualise the velocity profile.

poreflow's People

Contributors

ggorman avatar

Watchers

 avatar  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.