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

ModelQuery.get_assembly_tree()

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.

ModelQuery.get_edge_zone_names(scope)

Gets names of edge zones.

ModelQuery.get_edge_zonelets(scope)

Gets ids of edge zonelets.

ModelQuery.get_edge_zonelets_without_zone(scope)

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.

ModelQuery.get_face_zone_names(scope)

Gets names of face zones.

ModelQuery.get_face_zonelets(scope)

Gets ids of face zonelets.

ModelQuery.get_face_zonelets_without_zone(scope)

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.

ModelQuery.get_meshed_part_names(scope)

Gets names of meshed parts.

ModelQuery.get_meshed_parts(scope)

Gets ids of meshed parts.

ModelQuery.get_meshed_topo_faces(scope)

Gets ids of meshed topofaces.

ModelQuery.get_part_bounding_box_map(scope)

Gets a JSON map of part ids to bounding boxes matching the scope.

ModelQuery.get_part_edge_zonelet_map(scope)

Gets a JSON map of part ids to edge zonelet ids matching the scope.

ModelQuery.get_part_face_zonelet_map(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.

ModelQuery.get_part_names_with_topology(scope)

Gets names of parts with topology.

ModelQuery.get_part_names_without_topology(scope)

Gets names of parts without topology.

ModelQuery.get_part_topo_edge_map(scope)

Gets a JSON map of part ids to topoedge ids matching the scope.

ModelQuery.get_part_topo_face_map(scope)

Gets a JSON map of part ids to topoface ids matching the scope.

ModelQuery.get_part_topo_volume_map(scope)

Gets a JSON map of part ids to topovolume ids matching the scope.

ModelQuery.get_part_volume_map(scope)

Gets a JSON map of part ids to volume ids matching the scope.

ModelQuery.get_parts_with_topo_volumes(scope)

Gets ids of parts with topovolumes.

ModelQuery.get_parts_with_topology(scope)

Gets ids of parts with topology.

ModelQuery.get_parts_without_topo_volumes(scope)

Gets ids of parts without topovolumes.

ModelQuery.get_parts_without_topology(scope)

Gets ids of parts without topology.

ModelQuery.get_topo_edges(scope)

Gets ids of topoedges.

ModelQuery.get_topo_edges_without_zone(scope)

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.

ModelQuery.get_topo_faces_without_zone(scope)

Gets ids of topofaces without zone.

ModelQuery.get_topo_volumes(scope)

Gets ids of topovolumes.

ModelQuery.get_topo_volumes_without_zone(scope)

Gets ids of topovolumes without zone.

ModelQuery.get_topology_summary(scope)

Gets a JSON of topology summary.

ModelQuery.get_unmeshed_part_names(scope)

Gets names of unmeshed parts.

ModelQuery.get_unmeshed_parts(scope)

Gets ids of unmeshed parts.

ModelQuery.get_unmeshed_topo_faces(scope)

Gets ids of unmeshed topofaces.

ModelQuery.get_volume_labels(scope)

Gets volume labels of the given scope.

ModelQuery.get_volume_zone_names(scope)

Gets names of volume zones.

ModelQuery.get_volume_zones(scope)

Gets ids of volume zones.

ModelQuery.get_volumes(scope)

Gets ids of volumes.

ModelQuery.get_volumes_without_zone(scope)

Gets ids of volumes without zone.