Hertzon
Get started · Tutorial

11. A stub filter as a circuit and its 3D layout

Goal: a band-stop filter for 2.45 GHz from two open quarter-wave stubs on a 50 Ω microstrip line, designed as a circuit in a fraction of a second, then turned into a 3D layout, solved full-wave, tuned there and copied back into the schematic. The finished project is examples/StubFilter.hzn. Everything a circuit design offers is described in CIRCUIT.md.

11.1 A circuit design

  1. File > New. On the start page choose Circuit, keep Linear Network, enter the project name StubFilter and click Create. Project > Rename Design... names the design StubFilter too, so the layout below is called StubFilter_Layout. A schematic opens in place of the 3D modeler, with its own ribbon (Desktop, Schematic, Lumped Elements, Transmission Lines, Data, Simulation, Results) and the part library with a search field next to it.

The start page The start page of File > New: 3D FEM or Circuit, the solution type, the units and the name; on the right the recent projects, the examples and the templates. Project > Insert Design shows the same choice.

  1. Drag a Substrate (Transmission Lines) into the schematic. Its defaults are a 0.508 mm board with εr 3.66, tan δ 0.0037 and 35 µm copper; keep them. Every line names its substrate in Subst (Sub1).

11.2 Draw the schematic

Parts are placed by dragging them from the library, or with a double-click on the library entry (or a ribbon button) and a click in the schematic. While a part hangs at the mouse, R rotates and M mirrors it; Esc returns to Select.

  1. Place a Microstrip Line MS1. Double-click it: in the Line calculator of its dialog enter Z0 50ohm, electrical length 90deg at 2.45GHz and press Calculate W and L: W = 1.079 mm, L = 18.23 mm. Keep W and set L to 10mm (a feed line). Now shows Z0 = 50.0 Ω and εeff of the line while you type.
  2. Place a Microstrip Open Stub MSO1 to the right of MS1, pointing down. In its line calculator use the same values: W = 1.079 mm and L = 18.02 mm. For an open stub the calculator subtracts the length by which the fringing field at the open end lengthens it.
  3. Place MS2 (W 1.079 mm, L 18.23 mm, the quarter wave between the stubs), a second stub MSO2 and MS3 (W 1.079 mm, L 10 mm). Faster: select MSO1, Ctrl+C, move the mouse to the new place and Ctrl+V: the copy is named MSO2 and keeps its values and substrate.
  4. Place a Power Port at each end (Schematic tab). They are numbered 1 and 2, with 50 Ω.
  5. Press W and draw the wires: click on a pin, click the corners, a click on another pin or on a wire ends the wire. Draw one wire from MS1 to MS2 and end it on the pin of MSO1 on the way, the same for MSO2. Dragging a part later keeps its wires attached.

Where three microstrip lines meet, a diamond appears: Automatic junctions (Transmission Lines > Discontinuities, on by default) model the meeting point as a microstrip tee with the widths of the lines. Its tooltip names the model.

The schematic of the stub filter The stub filter: two open stubs a quarter wave apart, an automatic tee (diamond) where each stub meets the line, and the part library on the left.

11.3 Sweep, analyze, plot

  1. Simulation > Sweep opens the sweep in the Properties panel: Distribution Linear Count from 1GHz to 4GHz, Count 301.
  2. Simulation > Analyze (F5). The network is solved at once.
  3. Results > Rectangular Plot: dB(S(1,1)) and dB(S(2,1)).

The notch is at 2.47 GHz, 20 MHz above the design: the tee junctions shift the reference planes of the stubs. Set L of both stubs to 18.2mm (double-click each, or edit it in the Properties panel) and analyze again: the notch is at 2.45 GHz, and S21 stays below −20 dB from 2.12 to 2.76 GHz.

S-parameters of the circuit S11 and S21 of the circuit from 1 to 4 GHz with 18.2 mm stubs: the stop band around 2.45 GHz.

Full-wave line model. Transmission Lines > Line Model > Full Wave takes the propagation constant and impedance of each microstrip cross-section from a mode solve instead of the closed-form formulas. The first analysis solves each cross-section (about 10 s each on a desktop) and caches it; here the notch stays at 2.45 GHz, so the line formulas are not where the difference to 3D below comes from.

11.4 The 3D layout

  1. Simulation > Create 3D Layout. Hertzon builds the 3D design StubFilter_Layout: the substrate with its ground plane, the traces end to end as in the schematic (the stubs point in -y as they do in the schematic), the tee junctions and the two power ports as Lumped Ports on the board edge. Every dimension is a design variable named after its part (MS1_W, MS2_L, MSO1_L, Sub1_H, ...), and the setup has the sweep of the circuit (interpolating).
  2. Simulation > Analyze All (F5). On a 4-core computer the adaptive passes converge after 7 passes with about 20 000 tetrahedra, and the interpolating sweep needs 17 solutions; together about a minute.
  3. Results > Create Modal Solution Data Report > Rectangular Plot (or right-click Results): dB(S(1,1)) and dB(S(2,1)), the same report as for the circuit.

The 3D layout The 3D layout built from the schematic: the feed line with the two stubs, the board and the ground plane.

S-parameters of the 3D layout The full-wave solution of the layout: the notch is at 2.41 GHz, S21 below −20 dB from 2.07 to 2.74 GHz.

The full-wave notch is 40 MHz (1.6 %) lower than in the circuit: the open ends and the tees radiate and couple a little more than their closed-form models say. This is what the 3D layout is for.

11.5 Tune in 3D and copy back

  1. In StubFilter_Layout open Project > Design Properties... and set MSO1_L and MSO2_L to 18mm.
  2. Analyze All: the notch of the 3D layout is now at 2.45 GHz (S21 below −20 dB from 2.09 to 2.77 GHz).
  3. Go back to the circuit design and click Simulation > Update Schematic. The Message Manager lists the changes (MSO1.L: 18.2mm → 18mm, ...), and the schematic has the dimensions of the 3D layout.

The way back works for every dimension: a trace width changed directly on the object of the layout comes back too. In the other direction, Update 3D Layout rebuilds the layout after you added, removed or exchanged parts in the schematic; its setups and reports stay.

More in a circuit: drag a solved 3D design from the Project Manager into the schematic to use it as an S-parameter block, or drag a .hzn file in to copy the 3D designs of another project (Data > 3D Design > From Project File). Create 3D Layout then builds those blocks in with their geometry, turned so that the lines attach at their ports. Via to Ground shorts a line through N vias (their inductance and coupling included), and Coplanar Line, Coupled Microstrip, the junction parts and the lumped R, L and C complete the library. See CIRCUIT.md.


View this page on GitHub