|
| 1 | +# Strange attractors from https://www.dynamicmath.xyz/strange-attractors/ and |
| 2 | +# https://en.wikipedia.org/wiki/List_of_chaotic_maps |
| 3 | +# Opted for the equations as reported in papers |
| 4 | + |
| 5 | +# Thomas |
| 6 | +@parameters t b=0.208186 |
| 7 | +@variables x(t)=1 y(t)=0 z(t)=0 |
| 8 | +D = Differential(t) |
| 9 | + |
| 10 | +eqs = [D(x) ~ sin(y) - b*x, |
| 11 | + D(y) ~ sin(z) - b*y, |
| 12 | + D(z) ~ sin(x) - b*z] |
| 13 | + |
| 14 | +@named thomas = ODESystem(eqs) |
| 15 | + |
| 16 | +""" |
| 17 | +Thomas' cyclically symmetric attractor equations |
| 18 | +
|
| 19 | +```math |
| 20 | +$(latexify(thomas)) |
| 21 | +``` |
| 22 | +
|
| 23 | +[Reference](https://www.worldscientific.com/doi/abs/10.1142/S0218127499001383) |
| 24 | +
|
| 25 | +[Wikipedia](https://en.wikipedia.org/wiki/Thomas%27_cyclically_symmetric_attractor) |
| 26 | +""" |
| 27 | +prob_ode_thomas= ODEProblem(thomas,[],(0.0,1.0)) |
| 28 | + |
| 29 | + |
| 30 | +# Lorenz |
| 31 | +@parameters t σ=10 ρ=28 β=8/3 |
| 32 | +@variables x(t)=1 y(t)=0 z(t)=0 |
| 33 | +D = Differential(t) |
| 34 | + |
| 35 | +eqs = [D(x) ~ σ*(y-x), |
| 36 | + D(y) ~ x*(ρ-z)-y, |
| 37 | + D(z) ~ x*y - β*z] |
| 38 | + |
| 39 | +@named lorenz = ODESystem(eqs) |
| 40 | + |
| 41 | +""" |
| 42 | +Lorenz equations |
| 43 | +
|
| 44 | +```math |
| 45 | +$(latexify(lorenz)) |
| 46 | +``` |
| 47 | +
|
| 48 | +[Reference](https://journals.ametsoc.org/view/journals/atsc/20/2/1520-0469_1963_020_0130_dnf_2_0_co_2.xml) |
| 49 | +
|
| 50 | +[Wikipedia](https://en.wikipedia.org/wiki/Lorenz_system) |
| 51 | +""" |
| 52 | +prob_ode_lorenz = ODEProblem(lorenz,[],(0.0,1.0)) |
| 53 | + |
| 54 | + |
| 55 | +# Aizawa |
| 56 | +@parameters t a=0.95 b=0.7 c=0.6 d=3.5 e=0.25 f=0.1 |
| 57 | +@variables x(t)=1 y(t)=0 z(t)=0 |
| 58 | +D = Differential(t) |
| 59 | + |
| 60 | +eqs = [D(x) ~ (z-b)*x-d*y, |
| 61 | + D(y) ~ d*x+(z-b)*y, |
| 62 | + D(z) ~ c+a*z-z^3/3-(x^2+y^2)*(1+e*z)+ f*z*x^3] |
| 63 | + |
| 64 | +@named aizawa = ODESystem(eqs) |
| 65 | + |
| 66 | +""" |
| 67 | +Aizawa equations |
| 68 | +
|
| 69 | +```math |
| 70 | +$(latexify(aizawa)) |
| 71 | +``` |
| 72 | +
|
| 73 | +[Reference](https://journals.ametsoc.org/view/journals/atsc/20/2/1520-0469_1963_020_0130_dnf_2_0_co_2.xml) |
| 74 | +
|
| 75 | +""" |
| 76 | +prob_ode_aizawa = ODEProblem(aizawa,[],(0.0,1.0)) |
| 77 | + |
| 78 | + |
| 79 | +# Dadras |
| 80 | +@parameters t a=3 b=2.7 c=1.7 d=2 e=9 |
| 81 | +@variables x(t)=1 y(t)=0 z(t)=0 |
| 82 | +D = Differential(t) |
| 83 | + |
| 84 | +eqs = [D(x) ~ y-a*x+b*y*z, |
| 85 | + D(y) ~ c*y-x*z+z, |
| 86 | + D(z) ~ d*x*y-e*z] |
| 87 | + |
| 88 | +@named dadras = ODESystem(eqs) |
| 89 | + |
| 90 | +""" |
| 91 | +Dadras equations |
| 92 | +
|
| 93 | +```math |
| 94 | +$(latexify(dadras)) |
| 95 | +``` |
| 96 | +
|
| 97 | +[Reference](https://www.sciencedirect.com/science/article/abs/pii/S0375960109009591) |
| 98 | +
|
| 99 | +""" |
| 100 | +prob_ode_dadras = ODEProblem(dadras,[],(0.0,1.0)) |
| 101 | + |
| 102 | + |
| 103 | +# chen |
| 104 | +@parameters t a=35 b=3 c=28 |
| 105 | +@variables x(t)=1 y(t)=0 z(t)=0 |
| 106 | +D = Differential(t) |
| 107 | + |
| 108 | +eqs = [D(x) ~ a*(y-x), |
| 109 | + D(y) ~ (c-a)*x-x*z+c*y, |
| 110 | + D(z) ~ x*y-b*z] |
| 111 | + |
| 112 | +@named chen = ODESystem(eqs) |
| 113 | + |
| 114 | +""" |
| 115 | +chen equations |
| 116 | +
|
| 117 | +```math |
| 118 | +$(latexify(chen)) |
| 119 | +``` |
| 120 | +
|
| 121 | +[Reference](https://www.worldscientific.com/doi/abs/10.1142/S0218127499001024) |
| 122 | +
|
| 123 | +""" |
| 124 | +prob_ode_chen = ODEProblem(chen,[],(0.0,1.0)) |
| 125 | + |
| 126 | + |
| 127 | +# rossler |
| 128 | +@parameters t a=0.2 b=0.2 c=5.7 |
| 129 | +@variables x(t)=1 y(t)=0 z(t)=0 |
| 130 | +D = Differential(t) |
| 131 | + |
| 132 | +eqs = [D(x) ~ -(y+z), |
| 133 | + D(y) ~ x+a*y, |
| 134 | + D(z) ~ b+z*(x-c)] |
| 135 | + |
| 136 | +@named rossler = ODESystem(eqs) |
| 137 | + |
| 138 | +""" |
| 139 | +rossler equations |
| 140 | +
|
| 141 | +```math |
| 142 | +$(latexify(rossler)) |
| 143 | +``` |
| 144 | +
|
| 145 | +[Reference](https://www.sciencedirect.com/science/article/abs/pii/0375960176901018) |
| 146 | +[Wikipedia](https://en.wikipedia.org/wiki/R%C3%B6ssler_attractor) |
| 147 | +
|
| 148 | +""" |
| 149 | +prob_ode_rossler = ODEProblem(rossler,[],(0.0,1.0)) |
| 150 | + |
| 151 | + |
| 152 | +# rabinovich_fabrikant |
| 153 | +@parameters t a=0.14 b=0.10 |
| 154 | +@variables x(t)=1 y(t)=0 z(t)=0 |
| 155 | +D = Differential(t) |
| 156 | + |
| 157 | +eqs = [D(x) ~ y*(z-1+x^2) + b*x, |
| 158 | + D(y) ~ x*(3*z+1-x^2)+b*y, |
| 159 | + D(z) ~ -2*z*(a+x*y)] |
| 160 | + |
| 161 | +@named rabinovich_fabrikant = ODESystem(eqs) |
| 162 | + |
| 163 | +""" |
| 164 | +rabinovich_fabrikant equations |
| 165 | +
|
| 166 | +```math |
| 167 | +$(latexify(rabinovich_fabrikant)) |
| 168 | +``` |
| 169 | +
|
| 170 | +[Reference](https://en.wikipedia.org/wiki/Rabinovich%E2%80%93Fabrikant_equations) |
| 171 | +
|
| 172 | +""" |
| 173 | +prob_ode_rabinovich_fabrikant = ODEProblem(rabinovich_fabrikant,[],(0.0,1.0)) |
| 174 | + |
| 175 | + |
| 176 | +# sprott |
| 177 | +@parameters t a=2.07 b=1.79 |
| 178 | +@variables x(t)=1 y(t)=0 z(t)=0 |
| 179 | +D = Differential(t) |
| 180 | + |
| 181 | +eqs = [D(x) ~ y+a*x*y+x*z, |
| 182 | + D(y) ~ 1-b*x^2+y*z, |
| 183 | + D(z) ~ x-x^2-y^2] |
| 184 | + |
| 185 | +@named sprott = ODESystem(eqs) |
| 186 | + |
| 187 | +""" |
| 188 | +sprott equations |
| 189 | +
|
| 190 | +```math |
| 191 | +$(latexify(sprott)) |
| 192 | +``` |
| 193 | +
|
| 194 | +[Reference](http://sprott.physics.wisc.edu/pubs/paper423.pdf) |
| 195 | +
|
| 196 | +""" |
| 197 | +prob_ode_sprott = ODEProblem(sprott,[],(0.0,1.0)) |
| 198 | + |
| 199 | + |
| 200 | +# hindmarsh_rose |
| 201 | +@parameters t a=1 b=3 c=1 d=5 r=1e-2 s=4 xr=-8/5 i=5 |
| 202 | +@variables x(t)=1 y(t)=0 z(t)=0 |
| 203 | +D = Differential(t) |
| 204 | + |
| 205 | +eqs = [D(x) ~ y-a*x^3+b*x^2-z+i, |
| 206 | + D(y) ~ c-d*x^2-y, |
| 207 | + D(z) ~ r*(s*(x-xr)-z)] |
| 208 | + |
| 209 | +@named hindmarsh_rose = ODESystem(eqs) |
| 210 | + |
| 211 | +""" |
| 212 | +hindmarsh_rose equations |
| 213 | +
|
| 214 | +```math |
| 215 | +$(latexify(hindmarsh_rose)) |
| 216 | +``` |
| 217 | +
|
| 218 | +[Reference](https://en.wikipedia.org/wiki/Hindmarsh%E2%80%93Rose_model) |
| 219 | +
|
| 220 | +""" |
| 221 | +prob_ode_hindmarsh_rose = ODEProblem(hindmarsh_rose,[],(0.0,1.0)) |
0 commit comments