- class openpnm.io.MAT¶
MAT files are a format used by Matlab
The ‘mat’ file must contain data formatted as follows:
The file can contain either or both pore and throat data.
2. The property names should be in the format of
throat_surface_area. In OpenPNM the first ‘_’ will be replaced by a ‘.’ to give
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.
Loads data from an appropriately formatted 'mat' file (i.e.