Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hfss_report_f_convergence appears to fail on Ansys 2022 R2 #141

Open
nikosavola opened this issue Sep 14, 2022 · 2 comments
Open

hfss_report_f_convergence appears to fail on Ansys 2022 R2 #141

nikosavola opened this issue Sep 14, 2022 · 2 comments

Comments

@nikosavola
Copy link
Contributor

hfss_report_f_convergence appears to fail on Ansys 2022 R2 for the line

set_property(report, 'Attributes', curves, 'Line Width', 3)

with

File c:\users\admin\pyepr\pyEPR\core_distributed_analysis.py:1582, in DistributedAnalysis.hfss_report_f_convergence(self, variation, save_csv)
   1579 # Properties of lines
   1580 curves = [f"{report_name}:re(Mode({i})):Curve1" for i in range(
   1581     1, 1+self.n_modes)]
-> 1582 set_property(report, 'Attributes', curves, 'Line Width', 3)
   1583 set_property(report, 'Scaling',
   1584              f"{report_name}:AxisY1", 'Auto Units', False)
   1585 set_property(report, 'Scaling', f"{report_name}:AxisY1", 'Units', 'g')

File c:\users\admin\pyepr\pyEPR\ansys.py:357, in set_property(prop_holder, prop_tab, prop_server, name, value, prop_args)
    355 if not isinstance(prop_server, list):
    356     prop_server = [prop_server]
--> 357 return prop_holder.ChangeProperty([
    358     "NAME:AllTabs",
    359     [
    360         "NAME:" + prop_tab, ["NAME:PropServers", *prop_server],
    361         [
    362             "NAME:ChangedProps",
    363             ["NAME:" + name, "Value:=", value] + (prop_args or [])
    364         ]
    365     ]
    366 ])
@nikosavola
Copy link
Contributor Author

The error in Ansys is

  HFSSDesign1 (Eigenmode)
    [error] Script macro error: Invalid PropServer 'Freq. vs. pass:re(Mode(1)):Curve1'.

@nikosavola
Copy link
Contributor Author

#142 appears to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant