Skip to content
New issue

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

plot a out of bound cut of a 2d sweep #231

Closed
oameye opened this issue Sep 15, 2024 · 0 comments · Fixed by #283
Closed

plot a out of bound cut of a 2d sweep #231

oameye opened this issue Sep 15, 2024 · 0 comments · Fixed by #283
Labels
bug Something isn't working

Comments

@oameye
Copy link
Member

oameye commented Sep 15, 2024

using HarmonicBalance

@variables ω₀ γ λ α ω t x(t)

natural_equation = d(d(x, t), t) + γ * d(x, t) + (ω₀^2 - λ * cos(2 * ω * t)) * x + α * x^3
diff_eq = DifferentialEquation(natural_equation, x)

add_harmonic!(diff_eq, x, ω);

harmonic_eq = get_harmonic_equations(diff_eq)

fixed = (ω₀ => 1.0, γ => 0.002, α => 1.0)
varied ==> range(0.99, 1.01, 100), λ => range(1e-6, 0.03, 100))

result_2D = get_steady_states(harmonic_eq, varied, fixed, threading=true);

plot(result_2D, y="u1", cut=λ => 0.1, class="stable")
@oameye oameye added the bug Something isn't working label Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant