PyAEDT Optimetrics Far Field

Andy
Andy Member Posts: 2 **

I'm looking to use add — PyAEDT (pyansys.com) to add a goal in optimetrics based on the far field patterns.

It seems the tool is only coded for Modal Solution Data. Is there a way to add goals based on far fields?


Thanks

Tagged:

Answers

  • Chris Harrold
    Chris Harrold Member, Administrator, Employee Posts: 183
    100 Comments 5 Answers First Anniversary Ansys Employee
    admin

    @Massimo / @massimo_pyaedt can definitely help here.

  • Samuel Lopez
    Samuel Lopez Member, Employee Posts: 22
    5 Answers 10 Comments First Anniversary Ansys Employee
    ✭✭✭✭

    Hi @Andy ,


    The default context as you mentioned is 'Sweep'. But you can change to another context which is the name of your Infinite Sphere (where you define the radiation pattern cuts).

    Then you just need:

    app.optimizations.add(calculation, ranges={"Freq": "2.5GHz"}, context="Infinite Sphere1")
    
    

    If this does not work, try to add an extra parameter: report_type="Far Fields"


    Let us know if it works, if not please provide a simple snippet code with your case, and we will try to help. I agree, the documentation could include more examples, please submit an Issue in GitHub or feel free to join the PyAEDT community and you could add different examples to the method like other PyAEDT methods.


    Regards,

    Samuel