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')#
Create a coaxial.
- Parameters:
- origin
list List of
[x, y, z]coordinates for the starting position.- axis
int Coordinate system axis (integer
0for X,1for Y,2for Z) or value of theansys.aedt.core.generic.constants.Axisenumerator.- 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:
tupleContains the inner, outer, and dielectric coax as
ansys.aedt.core.modeler.cad.object_3d.Object3dobjects.
References
>>> oEditor.CreateCylinder >>> oEditor.AssignMaterial
Examples
This example shows how to create a Coaxial Along X Axis waveguide.
>>> from ansys.aedt.core import Hfss >>> from ansys.aedt.core.generic.constants import Axis >>> app = Hfss() >>> position = [0, 0, 0] >>> coax = app.modeler.create_coaxial( ... position, Axis.X, inner_radius=0.5, outer_radius=0.8, diel_radius=0.78, length=50 ... )