TAGGED: automation, hfss
-
-
August 24, 2023 at 2:46 pm
tomas.monopoli
SubscriberHi all,
I have an HFSS design and use pyaedt to automate many tasks.
I am not able to obtain the list of source magnitudes and phases. Indeed, I am able to edit the sources with the following:
solution_module = hfss.get_module("Solutions")for M, d_name in zip(moments, dipole_names):print(f"{np.real(M)}Vm + {np.imag(M)}i Vm")print(d_name)solution_module.EditSources(["FieldType:=" , "TotalFields","IncludePortPostProcessing:=", False,"SpecifySystemPower:=" , False])magnitude = np.abs(M)phase = np.angle(M, deg=True)solution_module.EditSources(["Name:=" , d_name,"Magnitude:=" , f"{magnitude}{units}","Phase:=" , f"{phase}deg"])However, if I use the same module to try and find the sources, i.e solution_module.GetAllSourceMagnitudes() or solution_module.GetAllSourcePhases(), I get a list of 1s and 0s. While the real magnitudes and phases are different. In my particular example here is the list:I hope someone can help.Thank you.Tomas -
August 24, 2023 at 3:20 pm
dedgar
Ansys EmployeeHI Tomas,
I would recommend to post this question as an issue on the pyaedt github site where the pyaedt team can see it.
regards
dave
-
- 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
-
7592
-
4440
-
2953
-
1427
-
1322
© 2023 Copyright ANSYS, Inc. All rights reserved.