Skip to content

Commit 8df983e

Browse files
committed
add Fitzhugh into famous systems
1 parent 60c612c commit 8df983e

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DynamicalSystemsBase"
22
uuid = "6e36e845-645a-534a-86f2-f5d4aa5a06b4"
33
repo = "https://github.com/JuliaDynamics/DynamicalSystemsBase.jl.git"
4-
version = "1.5.4"
4+
version = "1.5.5"
55

66
[deps]
77
DelayEmbeddings = "5732040d-69e3-5649-938a-b6b4f237613f"

src/continuous_famous_systems.jl

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ end
222222
\\end{aligned}
223223
```
224224
225-
The Hénon–Heiles system [1] was introduced as a simplification of the motion
225+
The Hénon–Heiles system [1] is a conservative dynamical system and was introduced as a simplification of the motion
226226
of a star around a galactic center. It was originally intended to study the
227227
existence of a "third integral of motion" (which would make this 4D system integrable).
228228
In that search, the authors encountered chaos, as the third integral existed
@@ -283,6 +283,7 @@ end
283283
"""
284284
qbh([u0]; A=1.0, B=0.55, D=0.4)
285285
286+
A conservative dynamical system with rule
286287
```math
287288
\\begin{aligned}
288289
\\dot{q}_0 &= A p_0 \\\\
@@ -533,7 +534,7 @@ labyrinth(u0 = [1.0, 0, 0])
533534
\\begin{aligned}
534535
\\dot{x} &= \\sin(y) \\\\
535536
\\dot{y} &= \\sin(z) \\\\
536-
\\dot{V} &= \\sin(x)
537+
\\dot{z} &= \\sin(x)
537538
\\end{aligned}
538539
```
539540
Three dimensional conservative continuous system, whose evolution in 3D space
@@ -590,8 +591,6 @@ normalized such that for energy value of 1 it is a circle of diameter ``d0``.
590591
The magnetic field is also normalized such that for value `B=1` the cyclotron
591592
diameter is 1.
592593
593-
Fo more details see [1].
594-
595594
[1] : G. Datseris *et al*, [New Journal of Physics 2019](https://iopscience.iop.org/article/10.1088/1367-2630/ab19cc/meta)
596595
"""
597596
function antidots(u0 = [0.5, 0.5, rand(2)...];
@@ -740,3 +739,21 @@ function magnetic_pendulum(u = [sincos(rand()*2π)..., 0, 0];
740739
p = [γ, d, α, ω]
741740
ds = ContinuousDynamicalSystem(m, u, p)
742741
end
742+
743+
"""
744+
fitzhugh_nagumo(u = 0.5ones(2); I = 1.0)
745+
Famous excitable system which emulates the firing of a neuron, with equations
746+
```math
747+
\\begin{aligned}
748+
\\dot{v} &= v - v^3/3 - w + I \\\\
749+
\\ddot{y} &= 0.08(v + 0.7 - 0.8w)
750+
\\end{aligned}
751+
```
752+
753+
More details in the [Scholarpedia](http://www.scholarpedia.org/article/FitzHugh-Nagumo_model) entry.
754+
"""
755+
function fitzhugh_nagumo(u = 0.5ones(2); I = 1.0)
756+
ds = ContinuousDynamicalSystem(fitzhugh_nagumo_eom, u, [I])
757+
end
758+
fitzhugh_nagumo_eom(u, p, t) =
759+
SVector(u[1] - u[1]^3/3 - u[2] + p[1], 0.08(u[1] + 0.7 - 0.8u[2]))

0 commit comments

Comments
 (0)