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:
idint

The id of this part.

namestr

The name of this part.

reader_idint

The id of the Reader this part is associated with.

hintsint

See: PartHints.

reader_api_versionfloat

The API version number of the USERD reader this part was read with.

metadataDict[str, str]

The metadata for this query.

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.

Part.nodes()

Return the vertex array for the part.

Part.num_elements()

Get the number of elements of a given type in the current part.

Part.rigid_body_transform()

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.