Hertzon
Get started · Tutorial

1. Waveguide with wave ports

Goal: S11 and S21 of a WR-90 rectangular waveguide (22.86 × 10.16 mm) with a metal post in the middle, from 8 to 12 GHz. The finished project is examples/WaveguidePost.hzn.

1.1 New design and variables

  1. File > New. The start page asks what to simulate: choose 3D FEM, solution type Modal, units mm, and click Create. The project starts with one empty design.
  2. Simulation > Solution Type...: check Modal and leave Auto open region at Off. A waveguide is a closed problem: every outer face that is not a port is a perfect conductor.
  3. Project > Design Properties...: add the variables
Name Value
a 22.86mm
b 10.16mm
L 50mm
r_post 1.5mm

1.2 Geometry

  1. Draw > Box, then set in Properties: Position 0,0,0, XSize a, YSize L, ZSize b. Rename the object to Waveguide (Name field). Material stays vacuum: the box is the air inside the guide.
  2. Draw > Cylinder: CenterPosition a/2,L/2,0, Radius r_post, Height b, Axis Z. Name it Post and set Material to pec.
  3. Select Waveguide first, then Ctrl+click Post, and choose Modeler > Boolean > Subtract. The post is cut out of the air box. Its surface becomes a perfect conductor automatically, like the outer walls.

WR-90 waveguide with post The air box of the waveguide with the post cut out of it. The two end faces (blue) carry the wave ports.

1.3 Wave ports

A wave port sits on an outer face of the model. Hertzon computes its modes (here the TE10 mode of the guide) with a 2D eigenmode solve and feeds the 3D problem with it.

  1. Press F (face selection) and click the end face of the box at y = 0.
  2. Simulation > Excitations > Assign > Wave Port (or the large Wave Port button on the Simulation tab). Keep Number of modes 1 and Mode type Auto, then press OK. It becomes port 1.
  3. Select the face at y = L and assign a second Wave Port. It becomes port 2.

Instead of a face of the box you can also draw a rectangle exactly on the end face (Draw > Rectangle, Axis Y) and assign the port to that sheet. The example file does this.

1.4 Solution setup and sweep

  1. Simulation > Analysis Setup > Add Solution Setup...: * Solution frequency Single, Frequency 10GHz, a frequency in the upper part of the band, where the mesh needs to be finest. * Maximum number of passes 6, Maximum Delta S 0.02. * Leave the Advanced tab at Mesh refinement: hzAURA (EMerge) and the Options tab at Curved elements on: the round post is then meshed with curved elements on its true surface.
  2. Select Setup1 in the tree, then Simulation > Analysis Setup > Add Frequency Sweep...: Sweep type Interpolating, Distribution Linear Count, Start 8GHz, Stop 12GHz, Count 201. An interpolating sweep solves only as many frequencies as it needs and fits the rest.

1.5 Solve and look at the results

  1. Simulation > Validation Check, then Simulation > Analyze All (F5).
  2. Watch the passes in the Progress window. The analysis stops as soon as S changes by less than 0.02 between two passes.
  3. Results > Create Report > Create Modal Solution Data Report > Rectangular Plot: choose dB(S(1,1)) and dB(S(2,1)) over frequency. Smith Chart shows S11 on the Smith chart.
  4. Results > Mag E with nothing selected: set Plot on to XY and Cut position to b/2. The field appears on the plane halfway up the guide. View > Orientation > Top looks onto it.
  5. Right-click the plot (Mag_E_Cut in the example) under Field Overlays > Animate. The wave runs from port 1 to the post and is partly reflected. Export GIF... in the bar under the view saves it.
  6. File > Export Touchstone... writes WR90_Post.s2p for other tools.

S-parameters of the waveguide post S11 and S21 from 8 to 12 GHz. The thin post acts as a shunt inductance and reflects most of the power, less at higher frequencies (S21 from −15.4 dB at 8 GHz to −7.2 dB at 12 GHz).

Electric field in the waveguide Mag_E_Cut: Mag E on the cut plane halfway up the guide (z = b/2) at 10 GHz, seen from the top. The wave comes from port 1 at the bottom, forms a standing wave in front of the post and leaks past it.

Animation of the field in the waveguide The same plot animated over the phase (Animate) and saved with Export GIF...: the GIF has the size, colours, scale and speed of the view.

What you should get (this model solved with Hertzon 0.2.2 and hzAURA: 2 adaptive passes, 1 376 tetrahedra, a few seconds): at 10 GHz S11 = −0.41 dB and S21 = −10.5 dB.


View this page on GitHub