interpolate_data

Delaunay.interpolate_data(propname, mode='mean')

Determines a pore (or throat) property as the average of it’s neighboring throats (or pores)

Parameters
  • propname (str) – The dictionary key to the values to be interpolated.

  • mode (str) – The method used for interpolation. Options are ‘mean’ (default), ‘min’, and ‘max’.

Returns

vals – An array containing interpolated pore (or throat) data

Return type

ndarray

Examples

>>> import openpnm as op
>>> pn = op.network.Cubic(shape=[3, 1, 1])
>>> pn['pore.value'] = [1, 2, 3]
>>> pn.interpolate_data('pore.value')
array([1.5, 2.5])