Hfss3dLayout -- How to edit Port Excitations in PyAEDT? #5535
-
This is a fairly trivial operation with the GUI: Excitations > "Port Excitations..." > Magnitude / Phase are available to edit for each port. How can this be replicated using PyAEDT? It is required for generating the correct fields with |
Beta Was this translation helpful? Give feedback.
Answered by
Samuelopez-ansys
Dec 10, 2024
Replies: 1 comment 1 reply
-
related, but for Hfss: #3471 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @j4mag ,
You can use the method edit_source_from_file if you need a frequency-dependent Magnitude and phase.
or you can directly set the value:
app.excitation_objects["Port1"].properties["Magnitude"] = "2V"