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

up and down cut does not give the same result #275

Open
oameye opened this issue Oct 23, 2024 · 0 comments
Open

up and down cut does not give the same result #275

oameye opened this issue Oct 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@oameye
Copy link
Member

oameye commented Oct 23, 2024

@variables α λ ω0 ω ωₚ F t x(t)
diff_eq = DifferentialEquation(
    d(x, t, 2) + (ω0^2 -λ*cos(2*ω*t))* x + α * x^3 + γ * d(x, t) ~ F*cos(ωₚ*t), x)

add_harmonic!(diff_eq, x, ω)
add_harmonic!(diff_eq, x, ωₚ)
harmonic_eq = get_harmonic_equations(diff_eq)

fixed2 ==> 0.005, ω0 => 1.0, α => 1.0, F => 0.0001, ωₚ => 1.0)
varied ==> range(0.99, 1.01, 100), λ => range(1e-5, 0.02, 100))
result_δλ2 = get_steady_states(harmonic_eq, varied, fixed2, threading=true)

plot(
    plot(result_δλ2, y="√(u1^2+v1^2)", cut=ω=>0.99),
    plot(result_δλ2, y="√(u2^2+v2^2)", cut=ω=>0.99),
) |> display
plot(
    plot(result_δλ2, y="√(u1^2+v1^2)", cut=λ=>0.01),
    plot(result_δλ2, y="√(u2^2+v2^2)", cut=λ=>0.01),
) |> display

{3B7132B2-1656-4004-AB17-81285EE21FC6}

@oameye oameye added the bug Something isn't working label Oct 23, 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

No branches or pull requests

1 participant