Query#

class ansys.pyensight.core.utils.query.Query(interface: ensight_api.ensight | ensight)#

Provides the ensight.utils.query interface.

The methods in this class implement simplified interfaces to common query-orientated operations, such as creating a temporal or temporal query.

This class is instantiated as ensight.utils.query in EnSight Python and as Session.ensight.utils.query in PyEnSight. The constructor is passed the interface, which serves as the ensight module for either case. As a result, the methods can be accessed as ensight.utils.query.create_distance() in EnSight Python or session.ensight.utils.query.create_distance() in PyEnSight.

Parameters:
interface

Entity that provides the ensight namespace. In the case of EnSight Python, the ensight module is passed. In the case of PyEnSight, Session.ensight is passed.

Methods

Query.create_distance(name, query_type, ...)

Create an EnSight query over a distance object.

Query.create_temporal(name, query_type, ...)

Create an EnSight query over time.

Attributes

Query.DISTANCE_LINE

Query.DISTANCE_PART1D

Query.DISTANCE_SPLINE

Query.DIST_SEG_ACCUMULATION

Query.DIST_SEG_RESET_EACH

Query.DIST_TYPE_LENGTH

Query.DIST_TYPE_LENGTH_X

Query.DIST_TYPE_LENGTH_Y

Query.DIST_TYPE_LENGTH_Z

Query.DIST_TYPE_ORIGIN

Query.DIST_TYPE_ORIGIN_X

Query.DIST_TYPE_ORIGIN_Y

Query.DIST_TYPE_ORIGIN_Z

Query.TEMPORAL_ELEMENT

Query.TEMPORAL_IJK

Query.TEMPORAL_MAXIMUM

Query.TEMPORAL_MINIMUM

Query.TEMPORAL_NODE

Query.TEMPORAL_XYZ