Lorenz Attractor
From 3D Printables
Contents |
[edit]
Equations
The equations that govern the Lorenz attractor are:
where sigma is called the Prandtl number and rho is called the Rayleigh number.
[edit]
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)];
[edit]
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))
[edit]
Downloads
This text file can be imported to STLGenerator to create an .STL file.
[edit]
Resources
- Lorenz Attractor - Wikipedia
- Weisstein, Eric W. "Lorenz Attractor." From MathWorld--A Wolfram Web Resource

