# 谐波平衡

谐波平衡（Harmonic balance，HB）是一种频域数值方法，通过将所有信号展开为截断的傅里叶级数并求解未知的谐波系数，来计算非线性系统——尤其是非线性模拟电路——的周期或准周期稳态响应。它是一种用于数值求解工作于周期或准周期稳态的非线性电路的技术，用于导出放大器、混频器和振荡器的连续波响应。<sup>[1](https://onlinelibrary.wiley.com/doi/10.1002/mmce.4570010104)</sup> HB 不像瞬态仿真那样对电路方程在许多信号周期上进行积分直至瞬态衰减，而是对解施加正弦波之和的形式，直接求解各正弦波的幅度和相位。<sup>[2](https://eng.libretexts.org/Bookshelves/Electrical_Engineering/Electronics/Microwave_and_RF_Design_V%3A_Amplifiers_and_Oscillators_%28Steer%29/04%3A_Power_Amplifiers/4.02%3A_Simulation_of_Nonlinear_Microwave_Circuits)</sup>

| 关键事实 | 详情 |
|---|---|
| 问题类别 | 非线性微分方程的周期与准周期稳态，主要是非线性模拟电路<sup>[1](https://onlinelibrary.wiley.com/doi/10.1002/mmce.4570010104)</sup> |
| 输出 | 构成稳态响应的各正弦波的幅度与相位（谐波系数）<sup>[2](https://eng.libretexts.org/Bookshelves/Electrical_Engineering/Electronics/Microwave_and_RF_Design_V%3A_Amplifiers_and_Oscillators_%28Steer%29/04%3A_Power_Amplifiers/4.02%3A_Simulation_of_Nonlinear_Microwave_Circuits)</sup> |
| 核心方程 | 有限傅里叶试探解将微分方程转化为非线性代数方程，用牛顿型迭代求解<sup>[3](https://mtt.org/app/uploads/2019/01/2002.pdf)</sup> |
| 非线性项求值 | 交替频域/时域（AFT）循环：逆 FFT 到时域，求值非线性，再正向 FFT 返回<sup>[4](https://api.intechopen.com/chapter/pdf-download/14670.pdf)</sup> |
| 速度与瞬态对比 | 比瞬态仿真快许多个数量级；动态范围超过 150 dB，而瞬态仿真器约为 80 dB<sup>[2](https://eng.libretexts.org/Bookshelves/Electrical_Engineering/Electronics/Microwave_and_RF_Design_V%3A_Amplifiers_and_Oscillators_%28Steer%29/04%3A_Power_Amplifiers/4.02%3A_Simulation_of_Nonlinear_Microwave_Circuits)</sup> |
| 规模限制 | 当晶体管超过几十个时变得难以处理，因为雅可比矩阵变得很大<sup>[2](https://eng.libretexts.org/Bookshelves/Electrical_Engineering/Electronics/Microwave_and_RF_Design_V%3A_Amplifiers_and_Oscillators_%28Steer%29/04%3A_Power_Amplifiers/4.02%3A_Simulation_of_Nonlinear_Microwave_Circuits)</sup> |
| 收敛速率 | 对于光滑解，随谐波数呈指数（谱）收敛，而分段多项式的正交配点法仅呈多项式收敛<sup>[5](https://hal.science/hal-01065672v1/document)</sup> |

## 工作原理

该方法基于采用傅里叶基的伽尔金（Galerkin） formulation：近似解是一个截断傅里叶级数，同时用作试探函数和测试函数，将其代入微分方程后得到一个残差，要求该残差的所有傅里叶系数均为零；这就是谐波平衡过程。<sup>[6](https://www.techscience.com/CMES/v137n2/53365)</sup> 由于周期激励非线性电路中的波形是周期的，它们可以在频域中表示为有限傅里叶级数，从而将电路的微分方程转化为一组非线性代数方程，用牛顿-拉夫逊（Newton–Raphson）迭代求解。<sup>[3](https://mtt.org/app/uploads/2019/01/2002.pdf)</sup> 对于一个具有 \( n \) 个自由度和 \( H \) 个谐波的系统，当基频已知时，代数系统有 \( (2H+1) \cdot n \) 个未知量；当频率或周期被视为未知时（如自治问题中），会出现额外的未知量。<sup>[5](https://hal.science/hal-01065672v1/document)</sup>

从电路角度看，HB 是一种混合技术：它将线性元件的频域分析与非线性器件的时域分析相结合。<sup>[7](https://yoksis.bilkent.edu.tr/pdf/files/10.1109-81.545837.pdf)</sup> 实际仿真器将电路划分为线性子电路和非线性子电路，一次性计算线性块的导纳，并在界面处使用牛顿法对界面电压相量最小化频域基尔霍夫电流定律误差。<sup>[2](https://eng.libretexts.org/Bookshelves/Electrical_Engineering/Electronics/Microwave_and_RF_Design_V%3A_Amplifiers_and_Oscillators_%28Steer%29/04%3A_Power_Amplifiers/4.02%3A_Simulation_of_Nonlinear_Microwave_Circuits)</sup>

非线性项是关键，因为像二极管指数这样的非线性在波形上容易求值，但难以解析变换。交替频率/时间（AFT）方法在时域中求值非线性，并通过 DFT/IDFT 将结果变换回频域，为求解器形成一组非线性代数方程。<sup>[6](https://www.techscience.com/CMES/v137n2/53365)</sup> 在经典流程中，逆快速傅里叶变换从谐波系数重构时域位移和速度，非线性力在时间上逐点求值，然后正向 FFT 将其返回为谐波系数。<sup>[4](https://api.intechopen.com/chapter/pdf-download/14670.pdf)</sup>

## 如何实施

实践者选择谐波数 \( H \)、每周期的时间采样数以及收敛容差。Ansys 关于结构 HBM 的指南使用 HBMOPT,AFT 过程，配合 NP（最大时间周期数，默认 4）和 NT（每周期时间点数，默认 128），NP 设置得足够高以使非线性瞬态力计算收敛，而具有内部状态的非线性（如摩擦）可能需要更多。<sup>[8](https://ansyshelp.ansys.com/public/Views/Secured/corp/v261/en/pdf/Harmonic_Balance_Method_Analysis_Guide.pdf)</sup> 当残差范数低于容差时判定收敛，用牛顿-拉夫逊信赖域求解器检查。<sup>[9](https://ansyshelp.ansys.com/public/views/secured/corp/v251/en/ans_hbm/hbm_equations.html)</sup>

对于光滑的弱非线性问题，HBM 随谐波数呈指数收敛，而正交配点法仅呈多项式收敛，因此在给定精度下 HBM 需要小得多的代数系统。<sup>[5](https://hal.science/hal-01065672v1/document)</sup> 收敛性在不同响应特征上并不一致：在带自由间隙的受迫杜芬（Duffing）振子中，12 个谐波加直流分量捕获了大部分频率响应，但低频处的超谐共振需要多得多的谐波。<sup>[10](https://www.osti.gov/servlets/purl/1891970)</sup> 在实践中应显式检查关于谐波数的收敛性。<sup>[8](https://ansyshelp.ansys.com/public/Views/Secured/corp/v261/en/pdf/Harmonic_Balance_Method_Analysis_Guide.pdf)</sup>

代数求解器很重要。牛顿-拉夫逊法局部超线性收敛，当起点接近解时非常快，但否则可能发散。<sup>[7](https://yoksis.bilkent.edu.tr/pdf/files/10.1109-81.545837.pdf)</sup> 拟牛顿（Broyden）方法需要更多迭代，但每次迭代的操作更少，而且几乎总能收敛，即使初始猜测很差。<sup>[6](https://www.techscience.com/CMES/v137n2/53365)</sup>

## 起源

该名称和方法的最早起源在二手文献中存在争议。<sup>[6](https://www.techscience.com/CMES/v137n2/53365)</sup> 有据可查的现代记录始于收敛理论：Minoru Urabe 于 1965 年在《理性力学与分析档案》（Archive for Rational Mechanics and Analysis）中分析了非线性周期系统的伽尔金过程，<sup>[11](https://doi.org/10.1007/bf00284614)</sup> 该工作后来被引用为该方法的首个正式收敛结果。<sup>[12](https://arxiv.org/html/2111.12620v1)</sup> T. Aprille 和 T. Trick 于 1972 年在《IEEE 电路理论汇刊》上发表了确定非线性振荡器稳态响应的计算机算法，<sup>[13](https://doi.org/10.1109/tct.1972.1083500)</sup> M. Nakhla 和 J. Vlach 于 1976 年在《IEEE 电路与系统汇刊》上引入了用于非线性系统周期响应的分段谐波平衡技术。<sup>[14](https://doi.org/10.1109/tcs.1976.1084181)</sup> R. Gilmore 于 1986 年在《IEEE 微波理论与技术汇刊》上报道了用于非线性电路设计的改进谐波平衡算法，<sup>[15](https://doi.org/10.1109/tmtt.1986.1133541)</sup> K.S. Kundert、G.B. Sorkin 和 A. Sangiovanni-Vincentelli 于 1988 年在《IEEE 微波理论与技术汇刊》上将该方法扩展到概周期电路。<sup>[16](https://doi.org/10.1109/22.3525)</sup> 随后转入商业电子设计自动化：<sup>[1](https://onlinelibrary.wiley.com/doi/10.1002/mmce.4570010104)</sup>

## 变体

若干命名变体针对不同的解类别和求值策略。

**多音与准周期 HB** 通过将 AFT 处理推广到采用 p 维 FFT 的 p 维频域，将方法扩展到包含 \( p \) 个不可通约基频的响应。<sup>[4](https://api.intechopen.com/chapter/pdf-download/14670.pdf)</sup> 当非线性局部化时，凝聚（condensation）可减小系统规模。<sup>[4](https://api.intechopen.com/chapter/pdf-download/14670.pdf)</sup>

**增量谐波平衡（IHB）** 是 HB 的一种独特表述形式。<sup>[17](https://arxiv.org/pdf/2508.07309)</sup> 后来的时域风格变体包括谐波差分平衡法和重构谐波平衡法，后者针对混叠误差。<sup>[6](https://www.techscience.com/CMES/v137n2/53365)</sup> 一种结合信赖域策略与渐近展开的增强 IHB 解决了强非线性系统中 IHB 的窄收敛域和初始猜测敏感性问题。<sup>[18](https://www.sciopen.com/article/10.3934/math.2026490)</sup>

**带延拓的 HB** 将参数（通常是频率）视为额外的解变量，从而实现自动频率步长选择以及转折点和分岔的跟踪；使用弧长、伪弧长和 Moore–Penrose 校正器，当预期出现转折点或分岔时，延拓是标准做法。<sup>[4](https://api.intechopen.com/chapter/pdf-download/14670.pdf)</sup><sup> • </sup><sup>[9](https://ansyshelp.ansys.com/public/views/secured/corp/v251/en/ans_hbm/hbm_equations.html)</sup><sup> • </sup><sup>[8](https://ansyshelp.ansys.com/public/Views/Secured/corp/v261/en/pdf/Harmonic_Balance_Method_Analysis_Guide.pdf)</sup> 一种自适应 HB 变体在延拓过程中自动为每个自由度选择谐波数。<sup>[19](https://ar5iv.labs.arxiv.org/html/1604.05621)</sup>

**自治（振荡器）HB** 通过使用电压和电流探头将自治电路的分析转化为一系列密切相关的非自治电路，来处理基频未知的电路，并支持对所得周期和准周期状态的稳定性研究。<sup>[20](https://onlinelibrary.wiley.com/doi/10.1002/mmce.4570050308)</sup> 收敛理论也涵盖未知周期的情况，这需要一个相位条件。<sup>[12](https://arxiv.org/html/2111.12620v1)</sup>

最近的工作集中在消除手动雅可比推导以及将 HB 与学习方法耦合。谐波平衡-自动微分（HB-AD）方法数值计算精确雅可比并消除手动推导，在带弧长延拓和 GPU 并行的情况下，相比传统 HB-AFT 实现了巨大的效率提升。<sup>[17](https://arxiv.org/pdf/2508.07309)</sup> 开源 pyHB 框架在 PyTorch 工作流中对约化非线性力应用自动微分，并带有加权弧长延拓和基于 Floquet 的稳定性分析。<sup>[21](https://pubdb.com/paper/2607.17577)</sup>

## 应用

主要应用是射频和微波设计：连续波工作下的放大器、混频器和振荡器。<sup>[1](https://onlinelibrary.wiley.com/doi/10.1002/mmce.4570010104)</sup> 在结构动力学中，HB 用于稳定性分析，其捕获不稳定周期解的能力——这些解用其他方式甚至在实验中也无法检测——是相对于时间积分的主要优势。<sup>[10](https://www.osti.gov/servlets/purl/1891970)</sup> Boris Troyanovsky、Zhiping Yu 和 Robert W. Dutton 于 2000 年在《计算机方法在应用力学与工程中的应用》上将 HB 应用于半导体器件非线性失真的基于物理的漂移-扩散仿真。<sup>[22](https://doi.org/10.1016/s0045-7825%2899%2900185-1)</sup> 更广泛的部署包括灵敏度分析、电磁学与电力系统以及流体动力学。<sup>[12](https://arxiv.org/html/2111.12620v1)</sup> 一个 2026 年的框架将谐波平衡辨识与深度神经网络相结合，以在不假设其解析形式的情况下辨识双稳态非线性恢复力，相比纯 DNN 方法提高了辨识效率。<sup>[23](https://google.iopscience.iop.org/article/10.1088/1361-665X/ae5434)</sup> 在商业方面，最新版本的 Ansys 集成了 HB-AFT 方法，而以谐波端口波为输入和输出的前馈人工神经网络器件模型，可以替代实现 HB 的微波 CAD 工具中的有源器件模型。<sup>[17](https://arxiv.org/pdf/2508.07309)</sup><sup> • </sup><sup>[24](https://iris.polito.it/retrieve/handle/11583/2999212/24d70eab-127e-424a-aee2-90ec6bd06a84/m67016-ramella%20final.pdf)</sup>

## 局限与替代方法

HB 的精度受限于使用太少频率分量时的截断误差、有限变换频谱引起的混叠误差，以及与雅可比和模型精度相关的最终 HB 误差。<sup>[2](https://eng.libretexts.org/Bookshelves/Electrical_Engineering/Electronics/Microwave_and_RF_Design_V%3A_Amplifiers_and_Oscillators_%28Steer%29/04%3A_Power_Amplifiers/4.02%3A_Simulation_of_Nonlinear_Microwave_Circuits)</sup> 时域类 HB 方法可能因混叠——高阶谐波混入低阶谐波——而产生非物理解；补救措施包括数值滤波、基于香农采样定理的 AFT-HB 以及重构谐波平衡法。<sup>[6](https://www.techscience.com/CMES/v137n2/53365)</sup> 规模是主要的结构性限制：HB 对包含超过几十个晶体管的电路效果不佳，因为雅可比矩阵变得非常大，而存储和分解稠密雅可比是主要的计算瓶颈；一种 Krylov 投影电路约简算法在不损失精度的情况下实现了 12.3 倍的加速。<sup>[2](https://eng.libretexts.org/Bookshelves/Electrical_Engineering/Electronics/Microwave_and_RF_Design_V%3A_Amplifiers_and_Oscillators_%28Steer%29/04%3A_Power_Amplifiers/4.02%3A_Simulation_of_Nonlinear_Microwave_Circuits)</sup><sup> • </sup><sup>[3](https://mtt.org/app/uploads/2019/01/2002.pdf)</sup>

最接近的替代方法是打靶法（shooting method），用于 Spice 风格的周期稳态（PSS）分析：仿真器猜测初始状态，积分一个周期，并校正猜测直到状态重复；与 HB 一样，它需要用户指定信号频率，其优点是可以使用传统的 Spice 晶体管模型。<sup>[2](https://eng.libretexts.org/Bookshelves/Electrical_Engineering/Electronics/Microwave_and_RF_Design_V%3A_Amplifiers_and_Oscillators_%28Steer%29/04%3A_Power_Amplifiers/4.02%3A_Simulation_of_Nonlinear_Microwave_Circuits)</sup> 已发表的基于物理的半导体器件仿真基准显示出权衡：两种方法在降频混频器上密切吻合，打靶法在那里更快，但在 A 类 18 GHz GaAs MESFET 功率放大器中，时间几乎相同，且为达到可比精度必须选择显著大于 \( 2N_{\mathrm{H}} + 1 \) 的时间采样数，表明在这些情况下频域方法更准确。打靶法对初始条件更鲁棒，而 HB 产生更好的精度但对其更敏感。<sup>[25](https://iris.polito.it/retrieve/e384c42d-ff6b-d4b2-e053-9f05fe0a1d67/1855410.pdf)</sup> 对于弱非线性电路，Volterra 级数系数迅速衰减，只需要前几项，但在一般情况下级数可能收敛缓慢。<sup>[7](https://yoksis.bilkent.edu.tr/pdf/files/10.1109-81.545837.pdf)</sup>

## References

1. [Nonlinear circuit analysis using the method of harmonic balance, A review of the art. Part I. Introductory concepts](https://onlinelibrary.wiley.com/doi/10.1002/mmce.4570010104)
2. [4.02: Simulation of Nonlinear Microwave Circuits (eng.libretexts.org)](https://eng.libretexts.org/Bookshelves/Electrical_Engineering/Electronics/Microwave_and_RF_Design_V%3A_Amplifiers_and_Oscillators_%28Steer%29/04%3A_Power_Amplifiers/4.02%3A_Simulation_of_Nonlinear_Microwave_Circuits)
3. [A circuit reduction technique for finding the steady-state solution of nonlinear circuits (IEEE Trans. Microwave Theory and Techniques)](https://mtt.org/app/uploads/2019/01/2002.pdf)
4. [Harmonic balance methods and continuation for nonlinear periodic and quasi-periodic vibrations (book chapter)](https://api.intechopen.com/chapter/pdf-download/14670.pdf)
5. [Comparison of high-order harmonic balance and collocation methods for periodic solutions of stiff systems](https://hal.science/hal-01065672v1/document)
6. [Harmonic Balance Methods: A Review and Recent Developments (CMES 137(2):1419–1459, 2023)](https://www.techscience.com/CMES/v137n2/53365)
7. [A New Method for the Steady-State Analysis of Periodically Excited Nonlinear Circuits (IEEE Trans. Circuits and Systems I)](https://yoksis.bilkent.edu.tr/pdf/files/10.1109-81.545837.pdf)
8. [Harmonic Balance Method Analysis Guide (Ansys, v261)](https://ansyshelp.ansys.com/public/Views/Secured/corp/v261/en/pdf/Harmonic_Balance_Method_Analysis_Guide.pdf)
9. [Harmonic Balance Method Equations (Ansys Mechanical APDL documentation)](https://ansyshelp.ansys.com/public/views/secured/corp/v251/en/ans_hbm/hbm_equations.html)
10. [Stability and convergence analysis of the harmonic balance method for a Duffing oscillator with freeplay nonlinearity](https://www.osti.gov/servlets/purl/1891970)
11. [Minoru Urabe (1965). Galerkin's procedure for nonlinear periodic systems. Archive for Rational Mechanics and Analysis.](https://doi.org/10.1007/bf00284614)
12. [Convergence of the harmonic balance method for smooth Hilbert space valued differential-algebraic equations](https://arxiv.org/html/2111.12620v1)
13. [T. Aprille, T. Trick (1972). A computer algorithm to determine the steady-state response of nonlinear oscillators. IEEE Transactions on Circuit Theory.](https://doi.org/10.1109/tct.1972.1083500)
14. [M. Nakhla, J. Vlach (1976). A piecewise harmonic balance technique for determination of periodic response of nonlinear systems. IEEE Transactions on Circuits and Systems.](https://doi.org/10.1109/tcs.1976.1084181)
15. [R. Gilmore (1986). Nonlinear Circuit Design Using the Modified Harmonic Balance Algorithm. IEEE Transactions on Microwave Theory and Techniques.](https://doi.org/10.1109/tmtt.1986.1133541)
16. [K.S. Kundert, G.B. Sorkin, A. Sangiovanni-Vincentelli (1988). Applying harmonic balance to almost-periodic circuits. IEEE Transactions on Microwave Theory and Techniques.](https://doi.org/10.1109/22.3525)
17. [Harmonic balance-automatic differentiation method: an out-of-the-box and efficient solver for general nonlinear systems](https://arxiv.org/pdf/2508.07309)
18. [Incremental harmonic balance method based on asymptotic expansion and a trust-region strategy and application to strongly nonlinear systems](https://www.sciopen.com/article/10.3934/math.2026490)
19. [Harmonic balance method (arXiv 1604.05621, review)](https://ar5iv.labs.arxiv.org/html/1604.05621)
20. [Steady state analysis of free or forced oscillators by harmonic balance and stability investigation of periodic and quasi-periodic regimes](https://onlinelibrary.wiley.com/doi/10.1002/mmce.4570050308)
21. [pyHB: an open-source automatic-differentiation-enhanced semi-analytical solver for nonlinear dynamics](https://pubdb.com/paper/2607.17577)
22. [Physics-based simulation of nonlinear distortion in semiconductor devices using the harmonic balance method (Computer Methods in Applied Mechanics and Engineering, 2000)](https://doi.org/10.1016/s0045-7825%2899%2900185-1)
23. [A deep neural network integrated harmonic balance identification method for high-dimensional bistable structures](https://google.iopscience.iop.org/article/10.1088/1361-665X/ae5434)
24. [Feed-forward ANN behavioral model of a GaAs MESFET for harmonic balance circuit simulation (Politecnico di Torino)](https://iris.polito.it/retrieve/handle/11583/2999212/24d70eab-127e-424a-aee2-90ec6bd06a84/m67016-ramella%20final.pdf)
25. [Comparison of shooting and harmonic balance techniques for the simulation of semiconductor devices (COMPEL, Vol. 27 No. 6, 2008)](https://iris.polito.it/retrieve/e384c42d-ff6b-d4b2-e053-9f05fe0a1d67/1855410.pdf)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数学分析与数学模型 › Numerical analysis and computation › Spectral and collocation methods

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/harmonic-balance

English original: https://www.edgepedia.org/harmonic-balance
