This is a collection of tools to convert S-parameters from RFIC EM simulation into a lumped model that can be used in all sorts of circuit simulation.
Simple narrowband model for 2-port inductors, extracted at a user defined target frequency.
Fully automatic wideband fit up to and beyond self resonance, with oxide capacitance, bulk silicon network and skin effect. Exports a SPICE or Spectre subcircuit.
Each tool has its own version (__version__ in the script, shown by --version), so the version
stays with a script that is copied on its own. inductor_fit also writes it into the log and
the headers of the model files it generates. The MINOR part of MAJOR.MINOR is bumped for
fixes and new options, MAJOR when the command line or the output format changes incompatibly.
Python 3 with these libraries:
| library | needed by | license |
|---|---|---|
| scikit-rf | all tools | BSD-3-Clause |
| numpy | all tools except mim_from_s2p | BSD-3-Clause |
| matplotlib | all tools (plots) | Matplotlib license (PSF-based) |
| scipy | inductor_fit, pi_from_s2p (also a scikit-rf dependency) | BSD-3-Clause |
| packaging | vector_fit (scikit-rf version check) | Apache-2.0 or BSD-2-Clause |
| schemdraw | only inductor_fit/doc/draw_model.py (schematic images) |
MIT |
pip install scikit-rf numpy scipy matplotlib packaging
Tested with Python 3.13, scikit-rf 1.11.0, numpy 2.3.3, scipy 1.16.2, matplotlib 3.10.6. vector_fit uses a different fit setting for scikit-rf older than 1.11.0.
If you use lumpedmodel in a publication, please cite it. The Cite this repository button on the GitHub repository page gives APA and BibTeX entries, generated from CITATION.cff.
Please also cite scikit-rf, which all tools build on. Its reference is listed in CITATION.cff.
Copyright (C) 2026 Volker Muehlhaus volker@muehlhaus.com
This project is licensed under the GNU General Public License v3.0 or later, see LICENSE.
The required libraries (see Requirements) are not included in this repository, they are installed separately. Their licenses (BSD, MIT, Apache-2.0, Matplotlib/PSF-based) are permissive and compatible with GPL-3.0.



