Io

Collection of functions for import/export-ing data

This module contains functionality for importing and exporting data between OpenPNM and other formats.

Note that saving and loading OpenPNM data in its own format is done through the Workspace and Project objects. Saving data through these classes losses lots of vital information about the simulation, such as pore scale-models and parameters.

Classes

COMSOL

Writes a file containing pores and throats of the network in a format that can be opened in COMSOL.

CSV

Reads and writes CSV (comma-separated-value files) containing pore and throat data

Dict

Generates hierarchical dicts with a high degree of control over the structure.

GenericIO

Brief description of GenericIO

HDF5

The HDF5 (Hierarchical Data Format) file is good for high-peformance, long term data storage

JSONGraphFormat

Class for reading and writing OpenPNM networks to JSON Graph Format (JGF).

MARock

3DMA-Rock is a network extraction algorithm developed by Brent Lindquist and his group

MAT

MAT files are a format used by Matlab

NetworkX

NetworkX is a common tool for dealing with network structures

PNM

This is the official way to save and load OpenPNM projects

Pandas

Combines all data arrays into a Pandas DataFrame object

ParaView

Class for exporting and viewing OpenPNM networks in ParaView.

PerGeos

PerGeos is the format used by the Avizo software.

Pickle

This class contains methods used for saving and loading OpenPNM Workspaces, Projects, and objects as Pickles.

PoreSpy

Methods

STL

The STL Format is a Standard Triangle (or Tessellation) Language supported by many CAD packages and used for 3D printing.

Salome

Writes a Salome .py script to generate a geometry.

Statoil

The StatOil format is used by the Maximal Ball network extraction code of the Imperial College London group

VTK

The Visualization Toolkit (VTK) format defined by Kitware and used by Paraview.

XDMF

The eXtensible Data Model Format combines XML descriptors with HDF5 data storage.

iMorph

iMorph is a graphical interface program that provides some image analysis tools for porous media