Align modes analytically using coordinate system with U Axis Line in Circular Waveguides? #5727
Unanswered
engineer366
asked this question in
Q&A
Replies: 2 comments
-
@engineer366 Please could you share the values of the variables? Then I could reproduce the issue. Please also attach a screenshot of the UI if possible |
Beta Was this translation helpful? Give feedback.
0 replies
-
currently it is not possible to define multiple integration lines via the API, I've added an enhancement request earlier: #4887 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Again!
I want to define a wave_port on a circular waveguide with 2 modes and align the modes analytically using coordinate system with a Y-oriented U Axis Line and a reversed V Direction.
If I use the following code I get a simple integration line for Mode 1. this way after solving, the electric fields of Mode 1 and Mode 2 are not aligned to what I wanted. (they are 45 degrees rotated)
could you help me?
Also, no matter what I do, create_circle function makes a circle that is always Y-directed, and If I change the Orientation to Y or Z, my circle is always Y-directed in HFSS, so I hade to rotate it.
`PortOne=hfss.modeler.create_circle(orientation='X',
origin=[0 ,0 ,0],
radius="waveguide_diameter/2",
is_covered=True,
name="PortOne",
material="vacuum",
non_model=False)
PortOne = hfss.modeler["PortOne"]
hfss.modeler.rotate(PortOne,"X",angle=90,units='deg')
hfss.modeler.move(PortOne,[0 ,0 ,"-waveguide_length"])
y_start = [0, hfss.variable_manager["y_start"].evaluated_value, hfss.variable_manager["z_start_end"].evaluated_value]
y_end = [0, hfss.variable_manager["y_end"].evaluated_value , hfss.variable_manager["z_start_end"].evaluated_value]
hfss.wave_port(PortOne,
reference=None,
create_port_sheet=False,
create_pec_cap=False,
integration_line=[y_start, y_end],
port_on_plane=True,
modes=2,
impedance=50,
name="Port1",
renormalize=False,
deembed=0)`
Beta Was this translation helpful? Give feedback.
All reactions