How to delete a lumped port in Excitations of HFSS 3D Modeler? #4953
-
I can creat lumped port using hfss.lumped_port, but it seems there's not a delete port function. Could you help me how to delete them? or There is not a delete funciton in pyaedt indeed. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Here is the code snipper for deleting the port in HFSS 3D Environment. import pyaedt PROJ_NAME = 'Coplaner_Patch_ITO_square.aedt' hfss = pyaedt.Hfss(os.path.join(PROJ_PATH,PROJ_NAME)) boundaries = hfss.boundaries_by_type Thanks to Samuel for helping to come up with above script. I have tested and it works |
Beta Was this translation helpful? Give feedback.
-
Hi Vamsi,
Thank you very much! I will try it :)
Rgds,
DONG Qin
…------------------ Original ------------------
From: ***@***.***>;
Date: 2024年8月5日(星期一) 晚上8:08
To: ***@***.***>;
Cc: ***@***.***>; ***@***.***>;
Subject: Re: [ansys/pyaedt] How to delete a lumped port in Excitations of HFSS 3D Modeler? (Discussion #4953)
Here is the code snipper for deleting the port in HFSS 3D Environment.
import pyaedt
import os
PROJ_NAME = 'Coplaner_Patch_ITO_square.aedt'
PROJ_PATH = r'C:\Users\ykrishna\Downloads\Shared_project'
hfss = pyaedt.Hfss(os.path.join(PROJ_PATH,PROJ_NAME))
boundaries = hfss.boundaries_by_type
lumped_ports = boundaries["Lumped Port"]
#If need to check the name in case of multiple ports
#port_name = lumped_ports[0]._name
lumped_ports[0].delete().
Thanks to Samuel for helping to come up with above script. I have tested and it works
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Here is the code snipper for deleting the port in HFSS 3D Environment.
import pyaedt
import os
PROJ_NAME = 'Coplaner_Patch_ITO_square.aedt'
PROJ_PATH = r'C:\Users\ykrishna\Downloads\Shared_project'
hfss = pyaedt.Hfss(os.path.join(PROJ_PATH,PROJ_NAME))
boundaries = hfss.boundaries_by_type
lumped_ports = boundaries["Lumped Port"]
#If need to check the name in case of multiple ports
#port_name = lumped_ports[0]._name
lumped_ports[0].delete().
Thanks to Samuel for helping to come up with above script. I have tested and it works