3D Printing Chaos
Year: 2018 Authors: Michael S. Gagliardo
Core claim
3D printing can visualize long-term dynamics of the Aizawa equations more directly than screen-based graphics and can be adapted to other nonlinear dynamical systems.
Topics
chaos, Aizawa equations, 3D printing, visualization, dynamical systems
Domains
nonlinear dynamical systems, ordinary differential equations, chaos theory, Lyapunov exponents, attractors, 3D printing, computational visualization, digital fabrication
Methods
numerical solving, Euler’s method, parameter variation, mesh generation, curve interpolation
Media
3D prints, Mathematica, Python, Rhino, Shapeways
Paper text
The text below is the locally extracted OCR/Markdown version of the paper. Raw PDF files remain local and are not published here.
Bridges 2018 Conference Proceedings
3D Printing Chaos
Michael S. Gagliardo
California Lutheran University, Thousand Oaks, CA, USA; mgagliar@callutheran.edu
Abstract
In this paper, we use 3D prints to demonstrate long-term behavior of solutions to the Aizawa equations for various parameters, some of which admit chaos. The methods for creating the prints produce high quality meshes and can be used with other nonlinear dynamical systems.
Introduction
Chaos is described as a sensitive dependence on initial conditions. The double-pendulum is a classic example of chaos, where two nearby starting positions give drastically different paths of the pendulum in the long term. In this paper, we use 3D printed solutions to visualize the long-term behavior of the Aizawa equations, a nonlinear dynamical system for which certain parameters result in chaotic solutions. Previous work on visualizing chaotic solutions in general [1] and the Aizawa equations specifically [3] do not utilize 3D printing. While solutions to other dynamical systems have been printed [6], we are not aware of 3D printing being used to investigate long-term behavior of chaotic solutions to the Aizawa equations.
An advantage 3D printing has over traditional computer-mediated visualizations is that 3D prints exist in the same dimension as the solutions. Furthermore, depth need not be interpreted like it does on a computer screen because in a 3D print depth can be seen and felt. For instance, compare the shadows and depth of Figure 1(a) with the computer generated Figure 1(b). Of course, Figure 1(a) is still a 2D representation of the actual 3D print, but even so, it provides a clearer picture of the solution.
(a) 3D Print
(b) Software Visualization
Figure 1: Aizawa Attractor
In what follows, we first discuss basic information about nonlinear dynamical systems and chaos.
Next, we discuss the Aizawa equation and a result that indicates which parameters may lead to interesting long-term behavior. We then show the prints and explain how they demonstrate the long-term behavior of the solutions. Finally, we discuss the printing technique used and apply it to other dynamical systems.
Nonlinear Dynamical Systems and Chaos
A nonlinear dynamical system on is a system of ordinary differential equations of the form
where and is a smooth function which in this setting is also called a vector field. A solution to these equations is a function such that for all . It is also useful to think of a solution as a flow that depends on an initial condition .
For instance, if the vector field represents the velocity of wind in a region then the flow would be the path a balloon would take in the wind.
To discuss whether a solution is chaotic or not, we need a definition of chaos. However, there is no singular agreed-upon definition of chaos and most definitions require a background in nonlinear dynamics. We give an intuitive description of chaos based on the definition given by Devaney, Hirsh, and Smale [4]. Intuitively, chaos occurs when:
- solutions exhibit a sensitivity on initial conditions. (i.e. solutions starting near each other do not necessarily exhibit similar behavior); and
- nearby sets of initial conditions will eventually spread out under the flow.
Proving a solution satisfies a definition of chaos is difficult. We can give evidence using numerical methods to estimate Lyapunov exponents [5], which describe the long-term ‘spread’ of nearby points in phase space. We can use numerical techniques [7] to compute Lyapunov exponents and a classification scheme [2] to justify our claims about the long-term behavior of solutions.
Aizawa Equations
The Aizawa equations given in (1) admit chaotic solutions for certain parameter/initial value combinations. However, not all of the solutions are chaotic even when they are visually similar to chaotic solutions. The Aizawa equations are
(1)
for and parameters and . Commonly used values of the parameters in visualizations are and . The solution to the Aizawa equation with these parameters and initial value is pictured in Figure 1.
Following the analysis by Cope [3], we see that the value of affects the number of equilibrium points and hence the dynamics of the system. We omit the proof, but we can show that
Theorem 1.
If then the differential equations will have three real equilibrium points (counting multiplicity) and if the differential equation will have one real equilibrium point.
In the examples that follow, we will see three types of long-term behavior, chaotic, periodic, and quasi-periodic. Periodic solutions will repeat and we should expect to see a loop in the long-term behavior. Quasi-periodic solutions ‘almost’ repeat and we will still see a loop in the long-term behavior. Chaotic solutions will not settle down and the long-term behavior will not form a loop.
Since the number and location of the equilibrium points depend on , we will vary while keeping all other parameters constant. As we increase from to the equilibrium points will move further away from each other along the -axis which causes the ‘central tube’ to become thinner until it disappears completely and the solutions drastically change shape. To demonstrate the long-term behavior, prints are shown for both and . While long-term refers to the behavior as , we found that is sufficient for these solutions to match behavior predicted by the Lyapunov exponents. Finally, we use as the initial value for each solution.
3D Printing Chaos
The solution for (which is slightly smaller than the bifurcation point , Theorem 1) can be seen in Figure 2(a). While the solution may seem ‘chaotic’, we can see from Figure 2(b) it is in fact asymptotic to a periodic attractor.
In contrast, the solution for in Figure 2(c) initially appears very similar to the previous solution. However, with the introduction of two new equilibrium points, the long-term behavior (Figure 2(d)) does not appear to settle down which is characteristic of a chaotic solution.
The solutions for and (Figure 3) have drastically different initial and long-term behaviors. When , the solution quickly becomes close to the quasi-periodic attractor, whereas for the solution is chaotic.
(a)
(b)
(c)
(d)
Figure 2: (a and b) (c and d)
Another interesting change in the behavior of solutions occurs near where the solutions go from chaotic to convergent. The solution shown in Figure 4(a) for is asymptotic to the chaotic attractor. However, a small change to yields the solution in Figure 4(b) which starts similarly to the other chaotic solutions but then actually converges to an equilibrium point. Finally, with , we see the solution in Figure 4(c) rapidly converge to the same equilibrium point.
(a)
(b)
(c)
(d)
(a)
Figure 4: Various ,
Figure 3: (a and b) (c and d)
(b)
(c)
Gagliardo
The Printing Technique
To create the 3D prints, we use Mathematica software to numerically solve the differential equation and a Python program to import the solution into the Rhino software where we convert the data into a high quality mesh of cylindrical tubing. A similar method [6] uses a numerical solver included with Mathematica and then creates a tube around the solution. We found that for some differential equations, this solver produces jagged solutions even with very small step sizes. In addition, the tube command in Mathematica creates meshes with hexagonal tubes instead of cylindrical tubes which we did not find aesthetically desirable. To overcome these two issues, we use Euler’s method with a very small step size in Mathematica to create a sequence of points that are then exported into a .csv file for further processing in Rhino.
We use Python code to both import the points into Rhino and interpolate a curve through the points. Next, we use Rhino to create a cylindrical pipe around the solution. Finally, we create a very fine mesh ( million faces) and reduce the mesh to meet the technical specifications required by Shapeways. By using Shapeways, we avoid the problem of the mesh having a high number of self-intersections. In the end, we have a very smooth print of the solution.
This technique allows us to make prints for any differential equation in 2 or 3 dimensions. In addition to being aesthetically pleasing, these prints can be used to aid with classroom instruction. To demonstrate the robustness of the technique, we leave the reader with three more prints of chaotic solutions in Figure 5.
(a) Dequan Li
(b) Lorenz
(c) Anishchenko-Astakhov
Figure 5: Other attractors
References
[1] “Strange Attractors.” Chaotic Atmospheres, http://chaoticatmospheres.com/mathrules-strange-attractors, (as of March 12, 2018). [2] G. Baier and M. Klein. “Hierarchies of Dynamical Systems.” A Chaotic Hierarchy, World Scientific Publishing, 1991, pp. 1-14. [3] G. Cope. “The Aizawa Attractor.” Algosome, http://www.algosome.com/articles/aizawa-attractor-chaos., (as of March 12, 2018). [4] R. L. Devaney, M. W. Hirsh, and S. Smale. Differential Equations, Dynamical Systems, & an Introduction to Chaos, 2nd ed. Elsevier, 2004. [5] J. B. Dingwell. “Lyapunov Exponents.” Wiley Encyclopedia of Biomedical Engineering, 2006. [6] E. Sanders. “Construct 3D.” GMU Math MakerLab, http://gmumathmaker.blogspot.com/2017/05/construct3d., (as of March 12, 2018). [7] M. Sandri. “Numerical Calculation of Lyapunov Exponents.” The Mathematical Journal, vol. 6, 1996, pp. 78-84.