Lorenz Attractor

From 3D Printables

Jump to: navigation, search
Lorenz Attractor
Enlarge
Lorenz Attractor

Contents

Equations

The equations that govern the Lorenz attractor are:









where sigma is called the Prandtl number and rho is called the Rayleigh number.


Creating the data points

The data points were created using Matlab

First create a function

function xdot=lorenz(t,x)

sigma=10; r=28; b=8/3;

xdot=[-sigma*(x(1)-x(2));

r*x(1)-x(2)-x(1)*x(3);

-b*x(3)+x(1)*x(2)];

In the Command Window

Set Initial Conditions

x0=[-8 8 27]

tspan =[0:100]

Solve

[t,x]=ode45(@Lorenz,tspan,x0)

This outputs 3 columns [x,y,z], place these columns into a text file and import that file into STL Generator

Plot

To check that the data points are correct you can plot these points

plot3(x(:,1),x(:,2),x(:,3))


Downloads

Text file containing points

This text file can be imported to STLGenerator to create an .STL file.

Resources

Personal tools