an investigation and s imulation of the time -dependent ... actively-used tool. it is therefore...

22
An Investigation and Simulation of the Time-Dependent Behaviour of Waves in a Single-Stub Matching Network Alan F. Murray, Brian W. Flynn and Tim Drysdale 1 Background and Aims The primary aims of this paper are: a) To present a new approach to teaching some extremely important, but conceptually difficult material in electromagnetism – in particular guided wave transmission. b) An example which illustrates this approach, based on a commonly-used spreadsheet programme, along with freely-downloadable code. c) Discussion of the way in which this simple spreadsheet-based method can be extended to explore other topics in science and engineering, with further freely-downloadable examples. In Radio Frequency (RF) and Microwave engineering the Smith Chart [1] is used widely, as a means of visualising complex impedances and reflection coefficients. The “goodness” of an impedance match and degrees of mismatch can be seen at a glance. The Smith Chart has now been superseded by RF/microwave CAD tools for the design of transmission line systems (such as Keysight’s ADS [2] and NI/AWR’s Microwave Office [3]). However, these sophisticated systems still use the Smith Chart as a visualisation tool, to represent impedances graphically. Instruments such as Network Analysers also use the Smith Chart to present measured impedances graphically and it finds wide use for the depiction of the scattering parameters of both passive and active RF and microwave devices. Despite its origins over seventy-five years ago [1,4,5] as an engineer’s nomograph for solving transmission line problems, the Smith Chart is still very much alive and well. It has long outlived the slide rule as an actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents, is taught to and understood by students of electronic engineering, particularly those interested in analogue and RF design. Once students have been introduced to the basics of the Smith Chart, it is often used to design matching stubs for transmission lines, to reinforce learning in a practically-important application. A matching stub is a section of transmission line, which can be either short- or open-circuited at its end, connected in parallel with a main transmission line, to cancel reflections on the line. This maximises energy transfer to the load attached to the line. Matching stubs are used in the matching of antennas with both coaxial and open wire transmission lines and, in microstrip form, for matching networks in microwave amplifiers. Unfortunately, like many design procedures, the process of matching tends to become reduced to a formulaic process in the minds of students, which masks the understanding of the operation of the stub. The primary aim of this work is to allow students to experiment, using a simple spreadsheet-based computer simulation of a matched (and unmatched) stub. In particular, the work aims to show students “what the waves are doing” in the time domain, in parallel with a conventional Smith chart representation and a “dashboard” that acts as a matching calculator. This allows students to see the effect of changing the position and length of a stub on the incident, reflected and standing waves in the input, line and stub. The use of a spreadsheet may seem perverse, but that choice makes the simulation, which is available on http://www.teaching.eng.ed.ac.uk/open-educational- resources/electromagnetics-toy-box, usable by anyone with a Windows computer and Microsoft Excel. The calculation presented is also “checked” using an ABCD matrix modelling approach [6].

Upload: truongkhanh

Post on 12-May-2018

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: An Investigation and S imulation of the Time -Dependent ... actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents,

An Investigation and Simulation of the Time-Dependent Behaviour of Waves in a Single-Stub Matching Network Alan F. Murray, Brian W. Flynn and Tim Drysdale

1 Background and Aims The primary aims of this paper are:

a) To present a new approach to teaching some extremely important, but conceptually difficult material in electromagnetism – in particular guided wave transmission.

b) An example which illustrates this approach, based on a commonly-used spreadsheet programme, along with freely-downloadable code.

c) Discussion of the way in which this simple spreadsheet-based method can be extended to explore other topics in science and engineering, with further freely-downloadable examples.

In Radio Frequency (RF) and Microwave engineering the Smith Chart [1] is used widely, as a means of visualising complex impedances and reflection coefficients. The “goodness” of an impedance match and degrees of mismatch can be seen at a glance. The Smith Chart has now been superseded by RF/microwave CAD tools for the design of transmission line systems (such as Keysight’s ADS [2] and NI/AWR’s Microwave Office [3]). However, these sophisticated systems still use the Smith Chart as a visualisation tool, to represent impedances graphically. Instruments such as Network Analysers also use the Smith Chart to present measured impedances graphically and it finds wide use for the depiction of the scattering parameters of both passive and active RF and microwave devices. Despite its origins over seventy-five years ago [1,4,5] as an engineer’s nomograph for solving transmission line problems, the Smith Chart is still very much alive and well. It has long outlived the slide rule as an actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents, is taught to and understood by students of electronic engineering, particularly those interested in analogue and RF design.

Once students have been introduced to the basics of the Smith Chart, it is often used to design matching stubs for transmission lines, to reinforce learning in a practically-important application. A matching stub is a section of transmission line, which can be either short- or open-circuited at its end, connected in parallel with a main transmission line, to cancel reflections on the line. This maximises energy transfer to the load attached to the line. Matching stubs are used in the matching of antennas with both coaxial and open wire transmission lines and, in microstrip form, for matching networks in microwave amplifiers. Unfortunately, like many design procedures, the process of matching tends to become reduced to a formulaic process in the minds of students, which masks the understanding of the operation of the stub.

The primary aim of this work is to allow students to experiment, using a simple spreadsheet-based computer simulation of a matched (and unmatched) stub. In particular, the work aims to show students “what the waves are doing” in the time domain, in parallel with a conventional Smith chart representation and a “dashboard” that acts as a matching calculator. This allows students to see the effect of changing the position and length of a stub on the incident, reflected and standing waves in the input, line and stub. The use of a spreadsheet may seem perverse, but that choice makes the simulation, which is available on http://www.teaching.eng.ed.ac.uk/open-educational-resources/electromagnetics-toy-box, usable by anyone with a Windows computer and Microsoft Excel. The calculation presented is also “checked” using an ABCD matrix modelling approach [6].

Page 2: An Investigation and S imulation of the Time -Dependent ... actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents,

Figure 1- The impedance Smith chart [1]

Page 3: An Investigation and S imulation of the Time -Dependent ... actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents,

2 Algebraic Analysis 2.1 Assumptions and Definitions

Figure 2- Input, line and stub (schematic). ( )L LV x+ and ( )S SV x− are the voltage of the travelling wave in the line (L) travelling left→right and right→left, respectively and all other voltages are defined in the same way. L and S are the length of the line and stub, respectively, beyond the input/line/stub junction. The load impedance is ZL and the stub impedance is ZS.

3 Notation – remove or tidy up for publication

0

0

( )( ) 0

load impedance(admittance)stub impedance(admittance)

intrinsic impedance of cablel length of line beyond the line/stub junctionl length of stub beyond the line/stub junction

L L

S S

L

S

L

Z YZ Y orZ

y

== = ∞

===

0

00

0

line impedance at stub impedance at impedance of line and stub in parallel at

complex reflection coefficient of the load, at the loadreflection coefficient of the stub, at the

S

LS

L

S

xy xy xρρ

= == == ===

0

0

stubcomplex reflection coefficient of the load at x=0reflection coefficient of the stub at x=0complex reflection coefficient of the load and stub in parallel at x=0

L

S

LS

ρρρ

===

Page 4: An Investigation and S imulation of the Time -Dependent ... actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents,

Waves are multiply reflected in and between both the line and stub. The total l-r wave in (say) the line beyond the junction is therefore a superposition of an infinite number of l-r waves of frequency ω and initially unknown phase and amplitude, leading to a total l-r wave of the form:

( ) ( )

0, L Lm

mj t x

Ltot L Lmm

V x t V e ω β φ=∞

− ++ +

=

= ∑ (2.1)

Where LmV + and Lmφ are the amplitude and phase, respectively, of the mth wave. There is a similar

expression for ( ),Stot SV x t+ . Each superposition is therefore a sum of waves with the same

frequency, wavelength and direction of propagation and can therefore be written in the form:-

( ) ( ), LL j t xjLtot l LV x t V e e ω βφ −+ += (2.2)

( ) ( ), SS j t xjStot S SV x t V e e ω βφ −+ += (2.3)

where LV + and SV + are the real, unknown, amplitudes and Lφ and Sφ are the unknown phase angles of the total l-r waves in line and stub.

The total r-l wave in the line is then of the form ( ) ( )L L LL Lj t x j x lj j lj tL L LV e V e e e eω β βφ βωρ+ −−− += where Lρ

is a (complex) reflection coefficient for the load and Lj le β− represents the phase change induced as the wave travels from 0Lx = to L Lx l= . LV − is therefore complex, by dint of the multiplication of

the real LV + by the (known) complex number Lj lLe βρ − . A similar analysis holds for LV − .

We therefore have, for the total voltages in input, line and stub ( ,I L SV V and V respectively) :-

( ) ( ) [ ]0j t x j t xI I IV V e V e xω β ω β+ −+ −= + < (2.4)

( ) ( ) [ ]0L LL Lj t x j t xj jL L LV V e e V e e xω β ω βφ φ− ++ −= + > (2.5)

( ) ( ) [ ]0S SS Sj t x j t xj jS S SV V e e V e e xω β ω βφ φ− ++ −= + > (2.6)

Inserting (complex) reflection coefficients at 0 L Sx x x= = = and cancelling j te ω

( )1I I LSV V ρ+= + (2.7)

( )01LjL L LV V e φ ρ+= + (2.8)

( )01SjS S SV V e φ ρ+= + (2.9)

Where all voltages { }, ,I L SV V V are now at x=0. 0Lρ and 0Sρ are the (complex) reflection

coefficient for the stub and line as seen at x=0, “looking down” the stub or line. These are of the form 2

0Lj l

L Le βρ ρ −= , where Ll is the length of the line beyond the line-stub junction and Lρ the

reflection coefficient of the load itself. Both Lρ and Sρ are therefore known. 0 0S S SV V ρ− += is the

Page 5: An Investigation and S imulation of the Time -Dependent ... actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents,

complex amplitude of the r-l wave in the line and is known once 0SV + is known. Similarly,

0 0L L LV V ρ− += is the complex amplitude of the r-l wave in the stub and is known once 0LV + is known

3.1 Boundary Conditions The boundary conditions are conventional. The total voltages across the stub, line and input must be the same and current is continuous at x=0. The boundary conditions are therefore, (at x=0), using (2.7)-(2.9).

3.1.1 Voltage Continuity: I L SV V V= = at 0x =

and I L I SV V V V= = (2.10)

So

( )01LjI I L LV V V e φ ρ+ − ++ = + (2.11)

and

( )01SjI I S SV V V e φ ρ+ − ++ = + (2.12)

3.1.2 Current Continuity: ( ) currents in currents outΣ = Σ

I S L I S LI I I I I I+ − − − + ++ + = + + (2.13)

I S L I S L

I S L I S L

V V V V V VZ Z Z Z Z Z

+ − − − + +

+ + = + + (2.14)

We set the characteristic impedance of all cables to be equal for simplicity, and with no loss of generality: 0L S IZ Z Z Z= = = .

Then we have:

I S L I S LV V V V V V+ − − − + ++ + = + + (2.15)

S SL Lj jj jI S L I S LV V e V e V V e V eφ φφ φ+ − − − + ++ + = + + (2.16)

( ) ( ) ( )0 01 1 1S Lj jI LS S S L LV V e V eφ φρ ρ ρ+ + +− = − + − (2.17)

The equations to be solved are therefore(2.11), (2.12) and (2.17), reiterated below for clarity.

( ) ( )01 1LjI LS L LV V e φρ ρ+ ++ = + (2.18)

( ) ( )01 1SjI LS S SV V e φρ ρ+ ++ = + (2.19)

( ) ( ) ( )0 01 1 1S Lj jI LS S S L LV V e V eφ φρ ρ ρ+ + +− = − + − (2.20)

Solving (2.18) and (2.19) as simultaneous equations yields:-

( )( )

( )0

0 0

1 12 1

Lj S LSL I

L S

V e Vφ ρ ρρ ρ

+ ++ −=

− (2.21)

Page 6: An Investigation and S imulation of the Time -Dependent ... actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents,

( )( )

( )0

0 0

1 12 1

Sj L LSS I

L S

V e Vφ ρ ρρ ρ

+ ++ −=

− (2.22)

It can be shown that these satisfy:-

a) The voltage boundary conditions expressed in (2.18) and (2.19). b) The current boundary(2.20).

In addition to the boundary conditions that L SV V= , we must also check that I SV V= and

I LV V= . In other words, that, using, for example,(2.21),

( ) ( )( )( )( )

0 0

0 0

1 1 11

2 1S LS L

I LSL S

Vρ ρ ρ

ρρ ρ

+ + − ++ =

− (2.23)

After some manipulation, this yields:

0 0 0 0

0 0 0 0

3 13

L S L SLS

L S L S

ρ ρ ρ ρρρ ρ ρ ρ

+ + −=

+ − + (2.24)

The meaning of this equation is clear if we substitute for 0Lρ and 0Sρ in terms of 0Ly and 0Sy , the

normalised admittances at x=0 of the line and stub, respectively.

0 00 0

0 0

1 1,1 1

L SL S

L S

y yy y

ρ ρ− −= =

+ + (2.25)

Substituting these in (2.24) gives

0 0 0 0

0 0 0 0

0 0 0 0

0 0 0 0

1 1 1 13 11 1 1 11 1 1 1 31 1 1 1

L S L S

L S L SLS

L S L S

L S L S

y y y yy y y yy y y yy y y y

ρ

− − − −+ + − + + + + =

− − − −+ − + + + + +

(2.26)

After some manipulation, this yields

0 0

0 0

1 11 1

LS L S

LS L S

y y yy y y

− − −=

+ + + (2.27)

This is simply the well-known result that the admittance of the line and stub together ( LSy ) is equal

to the sum of the two parallel admittances of the line, 0 0LS L Sy y y= + , at x=0.

3.2 Matching Conditions, when the Admittance yLS=1 The matched condition is well known to be when the line and stub admittances sum to unity.

0 0 0 01 , , 1L S LS L Sy jX y jX y y y= + = − → = + = (2.28)

Such that, at matching, as expected,

1 1 1 1 01 1 1 1

LS L SLS

LS L S

y y y jX jXy y y jX jX

ρ − − − − − += = = =

+ + + + + − (2.29)

Page 7: An Investigation and S imulation of the Time -Dependent ... actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents,

From (2.21) and (2.22)

( )( )

( )0

0 0

1 12 1

Lj S LSL I

L S

V e Vφ ρ ρρ ρ

+ ++ −=

− (2.30)

( )( )

( )0

0 0

1 12 1

Sj L LSS I

L S

V e Vφ ρ ρρ ρ

+ ++ −=

− (2.31)

And therefore,

( )( )

( )0

0 00 0

1 12 1

j L S LSL L L L I

L S

V V e Vφ ρ ρρ ρ

ρ ρ− + ++ −= =

− (2.32)

( )( )

( )0

0 00 0

1 12 1

Sj L LSS S S S I

L S

V V e Vφ ρ ρρ ρ

ρ ρ− + ++ −= =

− (2.33)

We can add the results from (2.32) and (2.33) to look for cancellation at x=0. Specifically, do the reflected waves, 0LV − and 0SV − add destructively at x=0 to account for the lack of a reflected wave IV −

at matching? We find that:

2I

S LVV V

+− −+ = (2.34)

And similarly,

32

SL jjL S IV e V e Vφφ+ + ++ = (2.35)

Equation 1.34 implies that the backward waves in line and stub do not simply cancel at matching and therefore that the energy in these waves is reflected into and between the line and stub, as was assumed at the beginning of this analysis. This result is slightly “disappointing” as it does not allow of an intuitively simple explanation (to students) of the matching process. In fact, the intuitively simple, and tempting, explanation based on the r-l waves in the line and stub simply cancelling one another, is wrong. Adding (2.34) and (2.35) together, however, the sum of all of the line and stub voltages at x=0 is 2 IV +× , consistent with the voltage boundary conditions in 2.2.1 above.

Page 8: An Investigation and S imulation of the Time -Dependent ... actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents,

4 Simulation Tool and Results The primary aim of the analysis in section 2.2 is to gain an insight into the dependence of the admittances, reflection coefficients and thus the travelling waves in input, line and stub. The results in section 2.2 have been used to create an Excel spreadsheet (available from http://www.teaching.eng.ed.ac.uk/open-educational-resources/electromagnetics-toy-box) to allow system parameters to be entered, along with the signal frequency.

Figure 3 shows the Excel worksheet that allows system parameters to be entered and their influence visualised on the Smith chart, phasor diagram and line and stub admittances at x=0.

Figure 3 - Screenshot of the input screen of the Excel simulation tool. The cable impedance is 50Ω, the load is 15+20jΩ and the stub is not matched: a) The "dashboard" for entering system parameters b) Schematic of the input, line and stub as presented in Figure 2 and Figure 3. c) Smith chart d) Phasor diagram e) The variation in x of the admittance of the line, beyond the input→line+stub junction f) The variation in x of the admittance of the stub, beyond the input→line+stub junction

We will take each of these detailed components in order.

4.1 Dashboard The system dashboard allows the user to select

• the characteristic impedance of the line o common to input, line and stub in this example

• the signal frequency • the (complex) load impedance • the stub type (open circuit or short circuit)

Page 9: An Investigation and S imulation of the Time -Dependent ... actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents,

• The length of the line beyond the line/stub junction (L in Figure 2) • The length of the stub beyond the line/stub junction (S in Figure 2)

Figure 4 and Figure 5 show the dashboard for a line and stub under matched and unmatched conditions respectively. All parameters are set by “slider” controls and the effect of matching is highlighted clearly in Figure 5.

Figure 4 - System Dashboard for an unmatched line and stub. The cable impedance is 50Ω, the load is 15+20jΩ and the 0.266m stub is not matched.

Figure 5 - System Dashboard for a matched line and stub. The cable impedance is 50Ω, the load is 15+20jΩ . The line length beyond the stub is 0.216m and the (open circuit) stub length is 0.207m. Settings close to the matching condition (Aline=1+jX, Astub=-jX) are highlighted by the yellow highlights on the stub and line admittances and by the yellow markers on the blue and green “meters” labelled “Line Close” and “Line and Stub close”. The match is achieved by Aline =1.00+1.47j and Astub = -1.47j.

4.2 Smith Chart

Page 10: An Investigation and S imulation of the Time -Dependent ... actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents,

Figure 6 - Smith chart for the matched system in Figure 5

4.3 Phasor Diagram

Figure 7 - Phasor diagram for yline, ystub and ytotal = yline +ystub in unmatched (i) and (ii) matched conditions.

Page 11: An Investigation and S imulation of the Time -Dependent ... actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents,

4.4 Line Admittance

Figure 8 - Line admittance under matching conditions. The match is achieved by yline =1.00+1.47j and ystub = -1.47j, L=0.216m. (see Figure 5).

4.5 Stub Admittance

Figure 9 - Stub admittance under matching conditions. The match is achieved by Aline =1.00+1.47j and Astub = -1.47j, S=0.207m. (see Figure 5). It can be seen that Astub = -2.2382j at S=0.206m (see Figure 4).

4.6 Travelling Waves under Matched and Unmatched Conditions.

Page 12: An Investigation and S imulation of the Time -Dependent ... actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents,

Figure 10 - Animation of the travelling waves in input, line and stub - unmatched conditions, corresponding to Figure 4 and Figure 7(i)

Figure 10 shows the “animation screen” that allows the travelling waves in the input, line and stub to be visualised in space and time. The red "spin button" allows time to be advanced. It can be seen that the boundary conditions in section 2.2 are satisfied, as the total voltages (incident + reflected) at x=0 in the input, line and stub are equal (heavy red, blue and green lines, respectively. This is confirmed numerically in the “Checksums” table on the bottom left.

It can also be seen that there is a reflected wave in the input line (broken red line) and that therefore the stub and line are not matched.

Figure 11 - Animation of the travelling waves in input, line and stub - matched conditions, corresponding to Figure 5 and Figure 7(ii).

Figure 11 shows the travelling waves under matched conditions. Several observations can be made:-

1) The amplitude of the reflected wave in the input (broken red line) is zero. 2) The reflected waves in the line and stub, 0LV − and 0SV − , do not cancel at x=0. In fact

Page 13: An Investigation and S imulation of the Time -Dependent ... actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents,

0 0 2I

S LVV V

+− −+ = , confirmed by the “Checksums” table on the bottom left and consistent

with the result in section 2.3.

3) The forward waves in the line and stub, 0Lj

LV e φ+ and , 0Sj

SV e φ+ sum to 32 IV + as predicted in

section 2.3 and , confirmed by the “Checksums” table on the bottom left.

These observations are clearer in Figure 12, enlarged from Figure 11. All of the results above are clearer in the simulation tool, which can be downloaded from http://www.teaching.eng.ed.ac.uk/open-educational-resources/electromagnetics-toy-box.

Figure 12- All waves under matched conditions. This is enlarged from Figure 11 - Animation of the travelling waves in input, line and stub - matched conditions as shown in Figure 5 and Figure 7(ii). Note that the total voltage to the left of the stub/line junction, Input(Tot), is equal to the voltage on the right of the junction in both the line, Line(Tot) and the stub, Stub(Tot).

4.7 Spreadsheet methodology – general techniques We have used a ubiquitous spreadsheet (Microsoft Excel) in a context for which it was not designed – dynamical simulation of a complex electronic system. Its ubiquity, however, justifies its use in this and other, teaching-related, visualisation exercises. Other examples are available in http://www.teaching.eng.ed.ac.uk/open-educational-resources/.

The key stratagems in bending Excel to this purpose are:-

1. Using time as an Excel variable. 2. Using Excel’s Activex controls in the form of “sliders” or “scroll bars” to vary design

parameters, environmental parameters (eg Figure 3) and time (eg Figure 10) , as appropriate and continuously.

a. This latter, time, allows movement and temporal visualisation of signals and other graphical elements.

3. Using Excel’s Activex controls in the form of toggle buttons to set binary design/environmental parameters (eg Figure 4).

4. Creative use of Excel bar graphs to produce “meters” indicating, in this case, closeness to matching conditions (eg Figure 5).

5. Creative use of Excel graphs to produce other graphical representations – in this case a

Page 14: An Investigation and S imulation of the Time -Dependent ... actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents,

phasor diagram (Figure 7), Smith chart (Figure 6), important design parameters (eg Figure 8) and an “animated” schematic of the system (Figure 3b).

We have used this technique extensively to create a suite of simple tools that allow students to explore simple electronic circuits, complex electromagnetic phenomena and modelling processes such as finite-element analysis. Only in this latter case has Excel seen much use hitherto. Once the simple stratagems 1-5 above have been mastered, new tools can be constructed surprisingly rapidly and their identity as a simple spreadsheet concealed surprisingly effectively!

Page 15: An Investigation and S imulation of the Time -Dependent ... actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents,

5 ABCD Matrix Analysis In order to validate our analysis, we have used an ABCD matrix modelling approach. ABCD matrices relate the voltage and current on one side of a two-port network to the voltage and current on the output side [7]. They are therefore convenient for calculating the terminal properties, such as input impedance, of cascaded two-port microwave networks. Figure 13 shows the definition of voltages and currents for the ABCD matrix of a linear two port network (note that current flows in on the left, and out on the right), while the assignment of the matrix entries A, B, C, D is as follows:

1 2

1 2

V VI I

=

A CB D

(4.1)

Figure 13-Voltages and currents for the ABCD matrix of a two port linear network

The educational benefits of the ABCD method have been previously reported for the case of two-wire transmission lines and baluns [8]. However, a standard transmission line equation was used in that work, to elucidate the voltages and currents at intermediate points along the transmission lines. In this section, we show:

• how intermediate voltages and currents can be directly calculated using a variant of the ABCD matrix analysis;

• the validation of the previous analysis; • a further mathematical analysis that shows intuitively, but from a different point of view,

how the ideal match extinguishes the backward wave in the section of transmission line adjacent to the generator (“the input”, in section 3 above)

Our results are equally applicable to lossy transmission lines, but for clarity in the presentation we report only results for the lossless case where the ABCD matrix of a section of line is

( ) ( )

( ) ( )0

1 2

1 20

cos sin

sin cos

kd jZ kdV V

j kd kdI IZ

=

(4.2)

and

0 , , 2lZ k j lc fc

ω ω π= = = (4.3)

where d is the length of the transmission line, l and c are the inductance and capacitance length, Z0 is the characteristic impedance, k is the propagation constant, and f is the frequency. Next we recognise that any transmission line of length d can be equivalently represented by a single ABCD matrix or by two such matrices, one for a line of length x and the other for (d-x) where x ≤ d:

Page 16: An Investigation and S imulation of the Time -Dependent ... actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents,

( ) ( )

( ) ( )

( )( ) ( )( )

( )( ) ( )( )00

1 2

1 20 0

cos sincos sin

sin cos sin cos

k d x jZ k d xkx jZ kxV V

j jkx kxI Ik d x k d xZ Z

− − = − −

(4.4)

Now if we wish to know the voltage Vx and current Ix at point x along the transmission line, then we can simply re-arrange the equation:

( ) ( )

( ) ( )

( )( ) ( )( )

( )( ) ( )( )

100

1 2

1 20 0

cos sin

sin cos

k d x jZ k d xcos kx jZ sin kxV V

j jsin kx cos kxI Ik d x k d xZ Z

− − − = − −

(4.5)

In order for the calculation to be physically meaningful, we need to choose a source and a load. If we choose an ideal voltage source such that V1 = Vs, then we need to know the characteristic impedance of the whole system to find I1, which is given by

1s

in

VIZ

= (4.6)

𝑍𝑍𝑖𝑖𝑖𝑖 can only be calculated for a given load impedance, which can be added by an ABCD matrix representing a shunt admittance with an open circuit on the right hand side, where 2 3 V V= ,

2 3 V V= and 3 0I = , hence:

32

32

1 01 0

L

VVII

Z

=

(4.7)

Thus for a general two port system terminated in a load 𝑍𝑍𝐿𝐿, the input impedance is calculated from the overall system:

1

1

01 01 0

0

L

LL

ZVI

ZZ

+ = = +

BA A CB D BDC

(4.8)

as (after rearranging to put 𝑍𝑍𝐿𝐿 in the numerator)

1

1

Lin

L

V ZZI Z

+= =

+A BC D

(4.9)

where A, B, C, D are the ABCD matrix entries for the overall two-port system, in this case a single stretch of transmission line as per (4.9), giving

( ) ( )( ) ( )

0

0

cos sin

sin cos

Lin

L

Z kd jZ kdZ jZ kd kd

Z

+=

+ (4.10)

Page 17: An Investigation and S imulation of the Time -Dependent ... actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents,

Now that we know Zin we need to invert the matrix that we had shifted to the left hand side of (4.5). The inverse of a 2x2 matrix is

22 12 22 121

11 12 21 11 21 11

11 1221 22 11 22 12 21

21 22

a a a aa a a a a a

a aa a a a a aa a

−− −

− − = = − (4.11)

Conveniently, the determinant of the matrix is unity (and using 2 2 1cos sinθ θ+ = , thus

( ) ( )

( ) ( )

( ) ( )

( ) ( )

10 0

1

10 0

cos sin cos sin

sin cos sin cos

sx

sx

in

Vkx jZ kx kx jZ kxV V

Vj jkx kx kx kxI IZZ Z

− −

= = −

(4.12)

giving

( ) ( )0cos sinx sin

ZV V kx j kxZ

= −

(4.13)

( ) ( )0

cos sins inx

in

V jZI kx kxZ Z

= −

(4.14)

Equations (4.13) and (4.14) are much more physically intuitive than the standard transmission line result:

( )( )( )( )

2 00

2

tan

tanxo

Z Z d xZ Z

Z Z d xγγ

+ −=

+ − (4.15)

( ) ( )0

cosh sinhx

x

EIZ x Z xγ γ

=+

(4.16)

and

x x xV Z I= (4.17)

because the Ohm’s law relationship between the expressions for 𝑉𝑉𝑥𝑥 and 𝐼𝐼𝑥𝑥 in (4.13) and (4.14) is seen to fall out of the analysis rather than being forced in (compare with (4.15) and (4.16)), and the algebraic form cos(𝜃𝜃) − 𝑗𝑗sin(𝜃𝜃) immediately suggests the trigonometric identity 𝑒𝑒−𝑗𝑗𝑗𝑗, a single wave. Next, the realisation that the identity cannot be directly applied because of the factor 𝑍𝑍0

𝑍𝑍𝑖𝑖𝑖𝑖

prepending the sin function (unless Z0 = Zin) should suggest that under matched conditions there is only one wave (the forward wave) in the first section of the transmission line. On the other hand, when there is a mismatch and Z0 ≠ Zin then the magnitude of the forward and backward waves can be calculated as follows. We begin with an expression for the forward and backward waves in exponential form and convert to trigonometric form as follows

( ) ( ) ( ) ( )cos sinjkx jkxMe Ne M N kx j M N kx−+ = + + − (4.18)

From (4.13) and (4.14) we see that

Page 18: An Investigation and S imulation of the Time -Dependent ... actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents,

( ) 1M N+ = (4.19)

( )0

= inZM NZ

− (4.20)

Hence

012 2 in

ZMZ

= + (4.21)

012 2 in

ZNZ

= − (4.22)

From this formulation, it can immediately be seen that when matched, M =1 and N = 0, giving only a forward wave, whilst when unmatched, the magnitude of the backward wave increases with the degree of mismatch. This formulation emphasises the physical relevance of this mismatch upon the magnitude of the forward and backward waves. We validated this approach by using it to recalculate the data in Fig. 4 in [8].

Further, we note that the ratio of the forward to backward waves takes on the standard form of reflection coefficients, allowing the reflection coefficient to fall out of the system rather than being forced in:

0

0

00

1

1

in in

in

in

ZN Z Z ZM Z ZZ

Z

ρ

− − = = =

++

(4.23)

We can apply the analysis to each section of a branched circuit, so long as the voltage and current is known on the side that has the source, and the input impedance into the rest of the circuit is known (this is the load on that section of waveguide). To illustrate this, a single stub matching circuit is considered, as shown in Figure 14.

The currents and voltages , Vx and Ix, on the first line from the source to the junction at x = din, are given by (4.13) and (4.14) where Zin

all is substituted for Zin. Note that for this analysis, we define x = 0

to be at the source.

The voltages and currents on the line to the load are Vy and Iy, where 0 < y <dload. Note that at y=0, x=din and Vy=0 = Vx=din. Note that when coded into a numerical calculator or mathematical programming environment, (4.13) and (4.14) can simple be reused, substituting Vx=din , Ix=din for Vs and Is. However, they can be calculated analytically by substituting those values into (4.13) and (4.14) and solving. The details are omitted for brevity, yielding

( ) ( )( ) ( )

0

0

1 2 1

4 1 1 2

in in

in in

jkd jkdjkyin ins

y jkd jkdjkyin in in

e Z Z e Z eVVZ e Z e Z Z e

−−

− + + + = + + + − −

(4.24)

Page 19: An Investigation and S imulation of the Time -Dependent ... actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents,

0 0

0 0

1 3

41 1

in in

in in

jkd jkdjky in in

sy

in jkd jkdjky in in

Z Ze e eZ ZVI

Z Z Ze e eZ Z

−−

− + −

= + + + +

(4.25)

Figure 14- Diagram and dimensions of single stub tuning circuit for transmission line with uniform characteristic impedance Z0. The input impedance has been defined for three different parts of the circuit (looking into the input, looking into the line to the load.

The currents and voltages in the stub can be found through an identical process. In order to animate the waves in time, as is done in the Excel spreadsheet with the previous analysis all that is required is to plot the real value of the voltage (or current, as desired) after re-including the time dependence that has been omitted in this section for clarity. For the sake of comparing the two techniques, we implement both sets of analyses in numerical python, omitting the graphical user interface features from the spreadsheet, and compare the absolute magnitude and phase of the forward and backward waves. Although not shown here for brevity, we also compared the python results directly with the results calculated in the spreadsheet, in order to verify the two implementations of our new analysis technique are identical. In order to do this, we needed to calculate the absolute magnitude of the voltage as a function of position on the transmission line. The Excel spreadsheet generates results at specific times, so the absolute magnitude can be obtained from data obtained a quarter-period

4T

later in time, by the following formula

( )2

204TV V V = +

(4.26)

We present results from the two different analysis methods for the case of the same system that we analysed earlier in paper, which had the following parameters: Z0 = 50Ω, ZL = 300 +250j Ω, f = 610 MHz, dload = 0.215λ, and dstub = 0.303λ, with an open circuit. The total voltages are plotted in Figure 15, and show excellent agreement. The python code for both analysis methods can be found in supplementary material here.

Page 20: An Investigation and S imulation of the Time -Dependent ... actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents,

Figure 15 – Plot of the absolute magnitude of the total voltage for an example single stub junction, comparing results from the analytical analysis and the ABCD method.

Page 21: An Investigation and S imulation of the Time -Dependent ... actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents,

6 Discussion and Conclusions Section 2 presents a new analysis of electromagnetic waves in a stub-matched transmission line. The mathematics is straightforward, but has not, to our knowledge, been explored before. It does not of itself improve the design of these networks, but allows an insight into the shape and form of the waves in the input, line and stub under both matched and unmatched conditions. The design of a stub matching network involves, historically, the use of the Smith Chart. Although CAD tools now calculate the parameters of a matched network analytically, many such tools display their outputs as a Smith chart. In all cases, the time-dependence of the sinusoidal voltage and current waves in the line and stub are left unexplored. Design takes place in the impedance/reflection coefficient space, relating the two via the conformal mapping that is exemplified by the Smith chart. While this design approach is effective and elegant, it does little to help learners to visualise how the waves in the input, line and stub are “behaving” – in other words, “if we could see the waves, what would they look like?”. It is clear that, in science education, understanding is underpinned and improved by effective visualisation and simulation tools [eg 9,10].

The simple Excel-based simulation tool described in section 4 allows the design parameters of simple stub-matching network to be adjusted and their influence on the design of the matched network to be visualised clearly and shown in Figure 3-Figure 9. More importantly, it allows the waves in the input line and stub to be simulated in the time domain in a familiar “oscilloscope screen” format, under both matched and unmatched conditions (Figure 10-Figure 12). Intriguingly, the simulator also proved the authors’ initial preconceptions of the activity in the line and stub to be incorrect. The reflected waves from the load and stub termination do not simply cancel one another when matching is achieved. The reality is more subtle and is rooted in the (voltage continuity) boundary condition - that the total voltage on the left of the stub/line junction must be equal to the voltage on the right of the same junction in both the line and the stub (see Figure 12).

More generally, we have presented an example of a simple, spreadsheet-based “simulation” of a reasonably complex system. It is clear that a spreadsheet is not the optimal tool for complex simulation of dynamical systems. Nevertheless, spreadsheets, particularly Microsoft’s Excel, are ubiquitous and generally free at the point of use to students. We therefore advocate this approach as a powerful, generic tool for enhancing learning and present a range of examples on http://www.teaching.eng.ed.ac.uk/open-educational-resources/.

7 References

1. Smith, P. H., Transmission Line Calculator, Electronics, Vol.12, p.29, January, 1939.

2 Keysight Technologies, Advanced Design System (ADS), http://www.keysight.com/en/pc-1297113/advanced-design-system-ads?cc=US&lc=eng , last accessed April 2016.

3. National Instruments, Microwave Office, http://www.awrcorp.com/products/microwave-office , last accessed April 2016.

4. Smith, P. H., An Improved Transmission Line Calculator, Electronics, Vol. 17, p.130, January, 1944.

5. Pereira, J. R. Pinho, P., Using Modern Tools to Explain the Use of the Smith Chart, IEEE Antennas and Propagation Magazine, Vol. 52, No.2, April 2010.

6. P K Webb, British Post Office Research Department Report 630 (1977). 7. Pozar, D. M., Microwave Engineering, John Wiley & Sons, New York, 2nd Ed., 1998, pp. 206 - 209

Page 22: An Investigation and S imulation of the Time -Dependent ... actively-used tool. It is therefore important that the Smith Chart, along with the elegant conformal mapping that it represents,

8. Peres, P. L. D., de Souza C. R., Bonati, I. S., ABCD Matrix: A Unique Tool For Linear Two-Wire Transmission Modelling, International Journal of Electrical Engineering Education, Vol 40, No. 3, pp. 220-229, 2003

9 Perkins, K, Adams, W, Dubson, M, Finkelstein, N, Reid, S, Wieman, C and LeMaster, R, PhET: Interactive Simulations for Teaching and Learning Physic, Physics Teaching 44, 18 (2006)

10. Gilbert, J.K, Visualization in Science Education, Springer, (ISBN 978-1-4020-3613-2) 2008.