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

Templates for ngspice #441

Closed
tomhajjar opened this issue Jan 8, 2024 · 9 comments
Closed

Templates for ngspice #441

tomhajjar opened this issue Jan 8, 2024 · 9 comments

Comments

@tomhajjar
Copy link

tomhajjar commented Jan 8, 2024

I'm slowly making a "Template" folder with analysis examples including Nutmeg equations needed to plot data.

2024-01-09_115406

@tomhajjar
Copy link
Author

tomhajjar commented Jan 22, 2024

I've improved most of the examples in the project and added more. New submissions are welcomed.

ra3xdh added a commit that referenced this issue Feb 2, 2024
@ra3xdh
Copy link
Owner

ra3xdh commented Feb 2, 2024

I have uploaded Ngspice templates to examples/templates_ngspice subdirectory. Closing as completed. Thanks for the contribution!

@ra3xdh ra3xdh closed this as completed Feb 2, 2024
@iwbnwif
Copy link
Contributor

iwbnwif commented Feb 2, 2024

Thank you, these templates are really useful. A few observations:

  1. AC_TRAN_FOUR_OpAmp.sch has the "open data display after simulation" checked even though there are no charts on the .dpl page.
  2. genericopa_sub.sch is missing file genericopa.cir
  3. Pwr-Amp_wingspread_analysis.sch doesn't appear to have a 'dd' label, thus v(dd) is invalid?
  4. S-parameter_file_analysis.sch is missing FL455kHz.s2p

@tomhajjar
Copy link
Author

tomhajjar commented Feb 2, 2024

The "missing" files including the dpl file were in the original zip. "dd" is in the nutmeg equation.

2024-02-02_132024

@ra3xdh
Copy link
Owner

ra3xdh commented Feb 2, 2024

genericopa_sub.sch is missing file genericopa.cir

I have added missing file

S-parameter_file_analysis.sch is missing FL455kHz.s2p

I excluded this schematic from examples pack. The attached s2p file was about 1Mb size. It's better avoid to keep such large files in git.

@iwbnwif
Copy link
Contributor

iwbnwif commented Feb 2, 2024

"dd" is in the nutmeg equation.

Ah, sorry I see it now. Should the Nutmeg Simulation=SW1 instead of =dc?

@tomhajjar
Copy link
Author

tomhajjar commented Feb 2, 2024

@ra3xdh

I redid the s-parameter file example to use the s-parameter file "137MHz_BPF.s2p". This is the same filter in S-parameter_passive_analysis.sch so is a better example. The files are also smaller.

On a side note, 137MHz_BPF.s2p was created by Qucs using qucsconv on the original LC filter. It's a feature Qucs-S doesn't have.

2024-02-02_134845
2024-02-02_135216

Templates_ngspice_prj.zip

@iwbnwif
Copy link
Contributor

iwbnwif commented Feb 2, 2024

@tomhajjar
Shouldn't this be Simulation=SW1?
qucs-s

@tomhajjar
Copy link
Author

tomhajjar commented Feb 2, 2024

I created the schematic from the ngspice example, 100W.sp. I simplified the analysis to 8 Ohms.

Vadim wrote the Nutmeg equations and Parameter sweep entries and got it to work.

See #405.

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

No branches or pull requests

3 participants