Electronics

Electronics

Ansys HFSS Fields Calculator

    • Ahmed Abdelraheem
      Subscriber

      Is it possible to use/insert special functions (like spherical Bessel and Hankel) in the HFSS Fields Calculator to perform some advanced postprocessing on the simulation results?

      Specifically, I need to make use of the fields calculator's ability to conduct geometrical integrations and field vector operations (such as curl and divergence) but I also need to perform these operations on simulated fields that are modified by special functions (such as spherical Bessel and Hankel). So, if I export the simulated field outside the HFSS, I wouldn't be able to benefit from the fields-calculator operations, and if I stick to the fields-calculator, I can't use the special functions.

    • Aymen
      Ansys Employee

      PyAEDT might be a good starting point here:
      https://aedt.docs.pyansys.com/version/stable/

      • Ahmed Abdelraheem
        Subscriber

        Thanks, Aymen, for the suggestion. I already have a code built using PyAEDT to conduct my analysis. However, it seems there is no way of defining special functions (such as spherical bessel or Associated Legender polynomial for example) inside the Fields Calculator. So, my only option is to define these functions in my Python code (using scipy). Now, I need these functions to modify my solution fields (such as the electric field) and then conduct surface and volume integrations. With the way Ansys currently works, I have two options:

        1- Export the fields out: this means I'll have to write a code for Divergence, Curl, and Surface and Volume Integrations (which is structure dependent). So my code needs to change every time I change the structure.

        2- Insert these special functions in the Fields Calculator: which was my question in the first place. HOW?

        If you think I am missing something, please point it out. Thanks!

Viewing 1 reply thread
  • You must be logged in to reply to this topic.