itasca.structure.selarray

Array interface for structural element.

Functions

itasca.structure.selarray.component_id() array int{Structure}.

Get a NumPy array of the ID of Structure component id.

itasca.structure.selarray.density() array double{Structure}.

Get a NumPy array of the density of Structure elements.

itasca.structure.selarray.extra(slot: int) array float{Structure} or float{Structure,3}.

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

itasca.structure.selarray.id() array int{Structure}.

Get a NumPy array of the ID of Structure element id.

itasca.structure.selarray.in_group(group_name: str, slot=1) array bool{Structure}.

Return Structure group membership as a Boolean array.

itasca.structure.selarray.local_system() array double{Structure,3,3}.

Get a NumPy array of the local coordinate system of Structure elements.

itasca.structure.selarray.mark() array bool{Structure}.

Get a NumPy array of the mark flag of Structure elements.

itasca.structure.selarray.pos() array vec3{Structure}.

Get a NumPy array of the current position of Structure elements.

itasca.structure.selarray.set_density(array double{Structure}) None.

Set the density of Structure elements.

itasca.structure.selarray.set_extra(slot: int, data: array float{Structure} or float{Structure, 3}) None.

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

itasca.structure.selarray.set_group(membership: array bool{Structure}, group_name: str, slot=1) None.

Set Structure group from an array. Where membership True set the corresponding Structure to be a member of group group_name in the given slot.

itasca.structure.selarray.set_mark(array bool{Structure}) None.

Set the mark flag of Structure elements.

itasca.structure.selarray.set_thermal_expansion(array double{Structure}) None.

Set the thermal expansion coefficient of Structure elements.

itasca.structure.selarray.thermal_expansion() array double{Structure}.

Get a NumPy array of the thermal expansion coefficient of Structure elements.

itasca.structure.selarray.type() array string{Structure}.

Get a NumPy array of the type name of Structure elements.