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

Extract THD % from FOUR simulation #525

Merged
merged 4 commits into from
Feb 7, 2024
Merged

Conversation

ivandi69
Copy link
Contributor

@ivandi69 ivandi69 commented Feb 3, 2024

AFAICT THD is not stored in a variable, only printed, and one has to use a script to calculate it, ex: How to access THD results from FFT?

This PR modifies the FOUR output parser to extract the THD value and put it into the dataset as thd_%(v(out)).

@ra3xdh ra3xdh added this to the 24.1.0 milestone Feb 3, 2024
@ra3xdh ra3xdh self-requested a review February 3, 2024 18:04
@ra3xdh
Copy link
Owner

ra3xdh commented Feb 4, 2024

I tested this PR and didn't find any problems except the static variable definition. See my line comment in abstractspicekernel.cpp

@ra3xdh ra3xdh added the ngspice label Feb 5, 2024
@ivandi69
Copy link
Contributor Author

ivandi69 commented Feb 7, 2024

I don't see any comment, probably because the review still has a pending reviewer.
Anyway, no static variable in FOUR parser. I removed it from PZ parser too, for coherence sake.

qucs/extsimkernels/abstractspicekernel.cpp Outdated Show resolved Hide resolved
@ra3xdh ra3xdh merged commit a71fd88 into ra3xdh:current Feb 7, 2024
2 checks passed
@ra3xdh
Copy link
Owner

ra3xdh commented Feb 7, 2024

Thanks for the contribution! Merged.

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

Successfully merging this pull request may close these issues.

None yet

2 participants