Go Back   Home > Forums > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Software Tools SPICE, PCB CAD, speaker design and measurement software, calculators

Installing and using ngspice - an opensource simulator
Installing and using ngspice - an opensource simulator
Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 1st January 2019, 10:45 AM   #21
hvogt is offline hvogt
diyAudio Member
 
Join Date: Jan 2019
ngspice-30 is available
Download: ngspice - Browse /ng-spice-rework/30 at SourceForge.net
Install: Ngspice circuit simulator - Downloads (ngspice nightly and others)
  Reply With Quote
Old 1st January 2019, 05:20 PM   #22
astx is offline astx  Austria
diyAudio Member
 
Join Date: Jan 2011
Location: Tyrol / Austria
Installing and using ngspice - an opensource simulator
Thx for information and many thx for developing this top piece of software!


Happy new year and best regards, Toni
__________________
Hint: have a look at first post of my threads for an updated index!
  Reply With Quote
Old 1st January 2019, 08:22 PM   #23
astx is offline astx  Austria
diyAudio Member
 
Join Date: Jan 2011
Location: Tyrol / Austria
Installing and using ngspice - an opensource simulator
Default ASTX LABS - SA2017 VMOS IXYS ngspice simulation test

Just compiled and tested the ngspice version v30. Works!
Attached the redone SOA plot. In the zip file a small tool to calculate the soa data from the SOA lines ex log log plot from datasheets. (preliminary to demonstrate the correct formulas: "calculate_soa_data_from_log_log_plot.pl").

BR, Toni
Attached Images
File Type: png Screenshot_20190101_211357.png (166.0 KB, 156 views)
Attached Files
File Type: zip ngspice_simtest_soa_v2.zip (18.1 KB, 6 views)
__________________
Hint: have a look at first post of my threads for an updated index!
  Reply With Quote
Old 3rd January 2019, 05:02 PM   #24
astx is offline astx  Austria
diyAudio Member
 
Join Date: Jan 2011
Location: Tyrol / Austria
Installing and using ngspice - an opensource simulator
Default ngspice and wav files

... just tested this python scripts to be able to work with ".wav" files as input/output:

GitHub - Ttl/spice-audio-tools

Works (note: you need a xspice enabled ngspice)! There are many other opensource tools to convert or view the wav files in/from any format you need ...
Have attached 2 wav files with 900mV pp ripple from my power supply simulation for your experiments. Note: european 50/100Hz !

Having fun with ngspice, Toni

P.S.: a small perl utility to generate SOA lines from only a few points ex log log scale from datasheet is in development. Maybe tomorrow ...
Attached Images
File Type: png Screenshot_20190103_175753.png (136.6 KB, 129 views)
Attached Files
File Type: zip vripple_wavs.zip (278.3 KB, 4 views)
__________________
Hint: have a look at first post of my threads for an updated index!

Last edited by astx; 3rd January 2019 at 05:10 PM.
  Reply With Quote
Old 4th January 2019, 01:28 PM   #25
astx is offline astx  Austria
diyAudio Member
 
Join Date: Jan 2011
Location: Tyrol / Austria
Installing and using ngspice - an opensource simulator
Quote:
Originally Posted by keantoken View Post
...

BTW, pcb-rnd is a fork of pcb which is more capable more actively developed. pcb has stagnated.
Puuuh, first look of release 2.1.0 was nice ... but it's really buggy ... e.g. placed a component. couldn't select for remove ... suddenly could select and remove, leaves mask holes after removal ...
Sometimes less is more.
Of course it has nice features too:
  • rotating text not only 90 degree
  • more layer properties.
but I have drawn all my pcb's with "pcb".
"pcb" is still actively maintained - in the last months more actively.

But I will keep "pcb-rnd" because it can read other pcb drawings and maybe I will use it if I ever need 4 layer pcb's.


Thx, Toni
__________________
Hint: have a look at first post of my threads for an updated index!

Last edited by astx; 4th January 2019 at 01:33 PM.
  Reply With Quote
Old 6th January 2019, 09:37 AM   #26
hvogt is offline hvogt
diyAudio Member
 
Join Date: Jan 2019
Did you ever consider using KiCad (KiCad EDA)?


In its recent stable release (5.0.2) it allows drawing pcbs, enter a schematic, and it integrates ngspice for simulation.
  Reply With Quote
Old 6th January 2019, 03:25 PM   #27
astx is offline astx  Austria
diyAudio Member
 
Join Date: Jan 2011
Location: Tyrol / Austria
Installing and using ngspice - an opensource simulator
Thx, yes, I have tested it, but I have so many schematic projects, pcbs and utilities for automating geda, pcb design I haven't the need to switch over.
If there is a KiCAD user feel free to post examples.


BR, Toni



BTW: how to select only a subset of data from a tran run for e.g. linearize v(output)?
__________________
Hint: have a look at first post of my threads for an updated index!
  Reply With Quote
Old 6th January 2019, 08:00 PM   #28
astx is offline astx  Austria
diyAudio Member
 
Join Date: Jan 2011
Location: Tyrol / Austria
Installing and using ngspice - an opensource simulator
Default ASTX LABS - SA2017 VMOS IXYS ngspice simulation test

The ultimate combined simulation test ... That makes really fun

For test I have changed several parameters - look for "v1_level" and "compose" and "alter" strings in the "combined .....ngspice"

It is really nice to get so much data from one stepping run without any mouse click...

Quote:
Originally Posted by astx View Post
...
BTW: how to select only a subset of data from a tran run for e.g. linearize v(output)?
Have solved myself the question using a sample from our new member hvogt (ngspice developer!) - from ngspice forum.

Have fun, Toni
Attached Images
File Type: png Screenshot_20190106_205122.png (200.7 KB, 98 views)
Attached Files
File Type: zip ngspice_simtest_combined.zip (33.6 KB, 6 views)
__________________
Hint: have a look at first post of my threads for an updated index!

Last edited by astx; 6th January 2019 at 08:07 PM.
  Reply With Quote
Old 7th January 2019, 11:34 PM   #29
astx is offline astx  Austria
diyAudio Member
 
Join Date: Jan 2011
Location: Tyrol / Austria
Installing and using ngspice - an opensource simulator
If someone wants to edit the schematic some extra symbols are needed ...

BR, Toni
Attached Files
File Type: zip gschem_extra_symbols.zip (3.5 KB, 5 views)
__________________
Hint: have a look at first post of my threads for an updated index!
  Reply With Quote
Old 17th January 2019, 11:45 AM   #30
astx is offline astx  Austria
diyAudio Member
 
Join Date: Jan 2011
Location: Tyrol / Austria
Installing and using ngspice - an opensource simulator
Default ASTX LABS - SA2017 VMOS IXYS ngspice simulation test

Attached an example for device stepping using different opamps.
The example shows how to use include files, save data for later evaluation.

Be warned that fft results of opamps are not very reliable!
To run the simulation you need ngspice 30 with 2 unofficial patches (developed by astx).

Hopefully the patches / functionality (included in the zip file) will find the way into the next ngspice release...

Have fun, Toni
Attached Images
File Type: png Screenshot_20190117_122244.png (194.7 KB, 72 views)
Attached Files
File Type: zip ngspice_opamp_device_stepping_example.zip (176.3 KB, 11 views)
__________________
Hint: have a look at first post of my threads for an updated index!
  Reply With Quote

Reply


Installing and using ngspice - an opensource simulatorHide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NGSPICE UltimateX86 Software Tools 4 1st December 2014 07:03 PM
Help with esl simulator pforeman Planars & Exotics 6 13th July 2014 04:56 AM
Cab/Mic simulator Mishung Analog Line Level 0 14th November 2010 03:13 PM
DAT Simulator jman 31 Instruments and Amps 4 1st February 2009 02:44 PM
who got the best simulator prorms Solid State 5 26th December 2006 06:39 AM


New To Site? Need Help?

All times are GMT. The time now is 10:39 PM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 14.29%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
Copyright ©1999-2019 diyAudio
Wiki