ansys.pyensight.core.libuserd#
The libuserd
module allows PyEnSight to directly access EnSight
user-defined readers (USERD). Any file format for which EnSight
uses a USERD interface can be read using this API
Examples#
>>> from ansys.pyensight.core import libuserd
>>> userd = libuserd.LibUserd()
>>> userd.initialize()
>>> print(userd.library_version())
>>> datafile = "/example/data/CFX/Axial_001.res"
>>> readers = userd.query_format(datafile)
>>> data = readers[0].read_dataset(datafile)
>>> print(data.parts())
>>> print(data.variables())
>>> userd.shutdown()
Classes
|
An enumeration. |
|
An enumeration. |
|
LibUserd is the primary interface to the USERD library. |
|
This class represents the EnSight notion of a part. |
|
An enumeration. |
|
The class represents a reader "query" instance. |
|
This class represents is an instance of a user-defined reader that is actively reading a dataset. |
|
This class represents an available reader, before it has been instantiated. |
|
The class represents a reader "variable" instance. |
|
An enumeration. |
|
An enumeration. |
Exceptions
|
This class is an exception object raised from the libuserd library itself (not the gRPC remote interface). |