Simulate subsheets only
Description
Simulation can be run only on the whole schematic, with specific part excluded manually. An interesting feature could be subsheet-only simulation.
- simulation dialog should contain additional option to pick simulation mode: full schematic, current subsheet only, multiple subsheets
- global labels (as they are boundaries for subsheets) should have additional option and dialog to configure how it should behave when circuit is truncated on this label:
- as voltage source and elements in series (Thevenin)
- as current source and elements in parallel (Norton)
- floating connection
- among above mentioned options it should be available to define values for the terminating components in textboxes
- source value
- resistance
- inductance
- capacitance
- non-linear element (for example diode)
- above mentioned components should have checkbox to indicate whether it is used in simulation
How to implement that
- modify NETLIST_EXPORTER_PSPICE_SIM to include elements from selected subsheets in ngspice netlist
- more changes in eeschema: to be defined
KiCad Version
Application: Eeschema
Version: (5.99.0-6796-g5507575d64), release build
Libraries:
wxWidgets 3.0.5
libcurl/7.71.0 OpenSSL/1.1.1g (Schannel) zlib/1.2.11 brotli/1.0.7 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.41.0
Platform: Windows 10 (build 18363), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Nov 3 2020 22:12:54
wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.73.0
OCE: 6.9.1
Curl: 7.71.0
ngspice: 32
Compiler: GCC 10.2.0 with C++ ABI 1014
Build settings:
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=OFF
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
KICAD_SCRIPTING_ACTION_MENU=ON
KICAD_USE_OCE=ON
KICAD_SPICE=ON
Edited by Sylwester Kocjan