I’m new both in electronics, Kicad and ngspice, so forgive me, if I’m doing something stupid. I created some simple schemes just for testing it with ngspice, but got netlist without any power source, hence simulation is useless. I’m unable to figure out what’s wrong. I wanted to upload my current scheme but I’m too new for it (forum rules), so here is an external link. Generated (exported) spice netlist is:
*
.subckt Projekt testowy 2
R1 VCC GND 10k
.ends
Version generated for ngspice simulation is similar, but I post it anyway:
.title KiCad schematic
.save all
.probe alli
.tran 10m 1 0
R1 VCC GND 10k
.end
And generated output for transient simulation (step = 0.01, end = 1):
Note: No compatibility mode selected!
Circuit: KiCad schematic
Doing analysis at TEMP = 27.000000 and TNOM = 27.000000
Initial Transient Solution
--------------------------
Node Voltage
---- -------
vcc 0
probe_int_gnd_r1 0
r1#branch 0
Reference value : 0.00000e+00
No. of Data Rows : 108
Below is my Kicad version info:
Application: KiCad Schematic Editor x86_64 on x86_64
Version: 7.0.5, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.13.0
HarfBuzz 7.3.0
FontConfig 2.14.2
libcurl/8.1.2 OpenSSL/3.1.1 zlib/1.2.13 brotli/1.0.9 zstd/1.5.5 libidn2/2.3.4 libpsl/0.21.2 (+libidn2/2.3.4) libssh2/1.10.0 nghttp2/1.54.0
Platform: Linux 6.3.7-arch1-1 x86_64, 64 bit, Little endian, wxGTK, LXQt, x11
Build Info:
Date: May 29 2023 21:15:26
wxWidgets: 3.2.2 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.81.0
OCC: 7.6.3
Curl: 8.1.1
ngspice: 40
Compiler: GCC 13.1.1 with C++ ABI 1018
Build settings:
KICAD_USE_EGL=ON
KICAD_SPICE=ON