create_coaxial#

Modeler3D.create_coaxial(startingposition, axis, innerradius=1, outerradius=2, dielradius=1.8, length=10, matinner='copper', matouter='copper', matdiel='teflon_based')[source]#

Create a coaxial.

Parameters:
startingpositionlist

List of [x, y, z] coordinates for the starting position.

axisint

Coordinate system AXIS (integer 0 for X, 1 for Y, 2 for Z) or the Application.AXIS enumerator.

innerradiusfloat, optional

Inner coax radius. The default is 1.

outerradiusfloat, optional

Outer coax radius. The default is 2.

dielradiusfloat, optional

Dielectric coax radius. The default is 1.8.

lengthfloat, optional

Coaxial length. The default is 10.

matinnerstr, optional

Material for the inner coaxial. The default is "copper".

matouterstr, optional

Material for the outer coaxial. The default is "copper".

matdielstr, optional

Material for the dielectric. The default is "teflon_based".

Returns:
tuple

Contains the inner, outer, and dielectric coax as pyaedt.modeler.Object3d.Object3d objects.

References

>>> oEditor.CreateCylinder
>>> oEditor.AssignMaterial

Examples

This example shows how to create a Coaxial Along X Axis waveguide.

>>> from pyaedt import Hfss
>>> app = Hfss()
>>> position = [0,0,0]
>>> coax = app.modeler.create_coaxial(
...    position, app.AXIS.X, innerradius=0.5, outerradius=0.8, dielradius=0.78, length=50
... )