Skip to content

Detect continue event and bifuraction event #288

@MaxwellDemonLin

Description

@MaxwellDemonLin

Hi

I want detect continue event and bifuraction event at same time.

bprob, ev1 = get_bifurcation_problem(nw, s0)
ev2 = BifDetectEvent
eve = SetOfEvents(ev1,ev2)
opts = ContinuationPar(p_min = -10.0, p_max = -0.5, newton_options = optnewton, ds = -1e-5, dsmax =1e-1,dsmin=1e-12,max_steps = 5000,detect_event = 2,detect_bifurcation=0,detect_fold = false,
  	tol_stability = 1e-5)

opts = @set opts.newton_options.verbose = false

br = continuation(bprob, PALC(), opts,verbosity = false,event = ev1, bothside = false,finalise_solution = finalise_solution, plot = false)
When I detect ev1 only, it is work

Image

When I detect ev2 only, it is work
br = continuation(bprob, PALC(), opts,verbosity = false,event = ev2, bothside = false,finalise_solution = finalise_solution, plot = false)
Image

br = continuation(bprob, PALC(), opts,verbosity = false,event = eve, bothside = false,finalise_solution = finalise_solution, plot = false)
But wen I detect eve event

It have a fault ┌ Error: Error, no event was characterized whereas one was detected.
│ Please open an issue at https://github.com/rveltz/BifurcationKit.jl/issues.
│ The events are eventValue = (((-2.4291602276246116,), (2,)), ((-2.426647295056616,), (2,)))
└ @ BifurcationKit C:\Users\12251.julia\dev\BifurcationKit\src\events\EventDetection.jl:399

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions