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

Bug located in hfss.post.get_solution_data() function #5559

Open
2 tasks done
FgPy93 opened this issue Dec 11, 2024 · 1 comment
Open
2 tasks done

Bug located in hfss.post.get_solution_data() function #5559

FgPy93 opened this issue Dec 11, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@FgPy93
Copy link

FgPy93 commented Dec 11, 2024

Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

Description of the bug

When deriving the solution data in HFSS with explicit expresssions like dB(S(1,1)) the plotted graph always adds a "mag()" to the expression. So the resulting plot was mag(dB(S(1,1))).

The data vectors which are available in the solution like solution.data_db20() do also contain a magnitude representation of the values. Means for example, that negative values are displayed as positiv values.

This did not show up in previous versions. Current Workaround is to only derive the data as S(1,1) expression and add the logarithmic function via the formula option in the solution.plot() function.

@Samuelopez-ansys

Steps To Reproduce

Create a simple HFSS Project with a coaxial transmission geometry, solve and derive the data.

Which Operating System are you using?

Windows

Which Python version are you using?

3.10

Installed packages

ansys.aedt.core

@FgPy93 FgPy93 added the bug Something isn't working label Dec 11, 2024
@maxcapodi78 maxcapodi78 self-assigned this Dec 12, 2024
@maxcapodi78 maxcapodi78 mentioned this issue Dec 12, 2024
7 tasks
@maxcapodi78
Copy link
Collaborator

Hi @FgPy93 I've fixed it. This was a regression I've introduced to improve the plot when solution data without formula are taken from the AEDT results.
In the future I'll see if we can implement a logic which detects if there is a formula or those are data without formula

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants