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

Higher Precision Frequency Response #9

Open
2 tasks
apantelopoulos opened this issue Jul 19, 2023 · 0 comments
Open
2 tasks

Higher Precision Frequency Response #9

apantelopoulos opened this issue Jul 19, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@apantelopoulos
Copy link
Collaborator

Frequency Response currently works by calculating the magnitude and phase at 20 points per decade (equally spaced in the log axis) starting from $\omega=1$ up to $\omega=10^7$. This covers all the common scenarios and offers relatively good precision.

However, the following two improvements would significantly improve the frequency response offered by ADDIE:

  • More points around corner frequencies by inspecting the phase.
  • Variable start and end frequency to cover only the regions of interest

Explanations:

  1. Phase remains constant in the regions far from the corner frequencies, and changes abruptly near them. This is a characteristic that can be exploited for the purposes of AC Analysis, in order to apply an adaptive step size, instead of a constant one (20 points per decade). Specifically, the algorithm will start again from 1 rad/s with the existing step size (20 points per decade), and then when a change of more than $1^\circ$ is detected between the two previous frequency points, the step size will become 2-10 times smaller (depending on the precision needs). Of course, in order to be able to detect the end of the region of interest, the specified difference between two points that the algorithm looks for will have to be reduced an equal amount of times (2-10). Then, when the difference between the last two points is larger than the updated difference, the step size will be set back to 20 points per decade.
  2. Large corner frequencies ($\omega>10^7$) would not be depicted using the current algorithm. Also, if a circuit has only one corner frequency at $\omega=10^6$, seeing the constant magnitude and phase for small frequencies $\omega<10^3$ does not provide any useful information.
@apantelopoulos apantelopoulos added the enhancement New feature or request label Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant