-
Notifications
You must be signed in to change notification settings - Fork 40
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? |
|
This is not on github yet, I will share it with you as soon as my colleague uploads it. |
Hi Romain and happy new year! I have tried this code. It is detected the folds now, but the bp (which is a SNIC) at phi_e1=103.86 is not being detected anymore because the Newton conversion fails just before that. I have tried increasing the Newton tolerance but then the fold continuations are not detected. So I guess it is a question of keeping the Newton tolerance as e-9 and reducing the dsmin until it is small enough? I have gone down to e-12 and it is still not converging. Are there ranges that I should stick to for parameters like dsmin and the Newton tolerance? I find it very tricky to know what the parameters should be changed to. Also, when I plot the result of the continuation, the fold points are not being plotted.
|
I am having no problem with the 4th bifurcation plot |
|
For the 4th BP, the issue comes from meh adaptation not
You can also increase the number of time steps Ntst |
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: