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:
- names
list
orstr
orpyaedt.modeler.elements3d.FacePrimitive
List of faces to apply the surface mesh to.
- surf_dev
float
orstr
,optional
Surface deviation. The default is
None
. Allowed values are float, 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
.- meshop_name
str
,optional
Name of the mesh operation. The default is
None
.
- names
- 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")