- Cubic.props(element=None, mode='all', deep=False)¶
Returns a list containing the names of all defined pore or throat properties.
mode (str, optional) –
- Controls what type of properties are returned. Options are:
’all’ : Returns all properties on the object (default)
’models’ : Returns only properties that are associated with a model
’constants’ : returns data values that were not generated by a model, but manaully created.
Truethen the props on all associated subdomain objects are returned as well.
A an alphabetically sorted list containing the string name of all
pore or throat properties currently defined. This list is an iterable,
so is useful for scanning through properties.
>>> import openpnm as op >>> pn = op.network.Cubic(shape=[3, 3, 3]) >>> pn.props('pore') ['pore.coords'] >>> pn.props('throat') ['throat.conns'] >>> pn.props() ['pore.coords', 'throat.conns']