We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Classifying the solutions with a system with nonlinear damping and multiple frequencies takes crazy long:
using BenchmarkTools using HarmonicBalance; HB = HarmonicBalance; # using Plots @variables α Δ ω0 δ F γ η t x(t) diff_eq = DifferentialEquation( d(x, t, 2) + ω0^2 * x + α * x^3 + γ * d(x, t) + η * x^2 * d(x, t) ~ F * (cos((ω0 + δ - Δ / 2) * t) + cos((ω0 + δ + Δ / 2) * t)), x, ) add_harmonic!(diff_eq, x, ω0 + δ - Δ / 2) add_harmonic!(diff_eq, x, ω0 + δ + Δ/2) # add_harmonic!(diff_eq, x, ω0 + δ) resolution = 10 δ_range = range(-0.05 * 1.25, 0.01 * 1.25, 10); fixed = (Δ => 1.25, γ => 0.002, ω0 => 41.140, α => -3.2, η => 0.0078, F => 20) varied_δF = (δ => δ_range) harmonic_eq = get_harmonic_equations(diff_eq) prob = HB.Problem(harmonic_eq) swept_parameters = HB.ParameterRange(varied_δF) fixed_parameters = HB.ParameterList(fixed) unique_fixed = HB.filter_duplicate_parameters(swept_parameters, fixed_parameters) J = HB._compile_Jacobian(prob, swept_parameters, unique_fixed) # @btime HB._compile_Jacobian($prob, $swept_parameters, $unique_fixed) # 71 ms result_δF = get_steady_states(harmonic_eq, varied_δF, fixed);
The text was updated successfully, but these errors were encountered:
van der pol oscillator is also a great example where get_steady_states does not complete
get_steady_states
using HarmonicBalance @variables ω_lc, t, ω0, x(t), μ diff_eq = DifferentialEquation(d(d(x,t),t) - μ*(1-x^2) * d(x,t) + x, x) foreach(1:2:5) do i add_harmonic!(diff_eq, x, i*ω_lc) end; harmonic_eq = get_harmonic_equations(diff_eq) get_steady_states(harmonic_eq, μ => 1:0.1:5, ω_lc => 1.2)
Sorry, something went wrong.
No branches or pull requests
Classifying the solutions with a system with nonlinear damping and multiple frequencies takes crazy long:
The text was updated successfully, but these errors were encountered: