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:
- assignment
list
orstr
oransys.aedt.core.modeler.cad.elements_3d.FacePrimitive
List of faces to apply the surface mesh to.
- surface_deviation
float
orstr
,optional
Surface deviation. The default is
None
. You can specify a float value, a number with units, or “inf”.- normal_dev
float
orstr
,optional
Normal deviation. The default is
None
.- aspect_ratio
int
,optional
Aspect ratio. The default is
None
.- name
str
,optional
Name of the mesh operation. The default is
None
.
- assignment
- 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_manual(o.id,1e-6,aspect_ratio=3,name="Surface_Manual")