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 of a given material.

Parameters
objstr or list

One or more objects to assign finite conductivity to.

matstr, optional

Material to use. The default is None.

condfloat, optional

If no material is provided, a conductivity value must be supplied. The default is 58000000.

permfloat, 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.

thicknessstr, optional

Thickness value if usethickness=True. The default is "0.1mm".

roughnessstr, 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

The default is False.

isInternalbool, optional

The default is True.

issheelElementbool, optional

The default is False.

usehuraybool, optional

Whether to use an Huray coefficient. The default is False.

radiusstr, optional

Radius value if usehuray=True. The default is "0.5um".

ratiostr, optional

Ratio value if usehuray=True. The default is "2.9".

Returns
pyaedt.modules.Boundary.BoundaryObject

Boundary object.

References

>>> oModule.AssignFiniteCond

Examples

Create a cylinder at the XY working plane and assign a copper coating of 0.2 mm to it.

>>> origin = hfss.modeler.Position(0, 0, 0)
>>> inner = hfss.modeler.primitives.create_cylinder(
...     hfss.PLANE.XY, origin, 3, 200, 0, "inner"
... )
>>> inner_id = hfss.modeler.primitives.get_obj_id("inner")
>>> coat = hfss.assign_coating([inner_id], "copper", usethickness=True, thickness="0.2mm")