itasca.block.contactarray
Array interface for 3DEC contacts.
Functions
-
itasca.block.contactarray.
extra
(slot: int) → array float{contact} or float{contact,3}. Get the contact extra data in the given slot as an array. Extra variables accessed by array must be of type float or vec.
-
itasca.block.contactarray.
ids
() → array int{contact}. Get the contact ids as an array.
-
itasca.block.contactarray.
in_group
(group_name: str, slot="default") → array bool{ncontact}. Return block group membership as a Boolean array.
-
itasca.block.contactarray.
set_extra
(slot: int, data: array float{contact} or float{contact, 3}) → None. Set the contact extra data in the given slot with an array. Extra variables set by array must be of type float or vec.
-
itasca.block.contactarray.
set_group
(membership: array bool{ncontact}, group_name: str, slot="default") → None. Set block group from an array. Where membership True set the corresponding block to be a member of group group_name in the given slot.
Was this helpful? ... | PFC © 2021, Itasca | Updated: Feb 25, 2024 |