assign_surface_mesh_manual#

Mesh.assign_surface_mesh_manual(assignment, surface_deviation=None, normal_dev=None, aspect_ratio=None, name=None)[source]#

Assign a surface mesh to a list of faces.

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

List of faces to apply the surface mesh to.

surface_deviationfloat or str, optional

Surface deviation. The default is None. You can specify a float value, a 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.

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
>>> hfss = Hfss()
>>> o = hfss.modeler.create_cylinder(0,[0, 0, 0],3,20,0)
>>> surface = hfss.mesh.assign_surface_mesh_manual(o.id,1e-6,aspect_ratio=3,name="Surface_Manual")