Part#
- class ansys.pyensight.core.libuserd.Part(userd: LibUserd, pb: PartInfo)#
This class represents the EnSight notion of a part. A part is a single mesh consisting of a nodal array along with a collection of element specifications. Methods are provided to access the nodes and connectivity as well as any variables that might be defined on the nodes or elements of this mesh.
- Parameters:
- userd
The LibUserd instance this query is associated with.
- pb
The protobuffer that represents this object.
- Attributes:
Methods
Part.element_conn
(elem_type)For "zoo" element types, return the part element connectivity for the specified element type.
Part.element_conn_nfaced
(elem_type)For an N-Faced element type (regular or ghost), return the connectivity information for the elements of that type in this part at this timestep.
Part.element_conn_nsided
(elem_type)For an N-Sided element type (regular or ghost), return the connectivity information for the elements of that type in this part at this timestep.
Return the vertex array for the part.
Get the number of elements of a given type in the current part.
Return the rigid body transform for this part at the current timestep.
Part.variable_values
(variable[, elem_type, ...])Return a numpy array containing the value(s) of a variable.