-
-
July 30, 2023 at 5:45 pm
Ata Vafi
SubscriberI 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 pm
Aymen
Ansys EmployeeIt is easier to use PyAEDT to accomplish this task.
https://aedt.docs.pyansys.com/version/stable/Getting_started/index.html
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.Â

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- simulation completed with execution error on server
- Maxwell, HFSS or Q3D?
- Unable to assign correctly the excitations in a coil
- How to export Ansys Maxwell simulation results for post-processing in matlab or in .csv file
- Intersect errors with model with complex structure
- Running ANSYS HFSS on the HPC (it runs on Linux only)
- Process ‘3dtds’ terminated abnormally
- Error while solving Optimetrics
- Error
- Concept of Interpolation Sweep in HFSS
-
7780
-
4504
-
2971
-
1449
-
1322
© 2023 Copyright ANSYS, Inc. All rights reserved.