Electronics

Electronics

Topics related to HFSS, Maxwell, SIwave, Icepak, Electronics Enterprise and more.

Using Variables for Lumped Port Excitation in HFSS

    • Ata Vafi
      Subscriber

      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!

    • Aymen Mzoughi
      Ansys Employee

      It is easier to use PyAEDT to accomplish this task.
      https://aedt.docs.pyansys.com/version/stable/Getting_started/index.html

Viewing 1 reply thread
  • The topic ‘Using Variables for Lumped Port Excitation in HFSS’ is closed to new replies.