Tutorial: Microstrip Notch Filter


 * Download the latest matlab file using gitweb: MSL_NotchFilter.m
 * Simulation Time: ~ 2 min



We will cover in this tutorial:
 * setup a microstrip line (MSL) and MSL port
 * apply an inhomogeneous mesh used for improved accuracy and simulation speed
 * calculate the S-Parameter of the filter

First Steps

 * Install and verify your openEMS installation: Tutorial: First Steps

Matlab Simulation Script

 * Start the script within an empty environment:


 * Setup the simulation & geometrical parameter


 * Setup the FDTD parameter including the excitation time signal and boundary conditions


 * Setup the inhomogeneous FDTD mesh, including an improved handling of the thin metal edges by using two mesh lines, one line is located 1/3 inside and the other one 2/3 outside of the thin metal.


 * Add the MSL substrate


 * Add the two MSL ports

It is important to note that the thru-line is not explicitly defined (as is the stub). Instead, the thru-line is formed by defining two ports which meet at x = 0. The z-coordinate of the metal layer is at.

These ports are terminated by PML boundary conditions on the -x and +x planes. Normally the measurement plane of a microstrip port is  but in this case it is moved to. Details of the ports are visible with CSXGeomPlot and by turning the PEC layer off, turning on voltage probes, and zooming in.


 * Add the open-ended stub with the given length


 * Create the simulation folder/ write the xml file/ View the file using AppCSXCAD and run openEMS


 * Do the post-processing: Read the port voltages & currents and calculate the port characteristics.

Discussion
This simulation deliberately mis-aligned the mesh with the edges of the microstrip conductor. This can be seen in the images above showing the grid cells and the conducting layer. This is done to compensate for the peaking of the surface current at the edge of strip lines without having to resort to very small grid cells which would greatly increase the number of time steps required. With the 1/3 : 2/3 grid offset the edge cells defining the microstrip line effectively increase the surface current while using a relatively coarse mesh.

This can be examined in some detail by removing the stub, adjusting the mesh, and comparing the characteristic impedance with a theoretical value.

In the first test the thirds mesh is compared with a uniform mesh that is aligned with the edges of the microstrip line, and a variable mesh which has narrow cells adjacent to the edge of the line. The characteristic impedance, calculated with transcalc, is 47.6 ohms. Note that the variable mesh took longer to simulate and yet was less accurate than the thirds meshing.

The next test examines varying the ratio away from 1/3 : 2/3. This shows that the ratio is not critical. Again, the theoretical value for Zc = 47.6 ohms.

Lastly, the influence of the dielectric is examined. In this test 1/3 : 2/3 gridding was used, the dimensions of the microstrip line were unchanged, and the dielectric constant of the substrate was varied.

This effect is because errors from the edge current singularities are to first order (with respect to meshing) while errors are in general to the second order. For discussion, see for example: W. Heinrich, K. Beilenhoff, P. Mezzanotte and L. Roselli, "Optimum mesh grading for finite-difference method," in IEEE Trans. MTT, vol. 44, no. 9, pp. 1569-1574, Sep 1996. http://ieeexplore.ieee.org/document/536606/

Discussion on the effective strip width can be found in: J.H. Oates, R.T. Shin, "Analytical Evaluation of Finite-Difference Time-Domain Transmission Line Properties," Progress In Electromagnetics Research, PIER 16, pp. 87--115,1997 http://www.jpier.org/PIER/pier16/04.960510p.Oates.S.pdf

For discussion on applying the one-third two-thirds rule, see page 14 in: http://www.ate.uni-due.de/data/coft1/CoFT_EC_FDTD_Rennings.pdf