remesh#

class ansys.fluent.core.meshing.tui_231.main_menu.boundary.remesh(path, service)#

Bases: TUIMenu

Has a set of commands for remeshing the face zones.

Methods:

clear_marked_faces(*args, **kwargs)

Clears the highlighting of the triangles that are marked.

coarsen_and_refine(*args, **kwargs)

Remeshes (coarsens/refines) the boundary face zones based on the computed size field.

create_all_intrst_loops(*args, **kwargs)

Creates edge loop of intersection for all boundary zones in current domain.

create_edge_loops(*args, **kwargs)

Creates edge loops for a specified face zone, based on feature angle.

create_intersect_loop(*args, **kwargs)

Creates an interior edge loop at the intersection between two adjacent face zones.

create_join_loop(*args, **kwargs)

Creates edge loop on boundary of the region of overlap of two surfaces.

create_stitch_loop(*args, **kwargs)

Creates edge loops for connecting two surfaces along their free edges.

delete_overlapped_edges(*args, **kwargs)

Deletes edges that overlap selected edge loops.

faceted_stitch_zones(*args, **kwargs)

Performs the faceted stitching of zones.

insert_edge_zone(*args, **kwargs)

Inserts an edge zone into a triangulated boundary face zone.

intersect_all_face_zones(*args, **kwargs)

Remeshes all the intersecting face zones.

intersect_face_zones(*args, **kwargs)

Remeshes two intersecting face zones so that they become conformal.

join_all_face_zones(*args, **kwargs)

Connects all overlapping face zones using the join operation.

join_face_zones(*args, **kwargs)

Connects two overlapping faces.

mark_intersecting_faces(*args, **kwargs)

Highlights the triangles in the neighborhood of the line of intersection.

mark_join_faces(*args, **kwargs)

Highlights the triangles in the neighborhood of the join edge loop.

mark_stitch_faces(*args, **kwargs)

Highlights the triangles in the neighborhood of the stitch edge loop.

remesh_constant_size(*args, **kwargs)

Remeshes the specified face zones to a constant triangle size while maintaining conformity with adjacent zones.

remesh_face_zone(*args, **kwargs)

Remeshes a specified face zone by automatically extracting edge loops.

remesh_face_zones_conformally(*args, **kwargs)

Remeshes face zones using the current size function and keeping a conformal interface between them.

remesh_marked_faces(*args, **kwargs)

Locally remesh marked faces.

remesh_overlapping_zones(*args, **kwargs)

Remeshes overlapping face zones.

stitch_all_face_zones(*args, **kwargs)

Connects (stitches) all the face zones along the free edges.

stitch_face_zones(*args, **kwargs)

Connects two surfaces along their free edges.

stitch_with_preserve_boundary(*args, **kwargs)

Connects (stitches) a zone to another which is connected to an existing volume mesh, while preserving the boundary of the zones connected to the volume mesh.

triangulate(*args, **kwargs)

Triangulates quad zones.

Classes:

controls(path, service)

Enters the edge loop tools text menu.

size_functions(path, service)

Enters the size functions menu where you can define size functions for controlling mesh size distribution.

clear_marked_faces(*args, **kwargs)#

Clears the highlighting of the triangles that are marked.

coarsen_and_refine(*args, **kwargs)#

Remeshes (coarsens/refines) the boundary face zones based on the computed size field. Specify the boundary face zones to be remeshed, the boundary edge zones, feature angle, and corner angle. Additionally, specify whether the current boundary face zones should be replaced by the remeshed face zones after the operation is complete.

class controls(path, service)#

Bases: TUIMenu

Enters the edge loop tools text menu.

Methods:

delete_overlapped(*args, **kwargs)

Toggles the deletion of region of overlap of the two surfaces.

direction(*args, **kwargs)

Specifies the direction of the edge loop projection.

project_method(*args, **kwargs)

Specifies the method for projecting edge loops.

proximity_local_search(*args, **kwargs)

Includes the selected face for proximity calculation.

quadratic_recon(*args, **kwargs)

Enables/disables quadratic reconstruction of edge loops.

remesh_method(*args, **kwargs)

Specifies the method to be used for the node distribution on the edge loop.

spacing(*args, **kwargs)

Sets the node spacing for the edge loop.

tolerance(*args, **kwargs)

Sets the tolerance for determining if two edges intersect.

Classes:

intersect(path, service)

Enters the intersect control menu.

delete_overlapped(*args, **kwargs)#

Toggles the deletion of region of overlap of the two surfaces.

direction(*args, **kwargs)#

Specifies the direction of the edge loop projection.

class intersect(path, service)#

Bases: TUIMenu

Enters the intersect control menu.

Methods:

absolute_tolerance(*args, **kwargs)

Enables you to switch between the use of absolute and relative tolerance.

delete_overlap(*args, **kwargs)

Enables/disables the deletion of overlapped edges.

feature_angle(*args, **kwargs)

Specifies the minimum feature angle that should be considered while retriangulating the boundary zones.

ignore_parallel_faces(*args, **kwargs)

Default is yes.

join_match_angle(*args, **kwargs)

Specifies the allowed maximum angle between the normals of the two overlapping surfaces to be joined.

join_project_angle(*args, **kwargs)

Specifies the allowed maximum angle between the face normal and the project direction for the overlapping surfaces to be joined.

refine_region(*args, **kwargs)

Enables you to refine the regions that are modified during the intersect operations.

remesh_post_intersection(*args, **kwargs)

Used to enable or disable automatic post-remesh operation after any connect operation (join, intersect, or stitch).

retri_improve(*args, **kwargs)

Enables you to improve the mesh.

separate(*args, **kwargs)

Enables the automatic separation of intersected zones.

stitch_preserve(*args, **kwargs)

Indicates that shape of the first zone specified is to be preserved.

tolerance(*args, **kwargs)

Specifies the tolerance value for the intersect operations.

within_tolerance(*args, **kwargs)

Performs the intersection operation only within the specified tolerance value.

absolute_tolerance(*args, **kwargs)#

Enables you to switch between the use of absolute and relative tolerance. By default, the relative tolerance value is used.

delete_overlap(*args, **kwargs)#

Enables/disables the deletion of overlapped edges. It toggles the automatic deletion of region of overlap of the two surfaces. This option is used by while remeshing overlapping zones and retriangulating prisms. By default, this option is enabled.

feature_angle(*args, **kwargs)#

Specifies the minimum feature angle that should be considered while retriangulating the boundary zones. All the edges in the zone having feature angle greater than the specified feature angle are retained. This option is useful for preserving the shape of the intersecting boundary zones. The default value of feature angle is 40, however, a value in the range of 10–50 degrees is recommended. A large value may distort the shape of the intersecting boundary zones.

ignore_parallel_faces(*args, **kwargs)#

Default is yes. If there are close-to-parallel faces, set to no to separate the zones and avoid creating an intersection loop.

join_match_angle(*args, **kwargs)#

Specifies the allowed maximum angle between the normals of the two overlapping surfaces to be joined. This parameter is used to control the size of the join region.

join_project_angle(*args, **kwargs)#

Specifies the allowed maximum angle between the face normal and the project direction for the overlapping surfaces to be joined. This parameter is used to control the size of the join region.

refine_region(*args, **kwargs)#

Enables you to refine the regions that are modified during the intersect operations. It toggles the refinement of the intersecting regions after performing any of the intersection operation. This operation improves the quality of the resulting mesh, however, this option is disabled by default.

remesh_post_intersection(*args, **kwargs)#

Used to enable or disable automatic post-remesh operation after any connect operation (join, intersect, or stitch).

retri_improve(*args, **kwargs)#

Enables you to improve the mesh. After performing any intersection operation, the slivers are removed along the curve of intersection, Laplace smoothing is performed, and followed by the edge swapping. Laplace smoothing is also performed for insert-edge-zone, remesh-overlapped-zones, and prism-retriangulation options. Smoothing is performed again. The smooth-swap operations can be controlled by changing the various defaults such as swapping iterations, smoothing iterations, etc.

separate(*args, **kwargs)#

Enables the automatic separation of intersected zones.

stitch_preserve(*args, **kwargs)#

Indicates that shape of the first zone specified is to be preserved. This option is enabled by default.

tolerance(*args, **kwargs)#

Specifies the tolerance value for the intersect operations.

within_tolerance(*args, **kwargs)#

Performs the intersection operation only within the specified tolerance value. It is useful only for the Intersect option.

project_method(*args, **kwargs)#

Specifies the method for projecting edge loops.

Includes the selected face for proximity calculation.

quadratic_recon(*args, **kwargs)#

Enables/disables quadratic reconstruction of edge loops.

remesh_method(*args, **kwargs)#

Specifies the method to be used for the node distribution on the edge loop.

spacing(*args, **kwargs)#

Sets the node spacing for the edge loop.

tolerance(*args, **kwargs)#

Sets the tolerance for determining if two edges intersect.

create_all_intrst_loops(*args, **kwargs)#

Creates edge loop of intersection for all boundary zones in current domain.

create_edge_loops(*args, **kwargs)#

Creates edge loops for a specified face zone, based on feature angle.

create_intersect_loop(*args, **kwargs)#

Creates an interior edge loop at the intersection between two adjacent face zones. Edges created in this way will not be remeshed by default.

create_join_loop(*args, **kwargs)#

Creates edge loop on boundary of the region of overlap of two surfaces.

create_stitch_loop(*args, **kwargs)#

Creates edge loops for connecting two surfaces along their free edges.

delete_overlapped_edges(*args, **kwargs)#

Deletes edges that overlap selected edge loops.

faceted_stitch_zones(*args, **kwargs)#

Performs the faceted stitching of zones.

insert_edge_zone(*args, **kwargs)#

Inserts an edge zone into a triangulated boundary face zone.

intersect_all_face_zones(*args, **kwargs)#

Remeshes all the intersecting face zones. After the intersect operation, remesh is called automatically. To disable the post-remesh operation, use the text command: /boundary/remesh/controls/intersect/remesh-post-intersection? no.

intersect_face_zones(*args, **kwargs)#

Remeshes two intersecting face zones so that they become conformal. After the intersect operation, remesh is called automatically. To disable the post-remesh operation, use the text command: /boundary/remesh/controls/intersect/remesh-post-intersection? no.

join_all_face_zones(*args, **kwargs)#

Connects all overlapping face zones using the join operation. After the join operation, remesh is called automatically. To disable the post-remesh operation, use the text command: /boundary/remesh/controls/intersect/remesh-post-intersection? no.

join_face_zones(*args, **kwargs)#

Connects two overlapping faces. After the join operation, remesh is called automatically. To disable the post-remesh operation, use the text command: /boundary/remesh/controls/intersect/remesh-post-intersection? no.

mark_intersecting_faces(*args, **kwargs)#

Highlights the triangles in the neighborhood of the line of intersection.

mark_join_faces(*args, **kwargs)#

Highlights the triangles in the neighborhood of the join edge loop.

mark_stitch_faces(*args, **kwargs)#

Highlights the triangles in the neighborhood of the stitch edge loop.

remesh_constant_size(*args, **kwargs)#

Remeshes the specified face zones to a constant triangle size while maintaining conformity with adjacent zones. Specify the boundary face zones to be remeshed, the boundary edge zones, feature angle, corner angle, and the constant size. Additionally, specify whether the current boundary face zones should be replaced by the remeshed face zones after the operation is complete.

remesh_face_zone(*args, **kwargs)#

Remeshes a specified face zone by automatically extracting edge loops. If edge loops are present in the current domain (for example, if they were created using the create-edge-loops command), they are used to remesh the specified face zone.

remesh_face_zones_conformally(*args, **kwargs)#

Remeshes face zones using the current size function and keeping a conformal interface between them. If no size function is defined, an error message will be generated. This command will prompt for: Boundary Face Zones Boundary Edge Zones feature angle – used to determine the minimum angle between features that will be preserved during remeshing corner angle – used to specify the minimum angle between feature edges that will be preserved Replace Face Zone? – (default is Yes) the remeshed face zone(s) will take the name and -id of the original zones, and the original face zone(s) will have “orig” appended to their name. If No, the remeshed face zone(s) will have “retri” added postfix. Periodic face zones cannot be remeshed using this command.

remesh_marked_faces(*args, **kwargs)#

Locally remesh marked faces.

remesh_overlapping_zones(*args, **kwargs)#

Remeshes overlapping face zones. The non-overlapping region is remeshed using the edge loops created from the overlapping face zones.

class size_functions(path, service)#

Bases: TUIMenu

Enters the size functions menu where you can define size functions for controlling mesh size distribution.

Methods:

compute(*args, **kwargs)

Computes the size field based on the defined parameters.

create(*args, **kwargs)

Defines the size function based on the specified parameters.

create_defaults(*args, **kwargs)

Creates default size functions based on face and edge curvature and proximity.

delete(*args, **kwargs)

Deletes the specified size function or the current size field.

delete_all(*args, **kwargs)

Deletes all the defined size functions.

disable_periodicity_filter(*args, **kwargs)

Removes periodicity from the size field.

enable_periodicity_filter(*args, **kwargs)

Enable size field periodicity.

list(*args, **kwargs)

Lists all the defined size functions and the parameter values defined.

list_periodicity_filter(*args, **kwargs)

List periodic in size field.

reset_global_controls(*args, **kwargs)

Resets the global controls to their default values.

set_global_controls(*args, **kwargs)

Sets the values for the global minimum and maximum size, and the growth rate.

set_prox_gap_tolerance(*args, **kwargs)

Sets the tolerance relative to minimum size to take gaps into account.

set_scaling_filter(*args, **kwargs)

Specifies the scale factor, and minimum and maximum size values to filter the size output from the size field.

triangulate_quad_faces(*args, **kwargs)

Identifies the zones comprising non-triangular elements and uses a triangulated copy of these zones for computing the size functions.

use_cad_imported_curvature(*args, **kwargs)

Enables/disables curvature data from the nodes of the CAD facets.

Classes:

contours(path, service)

Contains options for displaying contours of size functions.

controls(path, service)

Menu to control different behavior of sf.

compute(*args, **kwargs)#

Computes the size field based on the defined parameters.

class contours(path, service)#

Bases: TUIMenu

Contains options for displaying contours of size functions.

Methods:

draw(*args, **kwargs)

Displays contours in the graphics window.

Classes:

set(path, service)

Set contour options.

draw(*args, **kwargs)#

Displays contours in the graphics window. Compute the size field using /size-functions/compute or read in a size field file prior to displaying the contours of size.

class set(path, service)#

Bases: TUIMenu

Set contour options.

Methods:

refine_facets(*args, **kwargs)

Enables you to specify smaller facets if the original are too large.

refine_facets(*args, **kwargs)#

Enables you to specify smaller facets if the original are too large. Default is no.

class controls(path, service)#

Bases: TUIMenu

Menu to control different behavior of sf.

Methods:

curvature_method(*args, **kwargs)

Option to get facet curvature.

meshed_sf_behavior(*args, **kwargs)

Set meshed size function processing to hard.

curvature_method(*args, **kwargs)#

Option to get facet curvature.

meshed_sf_behavior(*args, **kwargs)#

Set meshed size function processing to hard.

create(*args, **kwargs)#

Defines the size function based on the specified parameters.

create_defaults(*args, **kwargs)#

Creates default size functions based on face and edge curvature and proximity.

delete(*args, **kwargs)#

Deletes the specified size function or the current size field.

delete_all(*args, **kwargs)#

Deletes all the defined size functions.

disable_periodicity_filter(*args, **kwargs)#

Removes periodicity from the size field.

enable_periodicity_filter(*args, **kwargs)#

Enable size field periodicity.

list(*args, **kwargs)#

Lists all the defined size functions and the parameter values defined.

list_periodicity_filter(*args, **kwargs)#

List periodic in size field.

reset_global_controls(*args, **kwargs)#

Resets the global controls to their default values.

set_global_controls(*args, **kwargs)#

Sets the values for the global minimum and maximum size, and the growth rate.

set_prox_gap_tolerance(*args, **kwargs)#

Sets the tolerance relative to minimum size to take gaps into account. Gaps whose thickness is less than the global minimum size multiplied by this factor will not be regarded as a proximity gap.

set_scaling_filter(*args, **kwargs)#

Specifies the scale factor, and minimum and maximum size values to filter the size output from the size field.

triangulate_quad_faces(*args, **kwargs)#

Identifies the zones comprising non-triangular elements and uses a triangulated copy of these zones for computing the size functions.

use_cad_imported_curvature(*args, **kwargs)#

Enables/disables curvature data from the nodes of the CAD facets.

stitch_all_face_zones(*args, **kwargs)#

Connects (stitches) all the face zones along the free edges. After the stitch operation, remesh is called automatically. To disable the post-remesh operation, use the text command: /boundary/remesh/controls/intersect/remesh-post-intersection? no.

stitch_face_zones(*args, **kwargs)#

Connects two surfaces along their free edges. After the stitch operation, remesh is called automatically. To disable the post-remesh operation, use the text command: /boundary/remesh/controls/intersect/remesh-post-intersection? no.

stitch_with_preserve_boundary(*args, **kwargs)#

Connects (stitches) a zone to another which is connected to an existing volume mesh, while preserving the boundary of the zones connected to the volume mesh. Specify a list of boundary zones to be preserved, a list of the boundary zones to be connected to each of these zones, and the tolerance value. After the stitch operation, remesh is called automatically. To disable the post-remesh operation, use the text command: /boundary/remesh/controls/intersect/remesh-post-intersection? no This command will not work for overlapping or partially overlapping face zones.

triangulate(*args, **kwargs)#

Triangulates quad zones.