create_coaxial#
- Modeler3D.create_coaxial(origin, axis, inner_radius=1, outer_radius=2, diel_radius=1.8, length=10, mat_inner='copper', mat_outer='copper', mat_diel='teflon_based')[source]#
Create a coaxial.
- Parameters:
- origin
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.- inner_radius
float
,optional
Inner coax radius. The default is
1
.- outer_radius
float
,optional
Outer coax radius. The default is
2
.- diel_radius
float
,optional
Dielectric coax radius. The default is
1.8
.- length
float
,optional
Coaxial length. The default is
10
.- mat_inner
str
,optional
Material for the inner coaxial. The default is
"copper"
.- mat_outer
str
,optional
Material for the outer coaxial. The default is
"copper"
.- mat_diel
str
,optional
Material for the dielectric. The default is
"teflon_based"
.
- origin
- Returns:
tuple
Contains the inner, outer, and dielectric coax as
ansys.aedt.core.modeler.Object3d.Object3d
objects.
References
>>> oEditor.CreateCylinder >>> oEditor.AssignMaterial
Examples
This example shows how to create a Coaxial Along X Axis waveguide.
>>> from ansys.aedt.core import Hfss >>> app = Hfss() >>> position = [0,0,0] >>> coax = app.modeler.create_coaxial(position,app.AXIS.X,inner_radius=0.5,outer_radius=0.8,diel_radius=0.78, ... length=50)