Variable#

class ansys.pyensight.core.libuserd.Variable(userd: LibUserd, pb: VariableInfo)#

The class represents a reader “variable” instance. It includes information about the variable, including it type (vector, scalar, etc) location (nodal, elemental, etc), name and units.

Parameters:
userd

The LibUserd instance this query is associated with.

pb

The protobuffer that represents this object.

Attributes:
idint

The id of this variable.

namestr

The name of this variable.

unitLabelstr

The unit label of this variable, “Pa” for example.

unitDimsstr

The dimensions of this variable, “L/S” for distance per second.

location“VariableLocation”

The location of this variable.

type“VariableType”

The type of this variable.

timeVaryingbool

True if the variable is time-varying.

isComplexbool

True if the variable is complex.

numOfComponentsint

The number of components of this variable. A scalar is 1 and a vector is 3.

metadataDict[str, str]

The metadata for this query.