I am very comfortable with the cli. There are no .cm files on my computer.
I looked in the ngspice user manual, and the POLY source is only available when ngspice is compiled with the -XSPICE option. Do you know if the official kicad ngspice is compiled with this option? Not sure how to find out.
Then the installation is incomplete. I do not know what the Ubuntu package manager is doing. We might search for that information and find out.
The same problem has been there with Fedora Linux. There it helped to additionally install plain ngspice (not libngspice !). As this does not interfere with KiCad, you might give this procedure a try.
Installing ngspice worked. sudo apt install ngspice
The .cm files are now installed at /usr/lib/x86_64-linux-gnu/ngspice/. Thanks!!
Should this be reported as a bug?
Now I need help understanding how to run the simulator. Any recommendations for a good tutorial? I am getting these messages:
Compatibility modes selected: ps lt
Circuit: KiCad schematic
Reducing trtol to 1 for xspice 'A' devices
Doing analysis at TEMP = 27.000000 and TNOM = 27.000000
Warning: v1: no DC value, transient time 0 value used
Warning: v.xf1.v1: has no value, DC 0 assumed
Reference value : 1.00000e-01
No. of Data Rows : 5
Some of my questions:
I also don’t quite understand the plot with voltage on the x-axis and current on the y-axis. I was looking for something with time on the x-axis and voltage or current on the y-axis.
I wanted V1 to be a square wave over time using this annotation on the schematic - pulse(0,5,0,2u,2u,100m,200m) , but that does not seem to be the case as I have to define V1 in the simulation parameters differently.
it’s a different path on Ubuntu, but you can find the simulation demos on any platform through File → Open Demo Project… in the main KiCad window. On my linux installation they’re in /usr/share/kicad/demos/simulation/.