Simulator: wrong netlist for potentiometer model
Description
Schematic:
Spice netlist:
KiCad schematic
.model __R1 potentiometer( r=1k )
.save all
.probe alli
.tran 10u 100m
R2 Net-_E1-Pad1_ Net-_R1-CW_ 1k
VE1 Net-_E1-Pad1_ GND 10
AR1 Net-_R1-CW_ GND OUT __R1
.end
According to ngspice doc "12.2.33 Potentiometer" wiper contact connected to ground in netlist.
Test project:pot.kicad_sch
Steps to reproduce
KiCad Version
Application: KiCad Schematic Editor
Version: (7.0.0-rc2-160-g6543d23d9f), debug build
Libraries:
wxWidgets 3.0.5
FreeType 2.11.1
HarfBuzz 2.7.4
FontConfig 2.13.1
Platform: Linux Mint 21.1, 64 bit, Little endian, wxGTK, cinnamon, x11
wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.74.0
OCC: 7.5.1
Curl: 7.81.0
ngspice: 38+
Compiler: GCC 11.3.0 with C++ ABI 1016
Build settings:
KICAD_SPICE=ON
KICAD_STDLIB_DEBUG=OFF
KICAD_STDLIB_LIGHT_DEBUG=OFF
KICAD_SANITIZE_ADDRESS=OFF
KICAD_SANITIZE_THREADS=OFF