Installation of PorePy itself should be straightforward, following the instructions in Readme.md.
To get the code fully working requires a few more steps, as described below. Please read the full instructions (including the part on point_in_polyhedron) before reporting an issue on installation.
Instructions are found on the GitHub webpage. Others libraries that should be installed found in the file pyproject.toml
.
Installation on Windows is currently (Spring 2021) rather easy, following these Linux instructions. The dependencies should be installed using either conda
or the Intel python distribution and then pip install porepy
from source.
Please note that running PorePy on Windows is not officially supported, in the sense that we may introduce updates to the code or new dependencies which may break Windows compatibility.
Install on Mac should also be straightforward if using conda
. Similar to Windows, compatibility with Mac is not officially supported.
Some of these requirements aren't strictly necessary to run porepy, however, many workflows require these ancillary components.
Several computationally expensive methods can be accelerated with Cython or Numba. Shapely is used for certain geometry-operations. To install these packages, an administrative level pip install should be sufficient, i.e. through sudo pip install cython numba shapely
The metis package is used to partition meshes. In order to use this package, you must install metis from George Karypis
http://glaros.dtc.umn.edu/gkhome/metis/metis/overview. In linux, this should be available through apt-get or apt install:
sudo apt install metis
. Windows and Mac OS users should try using the docker container. Once metis is installed, pymetis can be installed through PiPy pip install pymetis
.
If the apt install doesn't work, try the followig:
- Download the Metis library source files from: http://glaros.dtc.umn.edu/gkhome/metis/metis/download
- Make sure you have cmake and build-essentials installed via
sudo apt install cmake build-essentials
- Run the following from the Metis source file directory: make config make
- You should now have Metis installed on your machine. Test this by running mpmetis -help.
- Make sure you have pybind11 installed via
pip install pybind11
- Install pymetis via
pip install pymetis
The bulk of the visualization in 3D relies on the visualization toolkit (VTK) and a visualization client, which Paraview is likely the most widely used.