itasca.sel.reinforcementarray

Array interface for 3DEC reinfs.

Functions

itasca.sel.reinforcementarray.extra(slot: int) → array float{reinf} or float{reinf,3}.

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

itasca.sel.reinforcementarray.ids() → array int{reinf}.

Get the reinf ids as an array.

itasca.sel.reinforcementarray.in_group(group_name: str, slot="default") → array bool{nreinf}.

Return block group membership as a Boolean array.

itasca.sel.reinforcementarray.set_extra(slot: int, data: array float{reinf} or float{reinf, 3}) → None.

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

itasca.sel.reinforcementarray.set_group(membership: array bool{nreinf}, 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.