surface_mesh#

Mesh.surface_mesh(min_size=None, max_size=None, generate_quads=False, scope=<ansys.meshing.prime.lucid.scope.SurfaceScope object>)#

Generate a surface mesh on a scope.

This method is used to generate a surface mesh of a constant or variable size. It supports generating quad dominant or triangular elements.

If minimum and maximum sizes are provided, a variable size mesh is generated between the minimum size and maximum size by applying sizes based on curvature.

If only the minimum size or maximum size is provided, a constant size mesh is generated with the provided size.

If neither minimum size or maximum size is provided, the global maximum setting is used to generate a constant size mesh.

Parameters:
min_sizefloat, optional

Minimum edge length of the mesh. The default is None.

max_sizefloat, optional

Maximum edge length of the mesh. The default is None.

generate_quadsbool, optional

Whether to generate a quad dominant mesh. The default is False, in which case a triangular mesh is generated.

scopeSurfaceScope

Scope for generating the surface mesh.

Examples using Mesh.surface_mesh#

Convert data when importing and exporting mesh and CAD formats

Convert data when importing and exporting mesh and CAD formats

Mesh a mixing elbow for a flow analysis

Mesh a mixing elbow for a flow analysis

Mesh a pipe T-section for structural thermal and fluid flow analysis

Mesh a pipe T-section for structural thermal and fluid flow analysis

Mesh a PCB for structural thermal analysis

Mesh a PCB for structural thermal analysis

Mesh a saddle bracket for a structural analysis

Mesh a saddle bracket for a structural analysis

Add a new example

Add a new example