Harmonic balance explained

Harmonic balance is a method used to calculate the steady-state response of nonlinear differential equations,[1] and is mostly applied to nonlinear electrical circuits.[2] [3] [4] It is a frequency domain method for calculating the steady state, as opposed to the various time-domain steady-state methods. The name "harmonic balance" is descriptive of the method, which starts with Kirchhoff's Current Law written in the frequency domain and a chosen number of harmonics. A sinusoidal signal applied to a nonlinear component in a system will generate harmonics of the fundamental frequency. Effectively the method assumes a linear combination of sinusoids can represent the solution, then balances current and voltage sinusoids to satisfy Kirchhoff's law. The method is commonly used to simulate circuits which include nonlinear elements,[5] and is most applicable to systems with feedback in which limit cycles occur.

Microwave circuits were the original application for harmonic balance methods in electrical engineering. Microwave circuits were well-suited because, historically, microwave circuits consist of many linear components which can be directly represented in the frequency domain, plus a few nonlinear components. System sizes were typically small. For more general circuits, the method was considered impractical for all but these very small circuits until the mid-1990s, when Krylov subspace methods were applied to the problem.[6] [7] The application of preconditioned Krylov subspace methods allowed much larger systems to be solved, both in the size of the circuit and in the number of harmonics. This made practical the present-day use of harmonic balance methods to analyze radio-frequency integrated circuits (RFICs).

Example

[8]

Consider the differential equation

\ddotx+x3=0

. We use the ansatz solution

x=A\cos(\omegat)

, and plugging in, we obtain-A\omega^2 \cos(\omega t) + A^3 \frac 14 (\cos(3\omega t) + 3\cos(\omega t)) = 0.

Then by matching the

\cos(\omegat)

terms, we have

\omega=\sqrt{

34}
A
,which yields approximate period

T=

2\pi
\omega

7.2552
A
.

For a more exact approximation, we use ansatz solution

x=A1\cos(\omegat)+A3\cos(3\omegat)

. Plugging these in and matching the

\cos(\omegat)

,

\cos(3\omegat)

terms, we obtain after routine algebra:\omega = \sqrt A_1 \sqrt, \quad y = A_3/A_1, \quad 51y^3 + 27 y^2 + 21 y - 1 = 0.

The cubic equation for

y

has only one real root

y0.0448

. With that, we obtain an approximate period T = \frac \approx \fracThus we approach the exact solution

T=7.4163 … /A

.

Algorithm

The harmonic balance algorithm is a special version of Galerkin's method. It is used for the calculation of periodic solutions of autonomous and non-autonomous differential-algebraic systems of equations. The treatment of non-autonomous systems is slightly simpler than the treatment of autonomous ones. A non-autonomous DAE system has the representation

0=F(t,x,x)
with a sufficiently smooth function

F:R x Cn x CnCn

where

n

is the number of equations and
t,x,x
are placeholders for time, the vector of unknowns, and the vector of time derivatives.

The system is non-autonomous if the function

t\inR\mapstoF(t,x,

x)
is not constant for (some) fixed

x

and
x
. Nevertheless, we require that there is a known excitation period

T>0

such that

t\inR\mapstoF(t,x,

x)
is

T

-periodic.

A natural candidate set for the

T

-periodic solutions of the system equations is the Sobolev space
1
H
\rmper

((0,T),Cn)

of weakly differentiable functions on the interval

[0,T]

with periodic boundary conditions

x(0)=x(T)

.We assume that the smoothness and the structure of

F

ensures that
F(t,x(t),x(t))
is square-integrable for all

x\in

1
H
\rmper

((0,T),Cn)

.

The system

B:=\left\{\psik\midk\inZ\right\}

of harmonic functions

\psik:=\exp\left(ik

2\pit
T

\right)

is a Schauder basis of
1
H
\rmper

((0,T),Cn)

and forms a

Hilbert basis

of the Hilbert space

H:=L2([0,T],C)

of square-integrable functions. Therefore, each solution candidate

x\in

1
H
\rmper

((0,T),Cn)

can be represented by a Fourier-series
infty
x(t)=\sum
k=-infty

\hatxk\exp\left(ik

2\pit
T

\right)

with Fourier-coefficients

\hat

T\psi
x
k:=1T\int
0
*
k(t)

x(t)dt

and the system equation is satisfied in the weak sense if for every base function

\psi\inB

the variational equation

0=\langle\psi,F(t,x,

x)\rangle

H:=

1
T
T
\int
0

\psi*(t)F(t,x,

x)

dt

is fulfilled. This variational equation represents an infinite sequence of scalar equations since it has to be tested for the infinite number of base functions

\psi

in

B

.

The Galerkin approach to the harmonic balance is to project the candidate set as well as the test space for the variational equation to the finitely dimensional sub-space spanned by the finite base

BN:=\{\psik\midk\inZwith-N\leqk\leqN\}

.

This gives the finite-dimensional solution

x(t)=

N
\sum
k=-N

\hatxk\psik(t)=

N
\sum
k=-N

\hatxk\exp\left(ik

2\pit
T

\right)

and the finite set of equations

0=\langle\psik,F(t,x,

x)\ranglewithk=-N,\ldots,N
which can be solved numerically.

In the special context of electronics, the algorithm starts with Kirchhoff's current law written in the frequency-domain. To increase the efficiency of the procedure, the circuit may be partitioned into its linear and nonlinear parts, since the linear part is readily described and calculated using nodal analysis directly in the frequency domain.

First, an initial guess is made for the solution, then an iterative process continues:

  1. Voltages

V

are used to calculate the currents of the linear part,

Ilinear

in the frequency domain.
  1. Voltages

V

are then used to calculate the currents in the nonlinear part,

Inonlinear

. Since nonlinear devices are described in the time domain, the frequency-domain voltages

V

are transformed into the time domain, typically using inverse Fast Fourier transforms. The nonlinear devices are then evaluated using the time-domain voltage waveforms to produce their time-domain currents. The currents are then transformed back into the frequency domain.
  1. According to Kirchhoff's circuit laws, the sum of the currents must be zero,

\epsilon=Ilinear+Inonlinear=0

. An iterative process, usually Newton iteration, is used to update the network voltages

V

such that the current residual

\epsilon

is reduced. This step requires formulation of the Jacobian

\tfrac{d\epsilon}{dV}

.

Convergence is reached when

\epsilon

is acceptably small, at which point all voltages and currents of the steady-state solution are known, most often represented as Fourier coefficients.

References

  1. Book: Deuflhard , Peter . Newton Methods for Nonlinear Problems . Section 7.3.3.: Fourier collocation method . Springer-Verlag . Berlin . 2006.
  2. Gilmore . R. J. . Steer, M. B. . Nonlinear circuit analysis using the method of harmonic balance—A review of the art. Part I. Introductory concepts . Int. J. Microw. Mill.-Wave Comput.-Aided Eng.. 1 . 22–37 . 1991 . 10.1002/mmce.4570010104.
  3. Curtice, W. R., Ettenberg, M.. A Nonlinear GaAs FET Model for Use in the Design of Output Circuits for Power Amplifiers . IEEE International Microwave Symposium Digest (MTT-S) . 4–6 June 1985 . 85 . St. Louis, MO, USA . 405–408. 10.1109/MWSYM.1985.1131996 . 111044329 .
  4. Nakhla . Michel S. . Vlach, Jiri . A piecewise harmonic balance technique for determination of periodic response of nonlinear systems . IEEE Transactions on Circuits and Systems . CAS-23 . 85–91 . February 1976 . 2 . 10.1109/TCS.1976.1084181 . 0098-4094 .
  5. Book: Maas , Stephen A. . Nonlinear microwave and RF circuits . Artech House . 2003 . 978-1-58053-484-0 .
  6. Book: Feldmann, P. . Melville, B. . Long, D. . Proceedings of Custom Integrated Circuits Conference . Efficient frequency domain analysis of large nonlinear analog circuits . 1996. 461–464. 10.1109/CICC.1996.510597. 978-0-7803-3117-4. 62356450 .
  7. Book: Brachtendorf, H.G. . Welsch, G. . Laur, R. . Proceedings of ISCAS'95 - International Symposium on Circuits and Systems . Fast simulation of the steady-state of circuits by the harmonic balance technique . 1388–1391. 1995. 10.1109/ISCAS.1995.520406. 2. 978-0-7803-2570-8. 3718242 .
  8. Mickens . Ronald . 1984 . Comments on the method of harmonic balance . Journal of Sound and Vibration . en . 94 . 3 . 456–460 . 10.1016/S0022-460X(84)80025-5. 1984JSV....94..456M .