TAGGED: automation, hfss
-
-
August 24, 2023 at 2:46 pmtomas.monopoliSubscriber
Hi 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 pmdedgarAnsys Employee
HI 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
-
Viewing 1 reply thread
- The topic ‘Find the magnitude and phase of the Sources using pyaedt’ is closed to new replies.
Ansys Innovation Space
Trending discussions
- How to calculate the received power excited by non-port excitations?
- SLURM integration
- CPW resonant frequency HFSS Simulation
- How to create Lumped RLC in HFSS to match Circuit? (Simulate load as Lumped RLC)
- EMA3D Current Source Problem
- determining turn directions in cylindirical coil:clkwise-counterclkwise
- Zo when applying bulk conductivity to the silicon substrate of finite-ground CPW
- Help on calculating port impedance Zpv using Field calculator under HFSS please
- Question for Maxwell
Top Contributors
-
461
-
215
-
194
-
177
-
162
Top Rated Tags
© 2024 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.