assign_surface_mesh_manual#

Mesh.assign_surface_mesh_manual(names, surf_dev=None, normal_dev=None, aspect_ratio=None, meshop_name=None)[source]#

Assign a surface mesh to a list of faces.

Parameters:
nameslist or str or pyaedt.modeler.elements3d.FacePrimitive

List of faces to apply the surface mesh to.

surf_devfloat or str, optional

Surface deviation. The default is None. Allowed values are float, number with units or “inf”.

normal_devfloat or str, optional

Normal deviation. The default is None.

aspect_ratioint, optional

Aspect ratio. The default is None.

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 = self.aedtapp.mesh.assign_surface_mesh_manual(o.id, 1e-6, aspect_ratio=3,
... meshop_name="Surface_Manual")