ModelQuery#
- class ansys.meshing.prime.ModelQuery(model)#
ModelQuery provides functions to query parts, zones, labels, and topology information from a mesh model.
Use this class to retrieve ids, names, and other properties for parts, zones, and mesh entities.
- Parameters:
model (
CommunicationManager) – Server model to create ModelQuery object.
Notes
This is a beta class. The behavior and implementation may change in future.
Methods
Gets a complete topology tree for all parts in the model in a single call.
ModelQuery.get_cell_zonelets(scope)Gets ids of cell zonelets.
ModelQuery.get_edge_labels(scope)Gets edge labels of the given scope.
Gets names of edge zones.
ModelQuery.get_edge_zonelets(scope)Gets ids of edge zonelets.
Gets ids of edge zonelets without zone.
ModelQuery.get_edge_zones(scope)Gets ids of edge zones.
ModelQuery.get_face_labels(scope)Gets face labels of the given scope.
Gets names of face zones.
ModelQuery.get_face_zonelets(scope)Gets ids of face zonelets.
Gets ids of face zonelets without zone.
ModelQuery.get_face_zones(scope)Gets ids of face zones.
ModelQuery.get_labels(scope)Gets all labels matching the scope.
Gets names of meshed parts.
ModelQuery.get_meshed_parts(scope)Gets ids of meshed parts.
Gets ids of meshed topofaces.
Gets a JSON map of part ids to bounding boxes matching the scope.
Gets a JSON map of part ids to edge zonelet ids matching the scope.
Gets a JSON map of part ids to face zonelet ids matching the scope.
ModelQuery.get_part_ids(scope)Gets ids of all parts matching the scope.
ModelQuery.get_part_names(scope)Gets names of all parts matching the scope.
Gets names of parts with topology.
Gets names of parts without topology.
Gets a JSON map of part ids to topoedge ids matching the scope.
Gets a JSON map of part ids to topoface ids matching the scope.
Gets a JSON map of part ids to topovolume ids matching the scope.
Gets a JSON map of part ids to volume ids matching the scope.
Gets ids of parts with topovolumes.
Gets ids of parts with topology.
Gets ids of parts without topovolumes.
Gets ids of parts without topology.
ModelQuery.get_topo_edges(scope)Gets ids of topoedges.
Gets ids of topoedges without zone.
ModelQuery.get_topo_faces(scope)Gets ids of topofaces.
ModelQuery.get_topo_faces_with_tag(scope, tag)Gets topofaces tagged with the given tag.
Gets ids of topofaces without zone.
ModelQuery.get_topo_volumes(scope)Gets ids of topovolumes.
Gets ids of topovolumes without zone.
Gets a JSON of topology summary.
Gets names of unmeshed parts.
Gets ids of unmeshed parts.
Gets ids of unmeshed topofaces.
ModelQuery.get_volume_labels(scope)Gets volume labels of the given scope.
Gets names of volume zones.
ModelQuery.get_volume_zones(scope)Gets ids of volume zones.
ModelQuery.get_volumes(scope)Gets ids of volumes.
Gets ids of volumes without zone.