Thursday, July 17, 2014

Chaotic Behavior and Shil’nikov Homoclinic Orbits

My exploration of chaos continues...equation (5) from Sprott's paper:

dx/dt = -y - z

dy/dt = x

dz/dt = a(y - y2) - bz , with a = b = 0.5.

This was interesting because the first attempt ended in failure (i.e. overload condition on all the amplifiers); a bit of sleuthing uncovered a typo in equation (5) for the dz/dt term (the final x should, in fact, be a z)...and voila...
It is the Rössler prototype-4 system, apparently. The picture below shows how I figured out the patching (I have taught myself to mark up each connection on the diagram with a highlighter pen, as I patch that lead physically on the computer...this avoids my getting into a complete mess...). Also, you can see the crossed out part of the first, wrong, attempt...




Saturday, July 12, 2014

Self Propelled Flowers

I have come across another interesting paper [1] which has several examples of chaotic systems. I've taken to working my way through these systems, beginning with the classic Lorenz attractor.

Amongst other things, the paper gives a set of equations (2), which are derived by applying a linear transformation to Lorenz's original equations, giving

dx/dt = α(y - x)

dy/dt = -xz -γy

dz/dt = xy - β/α - βz ,

where the new dimensionless parameters are given by α = √(σ/r), γ = 1/√(σr), and  β = b/√(σr).

Using Lorenz's (classic butterfly) σ = 10, r = 28, and b = 8/3 values, gives α = 0.598, β = 0.159, and γ = 0.0597. This approach is useful because it allows direct patching on the 10 V computer.

I patched the above system of equations, with the above parameter values, like this:


which looked like this on the actual computer:


The oscilloscope display shows the output with the computer is FAST mode; but it's more fun directing the output to an XY plotter:


...and here are the plots (left is xz-plane, right is xy-plane).














Looking at these plots - especially when on paper, I cannot help but wonder if this type of thing (i.e. analog computer rendering of chaos) had any influence on British 20th century art (i.e. modernism and in particular modern sculpture - e.g. Barbara Hepworth)?


[1] Sprott, J. C., 'Simplifications of the Lorenz Attractor', Nonlinear Dynamics, Psychology, and Life Sciences, 2009, Vol. 13, No. 3, pp. 217 - 278.


Friday, July 4, 2014

A minor bit of circuitry

Just for the record...the +/- 21 V supply is available on the external bus...

...and there's 12 V for a cabinet fan (maybe - if needed).


Monday, June 23, 2014

Strange Attractors

I came across an interesting paper [1] which discusses the Lorenz model of general circulation of the atmosphere. The model comprises the following three nonlinear ordinary differential equations,

dX/dt = -Y2 - Z2 -aX +aF

dY/dt = XY - bXZ - Y + G

dZ/dt = bXY + XZ - Z.

Values of a = 1/4, b = 4 and G = 1 are used in [1]; F is given various values.

What's interesting (for me) is that these equations can be implemented on the analogue computer as it stands - just. It makes something of an interesting case to attempt on the computer in its current state. And a good set of equations to try and implement. The important thing is to have big sheets of paper!

Here's a sketch of how I converted the equations into a patching diagram. (At the moment, I am trying to avoid cases which need re-scaling, and so it's a very direct implementation of the set of equations.)


It uses seven of the eight integrator/summers (3 are configured as integrators), plus three of the four available summers, plus two of the three multipliers, and both squarers. Having never programmed an analogue compute before, it's interesting to see what parts of the machine are actually the most useful. For the current problem, the non-inverting summers proved particularly handy. And being able to configure the integrator/summers as either integrator or summer is very useful.

The biggest problem was a rather mundane one of nearly running out of banana leads (I have more on order):


The results (plotted on a Philips PM8043 X-Y recorder) are shown below, for three different values of parameter F, near to the value of 5.198 used for attractor N of reference [1]. Vertical axis is Z(t) , horizontal axis is X(t). a = 1/4, b = 4 and G = 1, as in [1].

F = 5.1 V

F = 5.2 V

F = 5.3 V

An immediate discovery was that the thing is pretty sensitive to the value of F - in particular, the left hand side of the plots. I guess that's chaos for you. Nevertheless, the right hand side in particular, looks pleasingly similar to that given in [1], reproduced below:

Finally, it's incredibly easy to change something - in this case the value of G from 1 to 2 - just by moving one banana plug...and yielding another interesting plot:

F = 5.2 V; G = 2 V

This whole area of chaotic dynamics obviously has a very great depth...and as Masoller et al rightly say, is a fascinating subject [1].


[1] 'Characterization of Strange Attractors of Lorenz Model of General Circulation of the Atmosphere', C. Masoller et al, Chaos, Solitons and Fractals, Vol. 6, 1995, pp. 357 - 366. 



Thursday, June 5, 2014

3/4 assembled...

Control unit (lower rack); integrators, summing amplifiers, multipliers and divider (middle rack); coefficient potentiometers (upper rack). The plan is to (perhaps) add wooden sides to the racking - plus rear panels need sorting out - including a big 26-way bus connector (none of your USB/e-SATA/Firewire on this beast!)


And there's space for another rack...with, inter alia, special functions...


Thursday, May 29, 2014

Another rack completed

Initially I thought this rack would be a few potentiometers in an otherwise rather empty box, but of course it turned out to be a bit more involved...



Well, that completes all the main electronics - for the time being - special functions are next - but before that I'll do a bit of the hardware to hold the three completed racks, plus making up the bus cable interconnects and some miscellaneous wiring (e.g. the two meter outputs are buffered and will appear at BNC sockets on the rear panel...)

Saturday, May 3, 2014

Coefficient Attenuators

Allows coefficients to be set in the range -1 to +1. There are fifteen of these circuits. Each uses a 10 turn potentiometer. Based on the circuit from Ulmann's book, Fig 4.26, right.

Of course nothing being as straightforward as it seems, it turned out that there was a problem when the gain is set to zero - i.e. with the potentiometer wiper halfway along its track. Had my retrospectoscope been fully operational maybe this would have been obvious (i.e. the op amp is attempting to find difference of two large voltages - not a problem at DC, but...). At several kHz noise becomes a big problem and the output isn't zero, but a noisy, relatively large amplitude (> 100 mV) waveform. Oddly, it doesn't seem connected with the fact the potentiometers are wire wound (and hence inductive).

Apparently, making an op amp circuit with zero gain is not as easy as it sounds, at least at several kHz. After much thought and some experimentation, the problem was solved with the addition of a small amount of capacitance from the non-inverting pin to ground. It's very specific - an 82 pF plus trimmer (5 - 60 pF) in parallel does the job. Adjusting the trimmer gets the output noise right down to a few mV, with the 10 turn potentiometer set halfway.


The switching (via relays) allows the op amp's output to be sent to the panel meter with either (a) input switched to an internal reference voltage (1 V or 10 V), or (b), input from panel jack. There is an (on) off (on) momentary switch on front panel to do this, which switches the relays. One switch for each op amp. Relays needed because an (on) on (on) double pole switch seemed impossibly difficult to procure, whereas I could obtain a huge number of dpdt relays via eBay at about 20 pence each(!). 

The switching idea is taken from Jackson (Analog Computation, 1960), Fig 12-41 (c).


And here's one of the trimmers, with 82 pF capacitor behind...