to_local¶
- CirclesAndRectangles.to_local(pores=None, throats=None, missing_vals=- 1)¶
Convert global indices to local values relative to a subdomain object
- Parameters
pores (array_like) – List of pore or throat indices to be converted
throats (array_like) – List of pore or throat indices to be converted
missing_values (scalar) – The value to put into missing locations if global indices are not found. If
missing_vals
isNone
, then any missing values are removed from the returned list.
- Returns
indices – An array of location indices
- Return type
ndarray