Base2#

class Base2(*args, **kwargs)[source]#

A subclassed dictionary used for storing data

Parameters:

network (dict) – An OpenPNM Network object, which is a subclass of a dict

Attributes:
Np
Nt
Ps
Ts
name
network
params
project
settings

Methods

get_conduit_data(propname)

Fetches an Nt-by-3 array of the requested property

interpolate_data(propname[, mode])

Generates an array of the requested pore/throat data by interpolating the neighboring throat/pore data.

props([element])

Retrieves a list of keys that contain numerical data (i.e.

to_indices(mask)

Converts a boolean mask to pore or throat indices

to_mask([pores, throats])

Generates a boolean mask with True values in the given locations