Giter VIP home page Giter VIP logo

porepy's Introduction

Build Status Coverage Status

PorePy: A Simulation Tool for Fractured and Deformable Porous Media written in Python.

PorePy currently has the following distinguishing features:

  • General grids in 2d and 3d, as well as mixed-dimensional grids defined by intersecting fracture networks.
  • Support for analysis, visualization and gridding of fractured domains.
  • Discretization of flow and transport, using finite volume methods and virtual finite elements.
  • Discretization of elasticity and poro-elasticity, using finite volume methods.

PorePy is developed by the Porous Media Group at the University of Bergen, Norway. The software is developed under projects funded by the Reserach Council of Norway and Statoil.

Reproduce results from papers and preprints

Runscripts for most, if not all, papers that uses porepy is available at here. Note that you may have to revert to an older version of PorePy to run the examples (we try to keep the runscripts updated, but sometime fail to do so, for various reasons).

Citing

If you use PorePy in your research, we ask you to cite the following publication

E. Keilegavlen, A. Fumagalli, R. Berge, I. Stefansson, I. Berre: PorePy: An Open-Source Simulation Tool for Flow and Transport in Deformable Fractured Rocks. arXiv:1712.00460

Installation

PorePy depends on numpy, scipy and networkx, and (for the moment) also on meshio, sympy and matplotlib. The latter packages may be droped / changed later. To install (on Linux, probably also OSX), use

pip install porepy

We recommend installing from source (see below), rather than pulling from pypi. Installation by pip on Windows may cause problems with buliding the requirements (numpy etc) unless conda is used.

For more detailed install instructions, including how to access GMSH (for meshing), see Install.

PorePy is developed under Python 3. It should also be compatible with Python 2.7, however, apart from unit testing, it is not being used with Python 2, so be cautious.

From source

To get the most current version, install from github:

git clone https://github.com/pmgbergen/porepy.git

cd porepy

pip install -r requirements.txt

Finally to install PorePy

pip install .

or for editable installs into the user directory:

pip install --user -e .

Using Docker

A docker image is available, courtesy of Davide Baroli. To pull the docker.io/pmgbergen/porepylib with tag py27 image from cloud infrastructure:

>  docker pull docker.io/pmgbergen/porepylib:py27

Docker will pull the py27 tag of the image pmgbergen/porepylib from docker.io based on python 2.7. The download is around 4.085 GB. The image is a great place to start experimenting with porepy and includes all dependencies already compiled for you. Once the download is complete you can start porepy for the first time. Just run:

>  docker run -ti  docker.io/pmgbergen/porepy:py27

The image is auto-deployed at each push in the branch "develop".

For more details see the docker md.

(Semi-) Optional packages

To function optimally, PorePy should have access to the pypi packages:

  • pymetis (for mesh partitioning). Will be installed on Linux (not so on Windows, to avoid installation issues for the core package in the case where no C compiler is available).
  • Some computationally expensive methods can be accelerated with Cython or Numba. Cython is automatically installed on many Linux systems, if not, use pip or conda. Numba can be installed using conda.
  • Visualization by either matplotlib or (preferrable for larger problems) vtk/paraview. To dump data to paraview, a vtk filter must be available; the only solution we have found is from the 'conda' repositories, e.g. 'conda install -c clinicalgraphics vtk=7.1.0' (note that vtk should be version 7.0.0 or later, hence not the official channel)
  • Meshing: currently by gmsh. For its configuration see Install.

Testing

To test build locally, the second command requires gmsh (see Install)

pip install -r requirements-dev.txt

python setup.py test

Getting started

Confer the tutorials. Also see unit tests.

Problems

Create an issue

License

See license md.

porepy's People

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.