Electronics

Electronics

Topics related to HFSS, Maxwell, SIwave, Icepak, Electronics Enterprise and more.

Create user defined functions in HFSS

TAGGED: ,

    • ZiadHatab
      Subscriber

      Hi!

      I want to create a user defined function that I can evaluate inside variables. For example, I want to create a dieletric constant profile that uses logical statements and for-loops. So, basically, I want to script a function within HFSS and call it later inside a variable, similar as if I'm calling any built-in function (e.g., max(), tan(), abs() .... ), but now my function: myFunction().
       
      I looked in the scripting help menu, but I couldn't understand it. I would appreciate a simple working example. I'm programming primarily in Python, but I don't mind other programming languages as my custom function uses basic logic statmemt and for-loops and some simple math expressions.
       

      Thanks!
      Ziad

    • Chinmay Telkikar
      Forum Moderator

      Hello,

      Please note that PyAEDT comes under open source, so we would like to advise you to post in Git Hub under discussions. You can post your query in the following link - Discussions · pyansys/pyaedt · GitHub.

      Thanks,
      Chinmay

Viewing 1 reply thread
  • The topic ‘Create user defined functions in HFSS’ is closed to new replies.