assign_surface_mesh#

Mesh.assign_surface_mesh(names, level, meshop_name=None)[source]#

Assign a surface mesh level to one or more objects.

Parameters:
nameslist

One or more names of the objects.

levelint

Level of the surface mesh. Options are 1 through 10

meshop_namestr, optional

Name of the mesh operation. The default is None.

Returns:
pyaedt.modules.Mesh.MeshOperation

Mesh operation object.

References

>>> oModule.AssignTrueSurfOp

Examples

Basic usage demonstrated with an HFSS design:

>>> from pyaedt import Hfss
>>> aedtapp = Hfss()
>>> o = aedtapp.modeler.create_cylinder(0, [0, 0, 0], 3, 20, 0)
>>> surface = aedtapp.mesh.assign_surface_mesh(o.id, 3, "Surface")