assign_surface_mesh#

Mesh.assign_surface_mesh(assignment, level, name=None)[source]#

Assign a surface mesh level to one or more objects.

Parameters:
assignmentlist

One or more names of the objects.

levelint

Level of the surface mesh. Options are 1 through 10

namestr, optional

Name of the mesh operation. The default is None.

Returns:
ansys.aedt.core.modules.mesh.MeshOperation

Mesh operation object.

References

>>> oModule.AssignTrueSurfOp

Examples

Basic usage demonstrated with an HFSS design:

>>> from ansys.aedt.core import Hfss
>>> hfss = Hfss()
>>> o = hfss.modeler.create_cylinder(0,[0, 0, 0],3,20,0)
>>> surface = hfss.mesh.assign_surface_mesh(o.id,3,"Surface")