Sweep a dimension, see what it tunes

Use parameter sweeps to learn how each dimension moves your antenna: by how many MHz per millimetre, and where to stop. Run the sweep in the CENOS window, or script it in Python and let an optimizer find the value.

Why CENOS for parameter sweeps

A single simulation tells you if a design works. A sweep tells you why, and what to change. CENOS RF solves every variant with the same setup and shows all results on one scale, so the trend is easy to read.

Examples below: designs made and simulated by the CENOS RF team.

  • Any input. Geometry variables, material values and frequency settings.
  • In the window or in Python. A parametric study table in CENOS, or Study in the CENOS Python API.
  • All designs on one chart. S11, impedance and patterns of every case together.
  • Let it search. Study.minimize changes the value until your target is met.
  • Know the rate. MHz per millimetre tells you how tight the drawing tolerance must be.

868 MHz · Printed meander IFA

One depth sets the band

Our LoRa sensor board is 30 × 70 mm. A printed inverted-F antenna sits above the ground pour, folded into seven meander runs so that it fits in 30 × 20 mm. We swept the meander depth from 11 to 16 mm in 6 solves.

Each extra millimetre of depth moves the resonance down by about 37 MHz: from 988 MHz at 11 mm to 803 MHz at 16 mm. The EU 868 MHz band is only 7 MHz wide, so the depth must be right to about ±0.1 mm.

Photo of an nRF24L01 2.4 GHz radio module with a printed meander antenna at the board end

A real printed antenna

An nRF24L01 2.4 GHz radio module: the printed meander antenna at the board end is tuned by its trace length. Photo: Dmcole, Wikimedia Commons, CC BY-SA 3.0.

Top view of a printed meander inverted-F antenna on a sensor board with the swept meander depth marked

The swept dimension

Red: the meander at 14.35 mm depth. Dashed: 11 and 16 mm, the ends of the sweep.

S11 dip frequency of a printed meander IFA against meander depth, with a linear fit

The rate of change

Dip frequency against meander depth, 6 solves. Linear fit: −37.0 MHz per mm.

Set up · Window or script

Run the sweep in the window, or in Python

In the CENOS window: turn on the parametric study, mark the inputs to change with Use for parametric study, and add one case per value. CENOS solves them in turn and shows the curves of all cases on one chart.

In Python: Study in the CENOS Python API runs the same sweep from a script. It also has an optimizer. Started from a poor guess (12 mm, 953 MHz), Study.minimize found 14.4 mm at its 6th step, with the dip at 864 MHz, inside the 863–870 MHz band (0.4 % from the target). It stopped at its limit of 9 steps; one step returned to 15.0 mm and reused the stored result, so it ran 8 solves. The sweep line puts 868.0 MHz at 14.28 mm, and a check solve at that depth gives the dip at 868.6 MHz (S11 -14.1 dB).

Parametric study table in the CENOS window with one row per case

Parametric study in the CENOS window

One row per case, one column per input. Edit a value, add a case, run. This screenshot shows a patch-antenna case (Substrate_Length, Patch_Width); for the meander the table has one depth column.

from cenos_py.tools.study import Study

study = Study(case, {"depth": (14.35, 10.0, 17.0)})
solved = study.sweep({"depth": [11, 12, 13, 14, 15, 16]})
dips = solved.metric(dip)           # one number per design

def cost(run):                      # distance from 868 MHz
    return abs(dip(run) - 868e6) / 868e6

start = Study(case, {"depth": (12.0, 10.0, 17.0)})
best = start.minimize(cost, max_solves=9)
print(best.best)            # {'depth': 14.400}

The same sweep with Python Study

6 solves for the sweep, then minimize towards 868 MHz. dip is the deepest S11 point, refined between frequency samples with a parabola.

Meander depth and S11 dip frequency against optimizer step for CENOS Python Study.minimize, with the 863 to 870 MHz band shaded

How the optimizer searched

Depth (top) and dip frequency (bottom) at each optimizer step. Open circle: step 7 repeats 15.0 mm, no new solve. Star: the best point. Dotted: 14.28 mm from the sweep line, where a check solve gives 868.6 MHz.

Trusted by engineers of diverse
industries around the world Read more →

Our engineers
are right here in
your time zone

Our offices are located in Europe and North America. So you can be sure that immediate support is available in your time zone.

Next
steps

Set up a free 30-minute meeting with our engineer to discuss how CENOS simulation tools can optimize your process of engineering. Ask experts how to start or go for the free trial right away.