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:
- startingposition
list
List of
[x, y, z]
coordinates for the starting position.- axis
int
Coordinate system AXIS (integer
0
for X,1
for Y,2
for Z) or theApplication.AXIS
enumerator.- innerradius
float
,optional
Inner coax radius. The default is
1
.- outerradius
float
,optional
Outer coax radius. The default is
2
.- dielradius
float
,optional
Dielectric coax radius. The default is
1.8
.- length
float
,optional
Coaxial length. The default is
10
.- matinner
str
,optional
Material for the inner coaxial. The default is
"copper"
.- matouter
str
,optional
Material for the outer coaxial. The default is
"copper"
.- matdiel
str
,optional
Material for the dielectric. The default is
"teflon_based"
.
- startingposition
- 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 ... )