Skip to content

About

Create lumped models from S-parameters

Resources

Stars

12 stars

Watchers

1 watching

Forks

Latest commit

 

History

57 Commits

Folders and files

Repository files navigation

Create lumped models from S-parameters

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.

Inductor (two port, no center tap) from S2P data

pi_from_s2p

Simple narrowband model for 2-port inductors, extracted at a user defined target frequency.

Inductor (two port) and center-tapped inductor (three port), wideband model with substrate network

inductor_fit

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.

MIM capacitor from S2P data

mim_from_s2p

Transmission line from S2P data

rlgc_from_s2p

Versions

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.

Requirements

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.

How to cite

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.

License

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.

About

Create lumped models from S-parameters

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages