Duplicating port in Directional coupler

Otty80 Member Posts: 7
First Comment

I created a port in a directional coupler , designed as a quarter and duplicated with duplicate_and mirror, using the following instruction:

hfss.modeler.create_polyline(position_list = [["-(l35/2+pl)", "l1-l2-w50/2", "h1"], ["-(l35/2+pl)", "l1-l2-w50/2", "0"]], name="port1", xsection_type="Line", xsection_width="w50")

Is there a way to duplicate it in the other Direction Coupler sides, without unite instruction? Otherwise, I will see only a port name.

I need to duplicate in X,-Y, -X,Y, -X,-Y side but with different names.



  • Samuel Lopez
    Samuel Lopez Member, Employee Posts: 20
    First Anniversary Ansys Employee 5 Likes First Answer

    Hi @Otty80 ,

    Please share a full code for being able to reproduce the issue, without the parameter definition, we can not reproduce your example.

    For example:

    import pyaedt
    app = pyaedt.Hfss()
    app["l35"] = "5mm"
    hfss.modeler.create_polyline(position_list = ....)
    # And what you need here