meshing.datamodel.meshing_utilities#
- class ansys.fluent.core.generated.datamodel_252.meshing_utilities.Root(service, rules, path)#
Bases:
PyMenuSingleton Root.
Methods:
__init__(service, rules, path)__init__ method of PyMenu class.
Classes:
add_labels_on_cell_zones(service, rules, command)Add labels on the specified cell zones. Parameters ---------- cell_zone_id_list : list[int] List containing the cell zone IDs. cell_zone_name_list : list[str] List containing the cell zone names. cell_zone_name_pattern : str Cell zone name pattern. label_name_list : list[str] List containing the label names.
add_labels_on_edge_zones(service, rules, command)Add labels on the specified edge zones. Parameters ---------- edge_zone_id_list : list[int] List containing the edge zone IDs. edge_zone_name_list : list[str] List containing the edge zone names. edge_zone_name_pattern : str Edge zone name pattern. label_name_list : list[str] List containing the label names.
add_labels_on_face_zones(service, rules, command)Add labels on the specified face zones. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern. label_name_list : list[str] List containing the label names.
boundary_zone_exists(service, rules, name[, ...])Report if the boundary face zone exists. Parameters ---------- zone_id : int Zone ID. zone_name : str Zone name.
cell_zone_exists(service, rules, name[, path])Report if the volume mesh exists. Parameters ---------- zone_id : int Cell zone ID. zone_name : str Cell zone name.
clean_face_zone_names(service, rules, command)Clean up face zone names by removing IDs wherever possible.
convert_zone_ids_to_name_strings(service, ...)Convert a list of IDs to a list of names. Parameters ---------- zone_id_list : list[int] List containing the face or edge or cell or node zone IDs.
convert_zone_name_strings_to_ids(service, ...)Convert a list of zone name strings to a list of IDs. Parameters ---------- zone_name_list : list[str] List containing the face or edge or cell or node zone names.
copy_face_zone_labels(service, rules, name)count_marked_faces(service, rules, name[, path])Returns the count of marked faces for the face zones specified. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern.
delete_all_sub_domains(service, rules, command)Deletes all sub-domains (all domains other than global).
delete_empty_cell_zones(service, rules, command)Delete empty cell zones. Parameters ---------- cell_zone_id_list : list[int] List containing the cell zone IDs. cell_zone_name_list : list[str] List containing the cell zone names. cell_zone_name_pattern : str Cell zone name pattern.
delete_empty_edge_zones(service, rules, command)Delete empty edge zones. Parameters ---------- edge_zone_id_list : list[int] List containing the edge zone IDs. edge_zone_name_list : list[str] List containing the edge zone names. edge_zone_name_pattern : str Edge zone name pattern.
delete_empty_face_zones(service, rules, command)Delete empty face zones. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern.
delete_empty_zones(service, rules, command)Delete empty zones based on the zones specified. Parameters ---------- zone_id_list : list[int] List containing the face or edge or cell or node zone IDs. zone_name_list : list[str] List containing the face or edge or cell or node zone names. zone_name_pattern : str Face or edge or cell or node zone name pattern.
delete_marked_faces_in_zones(service, rules, ...)Delete marked faces. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern.
dump_face_zone_orientation_in_region(...[, path])Return the face zones and their orientation for the mesh file specified. Parameters ---------- file_name : str Mesh file name.
fill_holes_in_face_zone_list(service, rules, ...)Fill holes associated with free edges for the face zones specified, based on the number of free edges (max_hole_edges). Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern. max_hole_edges : int Number of maximum hole edges.
Return adjacent cell zones for given face zones. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern.
Return adjacent boundary face zones for given cell zones. Parameters ---------- cell_zone_id_list : list[int] List containing the cell zone IDs. cell_zone_name_list : list[str] List containing the cell zone names. cell_zone_name_pattern : str Cell zone name pattern.
get_adjacent_interior_and_boundary_face_zones_for_given_cell_zones(...)Return adjacent interior and boundary face zones for given cell zones. Parameters ---------- cell_zone_id_list : list[int] List containing the cell zone IDs. cell_zone_name_list : list[str] List containing the cell zone names. cell_zone_name_pattern : str Cell zone name pattern.
Return adjacent zones based on edge connectivity. Parameters ---------- zone_id_list : list[int] List containing the face or edge or cell or node zone IDs. zone_name_list : list[str] List containing the face or edge or cell or node zone names. zone_name_pattern : str Face or edge or cell or node zone name pattern.
Return adjacent zones based on node connectivity. Parameters ---------- zone_id_list : list[int] List containing the face or edge or cell or node zone IDs. zone_name_list : list[str] List containing the face or edge or cell or node zone names. zone_name_pattern : str Face or edge or cell or node zone name pattern.
get_all_objects(service, rules, name[, path])Return a list of all objects.
get_average_bounding_box_center(service, ...)Return a suitable average point based on the zones specified. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs.
get_baffles_for_face_zones(service, rules, name)Return the baffle zones based on the face zone list specified. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs.
get_bounding_box_of_zone_list(service, ...)Return the bounding box extents for the list of zones. Parameters ---------- zone_id_list : list[int] List containing the face or edge or cell or node zone IDs.
get_cell_mesh_distribution(service, rules, name)get_cell_quality_limits(service, rules, name)get_cell_zone_count(service, rules, name[, path])Return count of entities for cell zones. Parameters ---------- cell_zone_id_list : list[int] List containing the cell zone IDs. cell_zone_name_list : list[str] List containing the cell zone names. cell_zone_name_pattern : str Cell zone name pattern.
get_cell_zone_id_list_with_labels(service, ...)Returns the list of cell zones (by ID) containing the labels specified. Parameters ---------- cell_zone_id_list : list[int] List containing the cell zone IDs. cell_zone_name_list : list[str] List containing the cell zone names. cell_zone_name_pattern : str Cell zone name pattern. label_name_list : list[str] List containing the label names.
get_cell_zone_shape(service, rules, name[, path])Return cell zone shape as string. Parameters ---------- cell_zone_id : int Cell zone ID.
get_cell_zone_volume(service, rules, name[, ...])Return cell zone volume for the specified zones. Parameters ---------- cell_zone_id_list : list[int] List containing the cell zone IDs. cell_zone_name_list : list[str] List containing the cell zone names. cell_zone_name_pattern : str Cell zone name pattern.
get_cell_zones(service, rules, name[, path])get_edge_size_limits(service, rules, name[, ...])Report the edge size limits for the list of face zones. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern.
get_edge_zone_id_list_with_labels(service, ...)Returns the list of edge zones (by ID) containing the labels specified. Parameters ---------- edge_zone_id_list : list[int] List containing the edge zone IDs. edge_zone_name_list : list[str] List containing the edge zone names. edge_zone_name_pattern : str Edge zone name pattern. label_name_list : list[str] List containing the label names.
get_edge_zones(service, rules, name[, path])get_edge_zones_list(service, rules, name[, path])Return a list of edge zones whose names contain the specified filter string. Parameters ---------- filter : list[str] Edge zone name filter.
get_edge_zones_of_object(service, rules, name)Return a list of edge zones in the specified object or objects. Parameters ---------- objects : list[str] List containing the object names list. object_name : str Mesh object name.
get_embedded_baffles(service, rules, name[, ...])Return the embedded baffle zones.
get_face_mesh_distribution(service, rules, name)get_face_quality_limits(service, rules, name)get_face_zone_area(service, rules, name[, path])Return face zone area for the specified zones. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern.
get_face_zone_count(service, rules, name[, path])Return count of entities for face zones. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern.
get_face_zone_id_list_with_labels(service, ...)Returns the list of face zones (by ID) containing the labels specified. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern. label_name_list : list[str] List containing the label names.
get_face_zone_node_count(service, rules, name)Returns the node count for the specified face zone. Parameters ---------- face_zone_id : int Face zone ID. face_zone_name : str Face zone name.
get_face_zones(service, rules, name[, path])get_face_zones_by_zone_area(service, rules, name)get_face_zones_of_object(service, rules, name)Return a list of face zones with zone-specific prism settings applied.
get_free_faces_count(service, rules, name[, ...])Returns the count of free faces for the face zones specified. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern.
Returns interior face zones connected to given cell zones. Parameters ---------- cell_zone_id_list : list[int] List containing the cell zone IDs. cell_zone_name_list : list[str] List containing the cell zone names. cell_zone_name_pattern : str Cell zone name pattern.
get_labels(service, rules, name[, path])Return a list of face zone labels in the specified object, whose names contain the specified filter or pattern string. Parameters ---------- object_name : str Mesh object name. filter : str Label name filter. label_name_pattern : str Label name pattern.
get_labels_on_cell_zones(service, rules, name)Returns the list of labels for the specified cell zones. Parameters ---------- cell_zone_id_list : list[int] List containing the cell zone IDs. cell_zone_name_list : list[str] List containing the cell zone names. cell_zone_name_pattern : str Cell zone name pattern.
get_labels_on_edge_zones(service, rules, name)Returns the list of labels for the specified edge zones. Parameters ---------- edge_zone_id_list : list[int] List containing the edge zone IDs. edge_zone_name_list : list[str] List containing the edge zone names. edge_zone_name_pattern : str Edge zone name pattern.
get_labels_on_face_zones(service, rules, name)Returns the list of labels for the specified face zones. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern.
get_labels_on_face_zones_list(service, ...)Returns the list of labels for the specified face zones. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs.
get_maxsize_cell_zone_by_count(service, ...)Return cell zone with maximum count of elements for given list or pattern of cell zones. Parameters ---------- zone_id_list : list[int] List containing the cell zone IDs. zone_name_list : list[str] List containing the cell zone names. zone_name_pattern : str Cell zone name pattern.
get_maxsize_cell_zone_by_volume(service, ...)Return cell zone with maximum volume for given list or pattern of cell zones. Parameters ---------- zone_id_list : list[int] List containing the cell zone IDs. zone_name_list : list[str] List containing the cell zone names. zone_name_pattern : str Cell zone name pattern.
get_minsize_face_zone_by_area(service, ...)Return face zone with minimum area for given list or pattern of face zones. Parameters ---------- zone_id_list : list[int] List containing the face zone IDs. zone_name_list : list[str] List containing the face zone names. zone_name_pattern : str Face zone name pattern.
get_minsize_face_zone_by_count(service, ...)Return face zone with minimum count of elements for given list or pattern of face zones. Parameters ---------- zone_id_list : list[int] List containing the face zone IDs. zone_name_list : list[str] List containing the face zone names. zone_name_pattern : str Face zone name pattern.
get_multi_faces_count(service, rules, name)Returns the count of multi-connected faces for the face zones specified. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern.
get_node_zones(service, rules, name[, path])Return a list of zones whose names contain the specified filter string. Parameters ---------- filter : str Node zone name filter.
get_objects(service, rules, name[, path])Return a list of objects of the specified type or whose names contain the specified filter string. Parameters ---------- type_name : str Mesh object type name. filter : str Mesh object name filter.
get_overlapping_face_zones(service, rules, name)Return a list of overlapping face zones based on the area_tolerance and distance_tolerance specified. Parameters ---------- face_zone_name_pattern : str Face zone name pattern. area_tolerance : float Area tolerance. distance_tolerance : float Distance tolerance.
get_pairs_of_overlapping_face_zones(service, ...)get_prism_cell_zones(service, rules, name[, ...])Return a list of prism cell zones. Parameters ---------- zone_id_list : list[int] List containing the cell zone IDs. zone_name_list : list[str] List containing the cell zone names. zone_name_pattern : str Cell zone name pattern.
get_region_volume(service, rules, name[, path])get_regions(service, rules, name[, path])Return a list of regions in the specified object, whose names contain the specified filter string or specified name pattern. Parameters ---------- object_name : str Mesh object name. region_name_pattern : str Region name pattern. filter : str Region name filter.
get_regions_of_face_zones(service, rules, name)Return a list of regions containing the face zones specified. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern.
Returns the number of faces and the boundary face zones that are shared with the specified cell zones. Parameters ---------- cell_zone_id_list : list[int] List containing the cell zone IDs. cell_zone_name_list : list[str] List containing the cell zone names. cell_zone_name_pattern : str Cell zone name pattern.
get_tet_cell_zones(service, rules, name[, path])Return a list of tet cell zones. Parameters ---------- zone_id_list : list[int] List containing the cell zone IDs. zone_name_list : list[str] List containing the cell zone names. zone_name_pattern : str Cell zone name pattern.
get_topos_on_face_zones_list(service, rules, ...)Returns the list of topo labels for the specified face zones. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs.
get_unreferenced_cell_zones(service, rules, name)Return a list of unreferenced cell zones by ID, whose names contain the specified pattern or filter. Parameters ---------- filter : str Cell zone name filter. zone_name_pattern : str Cell zone name pattern.
get_unreferenced_edge_zones(service, rules, name)Return a list of unreferenced edge zones by ID, whose names contain the specified pattern or filter. Parameters ---------- filter : str Edge zone name filter. zone_name_pattern : str Edge zone name pattern.
get_unreferenced_face_zones(service, rules, name)Return a list of unreferenced face zones by ID, whose names contain the specified pattern or filter. Parameters ---------- filter : str Face zone name filter. zone_name_pattern : str Face zone name pattern.
get_wrapped_face_zones(service, rules, name)Return a list of wrapped face zones.
get_zone_type(service, rules, name[, path])Return zone type as integer. Parameters ---------- zone_id : int Zone ID. zone_name : str Zone name.
get_zones(service, rules, name[, path])Return a list of zones of the specified default zone type, group or user-defined group. Parameters ---------- type_name : str Zone type name. group_name : str Zone group name.
Return a list of zones with free faces for the face zones specified. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern.
Return a list of zones with marked faces for the face zones specified. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern.
Return a list of zones with multi-connected faces for the face zones specified. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern.
interior_zone_exists(service, rules, name[, ...])Report if the interior face zone exists. Parameters ---------- zone_id : int Zone ID. zone_name : str Zone name.
mark_bad_quality_faces(service, rules, name)Mark bad quality faces on the boundary face zones specified, based on the quality limit (quality_limit) and number of rings (number_of_rings). Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern. quality_limit : float Quality limit. number_of_rings : int Number of rings.
mark_duplicate_faces(service, rules, name[, ...])Mark duplicate faces on the face zones specified. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern.
mark_faces_by_quality(service, rules, name)mark_faces_deviating_from_size_field(...[, path])mark_faces_in_self_proximity(service, rules, ...)mark_faces_using_node_degree(service, rules, ...)mark_free_faces(service, rules, name[, path])Mark free faces on the face zones specified. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern.
mark_invalid_normals(service, rules, name[, ...])Mark invalid normal locations on the face zones specified. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern.
mark_island_faces(service, rules, name[, path])Mark island faces on the face zones specified, based on the island face count (island_face_count). Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern. island_face_count : int Island face count.
mark_multi_faces(service, rules, name[, path])Mark multi-connected faces on the face zones specified based on fringe length (fringe_length). Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern. fringe_length : int Fringe length.
mark_point_contacts(service, rules, name[, path])Mark point contact locations on the face zones specified. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern.
mark_self_intersecting_faces(service, rules, ...)mark_sliver_faces(service, rules, name[, path])Mark sliver faces on the face zones specified, based on the maximum height (max_height) and skewness limit (skew_limit). Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern. max_height : float Maximum height. skew_limit : float Skew limit.
mark_spikes(service, rules, name[, path])Mark spikes on the face zones specified, based on the spike angle (spike_angle). Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern. spike_angle : float Spike angle.
mark_steps(service, rules, name[, path])Mark steps on the face zones specified, based on the step angle (step_angle) and step width (step_width). Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern. step_angle : float Step angle. step_width : float Step width.
merge_cell_zones(service, rules, command[, path])merge_cell_zones_with_same_prefix(service, ...)Merge cell zones containing the specified prefix. Parameters ---------- prefix : str Cell zone prefix.
merge_cell_zones_with_same_suffix(service, ...)Merge cell zones containing the specified suffix. Parameters ---------- suffix : str Cell zone suffix.
merge_face_zones(service, rules, command[, path])merge_face_zones_of_type(service, rules, command)Merges face zones of a given type based on name pattern. Parameters ---------- face_zone_type : str Face zone type. face_zone_name_pattern : str Face zone name pattern.
merge_face_zones_with_same_prefix(service, ...)Merge face zones containing the specified prefix. Parameters ---------- prefix : str Face zone prefix.
mesh_check(service, rules, name[, path])mesh_exists(service, rules, name[, path])Report if the volume mesh exists.
print_worst_quality_cell(service, rules, name)project_zone_on_plane(service, rules, name)refine_marked_faces_in_zones(service, rules, ...)Refine marked faces. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern.
remove_id_suffix_from_face_zones(service, ...)Removes the ID suffix from face zone names.
remove_ids_from_zone_names(service, rules, ...)Remove the zone ID from zone ID list. Parameters ---------- zone_id_list : list[int] List containing the face or edge or cell or node zone IDs.
remove_labels_on_cell_zones(service, rules, ...)Removes the specified labels from the cell zones. Parameters ---------- cell_zone_id_list : list[int] List containing the cell zone IDs. cell_zone_name_list : list[str] List containing the cell zone names. cell_zone_name_pattern : str Cell zone name pattern. label_name_list : list[str] List containing the label names.
remove_labels_on_edge_zones(service, rules, ...)Removes the specified labels from the edge zones. Parameters ---------- edge_zone_id_list : list[int] List containing the edge zone IDs. edge_zone_name_list : list[str] List containing the edge zone names. edge_zone_name_pattern : str Edge zone name pattern. label_name_list : list[str] List containing the label names.
remove_labels_on_face_zones(service, rules, ...)Removes the specified labels from the face zones. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern. label_name_list : list[str] List containing the label names.
rename_edge_zone(service, rules, command[, path])Renames an existing edge zone. Parameters ---------- zone_id : int Edge zone ID. zone_name : str Edge zone name. new_name : str New edge zone name.
rename_face_zone(service, rules, command[, path])Renames an existing face zone. Parameters ---------- zone_id : int Face zone ID. zone_name : str Face zone name. new_name : str New face zone name.
rename_face_zone_label(service, rules, command)Renames the face zone label. Parameters ---------- object_name : str Mesh object name. old_label_name : str Old label name. new_label_name : str New label name.
rename_object(service, rules, command[, path])Renames the object. Parameters ---------- old_object_name : str Old object name. new_object_name : str New object name.
renumber_zone_ids(service, rules, command[, ...])Renumber zone IDs starting from the number specified (start_number). Parameters ---------- zone_id_list : list[int] List containing the face or edge or cell or node zone IDs. start_number : int Start number.
replace_cell_zone_suffix(service, rules, command)replace_edge_zone_suffix(service, rules, command)replace_face_zone_suffix(service, rules, command)replace_label_suffix(service, rules, command)Rename labels by replacing the label suffix with a new suffix. Parameters ---------- object_name_list : list[str] List containing the object names. separator : str Label separator. new_suffix : str New label suffix.
replace_object_suffix(service, rules, command)Rename objects by replacing the object suffix with a new suffix. Parameters ---------- object_name_list : list[str] List containing the object names. separator : str Mesh object name separator. new_suffix : str New object name suffix.
scale_cell_zones_around_pivot(service, ...)scale_face_zones_around_pivot(service, ...)separate_face_zones_by_cell_neighbor(...[, path])Separate face zones based on the cell neighbors. Parameters ---------- face_zone_id_list : list[int] List containing the face zone IDs. face_zone_name_list : list[str] List containing the face zone names. face_zone_name_pattern : str Face zone name pattern.
set_object_cell_zone_type(service, rules, ...)Set object cell zone type. Parameters ---------- object_name : str Mesh object name. cell_zone_type : str Cell zone type.
set_quality_measure(service, rules, command)unpreserve_cell_zones(service, rules, name)Enables you to unpreserve some/all preserved cell zones during the meshing process. Parameters ---------- cell_zone_id_list : list[int] List containing the cell zone IDs. cell_zone_name_list : list[str] List containing the cell zone names. cell_zone_name_pattern : str Cell zone name pattern.
- __init__(service, rules, path)#
__init__ method of PyMenu class.
- class add_labels_on_cell_zones(service, rules, command, path=None)#
Bases:
PyCommandAdd labels on the specified cell zones. Parameters ———- cell_zone_id_list : list[int]
List containing the cell zone IDs.
- cell_zone_name_listlist[str]
List containing the cell zone names.
- cell_zone_name_patternstr
Cell zone name pattern.
- label_name_listlist[str]
List containing the label names.
Examples
>>> meshing_session.meshing_utilities.add_labels_on_cell_zones(cell_zone_name_list=["elbow-fluid"], label_name_list=["elbow-1"]) >>> meshing_session.meshing_utilities.add_labels_on_cell_zones(cell_zone_id_list=[87], label_name_list=["87-1"]) >>> meshing_session.meshing_utilities.add_labels_on_cell_zones(cell_zone_name_pattern="*", label_name_list=["cell-1"])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class add_labels_on_edge_zones(service, rules, command, path=None)#
Bases:
PyCommandAdd labels on the specified edge zones. Parameters ———- edge_zone_id_list : list[int]
List containing the edge zone IDs.
- edge_zone_name_listlist[str]
List containing the edge zone names.
- edge_zone_name_patternstr
Edge zone name pattern.
- label_name_listlist[str]
List containing the label names.
Examples
>>> meshing_session.meshing_utilities.add_labels_on_edge_zones(edge_zone_name_list=["symmetry:xyplane:hot-inlet:elbow-fluid:feature.20", "hot-inlet:wall-inlet:elbow-fluid:feature.21"], label_name_list=["20-1", "21-1"]) >>> meshing_session.meshing_utilities.add_labels_on_edge_zones(edge_zone_id_list=[22, 23], label_name_list=["22-1", "23-1"]) >>> meshing_session.meshing_utilities.add_labels_on_edge_zones(edge_zone_name_pattern="cold-inlet*", label_name_list=["26-1"])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class add_labels_on_face_zones(service, rules, command, path=None)#
Bases:
PyCommandAdd labels on the specified face zones. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- label_name_listlist[str]
List containing the label names.
Examples
>>> meshing_session.meshing_utilities.add_labels_on_face_zones(face_zone_name_list=["wall-inlet", "wall-elbow"], label_name_list=["wall-inlet-1", "wall-elbow-1"]) >>> meshing_session.meshing_utilities.add_labels_on_face_zones(face_zone_id_list=[30, 31], label_name_list=["hot-inlet-1", "cold-inlet-1"]) >>> meshing_session.meshing_utilities.add_labels_on_face_zones(face_zone_name_pattern="out*", label_name_list=["outlet-1"])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class boundary_zone_exists(service, rules, name, path=None)#
Bases:
PyQueryReport if the boundary face zone exists. Parameters ———- zone_id : int
Zone ID.
- zone_namestr
Zone name.
- Returns:
Examples
>>> meshing_session.meshing_utilities.boundary_zone_exists(zone_id=31) >>> meshing_session.meshing_utilities.boundary_zone_exists(zone_name="wall-inlet")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class cell_zone_exists(service, rules, name, path=None)#
Bases:
PyQueryReport if the volume mesh exists. Parameters ———- zone_id : int
Cell zone ID.
- zone_namestr
Cell zone name.
- Returns:
Examples
>>> meshing_session.meshing_utilities.cell_zone_exists(zone_id=87) >>> meshing_session.meshing_utilities.cell_zone_exists(zone_name="elbow.87")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class clean_face_zone_names(service, rules, command, path=None)#
Bases:
PyCommandClean up face zone names by removing IDs wherever possible.
- Returns:
Examples
>>> meshing_session.meshing_utilities.clean_face_zone_names()
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class convert_zone_ids_to_name_strings(service, rules, name, path=None)#
Bases:
PyQueryConvert a list of IDs to a list of names. Parameters ———- zone_id_list : list[int]
List containing the face or edge or cell or node zone IDs.
Examples
>>> meshing_session.meshing_utilities.convert_zone_ids_to_name_strings(zone_id_list=[32, 31])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class convert_zone_name_strings_to_ids(service, rules, name, path=None)#
Bases:
PyQueryConvert a list of zone name strings to a list of IDs. Parameters ———- zone_name_list : list[str]
List containing the face or edge or cell or node zone names.
Examples
>>> meshing_session.meshing_utilities.convert_zone_name_strings_to_ids(zone_name_list=["outlet", "cold-inlet"])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class copy_face_zone_labels(service, rules, name, path=None)#
Bases:
PyQueryCopy labels from one face zone to another.
Specify either face zone names or IDs.
Parameters#
- from_face_zone_idint
Face zone ID.
- from_face_zone_namestr
Face zone name.
- to_face_zone_idint
Face zone ID.
- to_face_zone_namestr
Face zone name.
- Returns:
Examples
>>> meshing_session.meshing_utilities.copy_face_zone_labels(from_face_zone_id=33, to_face_zone_id=34)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class count_marked_faces(service, rules, name, path=None)#
Bases:
PyQueryReturns the count of marked faces for the face zones specified. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- Returns:
Examples
>>> meshing_session.meshing_utilities.count_marked_faces(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]) >>> meshing_session.meshing_utilities.count_marked_faces(face_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class create_boi_and_size_functions_from_refinement_regions(service, rules, name, path=None)#
Bases:
PyQueryCreate bodies of influence and if required body of influence size functions from the mesh refinement regions.
Specify the refinement region type (set ‘region_type’ to ‘tet’ or ‘hexcore’).
Specify the prefix for the BOI zones (‘boi_prefix_string’), and choose whether to create the size functions (set create_size_function to True or False).
Parameters#
- region_typestr
Specify the refinement region type.
- boi_prefix_stringstr
Specify the prefix for the BOI zones.
- create_size_functionbool
Specify whether to create the size functions.
- Returns:
Examples
>>> meshing_session.meshing_utilities.create_boi_and_size_functions_from_refinement_regions(region_type="hexcore", boi_prefix_string="wall", create_size_function=True)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class delete_all_sub_domains(service, rules, command, path=None)#
Bases:
PyCommandDeletes all sub-domains (all domains other than global).
- Returns:
Examples
>>> meshing_session.meshing_utilities.delete_all_sub_domains()
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class delete_empty_cell_zones(service, rules, command, path=None)#
Bases:
PyCommandDelete empty cell zones. Parameters ———- cell_zone_id_list : list[int]
List containing the cell zone IDs.
- cell_zone_name_listlist[str]
List containing the cell zone names.
- cell_zone_name_patternstr
Cell zone name pattern.
Examples
>>> meshing_session.meshing_utilities.delete_empty_cell_zones(cell_zone_id_list=[87]) >>> meshing_session.meshing_utilities.delete_empty_cell_zones(cell_zone_name_list=["elbow.87"]) >>> meshing_session.meshing_utilities.delete_empty_cell_zones(cell_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class delete_empty_edge_zones(service, rules, command, path=None)#
Bases:
PyCommandDelete empty edge zones. Parameters ———- edge_zone_id_list : list[int]
List containing the edge zone IDs.
- edge_zone_name_listlist[str]
List containing the edge zone names.
- edge_zone_name_patternstr
Edge zone name pattern.
Examples
>>> meshing_session.meshing_utilities.delete_empty_edge_zones(edge_zone_id_list=[20, 25, 26]) >>> meshing_session.meshing_utilities.delete_empty_edge_zones("symmetry:xyplane:hot-inlet:elbow-fluid:feature.20", "hot-inlet:wall-inlet:elbow-fluid:feature.21") >>> meshing_session.meshing_utilities.delete_empty_edge_zones(edge_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class delete_empty_face_zones(service, rules, command, path=None)#
Bases:
PyCommandDelete empty face zones. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
Examples
>>> meshing_session.meshing_utilities.delete_empty_face_zones(face_zone_id_list=[30, 31, 32]) >>> meshing_session.meshing_utilities.delete_empty_face_zones(face_zone_name_list=["wall-inlet", "wallfluid-new"]) >>> meshing_session.meshing_utilities.delete_empty_face_zones(face_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class delete_empty_zones(service, rules, command, path=None)#
Bases:
PyCommandDelete empty zones based on the zones specified. Parameters ———- zone_id_list : list[int]
List containing the face or edge or cell or node zone IDs.
- zone_name_listlist[str]
List containing the face or edge or cell or node zone names.
- zone_name_patternstr
Face or edge or cell or node zone name pattern.
Examples
>>> meshing_session.meshing_utilities.delete_empty_zones(zone_id_list=[20, 32, 87]) >>> meshing_session.meshing_utilities.delete_empty_zones(zone_name_list=["hotfluid-new", "elbow.87"]) >>> meshing_session.meshing_utilities.delete_empty_zones(zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class delete_marked_faces_in_zones(service, rules, command, path=None)#
Bases:
PyCommandDelete marked faces. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
Examples
>>> meshing_session.meshing_utilities.delete_marked_faces_in_zones(face_zone_id_list=[30, 31, 32]) >>> meshing_session.meshing_utilities.delete_marked_faces_in_zones(face_zone_name_list=["wall-inlet", "wallfluid-new"]) >>> meshing_session.meshing_utilities.delete_marked_faces_in_zones(face_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class dump_face_zone_orientation_in_region(service, rules, name, path=None)#
Bases:
PyQueryReturn the face zones and their orientation for the mesh file specified. Parameters ———- file_name : str
Mesh file name.
- Returns:
Examples
>>> meshing_session.meshing_utilities.dump_face_zone_orientation_in_region(file_name="facezonetest.txt")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class fill_holes_in_face_zone_list(service, rules, name, path=None)#
Bases:
PyQueryFill holes associated with free edges for the face zones specified, based on the number of free edges (max_hole_edges). Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- max_hole_edgesint
Number of maximum hole edges.
- Returns:
Examples
>>> meshing_session.meshing_utilities.fill_holes_in_face_zone_list(face_zone_id_list=[30, 31, 32], max_hole_edges=2) >>> meshing_session.meshing_utilities.fill_holes_in_face_zone_list(face_zone_name_list=["wall-inlet", "wallfluid-new"], max_hole_edges=2) >>> meshing_session.meshing_utilities.fill_holes_in_face_zone_list(face_zone_name_pattern="wall*", max_hole_edges=2)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_adjacent_cell_zones_for_given_face_zones(service, rules, name, path=None)#
Bases:
PyQueryReturn adjacent cell zones for given face zones. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
Examples
>>> meshing_session.meshing_utilities.get_adjacent_cell_zones_for_given_face_zones(face_zone_id_list=[29, 30, 31, 32, 33]) >>> meshing_session.meshing_utilities.get_adjacent_cell_zones_for_given_face_zones(face_zone_name_list=["outlet", "inlet", "wall", "internal"]) >>> meshing_session.meshing_utilities.get_adjacent_cell_zones_for_given_face_zones(face_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_adjacent_face_zones_for_given_cell_zones(service, rules, name, path=None)#
Bases:
PyQueryReturn adjacent boundary face zones for given cell zones. Parameters ———- cell_zone_id_list : list[int]
List containing the cell zone IDs.
- cell_zone_name_listlist[str]
List containing the cell zone names.
- cell_zone_name_patternstr
Cell zone name pattern.
Examples
>>> meshing_session.meshing_utilities.get_adjacent_face_zones_for_given_cell_zones(cell_zone_id_list=[87]) >>> meshing_session.meshing_utilities.get_adjacent_face_zones_for_given_cell_zones(cell_zone_name_list=["elbow-fluid"]) >>> meshing_session.meshing_utilities.get_adjacent_face_zones_for_given_cell_zones(cell_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_adjacent_interior_and_boundary_face_zones_for_given_cell_zones(service, rules, name, path=None)#
Bases:
PyQueryReturn adjacent interior and boundary face zones for given cell zones. Parameters ———- cell_zone_id_list : list[int]
List containing the cell zone IDs.
- cell_zone_name_listlist[str]
List containing the cell zone names.
- cell_zone_name_patternstr
Cell zone name pattern.
Examples
>>> meshing_session.meshing_utilities.get_adjacent_interior_and_boundary_face_zones_for_given_cell_zones(cell_zone_id_list=[87]) >>> meshing_session.meshing_utilities.get_adjacent_interior_and_boundary_face_zones_for_given_cell_zones(cell_zone_name_list=["elbow-fluid"]) >>> meshing_session.meshing_utilities.get_adjacent_interior_and_boundary_face_zones_for_given_cell_zones(cell_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_adjacent_zones_by_edge_connectivity(service, rules, name, path=None)#
Bases:
PyQueryReturn adjacent zones based on edge connectivity. Parameters ———- zone_id_list : list[int]
List containing the face or edge or cell or node zone IDs.
- zone_name_listlist[str]
List containing the face or edge or cell or node zone names.
- zone_name_patternstr
Face or edge or cell or node zone name pattern.
Examples
>>> meshing_session.meshing_utilities.get_adjacent_zones_by_edge_connectivity(zone_id_list=[29, 30, 31, 32, 33]) >>> meshing_session.meshing_utilities.get_adjacent_zones_by_edge_connectivity(zone_name_list=["outlet", "inlet", "wall", "internal"]) >>> meshing_session.meshing_utilities.get_adjacent_zones_by_edge_connectivity(zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_adjacent_zones_by_node_connectivity(service, rules, name, path=None)#
Bases:
PyQueryReturn adjacent zones based on node connectivity. Parameters ———- zone_id_list : list[int]
List containing the face or edge or cell or node zone IDs.
- zone_name_listlist[str]
List containing the face or edge or cell or node zone names.
- zone_name_patternstr
Face or edge or cell or node zone name pattern.
Examples
>>> meshing_session.meshing_utilities.get_adjacent_zones_by_node_connectivity(zone_id_list=[29, 30, 31, 32, 33]) >>> meshing_session.meshing_utilities.get_adjacent_zones_by_node_connectivity(zone_name_list=["outlet", "inlet", "wall", "internal"]) >>> meshing_session.meshing_utilities.get_adjacent_zones_by_node_connectivity(zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_all_objects(service, rules, name, path=None)#
Bases:
PyQueryReturn a list of all objects.
Examples
>>> meshing_session.meshing_utilities.get_all_objects()
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_average_bounding_box_center(service, rules, name, path=None)#
Bases:
PyQueryReturn a suitable average point based on the zones specified. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
Examples
>>> meshing_session.meshing_utilities.get_average_bounding_box_center(face_zone_id_list=[30, 31, 32])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_baffles_for_face_zones(service, rules, name, path=None)#
Bases:
PyQueryReturn the baffle zones based on the face zone list specified. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
Examples
>>> meshing_session.meshing_utilities.get_baffles_for_face_zones(face_zone_id_list=[29, 30, 31, 32, 33])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_bounding_box_of_zone_list(service, rules, name, path=None)#
Bases:
PyQueryReturn the bounding box extents for the list of zones. Parameters ———- zone_id_list : list[int]
List containing the face or edge or cell or node zone IDs.
- Returns:
Examples
>>> meshing_session.meshing_utilities.get_bounding_box_of_zone_list(zone_id_list=[26])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_cell_mesh_distribution(service, rules, name, path=None)#
Bases:
PyQueryReport the cell mesh distribution based on the specified measure, partitions, and range.
Specify the ‘measure’ as one of the ‘Orthogonal Quality’, ‘Skewness’, ‘Equiangle Skewness’, ‘Size Change’, ‘Edge Ratio’, ‘Size’, ‘Aspect Ratio’, ‘Squish’, ‘Warp’, ‘Dihedral Angle’, ‘ICEMCFD Quality’, ‘Ortho Skew’, ‘FLUENT Aspect Ratio’, ‘Inverse Orthogonal Quality’ value.
Parameters#
- cell_zone_id_listlist[int]
List containing the cell zone IDs.
- cell_zone_name_listlist[str]
List containing the cell zone names.
- cell_zone_name_patternstr
Cell zone name pattern.
- measurestr
Measure.
- partitionsint
Partitions.
- rangelist[float]
Range.
- Returns:
Examples
>>> meshing_session.meshing_utilities.get_cell_mesh_distribution(cell_zone_id_list=[87], measure="Orthogonal Quality", partitions=2, range=[0.9, 1]) >>> meshing_session.meshing_utilities.get_cell_mesh_distribution(cell_zone_name_list=["elbow-fluid"], measure="Orthogonal Quality", partitions=2, range=[0.9, 1]) >>> meshing_session.meshing_utilities.get_cell_mesh_distribution(cell_zone_name_pattern="*", measure="Orthogonal Quality", partitions=2, range=[0.9, 1])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_cell_quality_limits(service, rules, name, path=None)#
Bases:
PyQueryReport the number of cells and the cell quality limits (minimum, maximum, average quality) for the list of zones based on the measure specified.
You can also report the cell size limits.
Specify the ‘measure’ as one of the ‘Orthogonal Quality’, ‘Skewness’, ‘Equiangle Skewness’, ‘Size Change’, ‘Edge Ratio’, ‘Size’, ‘Aspect Ratio’, ‘Squish’, ‘Warp’, ‘Dihedral Angle’, ‘ICEMCFD Quality’, ‘Ortho Skew’, ‘FLUENT Aspect Ratio’, ‘Inverse Orthogonal Quality’ value.
Parameters#
- cell_zone_id_listlist[int]
List containing the cell zone IDs.
- cell_zone_name_listlist[str]
List containing the cell zone names.
- cell_zone_name_patternstr
Cell zone name pattern.
- measurestr
Measure.
- Returns:
Examples
>>> meshing_session.meshing_utilities.get_cell_quality_limits(cell_zone_id_list=[87], measure="Orthogonal Quality") >>> meshing_session.meshing_utilities.get_cell_quality_limits(cell_zone_name_list=["elbow-fluid"], measure="Orthogonal Quality") >>> meshing_session.meshing_utilities.get_cell_quality_limits(cell_zone_name_pattern="*", measure="Orthogonal Quality")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_cell_zone_count(service, rules, name, path=None)#
Bases:
PyQueryReturn count of entities for cell zones. Parameters ———- cell_zone_id_list : list[int]
List containing the cell zone IDs.
- cell_zone_name_listlist[str]
List containing the cell zone names.
- cell_zone_name_patternstr
Cell zone name pattern.
- Returns:
Examples
>>> meshing_session.meshing_utilities.get_cell_zone_count(cell_zone_id_list=[87]) >>> meshing_session.meshing_utilities.get_cell_zone_count(cell_zone_name_list=["elbow-fluid"]) >>> meshing_session.meshing_utilities.get_cell_zone_count(cell_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_cell_zone_id_list_with_labels(service, rules, name, path=None)#
Bases:
PyQueryReturns the list of cell zones (by ID) containing the labels specified. Parameters ———- cell_zone_id_list : list[int]
List containing the cell zone IDs.
- cell_zone_name_listlist[str]
List containing the cell zone names.
- cell_zone_name_patternstr
Cell zone name pattern.
- label_name_listlist[str]
List containing the label names.
Examples
>>> meshing_session.meshing_utilities.get_cell_zone_id_list_with_labels(cell_zone_id_list=[87], label_name_list=["elbow-1"]) >>> meshing_session.meshing_utilities.get_cell_zone_id_list_with_labels(cell_zone_name_list=["elbow-fluid"], label_name_list=["elbow-1"]) >>> meshing_session.meshing_utilities.get_cell_zone_id_list_with_labels(cell_zone_name_pattern="*", label_name_list=["elbow-1"])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_cell_zone_shape(service, rules, name, path=None)#
Bases:
PyQueryReturn cell zone shape as string. Parameters ———- cell_zone_id : int
Cell zone ID.
- Returns:
Examples
>>> meshing_session.meshing_utilities.get_cell_zone_shape(cell_zone_id=87)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_cell_zone_volume(service, rules, name, path=None)#
Bases:
PyQueryReturn cell zone volume for the specified zones. Parameters ———- cell_zone_id_list : list[int]
List containing the cell zone IDs.
- cell_zone_name_listlist[str]
List containing the cell zone names.
- cell_zone_name_patternstr
Cell zone name pattern.
- Returns:
Examples
>>> meshing_session.meshing_utilities.get_cell_zone_volume(cell_zone_id_list=[87]) >>> meshing_session.meshing_utilities.get_cell_zone_volume(cell_zone_name_list=["elbow-fluid"]) >>> meshing_session.meshing_utilities.get_cell_zone_volume(cell_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_cell_zones(service, rules, name, path=None)#
Bases:
PyQueryGet cell zones using 1 - maximum_entity_count and only_boundary or 2 - xyz_coordinates or 3 - filter.
Return a list of cell zones at or closest to a specified location (xyz_coordinates).
Return a list of cell zones with a count below the maximum entity count (maximum_entity_count) specified.
You can choose to restrict the report to only boundary cell zones, if required (only_boundary set to True or False).
Return a list of zones whose names contain the specified filter string.
Parameters#
- maximum_entity_countfloat
Maximum entity count.
- xyz_coordinateslist[float]
X-Y-Z coordinates.
- filterstr
Cell zone name filter.
Examples
>>> meshing_session.meshing_utilities.get_cell_zones(filter="*") >>> meshing_session.meshing_utilities.get_cell_zones(maximum_entity_count=100) >>> meshing_session.meshing_utilities.get_cell_zones(xyz_coordinates=[-7, -6, 0.4])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_edge_size_limits(service, rules, name, path=None)#
Bases:
PyQueryReport the edge size limits for the list of face zones. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
Examples
>>> meshing_session.meshing_utilities.get_edge_size_limits(face_zone_id_list=[30, 31, 32]) >>> meshing_session.meshing_utilities.get_edge_size_limits(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]) >>> meshing_session.meshing_utilities.get_edge_size_limits(face_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_edge_zone_id_list_with_labels(service, rules, name, path=None)#
Bases:
PyQueryReturns the list of edge zones (by ID) containing the labels specified. Parameters ———- edge_zone_id_list : list[int]
List containing the edge zone IDs.
- edge_zone_name_listlist[str]
List containing the edge zone names.
- edge_zone_name_patternstr
Edge zone name pattern.
- label_name_listlist[str]
List containing the label names.
Examples
>>> meshing_session.meshing_utilities.get_edge_zone_id_list_with_labels(edge_zone_id_list=[20, 21], label_name_list=["20-1", "21-1"]) >>> meshing_session.meshing_utilities.get_edge_zone_id_list_with_labels(edge_zone_name_list=["symmetry:xyplane:hot-inlet:elbow-fluid:feature.20", "hot-inlet:wall-inlet:elbow-fluid:feature.21"], label_name_list=["20-1", "21-1"]) >>> meshing_session.meshing_utilities.get_edge_zone_id_list_with_labels(edge_zone_name_pattern="*", label_name_list=["20-1", "21-1"])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_edge_zones(service, rules, name, path=None)#
Bases:
PyQueryGet edge zones using 1 - maximum_entity_count and only_boundary or 2 - filter Return a list of edge zones with a count below the maximum entity count (maximum_entity_count) specified.
You can choose to restrict the report to only boundary edge zones, if required (only_boundary set to True or False).
Return a list of zones whose names contain the specified filter string.
Parameters#
- maximum_entity_countfloat
Maximum entity count.
- only_boundarybool
Specify whether to restrict the report to only boundary edge zones.
- filterstr
Edge zone name filter.
Examples
>>> meshing_session.meshing_utilities.get_edge_zones(filter="*") >>> meshing_session.meshing_utilities.get_edge_zones(maximum_entity_count=20, only_boundary=False)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_edge_zones_list(service, rules, name, path=None)#
Bases:
PyQueryReturn a list of edge zones whose names contain the specified filter string. Parameters ———- filter : list[str]
Edge zone name filter.
- Returns:
Examples
>>> meshing_session.meshing_utilities.get_edge_zones_list(filter="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_edge_zones_of_object(service, rules, name, path=None)#
Bases:
PyQueryReturn a list of edge zones in the specified object or objects. Parameters ———- objects : list[str]
List containing the object names list.
- object_namestr
Mesh object name.
Examples
>>> meshing_session.meshing_utilities.get_edge_zones_of_object(objects=["elbow-fluid"]) >>> meshing_session.meshing_utilities.get_edge_zones_of_object(object_name="elbow-fluid")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_embedded_baffles(service, rules, name, path=None)#
Bases:
PyQueryReturn the embedded baffle zones.
Examples
>>> meshing_session.meshing_utilities.get_embedded_baffles()
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_face_mesh_distribution(service, rules, name, path=None)#
Bases:
PyQueryReport the face mesh distribution based on the specified measure, partitions, and range.
Specify the ‘measure’ as one of the ‘Orthogonal Quality’, ‘Skewness’, ‘Equiangle Skewness’, ‘Size Change’, ‘Edge Ratio’, ‘Size’, ‘Aspect Ratio’, ‘Squish’, ‘Warp’, ‘Dihedral Angle’, ‘ICEMCFD Quality’, ‘Ortho Skew’, ‘FLUENT Aspect Ratio’, ‘Inverse Orthogonal Quality’ value.
Parameters#
- face_zone_id_listlist[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- measurestr
Measure.
- partitionsint
Partitions.
- rangelist[float]
Range.
- Returns:
Examples
>>> meshing_session.meshing_utilities.get_face_mesh_distribution(face_zone_id_list=[30, 31, 32], measure="Orthogonal Quality", partitions=2, range=[0.9, 1]) >>> meshing_session.meshing_utilities.get_face_mesh_distribution(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"], measure="Orthogonal Quality", partitions=2, range=[0.9, 1]) >>> meshing_session.meshing_utilities.get_face_mesh_distribution(face_zone_name_pattern="*", measure="Orthogonal Quality", partitions=2, range=[0.9, 1])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_face_quality_limits(service, rules, name, path=None)#
Bases:
PyQueryReport the number of faces and the face quality limits (minimum, maximum, average quality) for the list of zones based on the measure specified.
You can also report the face size limits.
Specify the ‘measure’ as one of the ‘Orthogonal Quality’, ‘Skewness’, ‘Equiangle Skewness’, ‘Size Change’, ‘Edge Ratio’, ‘Size’, ‘Aspect Ratio’, ‘Squish’, ‘Warp’, ‘Dihedral Angle’, ‘ICEMCFD Quality’, ‘Ortho Skew’, ‘FLUENT Aspect Ratio’, ‘Inverse Orthogonal Quality’ value.
Parameters#
- face_zone_id_listlist[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- measurestr
Measure.
- Returns:
Examples
>>> meshing_session.meshing_utilities.get_face_quality_limits(face_zone_id_list=[30, 31, 32], measure="Orthogonal Quality") >>> meshing_session.meshing_utilities.get_face_quality_limits(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"], measure="Orthogonal Quality") >>> meshing_session.meshing_utilities.get_face_quality_limits(face_zone_name_pattern="*", measure="Orthogonal Quality")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_face_zone_area(service, rules, name, path=None)#
Bases:
PyQueryReturn face zone area for the specified zones. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- Returns:
Examples
>>> meshing_session.meshing_utilities.get_face_zone_area(face_zone_id_list=[30, 31, 32]) >>> meshing_session.meshing_utilities.get_face_zone_area(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]) >>> meshing_session.meshing_utilities.get_face_zone_area(face_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_face_zone_count(service, rules, name, path=None)#
Bases:
PyQueryReturn count of entities for face zones. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- Returns:
Examples
>>> meshing_session.meshing_utilities.get_face_zone_count(face_zone_id_list=[30, 31, 32]) >>> meshing_session.meshing_utilities.get_face_zone_count(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]) >>> meshing_session.meshing_utilities.get_face_zone_count(face_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_face_zone_id_list_with_labels(service, rules, name, path=None)#
Bases:
PyQueryReturns the list of face zones (by ID) containing the labels specified. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- label_name_listlist[str]
List containing the label names.
Examples
>>> meshing_session.meshing_utilities.get_face_zone_id_list_with_labels(face_zone_id_list=[33, 34], label_name_list=["wall-inlet-1", "wall-elbow-1"]) >>> meshing_session.meshing_utilities.get_face_zone_id_list_with_labels(face_zone_name_list=["wall-inlet", "wall-elbow"], label_name_list=["wall-inlet-1", "wall-elbow-1"]) >>> meshing_session.meshing_utilities.get_face_zone_id_list_with_labels(face_zone_name_pattern="wall*", label_name_list=["wall-inlet-1", "wall-elbow-1"])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_face_zone_node_count(service, rules, name, path=None)#
Bases:
PyQueryReturns the node count for the specified face zone. Parameters ———- face_zone_id : int
Face zone ID.
- face_zone_namestr
Face zone name.
- Returns:
Examples
>>> meshing_session.meshing_utilities.get_face_zone_node_count(face_zone_id=32) >>> meshing_session.meshing_utilities.get_face_zone_node_count(face_zone_name="outlet")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_face_zones(service, rules, name, path=None)#
Bases:
PyQueryGet face zones using 1 - maximum_entity_count and only_boundary or 2 - prism_control_name or 3 - xyz_coordinates or 4 - filter.
Return a list of face zones at or closest to a specified location (xyz_coordinates - not applicable to polyhedra mesh).
Return a list of face zones with a count below the maximum entity count (maximum_entity_count) specified.
You can choose to restrict the report to only boundary face zones, if required (only_boundary set to True or False).
Return a list of face zones to which the specified prism controls apply.
Return a list of zones whose names contain the specified filter string.
Parameters#
- maximum_entity_countfloat
Maximum entity count.
- only_boundarybool
Specify whether to restrict the report to only boundary face zones.
- prism_control_namestr
Prism control name.
- xyz_coordinateslist[float]
X-Y-Z coordinates.
- filterstr
Face zone name filter.
Examples
>>> meshing_session.meshing_utilities.get_face_zones(filter="*") >>> meshing_session.meshing_utilities.get_face_zones(prism_control_name="*") >>> meshing_session.meshing_utilities.get_face_zones(xyz_coordinates=[1.4, 1.4, 1.4]) >>> meshing_session.meshing_utilities.get_face_zones(maximum_entity_count=20, only_boundary=True)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_face_zones_by_zone_area(service, rules, name, path=None)#
Bases:
PyQueryReturn a list of face zones with a maximum zone area below the maximum_zone_area specified.
Return a list of face zones with a minimum zone area above the minimum_zone_area specified.
Parameters#
- maximum_zone_areafloat
Maximum zone area.
- minimum_zone_areafloat
Minimum zone area.
Examples
>>> meshing_session.meshing_utilities.get_face_zones_by_zone_area(maximum_zone_area=100) >>> meshing_session.meshing_utilities.get_face_zones_by_zone_area(minimum_zone_area=10)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_face_zones_of_object(service, rules, name, path=None)#
Bases:
PyQueryReturn a list of face zones using 1 - object_name and regions or 2 - object_name and labels or 3 - object_name and region_type or 4 - object_name or 5 - objects.
where region_type is one of the ‘fluid-fluid’, ‘solid-solid’, or ‘fluid-solid’ value.
Parameters#
- regionslist[str]
List containing the region names.
- labelslist[str]
List containing the face zone labels.
- region_typestr
Region type.
- objectslist[str]
List containing the object names.
- object_namestr
Mesh object name.
Examples
>>> meshing_session.meshing_utilities.get_face_zones_of_object(object_name="elbow-fluid", regions=["elbow-fluid"]) >>> meshing_session.meshing_utilities.get_face_zones_of_object(object_name="elbow-fluid", labels=["outlet"]) >>> meshing_session.meshing_utilities.get_face_zones_of_object(object_name="elbow-fluid", region_type="elbow-fluid") >>> meshing_session.meshing_utilities.get_face_zones_of_object(object_name="elbow-fluid") >>> meshing_session.meshing_utilities.get_face_zones_of_object(objects=["elbow-fluid"])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_face_zones_with_zone_specific_prisms_applied(service, rules, name, path=None)#
Bases:
PyQueryReturn a list of face zones with zone-specific prism settings applied.
Examples
>>> meshing_session.meshing_utilities.get_face_zones_with_zone_specific_prisms_applied()
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_free_faces_count(service, rules, name, path=None)#
Bases:
PyQueryReturns the count of free faces for the face zones specified. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- Returns:
Examples
>>> meshing_session.meshing_utilities.get_free_faces_count(face_zone_id_list=[30, 31, 32]) >>> meshing_session.meshing_utilities.get_free_faces_count(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]) >>> meshing_session.meshing_utilities.get_free_faces_count(face_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_interior_face_zones_for_given_cell_zones(service, rules, name, path=None)#
Bases:
PyQueryReturns interior face zones connected to given cell zones. Parameters ———- cell_zone_id_list : list[int]
List containing the cell zone IDs.
- cell_zone_name_listlist[str]
List containing the cell zone names.
- cell_zone_name_patternstr
Cell zone name pattern.
Examples
>>> meshing_session.meshing_utilities.get_interior_face_zones_for_given_cell_zones(cell_zone_id_list=[87]) >>> meshing_session.meshing_utilities.get_interior_face_zones_for_given_cell_zones(cell_zone_name_list=["elbow-fluid"]) >>> meshing_session.meshing_utilities.get_interior_face_zones_for_given_cell_zones(cell_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_labels(service, rules, name, path=None)#
Bases:
PyQueryReturn a list of face zone labels in the specified object, whose names contain the specified filter or pattern string. Parameters ———- object_name : str
Mesh object name.
- filterstr
Label name filter.
- label_name_patternstr
Label name pattern.
Examples
>>> meshing_session.meshing_utilities.get_labels(object_name="elbow-fluid") >>> meshing_session.meshing_utilities.get_labels(object_name="elbow-fluid", filter="*") >>> meshing_session.meshing_utilities.get_labels(object_name="elbow-fluid", label_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_labels_on_cell_zones(service, rules, name, path=None)#
Bases:
PyQueryReturns the list of labels for the specified cell zones. Parameters ———- cell_zone_id_list : list[int]
List containing the cell zone IDs.
- cell_zone_name_listlist[str]
List containing the cell zone names.
- cell_zone_name_patternstr
Cell zone name pattern.
Examples
>>> meshing_session.meshing_utilities.get_labels_on_cell_zones(cell_zone_id_list=[87]) >>> meshing_session.meshing_utilities.get_labels_on_cell_zones(cell_zone_name_list=["elbow-fluid"]) >>> meshing_session.meshing_utilities.get_labels_on_cell_zones(cell_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_labels_on_edge_zones(service, rules, name, path=None)#
Bases:
PyQueryReturns the list of labels for the specified edge zones. Parameters ———- edge_zone_id_list : list[int]
List containing the edge zone IDs.
- edge_zone_name_listlist[str]
List containing the edge zone names.
- edge_zone_name_patternstr
Edge zone name pattern.
Examples
>>> meshing_session.meshing_utilities.get_labels_on_edge_zones(edge_zone_id_list=[22, 23]) >>> meshing_session.meshing_utilities.get_labels_on_edge_zones(edge_zone_name_list=["symmetry:xyplane:hot-inlet:elbow-fluid:feature.20", "hot-inlet:wall-inlet:elbow-fluid:feature.21"]) >>> meshing_session.meshing_utilities.get_labels_on_edge_zones(edge_zone_name_pattern="cold-inlet*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_labels_on_face_zones(service, rules, name, path=None)#
Bases:
PyQueryReturns the list of labels for the specified face zones. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
Examples
>>> meshing_session.meshing_utilities.get_labels_on_face_zones(face_zone_id_list=[30, 31]) >>> meshing_session.meshing_utilities.get_labels_on_face_zones(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]) >>> meshing_session.meshing_utilities.get_labels_on_face_zones(face_zone_name_pattern="out*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_labels_on_face_zones_list(service, rules, name, path=None)#
Bases:
PyQueryReturns the list of labels for the specified face zones. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- Returns:
Examples
>>> meshing_session.meshing_utilities.get_labels_on_face_zones_list(face_zone_id_list=[30, 31])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_maxsize_cell_zone_by_count(service, rules, name, path=None)#
Bases:
PyQueryReturn cell zone with maximum count of elements for given list or pattern of cell zones. Parameters ———- zone_id_list : list[int]
List containing the cell zone IDs.
- zone_name_listlist[str]
List containing the cell zone names.
- zone_name_patternstr
Cell zone name pattern.
- Returns:
Examples
>>> meshing_session.meshing_utilities.get_maxsize_cell_zone_by_count(zone_id_list=[87]) >>> meshing_session.meshing_utilities.get_maxsize_cell_zone_by_count(zone_name_list=["outlet", "inlet", "wall", "internal"]) >>> meshing_session.meshing_utilities.get_maxsize_cell_zone_by_count(zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_maxsize_cell_zone_by_volume(service, rules, name, path=None)#
Bases:
PyQueryReturn cell zone with maximum volume for given list or pattern of cell zones. Parameters ———- zone_id_list : list[int]
List containing the cell zone IDs.
- zone_name_listlist[str]
List containing the cell zone names.
- zone_name_patternstr
Cell zone name pattern.
- Returns:
Examples
>>> meshing_session.meshing_utilities.get_maxsize_cell_zone_by_volume(zone_id_list=[87]) >>> meshing_session.meshing_utilities.get_maxsize_cell_zone_by_volume(zone_name_list=["outlet", "inlet", "wall", "internal"]) >>> meshing_session.meshing_utilities.get_maxsize_cell_zone_by_volume(zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_minsize_face_zone_by_area(service, rules, name, path=None)#
Bases:
PyQueryReturn face zone with minimum area for given list or pattern of face zones. Parameters ———- zone_id_list : list[int]
List containing the face zone IDs.
- zone_name_listlist[str]
List containing the face zone names.
- zone_name_patternstr
Face zone name pattern.
- Returns:
Examples
>>> meshing_session.meshing_utilities.get_minsize_face_zone_by_area(zone_id_list=[29, 30, 31, 32, 33]) >>> meshing_session.meshing_utilities.get_minsize_face_zone_by_area(zone_name_list=["outlet", "inlet", "wall", "internal"]) >>> meshing_session.meshing_utilities.get_minsize_face_zone_by_area(zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_minsize_face_zone_by_count(service, rules, name, path=None)#
Bases:
PyQueryReturn face zone with minimum count of elements for given list or pattern of face zones. Parameters ———- zone_id_list : list[int]
List containing the face zone IDs.
- zone_name_listlist[str]
List containing the face zone names.
- zone_name_patternstr
Face zone name pattern.
- Returns:
Examples
>>> meshing_session.meshing_utilities.get_minsize_face_zone_by_count(zone_id_list=[29, 30, 31, 32, 33]) >>> meshing_session.meshing_utilities.get_minsize_face_zone_by_count(zone_name_list=["outlet", "inlet", "wall", "internal"]) >>> meshing_session.meshing_utilities.get_minsize_face_zone_by_count(zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_multi_faces_count(service, rules, name, path=None)#
Bases:
PyQueryReturns the count of multi-connected faces for the face zones specified. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- Returns:
Examples
>>> meshing_session.meshing_utilities.get_multi_faces_count(face_zone_id_list=[30, 31, 32]) >>> meshing_session.meshing_utilities.get_multi_faces_count(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]) >>> meshing_session.meshing_utilities.get_multi_faces_count(face_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_node_zones(service, rules, name, path=None)#
Bases:
PyQueryReturn a list of zones whose names contain the specified filter string. Parameters ———- filter : str
Node zone name filter.
Examples
>>> meshing_session.meshing_utilities.get_node_zones(filter="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_objects(service, rules, name, path=None)#
Bases:
PyQueryReturn a list of objects of the specified type or whose names contain the specified filter string. Parameters ———- type_name : str
Mesh object type name.
- filterstr
Mesh object name filter.
Examples
>>> meshing_session.meshing_utilities.get_objects(type_name="mesh") >>> meshing_session.meshing_utilities.get_objects(filter="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_overlapping_face_zones(service, rules, name, path=None)#
Bases:
PyQueryReturn a list of overlapping face zones based on the area_tolerance and distance_tolerance specified. Parameters ———- face_zone_name_pattern : str
Face zone name pattern.
- area_tolerancefloat
Area tolerance.
- distance_tolerancefloat
Distance tolerance.
Examples
>>> meshing_session.meshing_utilities.get_overlapping_face_zones(face_zone_name_pattern="*", area_tolerance=0.01, distance_tolerance=0.01)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_pairs_of_overlapping_face_zones(service, rules, name, path=None)#
Bases:
PyQueryReturn the pairs of overlapping face zones based on the join tolerance and feature angle.
Specify the tolerance value for locating the overlapping faces (join_tolerance).
Choose to use an absolute tolerance value or relative to face edges (set absolute_tolerance to True or False).
Specify the feature angle to identify features in the overlap region (feature_angle).
The default value is 40.
Each member in the list returned includes the zone IDs for the overlapping zone pair and the join region represented by the bounding box.
The same pair of zones may appear multiple times (with different join region bounding box coordinates) in the returned list.
Parameters#
- face_zone_id_listlist[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- join_tolerancefloat
Join tolerance.
- absolute_tolerancebool
Specify whether to use an absolute tolerance value or relative to face edges.
- join_anglefloat
Join angle.
Examples
>>> meshing_session.meshing_utilities.get_pairs_of_overlapping_face_zones(face_zone_id_list=[29, 30, 31, 32, 33], join_tolerance=0.001, absolute_tolerance=True, join_angle=45) >>> meshing_session.meshing_utilities.get_pairs_of_overlapping_face_zones(face_zone_name_list=["outlet", "inlet", "wall", "internal"], join_tolerance=0.001, absolute_tolerance=True, join_angle=45) >>> meshing_session.meshing_utilities.get_pairs_of_overlapping_face_zones(face_zone_name_pattern="*", join_tolerance=0.001, absolute_tolerance=True, join_angle=45)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_prism_cell_zones(service, rules, name, path=None)#
Bases:
PyQueryReturn a list of prism cell zones. Parameters ———- zone_id_list : list[int]
List containing the cell zone IDs.
- zone_name_listlist[str]
List containing the cell zone names.
- zone_name_patternstr
Cell zone name pattern.
Examples
>>> meshing_session.meshing_utilities.get_prism_cell_zones(zone_id_list=[87]) >>> meshing_session.meshing_utilities.get_prism_cell_zones(zone_name_list=["outlet", "inlet", "wall", "internal"]) >>> meshing_session.meshing_utilities.get_prism_cell_zones(zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_region_volume(service, rules, name, path=None)#
Bases:
PyQueryGet region volume using 1 - object_name and region_name or 2 - object_name and order.
Return the region volume for the specified region of an object.
Returns a sorted list of volumetric regions by volume for the object specified.
Specify the order ‘ascending’ or ‘descending’.
Parameters#
- object_namestr
Mesh object name.
- region_namestr
Region name.
- sorting_orderstr
Region volume sorting order.
- Returns:
Examples
>>> meshing_session.meshing_utilities.get_region_volume(object_name="elbow-fluid", sorting_order="ascending") >>> meshing_session.meshing_utilities.get_region_volume(object_name="elbow-fluid", region_name="elbow-fluid")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_regions(service, rules, name, path=None)#
Bases:
PyQueryReturn a list of regions in the specified object, whose names contain the specified filter string or specified name pattern. Parameters ———- object_name : str
Mesh object name.
- region_name_patternstr
Region name pattern.
- filterstr
Region name filter.
Examples
>>> meshing_session.meshing_utilities.get_regions(object_name="elbow-fluid", region_name_pattern="*") >>> meshing_session.meshing_utilities.get_regions(object_name="elbow-fluid", filter="*") >>> meshing_session.meshing_utilities.get_regions(object_name="elbow-fluid")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_regions_of_face_zones(service, rules, name, path=None)#
Bases:
PyQueryReturn a list of regions containing the face zones specified. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
Examples
>>> meshing_session.meshing_utilities.get_regions_of_face_zones(face_zone_id_list=[29, 30, 31, 32, 33]) >>> meshing_session.meshing_utilities.get_regions_of_face_zones(face_zone_name_list=["outlet", "inlet", "wall", "internal"]) >>> meshing_session.meshing_utilities.get_regions_of_face_zones(face_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
Bases:
PyQueryReturns the number of faces and the boundary face zones that are shared with the specified cell zones. Parameters ———- cell_zone_id_list : list[int]
List containing the cell zone IDs.
- cell_zone_name_listlist[str]
List containing the cell zone names.
- cell_zone_name_patternstr
Cell zone name pattern.
Examples
>>> meshing_session.meshing_utilities.get_shared_boundary_face_zones_for_given_cell_zones(cell_zone_id_list=[87]) >>> meshing_session.meshing_utilities.get_shared_boundary_face_zones_for_given_cell_zones(cell_zone_name_list=["elbow-fluid"]) >>> meshing_session.meshing_utilities.get_shared_boundary_face_zones_for_given_cell_zones(cell_zone_name_pattern="*")
Methods:
Create an operation instance.
Create an operation instance.
- class get_tet_cell_zones(service, rules, name, path=None)#
Bases:
PyQueryReturn a list of tet cell zones. Parameters ———- zone_id_list : list[int]
List containing the cell zone IDs.
- zone_name_listlist[str]
List containing the cell zone names.
- zone_name_patternstr
Cell zone name pattern.
Examples
>>> meshing_session.meshing_utilities.get_tet_cell_zones(zone_id_list=[29, 30, 31, 32, 33]) >>> meshing_session.meshing_utilities.get_tet_cell_zones(zone_name_list=["outlet", "inlet", "wall", "internal"]) >>> meshing_session.meshing_utilities.get_tet_cell_zones(zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_topos_on_face_zones_list(service, rules, name, path=None)#
Bases:
PyQueryReturns the list of topo labels for the specified face zones. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- Returns:
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_unreferenced_cell_zones(service, rules, name, path=None)#
Bases:
PyQueryReturn a list of unreferenced cell zones by ID, whose names contain the specified pattern or filter. Parameters ———- filter : str
Cell zone name filter.
- zone_name_patternstr
Cell zone name pattern.
Examples
>>> meshing_session.meshing_utilities.get_unreferenced_cell_zones() >>> meshing_session.meshing_utilities.get_unreferenced_cell_zones(filter="*") >>> meshing_session.meshing_utilities.get_unreferenced_cell_zones(zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_unreferenced_edge_zones(service, rules, name, path=None)#
Bases:
PyQueryReturn a list of unreferenced edge zones by ID, whose names contain the specified pattern or filter. Parameters ———- filter : str
Edge zone name filter.
- zone_name_patternstr
Edge zone name pattern.
Examples
>>> meshing_session.meshing_utilities.get_unreferenced_edge_zones() >>> meshing_session.meshing_utilities.get_unreferenced_edge_zones(filter="*") >>> meshing_session.meshing_utilities.get_unreferenced_edge_zones(zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_unreferenced_face_zones(service, rules, name, path=None)#
Bases:
PyQueryReturn a list of unreferenced face zones by ID, whose names contain the specified pattern or filter. Parameters ———- filter : str
Face zone name filter.
- zone_name_patternstr
Face zone name pattern.
Examples
>>> meshing_session.meshing_utilities.get_unreferenced_face_zones() >>> meshing_session.meshing_utilities.get_unreferenced_face_zones(filter="*") >>> meshing_session.meshing_utilities.get_unreferenced_face_zones(zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_wrapped_face_zones(service, rules, name, path=None)#
Bases:
PyQueryReturn a list of wrapped face zones.
Examples
>>> meshing_session.meshing_utilities.get_wrapped_face_zones()
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_zone_type(service, rules, name, path=None)#
Bases:
PyQueryReturn zone type as integer. Parameters ———- zone_id : int
Zone ID.
- zone_namestr
Zone name.
- Returns:
Examples
>>> meshing_session.meshing_utilities.get_zone_type(zone_id=87) >>> meshing_session.meshing_utilities.get_zone_type(zone_name="elbow-fluid")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_zones(service, rules, name, path=None)#
Bases:
PyQueryReturn a list of zones of the specified default zone type, group or user-defined group. Parameters ———- type_name : str
Zone type name.
- group_namestr
Zone group name.
Examples
>>> meshing_session.meshing_utilities.get_zones(type_name="velocity-inlet") >>> meshing_session.meshing_utilities.get_zones(group_name="inlet")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_zones_with_free_faces_for_given_face_zones(service, rules, name, path=None)#
Bases:
PyQueryReturn a list of zones with free faces for the face zones specified. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
Examples
>>> meshing_session.meshing_utilities.get_zones_with_free_faces_for_given_face_zones(face_zone_id_list=[29, 30, 31, 32, 33]) >>> meshing_session.meshing_utilities.get_zones_with_free_faces_for_given_face_zones(face_zone_name_list=["outlet", "inlet", "wall", "internal"]) >>> meshing_session.meshing_utilities.get_zones_with_free_faces_for_given_face_zones(face_zone_id_list=[face_zone_name_pattern="*"])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_zones_with_marked_faces_for_given_face_zones(service, rules, name, path=None)#
Bases:
PyQueryReturn a list of zones with marked faces for the face zones specified. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
Examples
>>> meshing_session.meshing_utilities.get_zones_with_marked_faces_for_given_face_zones(face_zone_id_list=[29, 30, 31, 32, 33]) >>> meshing_session.meshing_utilities.get_zones_with_marked_faces_for_given_face_zones(face_zone_name_list=["outlet", "inlet", "wall", "internal"]) >>> meshing_session.meshing_utilities.get_zones_with_marked_faces_for_given_face_zones(face_zone_id_list=[face_zone_name_pattern="*"])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class get_zones_with_multi_faces_for_given_face_zones(service, rules, name, path=None)#
Bases:
PyQueryReturn a list of zones with multi-connected faces for the face zones specified. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
Examples
>>> meshing_session.meshing_utilities.get_zones_with_multi_faces_for_given_face_zones(face_zone_id_list=[29, 30, 31, 32, 33]) >>> meshing_session.meshing_utilities.get_zones_with_multi_faces_for_given_face_zones(face_zone_name_list=["outlet", "inlet", "wall", "internal"]) >>> meshing_session.meshing_utilities.get_zones_with_multi_faces_for_given_face_zones(face_zone_id_list=[face_zone_name_pattern="*"])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class interior_zone_exists(service, rules, name, path=None)#
Bases:
PyQueryReport if the interior face zone exists. Parameters ———- zone_id : int
Zone ID.
- zone_namestr
Zone name.
- Returns:
Examples
>>> meshing_session.meshing_utilities.interior_zone_exists(zone_id=31) >>> meshing_session.meshing_utilities.interior_zone_exists(zone_name="wall-inlet")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class mark_bad_quality_faces(service, rules, name, path=None)#
Bases:
PyQueryMark bad quality faces on the boundary face zones specified, based on the quality limit (quality_limit) and number of rings (number_of_rings). Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- quality_limitfloat
Quality limit.
- number_of_ringsint
Number of rings.
- Returns:
Examples
>>> meshing_session.meshing_utilities.mark_bad_quality_faces(face_zone_id_list=[30, 31, 32], quality_limit=0.5, number_of_rings=2) >>> meshing_session.meshing_utilities.mark_bad_quality_faces(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"], quality_limit=0.5, number_of_rings=2) >>> meshing_session.meshing_utilities.mark_bad_quality_faces(face_zone_name_pattern="*", quality_limit=0.5, number_of_rings=2)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class mark_duplicate_faces(service, rules, name, path=None)#
Bases:
PyQueryMark duplicate faces on the face zones specified. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- Returns:
Examples
>>> meshing_session.meshing_utilities.mark_duplicate_faces(face_zone_id_list=[30, 31, 32]) >>> meshing_session.meshing_utilities.mark_duplicate_faces(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]) >>> meshing_session.meshing_utilities.mark_duplicate_faces(face_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class mark_face_strips_by_height_and_quality(service, rules, name, path=None)#
Bases:
PyQueryMark face strips based on the strip_type, strip_height, quality_measure, quality_limit, and feature_angle specified.
Possible values for strip_type are 1, 2, 3 and 4.
1 - ‘boundary-boundary’ strip, multi-connected face edges are also considered as boundary here.
2 - feature-feature strip between angle based features, feature edges, multi-connected edges, and free edges are angle based features and boundary edges will be considered features if there is an angle.
3 - ‘all-all’ strip between all boundaries and features.
4 - ‘pure feature-feature’ strip, only pure features, boundary edges and multi edges will not be considered as pure feature edges even if there is an angle based feature.
The recommended value is 2.
Specify the ‘quality_measure’ as one of the ‘Skewness’, ‘Size Change’, ‘Edge Ratio’, ‘Area’, ‘Aspect Ratio’, ‘Warp’, ‘Dihedral Angle’, ‘Ortho Skew’ value.
Parameters#
- face_zone_id_listlist[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- strip_typeint
Strip type.
- strip_heightfloat
Strip height.
- quality_measurestr
Quality measure.
- quality_limitfloat
Quality limit.
- feature_anglefloat
Feature angle.
- Returns:
Examples
>>> meshing_session.meshing_utilities.mark_face_strips_by_height_and_quality(face_zone_id_list=[30, 31, 32], strip_type=2, strip_height=2, quality_measure="Size Change", quality_limit=0.5, feature_angle=40) >>> meshing_session.meshing_utilities.mark_face_strips_by_height_and_quality(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"], strip_type=2, strip_height=2, quality_measure="Size Change", quality_limit=0.5, feature_angle=40) >>> meshing_session.meshing_utilities.mark_face_strips_by_height_and_quality(face_zone_name_pattern="cold*", strip_type=2, strip_height=2, quality_measure="Size Change", quality_limit=0.5, feature_angle=40)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class mark_faces_by_quality(service, rules, name, path=None)#
Bases:
PyQueryMark faces based on the ‘quality_measure’ and ‘quality_limit’ specified.
Specify whether to append the faces to those previously marked or clear previously marked faces (append_marking set to True or False).
Specify the ‘quality_measure’ as one of the ‘Skewness’, ‘Size Change’, ‘Edge Ratio’, ‘Area’, ‘Aspect Ratio’, ‘Warp’, ‘Dihedral Angle’, ‘Ortho Skew’ value.
Parameters#
- face_zone_id_listlist[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- quality_measurestr
Quality measure.
- quality_limitfloat
Quality limit.
- append_markingbool
Specify whether to append the faces to those previously marked or clear previously marked faces.
- Returns:
Examples
>>> meshing_session.meshing_utilities.mark_faces_by_quality(face_zone_id_list=[30, 31, 32], quality_measure="Skewness", quality_limit=0.9, append_marking=False) >>> meshing_session.meshing_utilities.mark_faces_by_quality(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"], quality_measure="Skewness", quality_limit=0.9, append_marking=False) >>> meshing_session.meshing_utilities.mark_faces_by_quality(face_zone_name_pattern="*", quality_measure="Skewness", quality_limit=0.9, append_marking=False)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class mark_faces_deviating_from_size_field(service, rules, name, path=None)#
Bases:
PyQueryMark all faces at nodes based on deviation from the size field.
Specify the size field type to be used to get size at node.
Set ‘size_factor_type_to_compare’ to ‘volumetric’ or ‘geodesic’.
Faces will be marked if the minimum edge length at the node is less than min_size_factor × size_factor_type_to_compare or the maximum edge length is greater than max_size_factor × size_factor_type_to_compare.
Parameters#
- face_zone_id_listlist[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- min_size_factorfloat
Minimum size factor.
- max_size_factorfloat
Maximum size factor.
- size_factor_type_to_comparestr
Size field type to be used to get size at node.
- Returns:
Examples
>>> meshing_session.meshing_utilities.mark_faces_deviating_from_size_field(face_zone_id_list=[30, 31, 32], min_size_factor=0.5, max_size_factor=1.1, size_factor_type_to_compare="geodesic") >>> meshing_session.meshing_utilities.mark_faces_deviating_from_size_field(face_zone_name_list=["cold-inlet", "hot-inlet"] min_size_factor=0.5, max_size_factor=1.1, size_factor_type_to_compare="geodesic") >>> meshing_session.meshing_utilities.mark_faces_deviating_from_size_field(face_zone_name_pattern="*", min_size_factor=0.5, max_size_factor=1.1, size_factor_type_to_compare="geodesic")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class mark_faces_in_self_proximity(service, rules, name, path=None)#
Bases:
PyQueryMark faces in self-proximity on the face zones specified.
Specify whether to use relative tolerance (relative_tolerance set to True or False), tolerance value, the angle, and whether to ignore orientation (ignore_orientation set to True or False).
Parameters#
- face_zone_id_listlist[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- relative_tolerancebool
Specify whether to use relative tolerance.
- tolerancefloat
Tolerance.
- proximity_anglefloat
Proximity angle.
- ignore_orientationbool
Specify whether to ignore orientation.
- Returns:
Examples
>>> meshing_session.meshing_utilities.mark_faces_in_self_proximity(face_zone_id_list=[30, 31, 32], relative_tolerance=True, tolerance=0.05, proximity_angle=40.5, ignore_orientation=False) >>> meshing_session.meshing_utilities.mark_faces_in_self_proximity(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"], relative_tolerance=True, tolerance=0.05, proximity_angle=40.5, ignore_orientation=False) >>> meshing_session.meshing_utilities.mark_faces_in_self_proximity(face_zone_name_pattern="*", relative_tolerance=True, tolerance=0.05, proximity_angle=40.5, ignore_orientation=False)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class mark_faces_using_node_degree(service, rules, name, path=None)#
Bases:
PyQueryMark all faces with node degree above the specified threshold.
Node degree is defined as the number of edges connected to the node.
Parameters#
- face_zone_id_listlist[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- node_degree_thresholdint
Number of edges connected to the node.
- Returns:
Examples
>>> meshing_session.meshing_utilities.mark_faces_using_node_degree(face_zone_id_list=[30, 31, 32], node_degree_threshold=2) >>> meshing_session.meshing_utilities.mark_faces_using_node_degree(face_zone_name_list=["cold-inlet", "hot-inlet"], node_degree_threshold=2) >>> meshing_session.meshing_utilities.mark_faces_using_node_degree(face_zone_name_pattern="*", node_degree_threshold=2)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class mark_free_faces(service, rules, name, path=None)#
Bases:
PyQueryMark free faces on the face zones specified. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- Returns:
Examples
>>> meshing_session.meshing_utilities.mark_free_faces(face_zone_id_list=[30, 31, 32]) >>> meshing_session.meshing_utilities.mark_free_faces(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]) >>> meshing_session.meshing_utilities.mark_free_faces(face_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class mark_invalid_normals(service, rules, name, path=None)#
Bases:
PyQueryMark invalid normal locations on the face zones specified. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- Returns:
Examples
>>> meshing_session.meshing_utilities.mark_invalid_normals(face_zone_id_list=[30, 31, 32]) >>> meshing_session.meshing_utilities.mark_invalid_normals(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]) >>> meshing_session.meshing_utilities.mark_invalid_normals(face_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class mark_island_faces(service, rules, name, path=None)#
Bases:
PyQueryMark island faces on the face zones specified, based on the island face count (island_face_count). Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- island_face_countint
Island face count.
- Returns:
Examples
>>> meshing_session.meshing_utilities.mark_island_faces(face_zone_id_list=[30, 31, 32], island_face_count=5) >>> meshing_session.meshing_utilities.mark_island_faces(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"], island_face_count=5) >>> meshing_session.meshing_utilities.mark_island_faces(face_zone_name_pattern="cold*", island_face_count=5)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class mark_multi_faces(service, rules, name, path=None)#
Bases:
PyQueryMark multi-connected faces on the face zones specified based on fringe length (fringe_length). Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- fringe_lengthint
Fringe length.
- Returns:
Examples
>>> meshing_session.meshing_utilities.mark_multi_faces(face_zone_id_list=[30, 31, 32], fringe_length=5) >>> meshing_session.meshing_utilities.mark_multi_faces(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"], fringe_length=5) >>> meshing_session.meshing_utilities.mark_multi_faces(face_zone_name_pattern="cold*", fringe_length=5)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class mark_point_contacts(service, rules, name, path=None)#
Bases:
PyQueryMark point contact locations on the face zones specified. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- Returns:
Examples
>>> meshing_session.meshing_utilities.mark_point_contacts(face_zone_id_list=[30, 31, 32]) >>> meshing_session.meshing_utilities.mark_point_contacts(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]) >>> meshing_session.meshing_utilities.mark_point_contacts(face_zone_name_pattern="cold*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class mark_self_intersecting_faces(service, rules, name, path=None)#
Bases:
PyQueryMark self-intersecting faces on the face zones specified.
Specify whether to mark folded faces or not (mark_folded set to True or False).
Parameters#
- face_zone_id_listlist[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- mark_foldedbool
Specify whether to mark folded faces or not.
- Returns:
Examples
>>> meshing_session.meshing_utilities.mark_self_intersecting_faces(face_zone_id_list=[30, 31, 32], mark_folded=True) >>> meshing_session.meshing_utilities.mark_self_intersecting_faces(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"], mark_folded=True) >>> meshing_session.meshing_utilities.mark_self_intersecting_faces(face_zone_name_pattern="cold*", mark_folded=True)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class mark_sliver_faces(service, rules, name, path=None)#
Bases:
PyQueryMark sliver faces on the face zones specified, based on the maximum height (max_height) and skewness limit (skew_limit). Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- max_heightfloat
Maximum height.
- skew_limitfloat
Skew limit.
- Returns:
Examples
>>> meshing_session.meshing_utilities.mark_sliver_faces(face_zone_id_list=[30, 31, 32], max_height=2, skew_limit=0.2) >>> meshing_session.meshing_utilities.mark_sliver_faces(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"], max_height=2, skew_limit=0.2) >>> meshing_session.meshing_utilities.mark_sliver_faces(face_zone_name_pattern="cold*", max_height=2, skew_limit=0.2)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class mark_spikes(service, rules, name, path=None)#
Bases:
PyQueryMark spikes on the face zones specified, based on the spike angle (spike_angle). Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- spike_anglefloat
Spike angle.
- Returns:
Examples
>>> meshing_session.meshing_utilities.mark_spikes(face_zone_id_list=[30, 31, 32], spike_angle=40.5) >>> meshing_session.meshing_utilities.mark_spikes(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"], spike_angle=40.5) >>> meshing_session.meshing_utilities.mark_spikes(face_zone_name_pattern="cold*", spike_angle=40.5)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class mark_steps(service, rules, name, path=None)#
Bases:
PyQueryMark steps on the face zones specified, based on the step angle (step_angle) and step width (step_width). Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- step_anglefloat
Step angle.
- step_widthfloat
Step width.
- Returns:
Examples
>>> meshing_session.meshing_utilities.mark_steps(face_zone_id_list=[30, 31, 32], step_angle=40.5, step_width=3.3) >>> meshing_session.meshing_utilities.mark_steps(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"], step_angle=40.5, step_width=3.3) >>> meshing_session.meshing_utilities.mark_steps(face_zone_name_pattern="cold*", step_angle=40.5, step_width=3.3)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class merge_cell_zones(service, rules, command, path=None)#
Bases:
PyCommandMerges the specified cell zones.
Specify a list of cell zones or name pattern.
Parameters#
- cell_zone_id_listlist[int]
List containing the cell zone IDs.
- cell_zone_name_listlist[str]
List containing the cell zone names.
- cell_zone_name_patternstr
Cell zone name pattern.
- Returns:
Examples
>>> meshing_session.meshing_utilities.merge_cell_zones(cell_zone_id_list=[87]) >>> meshing_session.meshing_utilities.merge_cell_zones(cell_zone_name_list=["elbow-fluid"]) >>> meshing_session.meshing_utilities.merge_cell_zones(cell_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class merge_cell_zones_with_same_prefix(service, rules, command, path=None)#
Bases:
PyCommandMerge cell zones containing the specified prefix. Parameters ———- prefix : str
Cell zone prefix.
- Returns:
Examples
>>> meshing_session.meshing_utilities.merge_cell_zones_with_same_prefix(prefix="elbow")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class merge_cell_zones_with_same_suffix(service, rules, command, path=None)#
Bases:
PyCommandMerge cell zones containing the specified suffix. Parameters ———- suffix : str
Cell zone suffix.
- Returns:
Examples
>>> meshing_session.meshing_utilities.merge_cell_zones_with_same_suffix(suffix="fluid")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class merge_face_zones(service, rules, command, path=None)#
Bases:
PyCommandMerges the specified face zones.
Specify a list of zone IDs or name pattern.
Parameters#
- face_zone_id_listlist[int]
List containing the face zone IDs.
- face_zone_name_patternstr
Face zone name pattern.
- Returns:
Examples
>>> meshing_session.meshing_utilities.merge_face_zones(face_zone_id_list=[30, 31, 32]) >>> meshing_session.meshing_utilities.merge_face_zones(face_zone_name_pattern="wall*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class merge_face_zones_of_type(service, rules, command, path=None)#
Bases:
PyCommandMerges face zones of a given type based on name pattern. Parameters ———- face_zone_type : str
Face zone type.
- face_zone_name_patternstr
Face zone name pattern.
- Returns:
Examples
>>> meshing_session.meshing_utilities.merge_face_zones_of_type(face_zone_type="velocity-inlet", face_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class merge_face_zones_with_same_prefix(service, rules, command, path=None)#
Bases:
PyCommandMerge face zones containing the specified prefix. Parameters ———- prefix : str
Face zone prefix.
- Returns:
Examples
>>> meshing_session.meshing_utilities.merge_face_zones_with_same_prefix(prefix="elbow")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class mesh_check(service, rules, name, path=None)#
Bases:
PyQueryReports the selected mesh check statistics for the zones specified.
Specify the ‘type_name’ as one of the ‘bounding-box-statistics’, ‘volume-statistics’, ‘face-area-statistics’, ‘nodes-per-edge’, ‘nodes-per-face’, ‘nodes-per-cell’, ‘faces-or-neighbors-per-cell’, ‘cell-faces-or-neighbors’, ‘isolated-cells’, ‘face-handedness’, ‘periodic-face-pairs’, ‘face-children’, ‘zone-boundary-conditions’, ‘invalid-node-coordinates’, ‘poly-cells’, ‘parallel-invalid-zones’, ‘parallel-invalid-neighborhood’, ‘parallel-invalid-interfaces’ value.
Parameters#
- type_namestr
Type name.
- edge_zone_id_listlist[int]
List containing the edge zone IDs.
- edge_zone_name_listlist[str]
List containing the edge zone names.
- edge_zone_name_patternstr
Edge zone name pattern.
- face_zone_id_listlist[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- cell_zone_id_listlist[int]
List containing the cell zone IDs.
- cell_zone_name_listlist[str]
List containing the cell zone names.
- cell_zone_name_patternstr
Cell zone name pattern.
- Returns:
Examples
>>> meshing_session.meshing_utilities.mesh_check(type_name="face-children", edge_zone_id_list=[22, 23], face_zone_id_list=[30, 31, 32], cell_zone_id_list=[87]) >>> meshing_session.meshing_utilities.mesh_check(type_name="nodes-per-cell", edge_zone_name_pattern="cold-inlet*", face_zone_id_list=[30, 31, 32], cell_zone_id_list=[87]) >>> meshing_session.meshing_utilities.mesh_check(type_name="volume-statistics", edge_zone_id_list=[22, 23], face_zone_name_pattern="*", cell_zone_id_list=[87]) >>> meshing_session.meshing_utilities.mesh_check(type_name="nodes-per-cell", edge_zone_name_pattern="cold-inlet*", face_zone_name_pattern="*", cell_zone_id_list=[87]) >>> meshing_session.meshing_utilities.mesh_check(type_name="face-children", edge_zone_id_list=[22, 23], face_zone_id_list=[30, 31, 32], cell_zone_name_pattern="*") >>> meshing_session.meshing_utilities.mesh_check(type_name="volume-statistics", edge_zone_name_pattern="cold-inlet*", face_zone_name_pattern="*", cell_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class mesh_exists(service, rules, name, path=None)#
Bases:
PyQueryReport if the volume mesh exists.
- Returns:
Examples
>>> meshing_session.meshing_utilities.mesh_exists()
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class print_worst_quality_cell(service, rules, name, path=None)#
Bases:
PyQueryReport the worst quality cell (ID and location) for the cell zones based on the measure specified.
Specify the ‘measure’ as one of the ‘Orthogonal Quality’, ‘Skewness’, ‘Equiangle Skewness’, ‘Size Change’, ‘Edge Ratio’, ‘Size’, ‘Aspect Ratio’, ‘Squish’, ‘Warp’, ‘Dihedral Angle’, ‘ICEMCFD Quality’, ‘Ortho Skew’, ‘FLUENT Aspect Ratio’, ‘Inverse Orthogonal Quality’ value.
Parameters#
- cell_zone_id_listlist[int]
List containing the cell zone IDs.
- cell_zone_name_listlist[str]
List containing the cell zone names.
- cell_zone_name_patternstr
Cell zone name pattern.
- measurestr
Measure.
- Returns:
Examples
>>> meshing_session.meshing_utilities.print_worst_quality_cell(cell_zone_id_list=[87], measure="Orthogonal Quality") >>> meshing_session.meshing_utilities.print_worst_quality_cell(cell_zone_name_list=["elbow-fluid"], measure="Orthogonal Quality") >>> meshing_session.meshing_utilities.print_worst_quality_cell(cell_zone_name_pattern="*", measure="Orthogonal Quality")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class project_zone_on_plane(service, rules, name, path=None)#
Bases:
PyQueryProject a zone on the plane specified.
Specify three points for defining the plane.
Parameters#
- zone_idint
Zone ID.
plane : dict[str, Any]
- Returns:
Examples
>>> meshing_session.meshing_utilities.project_zone_on_plane(zone_id=87, plane=[[1, 0, 0], [0, 1, 0], [0, 0, 1]])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class refine_marked_faces_in_zones(service, rules, name, path=None)#
Bases:
PyQueryRefine marked faces. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- Returns:
Examples
>>> meshing_session.meshing_utilities.refine_marked_faces_in_zones(face_zone_id_list=[30, 31, 32]) >>> meshing_session.meshing_utilities.refine_marked_faces_in_zones(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]) >>> meshing_session.meshing_utilities.refine_marked_faces_in_zones(face_zone_name_pattern="cold*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class remove_id_suffix_from_face_zones(service, rules, command, path=None)#
Bases:
PyCommandRemoves the ID suffix from face zone names.
- Returns:
Examples
>>> meshing_session.meshing_utilities.remove_id_suffix_from_face_zones()
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class remove_ids_from_zone_names(service, rules, command, path=None)#
Bases:
PyCommandRemove the zone ID from zone ID list. Parameters ———- zone_id_list : list[int]
List containing the face or edge or cell or node zone IDs.
- Returns:
Examples
>>> meshing_session.meshing_utilities.remove_ids_from_zone_names(zone_id_list=[30, 31, 32])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class remove_labels_on_cell_zones(service, rules, command, path=None)#
Bases:
PyCommandRemoves the specified labels from the cell zones. Parameters ———- cell_zone_id_list : list[int]
List containing the cell zone IDs.
- cell_zone_name_listlist[str]
List containing the cell zone names.
- cell_zone_name_patternstr
Cell zone name pattern.
- label_name_listlist[str]
List containing the label names.
- Returns:
Examples
>>> meshing_session.meshing_utilities.remove_labels_on_cell_zones(cell_zone_name_list=["elbow-fluid"], label_name_list=["elbow-1"]) >>> meshing_session.meshing_utilities.remove_labels_on_cell_zones(cell_zone_id_list=[87], label_name_list=["87-1"]) >>> meshing_session.meshing_utilities.remove_labels_on_cell_zones(cell_zone_name_pattern="*", label_name_list=["cell-1"])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class remove_labels_on_edge_zones(service, rules, command, path=None)#
Bases:
PyCommandRemoves the specified labels from the edge zones. Parameters ———- edge_zone_id_list : list[int]
List containing the edge zone IDs.
- edge_zone_name_listlist[str]
List containing the edge zone names.
- edge_zone_name_patternstr
Edge zone name pattern.
- label_name_listlist[str]
List containing the label names.
- Returns:
Examples
>>> meshing_session.meshing_utilities.remove_labels_on_edge_zones(edge_zone_name_list=["symmetry:xyplane:hot-inlet:elbow-fluid:feature.20"], label_name_list=["20-1"]) >>> meshing_session.meshing_utilities.remove_labels_on_edge_zones(edge_zone_id_list=[22], label_name_list=["22-1"]) >>> meshing_session.meshing_utilities.remove_labels_on_edge_zones(edge_zone_name_pattern="*", label_name_list=["26-1"])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class remove_labels_on_face_zones(service, rules, command, path=None)#
Bases:
PyCommandRemoves the specified labels from the face zones. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- label_name_listlist[str]
List containing the label names.
- Returns:
Examples
>>> meshing_session.meshing_utilities.remove_labels_on_face_zones(face_zone_name_list=["wall-inlet"], label_name_list=["wall-inlet-1"]) >>> meshing_session.meshing_utilities.remove_labels_on_face_zones(face_zone_id_list=[30], label_name_list=["hot-inlet-1"]) >>> meshing_session.meshing_utilities.remove_labels_on_face_zones(face_zone_name_pattern="*", label_name_list=["wall-elbow-1"])
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class rename_edge_zone(service, rules, command, path=None)#
Bases:
PyCommandRenames an existing edge zone. Parameters ———- zone_id : int
Edge zone ID.
- zone_namestr
Edge zone name.
- new_namestr
New edge zone name.
- Returns:
Examples
>>> meshing_session.meshing_utilities.rename_edge_zone(zone_id=20, new_name="symmetry:xyplane:hot-inlet:elbow-fluid:feature.20-new")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class rename_face_zone(service, rules, command, path=None)#
Bases:
PyCommandRenames an existing face zone. Parameters ———- zone_id : int
Face zone ID.
- zone_namestr
Face zone name.
- new_namestr
New face zone name.
- Returns:
Examples
>>> meshing_session.meshing_utilities.rename_face_zone(zone_name="symmetry:xyplane:hot-inlet:elbow-fluid:feature.20-new", new_name="symmetry:xyplane:hot-inlet:elbow-fluid:feature.20") >>> meshing_session.meshing_utilities.rename_face_zone(zone_id=32, new_name="outlet-32") >>> meshing_session.meshing_utilities.rename_face_zone(zone_name="outlet-32", new_name="outlet")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class rename_face_zone_label(service, rules, command, path=None)#
Bases:
PyCommandRenames the face zone label. Parameters ———- object_name : str
Mesh object name.
- old_label_namestr
Old label name.
- new_label_namestr
New label name.
- Returns:
Examples
>>> meshing_session.meshing_utilities.rename_face_zone_label(object_name="elbow-fluid-1", old_label_name="outlet", new_label_name="outlet-new")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class rename_object(service, rules, command, path=None)#
Bases:
PyCommandRenames the object. Parameters ———- old_object_name : str
Old object name.
- new_object_namestr
New object name.
- Returns:
Examples
>>> meshing_session.meshing_utilities.rename_object(old_object_name="elbow-fluid", new_object_name="elbow-fluid-1")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class renumber_zone_ids(service, rules, command, path=None)#
Bases:
PyCommandRenumber zone IDs starting from the number specified (start_number). Parameters ———- zone_id_list : list[int]
List containing the face or edge or cell or node zone IDs.
- start_numberint
Start number.
- Returns:
Examples
>>> meshing_session.meshing_utilities.renumber_zone_ids(zone_id_list=[30, 31, 32], start_number=1)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class replace_cell_zone_suffix(service, rules, command, path=None)#
Bases:
PyCommandReplace the cell zone suffix to rename cell zones.
Specify whether to merge the cell zones being renamed (set merge to True or False).
Parameters#
- cell_zone_id_listlist[int]
List containing the cell zone IDs.
- cell_zone_name_listlist[str]
List containing the cell zone names.
- old_suffixstr
Old cell zone name suffix.
- new_suffixstr
New cell zone name suffix.
- mergebool
Specify whether to merge the cell zones being renamed.
- Returns:
Examples
>>> meshing_session.meshing_utilities.replace_cell_zone_suffix(cell_zone_id_list=[87], old_suffix="fluid", new_suffix="fluid-new", merge=True) >>> meshing_session.meshing_utilities.replace_cell_zone_suffix(cell_zone_name_list=["elbow-fluid-new"], old_suffix="fluid", new_suffix="fluid-new", merge=True)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class replace_edge_zone_suffix(service, rules, command, path=None)#
Bases:
PyCommandReplace the edge zone suffix to rename edge zones.
Specify whether to merge the edge zones being renamed (set merge to True or False).
Parameters#
- edge_zone_id_listlist[int]
List containing the edge zone IDs.
- edge_zone_name_listlist[str]
List containing the edge zone names.
- old_suffixstr
Old edge zone name suffix.
- new_suffixstr
New edge zone name suffix.
- mergebool
Specify whether to merge the edge zones being renamed.
- Returns:
Examples
>>> meshing_session.meshing_utilities.replace_edge_zone_suffix(edge_zone_id_list=[20], old_suffix="fluid", new_suffix="fluid-new", merge=True) >>> meshing_session.meshing_utilities.replace_edge_zone_suffix(edge_zone_name_list=["hot-inlet:wall-inlet:elbow-fluid:feature.21"], old_suffix="fluid", new_suffix="fluid-new", merge=True)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class replace_face_zone_suffix(service, rules, command, path=None)#
Bases:
PyCommandReplace the face zone suffix to rename face zones.
Specify whether to merge the face zones being renamed (set merge to True or False).
Note - If an empty string is specified for the separator (’ ‘), the string specified for replace with will be appended to the face zone names.
Parameters#
- face_zone_id_listlist[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- separatorstr
Face zone name separator.
- replace_withstr
New face zone name suffix.
- mergebool
Specify whether to merge the face zones being renamed.
- Returns:
Examples
>>> meshing_session.meshing_utilities.replace_face_zone_suffix(face_zone_id_list=[30, 31, 32], separator="-suffix-", replace_with="-with-", merge=False) >>> meshing_session.meshing_utilities.replace_face_zone_suffix(face_zone_name_list=["cold-inlet", "hot-inlet"], separator="-suffix-", replace_with="-with-", merge=False)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class replace_label_suffix(service, rules, command, path=None)#
Bases:
PyCommandRename labels by replacing the label suffix with a new suffix. Parameters ———- object_name_list : list[str]
List containing the object names.
- separatorstr
Label separator.
- new_suffixstr
New label suffix.
- Returns:
Examples
>>> meshing_session.meshing_utilities.replace_label_suffix(object_name_list=["elbow-fluid-1"], separator="-", new_suffix="fluid-new")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class replace_object_suffix(service, rules, command, path=None)#
Bases:
PyCommandRename objects by replacing the object suffix with a new suffix. Parameters ———- object_name_list : list[str]
List containing the object names.
- separatorstr
Mesh object name separator.
- new_suffixstr
New object name suffix.
- Returns:
Examples
>>> meshing_session.meshing_utilities.replace_object_suffix(object_name_list=["elbow-fluid"], separator="-", new_suffix="fluid-new")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class scale_cell_zones_around_pivot(service, rules, name, path=None)#
Bases:
PyQueryEnables you to scale the cell zones around a pivot point or the bounding box center.
Specify the cell zones, the scale factors in the X, Y, Z directions (scale), the pivot point (pivot), and choose whether to use the bounding box center (use_bbox_center set to True or False).
Parameters#
- cell_zone_id_listlist[int]
List containing the cell zone IDs.
- cell_zone_name_listlist[str]
List containing the cell zone names.
- cell_zone_name_patternstr
Cell zone name pattern.
- scalelist[float]
Scale factors in the X, Y, Z directions.
- pivotlist[float]
Pivot point.
- use_bbox_centerbool
Specify whether to use the bounding box center.
- Returns:
Examples
>>> meshing_session.meshing_utilities.scale_cell_zones_around_pivot(cell_zone_id_list=[87], scale=[1.1, 1.2, 1.3], pivot=[1.1482939720153809, -2.2965879440307617, 0.7345014897547645], use_bbox_center=True) >>> meshing_session.meshing_utilities.scale_cell_zones_around_pivot(cell_zone_name_list=["elbow-fluid"], scale=[1.1, 1.2, 1.3], pivot=[1.1482939720153809, -2.2965879440307617, 0.7345014897547645], use_bbox_center=True) >>> meshing_session.meshing_utilities.scale_cell_zones_around_pivot(cell_zone_name_pattern="*", scale=[1.1, 1.2, 1.3], pivot=[1.1482939720153809, -2.2965879440307617, 0.7345014897547645], use_bbox_center=True)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class scale_face_zones_around_pivot(service, rules, name, path=None)#
Bases:
PyQueryEnables you to scale the face zones around a pivot point or the bounding box center.
Specify the face zones, the scale factors in the X, Y, Z directions (scale), the pivot point (pivot), and choose whether to use the bounding box center (use_bbox_center set to True or False).
Parameters#
- face_zone_id_listlist[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- scalelist[float]
Scale factors in the X, Y, Z directions.
- pivotlist[float]
Pivot point.
- use_bbox_centerbool
Specify whether to use the bounding box center.
- Returns:
Examples
>>> meshing_session.meshing_utilities.scale_face_zones_around_pivot(face_zone_id_list=[30, 31, 32], scale=[1.1, 1.2, 1.3], pivot=[1.1482939720153809, -2.2965879440307617, 0.7345014897547645], use_bbox_center=True) >>> meshing_session.meshing_utilities.scale_face_zones_around_pivot(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"], scale=[1.1, 1.2, 1.3], pivot=[1.1482939720153809, -2.2965879440307617, 0.7345014897547645], use_bbox_center=True) >>> meshing_session.meshing_utilities.scale_face_zones_around_pivot(face_zone_name_pattern="*", scale=[1.1, 1.2, 1.3], pivot=[1.1482939720153809, -2.2965879440307617, 0.7345014897547645], use_bbox_center=True)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class separate_cell_zone_layers_by_face_zone_using_id(service, rules, name, path=None)#
Bases:
PyQuerySeparates cells that are connected to specified face zones into another cell zone.
This separation method applies only to prism cells.
Specify the number of layers of cells (nlayers) to be separated.
Parameters#
- cell_zone_idint
Cell zone ID.
- face_zone_id_listlist[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- nlayersint
Number of layers of cells to be separated.
- Returns:
Examples
>>> meshing_session.meshing_utilities.separate_cell_zone_layers_by_face_zone_using_id(cell_zone_id=87, face_zone_id_list=[30, 31, 32], nlayers=2) >>> meshing_session.meshing_utilities.separate_cell_zone_layers_by_face_zone_using_id(cell_zone_id=87, face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"], nlayers=2) >>> meshing_session.meshing_utilities.separate_cell_zone_layers_by_face_zone_using_id(cell_zone_id=87, face_zone_name_pattern="*", nlayers=2)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class separate_cell_zone_layers_by_face_zone_using_name(service, rules, name, path=None)#
Bases:
PyQuerySeparates cells that are connected to specified face zones into another cell zone.
This separation method applies only to prism cells.
Specify the number of layers of cells (nlayers) to be separated.
Parameters#
- cell_zone_namestr
Cell zone name.
- face_zone_id_listlist[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- nlayersint
Number of layers of cells to be separated.
- Returns:
Examples
>>> meshing_session.meshing_utilities.separate_cell_zone_layers_by_face_zone_using_name(cell_zone_name="elbow-fluid", face_zone_id_list=[30, 31, 32], nlayers=2) >>> meshing_session.meshing_utilities.separate_cell_zone_layers_by_face_zone_using_name(cell_zone_name="elbow-fluid", face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"], nlayers=2) >>> meshing_session.meshing_utilities.separate_cell_zone_layers_by_face_zone_using_name(cell_zone_name="elbow-fluid", face_zone_name_pattern="*", nlayers=2)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class separate_face_zones_by_cell_neighbor(service, rules, name, path=None)#
Bases:
PyQuerySeparate face zones based on the cell neighbors. Parameters ———- face_zone_id_list : list[int]
List containing the face zone IDs.
- face_zone_name_listlist[str]
List containing the face zone names.
- face_zone_name_patternstr
Face zone name pattern.
- Returns:
Examples
>>> meshing_session.meshing_utilities.separate_face_zones_by_cell_neighbor(face_zone_id_list=[30, 31, 32]) >>> meshing_session.meshing_utilities.separate_face_zones_by_cell_neighbor(face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]) >>> meshing_session.meshing_utilities.separate_face_zones_by_cell_neighbor(face_zone_name_pattern="cold*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class set_number_of_parallel_compute_threads(service, rules, command, path=None)#
Bases:
PyCommandSet the number of compute threads to use for algorithms like mesh check and quality computation.
You can use a variable number of compute threads for these algorithms depending on the current machine loads.
The number of compute threads is between 2 and the value (maximum-cores-available - 1).
Parameters#
- nthreadsint
Number of compute threads.
- Returns:
Examples
>>> meshing_session.meshing_utilities.set_number_of_parallel_compute_threads(nthreads=2)
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class set_object_cell_zone_type(service, rules, command, path=None)#
Bases:
PyCommandSet object cell zone type. Parameters ———- object_name : str
Mesh object name.
- cell_zone_typestr
Cell zone type.
- Returns:
Examples
>>> meshing_session.meshing_utilities.set_object_cell_zone_type(object_name="elbow-fluid", cell_zone_type="mixed")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class set_quality_measure(service, rules, command, path=None)#
Bases:
PyCommandSet the quality measure.
Specify the ‘measure’ as one of the ‘Orthogonal Quality’, ‘Skewness’, ‘Equiangle Skewness’, ‘Size Change’, ‘Edge Ratio’, ‘Size’, ‘Aspect Ratio’, ‘Squish’, ‘Warp’, ‘Dihedral Angle’, ‘ICEMCFD Quality’, ‘Ortho Skew’, ‘FLUENT Aspect Ratio’, ‘Inverse Orthogonal Quality’ value.
Parameters#
- measurestr
Quality measure.
- Returns:
Examples
>>> meshing_session.meshing_utilities.set_quality_measure(measure="Aspect Ratio")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.
- class unpreserve_cell_zones(service, rules, name, path=None)#
Bases:
PyQueryEnables you to unpreserve some/all preserved cell zones during the meshing process. Parameters ———- cell_zone_id_list : list[int]
List containing the cell zone IDs.
- cell_zone_name_listlist[str]
List containing the cell zone names.
- cell_zone_name_patternstr
Cell zone name pattern.
- Returns:
Examples
>>> meshing_session.meshing_utilities.unpreserve_cell_zones(cell_zone_id_list=[87]) >>> meshing_session.meshing_utilities.unpreserve_cell_zones(cell_zone_name_list=["elbow-fluid"]) >>> meshing_session.meshing_utilities.unpreserve_cell_zones(cell_zone_name_pattern="*")
Methods:
Create an operation instance.
- create_instance()#
Create an operation instance.