BSD 3-Clause "New" or "Revised" License

项目介绍

QuantumEngineeredSystems/HarmonicBalance.jl 是一个托管在 GitHub 上的开源项目,主要使用 Julia 编写,采用 BSD 3-Clause "New" or "Revised" License 许可证,目前获得 85 个 Star、17 次 Fork。

仓库全名
QuantumEngineeredSystems/HarmonicBalance.jl
开源许可证
BSD 3-Clause "New" or "Revised" License
Star 数
85
Fork 数
17
未关闭 Issue
23

README 摘要

HarmonicBalance.jl is a Julia package for solving periodic, nonlinear differential equations using the method of harmonic balance. Installation To install HarmonicBalance.jl, you can use the github repo or the Julia package manager, Documentation For a detailed description of the package and examples, see the documentation. This repo contains a collection of example notebooks. Example: steady states of a nonlinear…

完整内容见 GitHub 原始 README 或本页 。

常见问题

HarmonicBalance.jl 用什么语言开发?

主要使用 Julia 编写,采用 BSD 3-Clause "New" or "Revised" License 许可证,目前有 85 个 Star。

HarmonicBalance.jl 可以免费商用吗?

仓库采用 BSD 3-Clause "New" or "Revised" License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 HarmonicBalance.jl 的源码?

可以直接克隆仓库:git clone https://github.com/QuantumEngineeredSystems/HarmonicBalance.jl.git;安装与运行步骤见仓库 README。

HarmonicBalance.jl 最近还在维护吗?

仓库最近一次更新为 6月8日,当前有 23 个未关闭 Issue;Star 数为 85,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

A Julia package for solving nonlinear differential equations using the harmonic balance method.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

语言占比

Julia
Makefile

Release

README

docs Downloads Downloads

Code Style: Blue Aqua QA JET codecov

HarmonicBalance.jl is a Julia package for solving periodic, nonlinear differential equations using the method of harmonic balance.

Installation

To install HarmonicBalance.jl, you can use the github repo or the Julia package manager,

using Pkg
Pkg.add("HarmonicBalance")

Documentation

For a detailed description of the package and examples, see the documentation.

This repo contains a collection of example notebooks.

Example: steady states of a nonlinear resonator

Let’s find the steady states of a driven Duffing resonator with nonlinear damping, with equation of motion:

using HarmonicBalance, Plots
@variables α ω ω0 F η t x(t) # declare constant variables and a function x(t)
diff_eq = DifferentialEquation(d(x,t,2) + ω0^2*x + α*x^3 + η*d(x,t)*x^2 ~ F*cos(ω*t), x)
add_harmonic!(diff_eq, x, ω) # specify the ansatz x = u(T) cos(ωt) + v(T) sin(ωt)

# implement ansatz to get harmonic equations
harmonic_eq = get_harmonic_equations(diff_eq)

# solve for a range of ω
result = get_steady_states(harmonic_eq, ω => range(0.9, 1.2, 100), (α => 1., ω0 => 1.0, F => 0.01, η => 0.1))
A steady state result for 100 parameter points

Solution branches:   3
   of which real:    3
   of which stable:  2

Classes: stable, physical, Hopf, binary_labels
plot(result, "sqrt(u1^2 + v1^2)")

Citation

If you use HarmonicBalance.jl in your project, we kindly ask you to cite this paper, namely:

HarmonicBalance.jl: A Julia suite for nonlinear dynamics using harmonic balance Jan Košata, Javier del Pino, Toni L. Heugel, Oded Zilberberg SciPost Phys. Codebases 6 (2022)

BibTeX entry

@Article{10.21468/SciPostPhysCodeb.6,
    title={{HarmonicBalance.jl: A Julia suite for nonlinear dynamics using harmonic balance}},
    author={Jan Košata and Javier del Pino and Toni L. Heugel and Oded Zilberberg},
    journal={SciPost Phys. Codebases},
    pages={6},
    year={2022},
    publisher={SciPost},
    doi={10.21468/SciPostPhysCodeb.6},
    url={https://scipost.org/10.21468/SciPostPhysCodeb.6}
}

See also

  • JosephsonCircuits.jl: Models superconducting circuits using modified nodal analysis and harmonic balance with an analytic Jacobian.
  • Manlab: A similar package in Matlab also using continuation methods and using the Harmonic Balance method for periodic orbits.
  • PyHarm: An Harmonic Balance Method (HBM) based solver for mechanical nonlinear system simulations

评论

暂无评论