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 13th April 2019, 01:42 PM   #181
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 UltimateX86 View Post
If i could convert it to NGspice, i would probably switch
Attached your circlotron circuit simulation working using ngspice.
I have converted and cleaned up your ltspice ".net" output file. In principle it should run with current "ngspice pre-master" which includes the fix to allow "{}" calculations in ".model" parameters.

At simulation start you get this error:
Cannot compute substitute
Copies=56 Evals=114 Placeholders=4 Symbols=3 Errors=6
Numparam expansion errors: Run Spice anyway? y/n ?

Just ignore it with "y" to continue because the errors are due to unallowed model parameters like "mfg" which are of no relevance here.

BR, Toni
Attached Images
File Type: png circlotron.png (187.7 KB, 88 views)
Attached Files
File Type: zip circlotron.zip (11.0 KB, 5 views)
__________________
Hint: have a look at first post of my threads for an updated index!
  Reply With Quote
Old 13th April 2019, 01:48 PM   #182
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 hvogt View Post
In fact it is possible to use temperature, voltages and currents in model parameter expressions. There was a bug in the parser for the VDMOS model. I have pushed a fix to branch pre-master.
...

Concerning the self heating models, we still have some discussions about the final implementation.
...

Thx Holger for the very fast fix! Works now with Ian's ltspice models.
See above example of the "circlotron".

About the vbic and vdmos self heating: is there a plan when it will be production ready and merged into pre-master/master?

BR, Toni
__________________
Hint: have a look at first post of my threads for an updated index!
  Reply With Quote
Old 13th April 2019, 02:15 PM   #183
edbarx is offline edbarx  Malta
diyAudio Member
 
Join Date: May 2018
I have gSpiceUI installed but I was discouraged from using it the few times I tried it. My impression was immediately a very steep learning curve ahead. I reasoned if I wanted others to read my circuits and help me in case of difficulties, it was far more practical for me to use LTSpice instead.

Trying it another time I got the impression I was using KiCad. LTSpice is far simpler to use and used by many more people.

Last edited by edbarx; 13th April 2019 at 02:18 PM.
  Reply With Quote
Old 14th April 2019, 10:16 AM   #184
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 edbarx View Post
...
LTSpice is far simpler to use and used by many more people.
Your opinion here is a bit off topic: we are not discussing which schematic gui is intuitive/better - we are discussing ngspice - the simulator core itself. Feel free to start your own thread/poll discussing gui features of open source schematic editors vs commercial (and currently "freeware") ltspice schematic editor.
BR, Toni
__________________
Hint: have a look at first post of my threads for an updated index!
  Reply With Quote
Old 14th April 2019, 11:04 AM   #185
astx is offline astx  Austria
diyAudio Member
 
Join Date: Jan 2011
Location: Tyrol / Austria
Installing and using ngspice - an opensource simulator
... maybe the learning curve is high, but the results of one sim run makes really fun and speeds up the development exponentially (as one of many benefits it helps to avoid a carpal tunnel syndrome). Attached a screenshot of a high power class G amplifier in development using 8 pairs TTC5200/TTA1943 and 8 pairs IRFP240/9240.
Includes SOA of VAS, drivers, output drivers of all 5 power steps
tian probe results of feedback loop and vas feedback loop
fft, harmonic distortions, output power etc ...
Thanks to David Zan supporting me with outstanding good ideas for going green!

Have fun, Toni
Attached Images
File Type: png Screenshot_20190414_125321.png (248.1 KB, 55 views)
__________________
Hint: have a look at first post of my threads for an updated index!
  Reply With Quote
Old 14th April 2019, 02:15 PM   #186
edbarx is offline edbarx  Malta
diyAudio Member
 
Join Date: May 2018
Quote:
Originally Posted by astx
Your opinion here is a bit off topic: we are not discussing which schematic gui is intuitive/better - we are discussing ngspice - the simulator core itself.
All right, granted. If the simulator engine (core) is that powerful it is worthy of a good look. I tried to install the core but ngspice is not available in the distribution's repositories although gspiceui has references to it.
Code:
$ apt-get install -s ngspice
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ngspice is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ngspice' has no installation candidate
  Reply With Quote
Old 14th April 2019, 02:42 PM   #187
astx is offline astx  Austria
diyAudio Member
 
Join Date: Jan 2011
Location: Tyrol / Austria
Installing and using ngspice - an opensource simulator
All recent major distributions (opensuse, redhat, debian, ubuntu ...) have ngspice available. At least they provide extra repositories where you can download it.
Whats your distro and version?
__________________
Hint: have a look at first post of my threads for an updated index!
  Reply With Quote
Old 14th April 2019, 02:49 PM   #188
hvogt is offline hvogt  Germany
diyAudio Member
 
Join Date: Jan 2019
I have pushed a fix to branch pre-master to get rid of the 'mfg=whatevername' issue.


Holger
  Reply With Quote
Old 14th April 2019, 03:13 PM   #189
astx is offline astx  Austria
diyAudio Member
 
Join Date: Jan 2011
Location: Tyrol / Austria
Installing and using ngspice - an opensource simulator
__________________
Hint: have a look at first post of my threads for an updated index!
  Reply With Quote
Old 15th April 2019, 08:06 AM   #190
UltimateX86 is offline UltimateX86  France
diyAudio Member
 
Join Date: Jun 2004
Location: France
Installing and using ngspice - an opensource simulator
Quote:
Originally Posted by astx View Post
Attached your circlotron circuit simulation working using ngspice.
I have converted and cleaned up your ltspice ".net" output file. In principle it should run with current "ngspice pre-master" which includes the fix to allow "{}" calculations in ".model" parameters.

At simulation start you get this error:
Cannot compute substitute
Copies=56 Evals=114 Placeholders=4 Symbols=3 Errors=6
Numparam expansion errors: Run Spice anyway? y/n ?

Just ignore it with "y" to continue because the errors are due to unallowed model parameters like "mfg" which are of no relevance here.

BR, Toni
Thank you so much !
  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 06:03 PM
Help with esl simulator pforeman Planars & Exotics 6 13th July 2014 03:56 AM
Cab/Mic simulator Mishung Analog Line Level 0 14th November 2010 02:13 PM
DAT Simulator jman 31 Instruments and Amps 4 1st February 2009 01:44 PM
who got the best simulator prorms Solid State 5 26th December 2006 05:39 AM


New To Site? Need Help?

All times are GMT. The time now is 12:21 AM.


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