assign_coating#
- Hfss.assign_coating(obj, mat=None, cond=58000000, perm=1, usethickness=False, thickness='0.1mm', roughness='0um', isinfgnd=False, istwoside=False, isInternal=True, issheelElement=False, usehuray=False, radius='0.5um', ratio='2.9')[source]#
Assign finite conductivity to one or more objects or faces of a given material.
- Parameters:
- obj
str
orlist
One or more objects or faces to assign finite conductivity to.
- mat
str
,optional
Material to use. The default is
None
.- cond
float
,optional
If no material is provided, a conductivity value must be supplied. The default is
58000000
.- perm
float
,optional
If no material is provided, a permittivity value must be supplied. The default is
1
.- usethicknessbool,
optional
Whether to use thickness. The default is
False
.- thickness
str
,optional
Thickness value if
usethickness=True
. The default is"0.1mm"
.- roughness
str
,optional
Roughness value with units. The default is
"0um"
.- isinfgndbool,
optional
Whether the finite conductivity is an infinite ground. The default is
False
.- istwosidebool,
optional
Whether the finite conductivity is two-sided. The default is
False
.- isInternalbool,
optional
Whether the finite conductivity is internal. The default is
True
.- issheelElementbool,
optional
The default is
False
.- usehuraybool,
optional
Whether to use an Huray coefficient. The default is
False
.- radius
str
,optional
Radius value if
usehuray=True
. The default is"0.5um"
.- ratio
str
,optional
Ratio value if
usehuray=True
. The default is"2.9"
.
- obj
- Returns:
pyaedt.modules.Boundary.BoundaryObject
Boundary object.
References
>>> oModule.AssignFiniteCond
Examples
Create two cylinders in the XY working plane and assign a copper coating of 0.2 mm to the inner cylinder and outer face. >>> from pyaedt import Hfss >>> hfss = Hfss() >>> origin = hfss.modeler.Position(0, 0, 0) >>> inner = hfss.modeler.create_cylinder( … hfss.PLANE.XY, origin, 3, 200, 0, “inner” … ) >>> outer = hfss.modeler.create_cylinder( … hfss.PLANE.XY, origin, 4, 200, 0, “outer” … ) >>> coat = hfss.assign_coating([“inner”, outer.faces[2].id], “copper”, usethickness=True, thickness=”0.2mm”)