Harmonic balance
This article's factual accuracy is disputed. (October 2021) |
Harmonic balance is a method used to calculate the steady-state response of nonlinear differential equations,<ref>Deuflhard, Peter (2006). Newton Methods for Nonlinear Problems. Berlin: Springer-Verlag. Section 7.3.3.: Fourier collocation method.</ref> and is mostly applied to nonlinear electrical circuits.<ref>Gilmore, R. J.; Steer, M. B. (1991). "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. doi:10.1002/mmce.4570010104.</ref><ref>Curtice, W. R., Ettenberg, M. (4–6 June 1985). "A Nonlinear GaAs FET Model for Use in the Design of Output Circuits for Power Amplifiers". IEEE International Microwave Symposium Digest (MTT-S). St. Louis, MO, USA. 85: 405–408. doi:10.1109/MWSYM.1985.1131996. S2CID 111044329.{{cite journal}}
: CS1 maint: multiple names: authors list (link)</ref><ref>Nakhla, Michel S.; Vlach, Jiri (February 1976). "A piecewise harmonic balance technique for determination of periodic response of nonlinear systems". IEEE Transactions on Circuits and Systems. CAS-23 (2): 85–91. doi:10.1109/TCS.1976.1084181. ISSN 0098-4094.
</ref>
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,<ref>Maas, Stephen A. (2003). Nonlinear microwave and RF circuits. Artech House. ISBN 978-1-58053-484-0.</ref> 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.<ref>Feldmann, P.; Melville, B.; Long, D. (1996). "Efficient frequency domain analysis of large nonlinear analog circuits". Proceedings of Custom Integrated Circuits Conference. pp. 461–464. doi:10.1109/CICC.1996.510597. ISBN 978-0-7803-3117-4. S2CID 62356450.</ref><ref>Brachtendorf, H.G.; Welsch, G.; Laur, R. (1995). "Fast simulation of the steady-state of circuits by the harmonic balance technique". Proceedings of ISCAS'95 - International Symposium on Circuits and Systems. Vol. 2. pp. 1388–1391. doi:10.1109/ISCAS.1995.520406. ISBN 978-0-7803-2570-8. S2CID 3718242.</ref> 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
<ref>Mickens, Ronald (1984). "Comments on the method of harmonic balance". Journal of Sound and Vibration. 94 (3): 456–460. Bibcode:1984JSV....94..456M. doi:10.1016/S0022-460X(84)80025-5.</ref>
Consider the differential equation <math>\ddot x + x^3 = 0</math>. We use the ansatz solution <math>x = A \cos(\omega t)</math>, and plugging in, we obtain <math display="block">-A\omega^2 \cos(\omega t) + A^3 \frac 14 (\cos(3\omega t) + 3\cos(\omega t) ) = 0.</math>
Then by matching the <math>\cos(\omega t)</math> terms, we have <math>\omega = \sqrt{\frac 34} A</math>, which yields approximate period <math>T = \frac{2\pi}{\omega} \approx \frac{7.2552}{A}</math>.
For a more exact approximation, we use ansatz solution <math>x = A_1 \cos(\omega t) + A_3 \cos(3\omega t)</math>. Plugging these in and matching the <math>\cos(\omega t)</math>, <math>\cos(3\omega t)</math> terms, we obtain after routine algebra: <math display="block">\omega = \sqrt{\frac 34} A_1 \sqrt{1 + y + 2y^2}, \quad y = A_3/A_1, \quad 51y^3 + 27 y^2 + 21 y - 1 = 0.</math>
The cubic equation for <math>y</math> has only one real root <math>y \approx 0.0448</math>. With that, we obtain an approximate period <math display="block">T = \frac{2\pi(1+y)}{\sqrt{\frac 34} A \sqrt{1 + y + 2y^2}} \approx \frac{7.402}{A}</math>Thus we approach the exact solution <math>T = 7.4163\cdots/A</math>.
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
- <math>
0=F(t,x,\dot x) </math> with a sufficiently smooth function <math>F:\mathbb{R}\times\mathbb{C}^n\times\mathbb{C}^n\rightarrow\mathbb{C}^n</math> where <math>n</math> is the number of equations and <math>t,x,\dot x</math> are placeholders for time, the vector of unknowns, and the vector of time derivatives.
The system is non-autonomous if the function <math>t\in\mathbb{R}\mapsto F(t,x,\dot x)</math> is not constant for (some) fixed <math>x</math> and <math>\dot x</math>. Nevertheless, we require that there is a known excitation period <math>T>0</math> such that <math>t\in\mathbb{R}\mapsto F(t,x,\dot x)</math> is <math>T</math>-periodic.
A natural candidate set for the <math>T</math>-periodic solutions of the system equations is the Sobolev space <math>H^1_{\rm per}((0,T),\mathbb{C}^n)</math> of weakly differentiable functions on the interval <math>[0,T]</math> with periodic boundary conditions <math>x(0)=x(T)</math>. We assume that the smoothness and the structure of <math>F</math> ensures that <math>F(t,x(t),\dot x(t))</math> is square-integrable for all <math>x\in H^1_{\rm per}((0,T),\mathbb{C}^n)</math>.
The system <math>B:=\left\{\psi_k \mid k\in\mathbb{Z}\right\}</math> of harmonic functions <math>\psi_k:=\exp\left(i k\frac{2\pi t}{T}\right)</math> is a Schauder basis of <math>H^1_{\rm per}((0,T),\mathbb{C}^n)</math> and forms a :Hilbert basis of the Hilbert space <math>H:=L^2([0,T],\mathbb{C})</math> of square-integrable functions. Therefore, each solution candidate <math>x\in H^1_{\rm per}((0,T),\mathbb{C}^n)</math> can be represented by a Fourier-series <math>x(t)=\sum_{k=-\infty}^\infty \hat x_k \exp\left(i k\frac{2\pi t}{T}\right) </math> with Fourier-coefficients <math>\hat x_k:=\frac1T\int_0^T\psi^*_k(t)\cdot x(t)dt</math> and the system equation is satisfied in the weak sense if for every base function <math>\psi\in B</math> the variational equation
- <math>
0=\langle \psi, F(t,x,\dot x)\rangle_H := \frac 1 T \int_0^T \psi^*(t) \cdot F(t,x,\dot x) dt </math> 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 <math>\psi</math> in <math>B</math>.
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 <math>B_N:=\{\psi_k \mid k\in\mathbb{Z}\text{ with } -N \leq k \leq N\}</math>.
This gives the finite-dimensional solution <math> x(t) = \sum_{k=-N}^N \hat x_k \psi_k(t) = \sum_{k=-N}^N \hat x_k \exp\left(i k \frac{2\pi t}{T}\right)</math> and the finite set of equations
- <math>
0 = \langle \psi_k , F(t,x,\dot x)\rangle\quad\text{ with }k=-N,\ldots,N </math> 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:
- Voltages <math>V</math> are used to calculate the currents of the linear part, <math>I_\text{linear}</math> in the frequency domain.
- Voltages <math>V</math> are then used to calculate the currents in the nonlinear part, <math>I_\text{nonlinear}</math>. Since nonlinear devices are described in the time domain, the frequency-domain voltages <math>V</math> 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.
- According to Kirchhoff's circuit laws, the sum of the currents must be zero, <math>\epsilon = I_\text{linear} + I_\text{nonlinear} = 0</math>. An iterative process, usually Newton iteration, is used to update the network voltages <math>V</math> such that the current residual <math>\epsilon</math> is reduced. This step requires formulation of the Jacobian <math>\tfrac{d\epsilon}{dV}</math>.
Convergence is reached when <math>\epsilon</math> is acceptably small, at which point all voltages and currents of the steady-state solution are known, most often represented as Fourier coefficients.
References
<references />