


{"id":295503,"date":"2023-07-30T17:45:50","date_gmt":"2023-07-30T17:45:50","guid":{"rendered":"\/forum\/forums\/topic\/using-variables-for-lumped-port-excitation-in-hfss\/"},"modified":"2023-07-30T17:45:50","modified_gmt":"2023-07-30T17:45:50","slug":"using-variables-for-lumped-port-excitation-in-hfss","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/using-variables-for-lumped-port-excitation-in-hfss\/","title":{"rendered":"Using Variables for Lumped Port Excitation in HFSS"},"content":{"rendered":"<p>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.<br \/>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, &#8220;Length of port lines must be greater than 0.&#8221; 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?<\/p>\n<p>Your help would be greatly appreciated!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/07\/30-07-2023-1690738994-Python.png\" alt=\"\" width=\"480\" height=\"335\"><\/p>\n","protected":false},"template":"","class_list":["post-295503","topic","type-topic","status-closed","hentry","topic-tag-AnsysMaxwellelectronics-1","topic-tag-ANSYSElectronicsSuite2021R1-1","topic-tag-python-ironpython-1","topic-tag-assign-excitation-1","topic-tag-lumped-port"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["9135","20363"],"_bbp_author_ip":["23.206.193.146"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["1559"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["295503"],"_bbp_forum_id":["27793"],"_bbp_engagement":["9135","20363"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["295693"],"_bbp_last_active_id":["295693"],"_bbp_last_active_time":["2023-07-31 15:20:33"]},"test":"9986dd5f912da577d0ea5bc9543e8e582db6aa0b"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/295503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/295503\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=295503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}