Skip to content

Commit 4b218c3

Browse files
authored
add two new systems: nose hoover and labyrinth (#75)
1 parent 26c1f9f commit 4b218c3

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

src/dynamicalsystem/continuous_famous_systems.jl

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,3 +349,51 @@ function rikitake_eom(u, p, t)
349349
zdot = 1 - x*y
350350
return SVector{3}(xdot, ydot, zdot)
351351
end
352+
353+
354+
"""
355+
```julia
356+
nosehoover(u0 = [0, 0.1, 0])
357+
```
358+
```math
359+
\\begin{aligned}
360+
\\dot{x} &= y \\\\
361+
\\dot{y} &= yz - x \\\\
362+
\\dot{V} &= 1 - y^2
363+
\\end{aligned}
364+
```
365+
Three dimensional conservative continuous system, taken from the book
366+
"Elegant Chaos" by J. C. Sprott.
367+
"""
368+
nosehoover(u0 = [0, 0.1, 0]) = CDS(nosehoover_eom, u0, nothing)
369+
function nosehoover_eom(u, p, t)
370+
x,y,z = u
371+
xdot = y
372+
ydot = y*z - x
373+
zdot = 1.0 - y*y
374+
return SVector{3}(xdot, ydot, zdot)
375+
end
376+
377+
"""
378+
```julia
379+
nosehoover(u0 = [0, 0.1, 0])
380+
```
381+
```math
382+
\\begin{aligned}
383+
\\dot{x} &= \\sin(y) \\\\
384+
\\dot{y} &= \\sin(z) \\\\
385+
\\dot{V} &= \\sin(x)
386+
\\end{aligned}
387+
```
388+
Three dimensional conservative continuous system, whose evolution in 3D space looks
389+
like a speudo-random walk, the orbit moving around like in a labyrinth.
390+
Taken from the book "Elegant Chaos" by J. C. Sprott.
391+
"""
392+
labyrinth(u0 = [1.0, 0, 0]) = CDS(labyrinth_eom, u0, nothing)
393+
function labyrinth_eom(u, p, t)
394+
x,y,z = u
395+
xdot = sin(y)
396+
ydot = sin(z)
397+
zdot = sin(x)
398+
return SVector{3}(xdot, ydot, zdot)
399+
end

0 commit comments

Comments
 (0)