Skip to content

Commit

Permalink
Tweak meshing and add period_bound in morris_lecar.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Aug 13, 2018
1 parent 3cc3cd6 commit 1d0e421
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions docs/src/examples/morris_lecar.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,17 @@ at `bautin_point`:
flc_prob = FoldLimitCycleProblem(
bautin_point,
hopf_solver1;
num_mesh = 30,
degree = 8,
period_bound = (0.0, 14.0), # see below
num_mesh = 120,
degree = 4,
)
flc_solver = init(
flc_prob;
start_from_nearest_root = true,
max_branches = 0,
bidirectional_first_sweep = false,
nominal_angle_rad = 2π * (5 / 360),
max_samples = 500,
)
@time solve!(flc_solver)
```
Expand All @@ -97,6 +99,22 @@ savefig(plt_state_space, "morris_lecar-state_space.png"); nothing # hide

![](morris_lecar-state_space.png)

The continuation was configured to stop just before the period is
about to diverge. Note that stopping at larger period requires larger
mesh size.

```@example morris_lecar
d_lc = length(flc_solver.prob.xs0)
plt_periods = plot(
[u[end-1] for u in flc_solver.sol.sweeps[1].super.u],
[u[d_lc + 1] for u in flc_solver.sol.sweeps[1].super.u],
xlabel = "p1",
ylabel = "period")
savefig(plt_periods, "morris_lecar-periods.png"); nothing # hide
```

![](morris_lecar-periods.png)

### Start continuation of Saddle-Node bifurcation

```@example morris_lecar
Expand Down

0 comments on commit 1d0e421

Please sign in to comment.