Take Advantage of Open-Source RF Analysis Toolkits

Posted by Peter Matthews on Jan 12, 2022 9:00:00 AM
Peter Matthews

At Knowles Precision Devices, we truly do love all things RF. While we are focused on using our expertise in ceramics and thin film manufacturing to innovate on our high-performance filters, our engineers also enjoy keeping up with the trends impacting the entire RF “ecosystem.” This includes dedicating time to experimenting with various open-source RF modeling and analysis tools that we think our potential non-design engineer customers might find useful. One open-source RF and microwave network analysis tool we have been playing around with lately that we feel does a particularly good job is scikit-rf, which is based on the Python programming language.

Open Source RF Toolkits Social Graphic

Based on our tinkering with this tool, we’ve put together a white paper that walks through our best practices for getting started with scikit-rf as well as a number of examples of quick filter analyses you can perform with scikit-rf. But, before getting started with scikit-rf, we recommend you have some familiarity with the Python programming language and get setup with Jupyter, and potentially even an integrated development environment, to make the programming even simpler. We also recommend using add-on tools such as Matplotlib, NumPy, and SciPy.

Once you have the configuration you feel comfortable with setup, you are ready to start experimenting with scikit-rf and performing analyses on a filter’s S-parameter file! If you have the S-parameter file stored on your computer in a location where it is easy to access from within your Jupyter setup, you can make a Network and review the Network properties. Below is the Python code we input in Jupyter to call an S-parameter file for our B095MB1S filter as well as the results.

Code:

import skrf as rf
testNtwk = rf.Network('xband2\B095MB1S.s2p')
testNtwk

Results: 2-Port Network: 'B095MB1S', 2000.0-30000.0 MHz, 1601 pts, z0=[50.+0.j 50.+0.j

Note that in this example, the testNtwk is a Network object representing a two-port Network. The summary information in the results tells us the frequency range of this data set, the number of data points, and the impedance of the Network. The Network class also comes with convenient built-in methods for plotting and manipulating data. In this example, we can quickly plot the log-magnitude in decibels for the filter’s frequency range for four standard S-parameters by calling the plot_s_db method

Code: testNtwk.plot_s_db()

Results:

Scikit_fig3

The resulting log-magnitude plot created for this bandpass filter.

In short, if you want to understand what S-parameters are telling you about a filter’s performance across frequencies, or even perform some more complex analyses, you may not need access to and training on a highly sophisticated RF modeling tool such as Sonnet, Microwave Office, or Keysight’s Genesys (now known as PathWave RF Synthesis).

To see more in-depth examples and learn more about what you can do with scikit-rf, download the full white paper, Experimenting with Open-Source RF Analysis Tools: Using scikit-rf to Evaluate Filter Performance.

Read White Paper

 

Topics: RF and Microwave

Insights Into Precision Passive Devices

Knowles Precision Devices is a premier global source for Capacitors, RF Filters, EMI Filters, Resonators, non-magnetic components and advanced dielectric materials. An umbrella for the brands of Compex, DLI, Johanson MFG, Novacap, Syfer and Voltronics, Knowles Precision Devices serves a variety of markets including military, aerospace/avionics, medical equipment, implantable devices, EMI and connector filtering, oil exploration, instrumentation, industrial electronics, automotive, telecoms and data networks.

This Blog will provide insights into:

  • Filters for 5G and mmWave
  • Capacitors for High Voltage
  • Capacitors for High Reliability

and much more. Subscribe below to stay informed.

Subscribe Here!

Recent Posts