itasca.zonearray
Array interface for FLAC zones.
Functions
-
itasca.zonearray.extra(slot: int) → array float{zone} or float{zone}. Get the zone extra data in the given slot as an array. Extra variables accessed by array must be of type float or vec.
-
itasca.zonearray.fill_pos(data: array float{zone, 2}) → None. Fill an existing array with the zone centroid location. The array must be the correct shape.
-
itasca.zonearray.ids() → array int{zone}. Get the zone ids as an array.
-
itasca.zonearray.pos() → array float{zone,2}. Get a numpy array of the zone centroid location.
-
itasca.zonearray.set_extra(slot: int, data: array float{zone} or float{zone}) → None. Set the zone extra data in the given slot with an array. Extra variables set by array must be of type float or vec.
| Was this helpful? ... | PFC 6.0 © 2019, Itasca | Updated: Nov 19, 2021 |