zlatko-minev / pyEPR

Powerful, automated analysis and design of quantum microwave chips & devices [Energy-Participation Ratio and more]
https://pyepr-docs.readthedocs.io
Other
168 stars 232 forks source link

Get variable value from HFSS model #48

Open vegaonline opened 4 years ago

vegaonline commented 4 years ago

The names of the variables could be obtained from pinfo.get_all_variables_names() as set of strings. It would be nice to see a function like pinfo.getValue('var name') to return the value(s) of the variable name(s) of the HFSS model obtained from the previous command. This could be something like functions get() and put() used in C++ sort of classes.

zlatko-minev commented 4 years ago

Yeah, this can be a nice interface.

We can check if HFSS iphyhon COM interface allows for getting just one variable. In any case can get full and then return one.

Sent from my iPhone

On Aug 21, 2020, at 4:30 AM, Abhijit Bhattacharyya notifications@github.com wrote:

 The names of the variables cold be obtained from pinfo.get_all_variables_names() as set of strings. It would be nice to see a function like pinfo.getValue('var name') to return the value(s) of the variable name(s) of the HFSS model obtained from the previous command. This could be something like functions get() and set() used in C++ sort of classes.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

vegaonline commented 4 years ago

I wanted to use get_variable_value(self, name) function in class HfssProject(desktop, Project) from ansys.py. I had problem in getting handles for desktop which I tried to get from class HfssDesktop from the same ansys.py. The function get_variable_value() has also set_variable(var, value).

zlatko-minev commented 4 years ago

Not sure I completely follow. You can post minimal working code if you want.

We will have a working group meeting for pyEPR soon:

Meeting signup link: https://forms.gle/oYsCjCMZLZtfrGuFA Discussion link: https://github.com/zlatko-minev/pyEPR/issues/45

You can you sign up / help spread the word to anyone you think would be interest.