-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
AC analysis at fixed frequency and plot against sweep parameters other than frequency #277
Comments
I am aware about this problem. The fixed point AC analysis in Ngspice is a hack. And parameter sweep is also implemented in Qucs-S using hack with for loop, because Ngspice doesn't have |
Please have a look at https://ngspice.sourceforge.io/ngspice-control-language-tutorial.html#step for the capability of the control language for loops and .step emulation. A modified netlist for use in plain ngspice is attached, which enables plotting of ac data versus dc sweep voltage. |
These discussions lead to new ideas and options: On ngspice git branch pre-master there is a new control language function cvector, which creates a complex vector, to store ac loop results directly. |
Hello Holger, thanks for looking into this. I have added an example of Qucs-S schematic implementing CV-curve plotting based on your netlist example. This example uses "Nitmeg script" simulation mode. @niuniuaba , I hope this may help you. I will include this example into the Qucs-S distribution. This may be help for other users trying to plot CV-curve. The attached screenshots show simulation example and plot settings. |
I have uploaded CV-curve simulation example schematic in the recent commit. |
Thank you very much for you help. Now I can plot CV curve in my case. Best regards, |
This should be reported to Ngspice team. Please provide a minimal example that can reproduce the different behavior. This may be not directly to
No, there is no way to set the global |
Closing this as resolved. |
Hello there,
I am trying to do an AC analysis at a fixed frequency (250KHz) with DC voltage as a sweep parameter. After the analysis I want to plot something defined by Nutmeg equation against the DC sweep rather than frequency. But no data plotted in the graph and I noticed there is a 'invalid' at the end of the name of Y axis. Did I do anything wrong? (engine is Ngspice).
schematic and plot is here in png
I also attached the netlist and dataset file here. Any help will be greatly appriciated.
netlist_dataset.zip
Best regards,
niuniuaba
TODO list
The text was updated successfully, but these errors were encountered: