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:
- id
int
The id of this variable.
- name
str
The name of this variable.
- unitLabel
str
The unit label of this variable, “Pa” for example.
- unitDims
str
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.
- numOfComponents
int
The number of components of this variable. A scalar is 1 and a vector is 3.
- metadata
Dict
[str
,str
] The metadata for this query.
- id