-
Notifications
You must be signed in to change notification settings - Fork 39
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
Mesh adaptation error #195
Comments
Hi, Thank you for posting this. I cannot reproduce. What is your version? |
I am using BifurcationKit v0.4.4 |
I just upgraded to v0.4.6 and I still get the same error |
Can you please send the last continuation steps from the repl please? |
┌─────────────────────────────────────────────────────┐ ┌─────────────────────────────────────────────────────┐ ┌─────────────────────────────────────────────────────┐ ┌─────────────────────────────────────────────────────┐ ┌─────────────────────────────────────────────────────┐ |
|
Pliease use ``` to put code |
Hi, First. You can greatly improve the speed using function lamnn!(dz, z, param, t = 0)
(;A_a, A_gs, A_gf, a_a, a_gs, a_gf, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, v0, v0_p2, ϕ0, r, ϕe1, ϕe2) = param
y1, y6, y2, y7, y3, y8, y4, y9, y5, y10 = z
dz[1] = y6
dz[2] = a_a * A_a * σ(C1 * y2 + C2 * y3 + C3 * (A_a / a_a) * ϕe1 + C11 * y4, v0) - 2 * a_a * y6 - a_a^2 * y1
dz[3] = y7
dz[4] = a_a * A_a * σ(C4 * y1, v0) - 2 * a_a * y7 - a_a^2 * y2
dz[5] = y8
dz[6] = a_gs * A_gs * σ(C5 * y1, v0) - 2 * a_gs * y8 - a_gs^2 * y3
dz[7] = y9
dz[8] = a_a * A_a * σ(C6 * y4 + C7 * y5 + C8 * (A_a / a_a) * ϕe2 + C12 * y1, v0_p2) - 2 * a_a * y9 - a_a^2 * y4
dz[9] = y10
dz[10] = a_gf * A_gf * σ(C9 * y4 + C10 * y5 + C13 * y1, v0) - 2 * a_gf * y10 - a_gf^2 * y5
dz
end
z0 = [0.0; 0.0; 0.0; 0.0; 0.0; 0.0; 0.0; 0.0; 0.0; 0.0]
prob = BifurcationProblem(lamnn!, z0, par, (@optic _.ϕe1);
record_from_solution = (x, p; k...) -> (y1 = x[1])) and then use:
|
This seems to work fine for me
|
Note that I incrase the discretization |
Thank you! I was able to get the same result as you. However, there are 2 fold bifurcations of limit cycles very close together around p = 160 that are not being detected. Is it possible to to that in BifurcationKit? |
Yes, they appear for |
hence, for higher precision, they disappear. Where do you get that they should be here? |
This is from some previous analysis that was done in AUTO |
A few things. You should use Auto the same discretization number. In BK, we label the bifurcation points as |
Okay thanks. And what is a normal form and how do we compute them? What is the test function for folds? |
|
Re: AUTO, apparently it doesnt detect SNICs straight away, my bad! I tried |
can you share the auto code out of curiosity? |
|
Hi,
I am running a Periodic Orbit continuation but it is failing with this error:
┌ Error: [Mesh-adaptation]. The mesh is non monotonic! Please report the error to the website of BifurcationKit.jl
└ @ BifurcationKit ~/.julia/packages/BifurcationKit/RaJtn/src/periodicorbit/PeriodicOrbitCollocation.jl:1148
I cannot find where to report it on the website so I am posting here instead.
Here is the code I am using:
The text was updated successfully, but these errors were encountered: