itasca.block.subcontactarray

Array interface for 3DEC contacts.

Functions

itasca.block.subcontactarray.extra(slot: int) array float{subcontact} or float{subcontact,3}.

Get the subcontact extra data in the given slot as an array. Extra variables accessed by array must be of type float or vec.

itasca.block.subcontactarray.ids() array int{subcontact}.

Get the subcontact ids as an array.

itasca.block.subcontactarray.in_group(group_name: str, slot='default') array bool{nsubcontact}.

Return block group membership as a Boolean array.

itasca.block.subcontactarray.set_extra(slot: int, data: array float{subcontact} or float{subcontact, 3}) None.

Set the subcontact extra data in the given slot with an array. Extra variables set by array must be of type float or vec.

itasca.block.subcontactarray.set_group(membership: array bool{nsubcontact}, 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.