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:
originlist

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.

inner_radiusfloat, optional

Inner coax radius. The default is 1.

outer_radiusfloat, optional

Outer coax radius. The default is 2.

diel_radiusfloat, optional

Dielectric coax radius. The default is 1.8.

lengthfloat, optional

Coaxial length. The default is 10.

mat_innerstr, optional

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

mat_outerstr, optional

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

mat_dielstr, optional

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

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)