-
-
July 30, 2023 at 5:45 pmAta VafiSubscriber
I am using the IronPython command to assign lumped port excitation in Ansys HFSS. During this process, I encountered an issue with setting the starting and ending points using variables in the script. It seems that the command only accepts constants and does not work with variables.
I want to define the starting point as [$x1, $y1, $z1], and the end point as [$x2, $y2, $z2], by writing these equations in the expression. However, when I attempt this approach, Ansys HFSS reports an error saying, "Length of port lines must be greater than 0." Strangely, when I replace the variables with their numerical values, the command works successfully. Does anyone have experience with this issue or know how to resolve it?Your help would be greatly appreciated!
-
July 31, 2023 at 3:20 pmAymen MzoughiAnsys Employee
It is easier to use PyAEDT to accomplish this task.
https://aedt.docs.pyansys.com/version/stable/Getting_started/index.html
-
- The topic ‘Using Variables for Lumped Port Excitation in HFSS’ is closed to new replies.
- HFSS Incident Plane Wave excitement mode
- Ansys Maxwell 3D – eddy current
- How to calculate eddy and hysteresis losses of the core?
- Simulation of capacitor combining eddy currents with displacement currents
- dq graph non-conformity
- Simplorer+Maxwell Cosimulation results and Maxwell results mismatch
- Parametrizing coil “terminals” with coil geometry
- Maxwell circuit – PWM
- On-chip inductor design
- Calculating E-field tangential to a 2D resonant structure on a sapphire chip
-
1777
-
635
-
599
-
591
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.