assign_surface_mesh#
- Mesh.assign_surface_mesh(names, level, meshop_name=None)[source]#
Assign a surface mesh level to one or more objects.
- Parameters:
- 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")