MAT files are a format used by Matlab


The ‘mat’ file must contain data formatted as follows:

  1. The file can contain either or both pore and throat data.

2. The property names should be in the format of pore_volume or throat_surface_area. In OpenPNM the first ‘_’ will be replaced by a ‘.’ to give 'pore.volume' or 'throat.surface_area'.

3. Boolean data represented as 1’s and 0’s will be converted to the Python boolean True and False. These will become 'labels' in OpenPNM.


export_data(network[, phases, filename])

Write Network to a Mat file for exporting to Matlab.

import_data(filename[, project])

Loads data from an appropriately formatted 'mat' file (i.e.