3
$\begingroup$

I tried to simulate the Lorenz83 Attractor that is defined by the following system of nonlinear ordinary differential equations: \begin{eqnarray*} \frac{dx}{dt}&=&-a x - y^2 - z^2 + a f\\ \frac{dy}{dt}&=& -y + x y - b x z + g\\ \frac{dz}{dt}&=& -z + b x y + x z \end{eqnarray*} Given the following parameters and initial conditions: $a=0.95,b=7.91,f=4.83,g=4.66$ and $ x(0)=-0.2,y(0)=-2.82,z(0)=2.71$

(* Parameters for the system *)
parameters = {a -> 0.95, b -> 7.91, f -> 4.83, g -> 4.66};

(* System of differential equations *)
equations = {
   x'[t] == -a x[t] - y[t]^2 - z[t]^2 + a f,
   y'[t] == -y[t] + x[t] y[t] - b x[t] z[t] + g,
   z'[t] == -z[t] + b x[t] y[t] + x[t] z[t]
} /. parameters;

(* Initial conditions *)
initialConditions = {x[0] ==-0.2, y[0] == -2.82, z[0] == 2.71};

(* Numerical solution *)
solution = NDSolve[{equations, initialConditions}, {x, y, z}, {t, 0, 20},Method->"StiffnessSwitching"];

(* 3D plot of the attractor with color gradient *)
trajectoryPlot = ParametricPlot3D[
   Evaluate[{x[t], y[t], z[t]} /. solution], {t, 0, 20},
   PlotRange -> All, AxesLabel -> {"x", "y", "z"},
   PlotStyle -> {Thick,Dashed}, ColorFunction -> "DarkRainbow", ColorFunctionScaling -> True,Boxed -> True
,PlotPoints -> 20];
trajectoryPlot

enter image description here

but it doesn't seem right because the picture given by the source Strange Attractors I'm studying is different

![enter image description here

$\endgroup$
4
  • 1
    $\begingroup$ Simply because you are using different parameters? $\endgroup$
    – A. Kato
    Commented Aug 11 at 1:52
  • $\begingroup$ @A.Kato what is the difference? $\endgroup$ Commented Aug 11 at 2:06
  • 1
    $\begingroup$ Very sorry, no difference. A reflected image plotted with Evaluate[{y[t], x[t], z[t]} /. solution] looks a little bit closer, but not identical. $\endgroup$
    – A. Kato
    Commented Aug 11 at 5:26
  • 1
    $\begingroup$ @Nasser I have updated the image that shows also the parameters and the initial conditions $\endgroup$ Commented Aug 11 at 5:32

1 Answer 1

8
$\begingroup$

When using PlotPoints -> 1000, the visualization improves. However, if the time exceeds 20, no chaotic behavior is observed with these parameter values ​​and initial condition, and the system reaches a limit cycle.

Plot[x[t] /. solution, {t, 0, 80}, PlotRange -> All, 
PlotStyle -> {Thickness[0.001], Blue}, PlotPoints -> 200, 
PlotHighlighting -> None]

enter image description here

If you change the value of b, there is chaotic behavior:

(*Parameters for the system*)
parameters = {a -> 0.95, b -> 5.71, f -> 4.83, g -> 4.66};

(*System of differential equations*)
equations = {x'[t] == -a  x[t] - y[t]^2 - z[t]^2 + a  f, 
y'[t] == -y[t] + x[t]  y[t] - b  x[t]  z[t] + g, 
z'[t] == -z[t] + b  x[t]  y[t] + x[t]  z[t]} /. parameters;

(*Initial conditions*)
initialConditions = {x[0] == -0.2, y[0] == -2.82, z[0] == 2.71};

(*Numerical solution*)
solution = 
NDSolve[{equations, initialConditions}, {x, y, z}, {t, 0, 1000}];

Plot[x[t] /. solution, {t, 900, 1000}, PlotRange -> All, 
PlotStyle -> {Thickness[0.001], Blue}, PlotPoints -> 200, 
PlotHighlighting -> None]

enter image description here

Following a comment from @Chris K, here is the link to the model reference:

Irregularity: a fundamental property of the atmosphere by Edward N. Lorenz (1984)

$\endgroup$
7

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.