is_valid_propname

openpnm.utils.is_valid_propname(propname)[source]

Checks if propname is a valid OpenPNM propname, i.e. starts with ‘pore.’ or ‘throat.’

Parameters

propname (str) – Property name to check whether it’s a valid OpenPNM propname.

Returns

Whether or not propname is a valid name

Return type

bool