ansys / pyaedt

AEDT Python Client Package
https://aedt.docs.pyansys.com
MIT License
195 stars 115 forks source link

Add integration_line for multiple modes of wave_port definition #4887

Open fwlfHS opened 1 month ago

fwlfHS commented 1 month ago

Description of the feature

Currently it's only possible to define a single integration_line with either direction or start and stop point. This applies for the first mode of the wave_port. Higher Modes don't have any integration line defined. However in the GUI there is the option to "Copy From Mode 1": image Would it be possible to either give the option to copy from Mode 1 and apply to all modes, or expose the integration_line attribute to set the other lines after port creation?

Steps for implementing the feature

port = hfss.wave_port(sheet, reference=gnd_ref, create_port_sheet=False, integration_line=integration_line, name='p_name', renormalize=False, modes=n_modes)
for i in range(n_modes):
  port.integration_line[i] = [start_point, end_point]

Useful links and references

oModule.EditWavePort hfss.boundaries_by_type['Wave Port']