So far I have studied Chua’s circuit as a system of differential equations. Now I want to understand what happens when the ideal nonlinear characteristic is replaced by an electronic circuit built around two operational amplifiers. For this test I use LTspice 26.1.1, launched through Wine on Debian, for all the circuit simulations. I export the traces, import them as CSV into GX-TXT DEV112 P012 and use its analysis and plotting tools. I do not integrate the equations again in Octave: I want to examine what LTspice actually computed.

1. From Kennedy’s report to the schematic

I take up the implementation proposed by Michael Peter Kennedy in the report Robust OP Amp Realization of Chua’s Circuit (UCB/ERL M92/26, 1992), figure 11 and table 1, already examined in the historical article. The nonlinear two-terminal element is made of two negative impedance converters connected in parallel. The external network contains two capacitors, an inductor and an adjustable resistor. The two AD712 sections are represented by two instances of the macromodel in the installed LTspice library. The supplies are ideal, with 100 nF bypass capacitors; I do not simulate the internal impedance of the batteries or the thermal coupling of the two sections of the same chip.

Nodes with the same name, v1, v2, vcc and vee, are electrically common even when no wire is drawn between the sections. The LTspice current I(L1) flows from v2 to ground: it is opposite to the direction of the inductor current adopted in Matsumoto’s earlier mathematical model. This convention must be respected in future comparisons.

ComponentNominal value
A, BAD712
R1, R2220 Ω
R32.2 kΩ
R4, R522 kΩ
R63.3 kΩ
C1, C210 nF; 100 nF
L118 mH
R2.00 / 1.88 / 1.74 kΩ
Power supply±9 V

2. Characterizing the two-terminal element before simulating the oscillator

To isolate the nonlinearity, I disconnect the RLC network and apply an ideal source Vtest between v1 and ground. In the schematic chua_diode_dc.asc I set:

.dc Vtest -10 10 0.005
.save V(v1) I(Vtest) V(outa) V(outb)
.options plotwinsize=0 numdgt=15

The sweep has 4001 points. The intent is to observe the behavior outside the negative-resistance segment as well. The ±10 V endpoints exceed the ±9 V supplies: they are a diagnostic test of the macromodel, not recommended operating conditions or an experimental characterization of the AD712. I do not attribute absolute predictive value to the curve in that region.

The five-segment comparison model

For an ideal non-inverting amplifier the gain is \(1+R_f/R_g\). For the two sections this gives:

\[A=1+\frac{220}{2200}=1.1,\qquad B=1+\frac{22000}{3300}=7.6667.\]

Denoting the output voltages by \(u_A,u_B\), the current flowing into the two-terminal element is:

\[i_R(v_1)=\frac{v_1-u_A}{R_1}+\frac{v_1-u_B}{R_4}.\]

In the ideal static model I assume that each output is symmetrically limited to \(E=8.3\,\mathrm{V}\), the value given by Kennedy for his circuit. I write the limiting function as:

\[S_E(z)=\frac{|z+E|-|z-E|}{2},\qquad u_A=S_E(Av_1),\quad u_B=S_E(Bv_1).\]

Section B saturates first, at about 1.083 V in absolute value; section A reaches the ideal limit at about 7.545 V. This gives three slopes (five segments, by symmetry):

\[m_0=-\frac1{R_3}-\frac1{R_6}\simeq-0.75758\,\mathrm{mS},\quad m_1=-\frac1{R_3}+\frac1{R_4}\simeq-0.40909\,\mathrm{mS},\quad m_2=\frac1{R_1}+\frac1{R_4}\simeq4.59091\,\mathrm{mS}.\]

This is an analytical reference, not a second simulator of the circuit and not a fit with parameters adjusted to the LTspice response.

3. Transient simulation: three resistor values

I use the values 2.00 kΩ, 1.88 kΩ and 1.74 kΩ, chosen among those of Kennedy’s figure 14. I keep all the other components constant. The ASC files are separate, so that each export identifies a single simulation. I set:

.ic V(v1)=0.1 V(v2)=0 I(L1)=0
.tran 0 100m 40m 500n uic
.save V(v1) V(v2) I(L1) V(outa) V(outb)
.options plotwinsize=0 numdgt=15

The initial perturbation of 0.1 V is my own choice to move away from the equilibrium; uic skips the initial operating-point solution. I simulate up to 100 ms, keeping the window after the first 40 ms. The maximum allowed step is 500 ns, not a fixed step; the LTspice solver uses trapezoidal integration with adaptive steps. I disabled waveform compression. In the exported files the time of the kept window starts from zero and ends at 60 ms. The 20–25 ms windows of the following plots therefore refer to the origin of the exported time.

4. Exporting and importing the CSV files

In LTspice I open the schematic, run it and, in the waveform viewer, choose File → Export data as text. I select the two capacitor voltages, the two op-amp outputs and I(L1). I do not select the magnetic flux. For the DC test I choose V(v1), I(Vtest), V(outa) and V(outb).

The native format of this function is a text file with tab-separated fields. To obtain the agreed CSV files I changed only the delimiter to a comma: no sample removed, interpolated or recomputed, and no conversion of the decimal strings. I also kept the original text files. With the headers of this test, which contain no internal tabs or commas, the conversion can also be reproduced with tr '\t' ',' < chua_R1740.txt > chua_R1740.csv on Linux.

In the new session S07, in GX-TXT, I choose the Generic CSV v4 acquisition, comma separator, header on the first row, contract table.generic and RAW copy. I add the four files and use the Variables panel to assign simple names, physical units and independent/dependent roles without altering the values.

LTspice headerGX-TXT aliasUnit
time (transient)ts
Vtest (DC sweep)sweepV
V(outa)outaV
V(outb)outbV
V(v1)v1V
V(v2)v2V
I(L1)iLA
I(Vtest)itestA

I wait for the whole acquisition Job to finish before accessing the Datasets. During the procedure the warning about a Dataset operation still in progress appeared. I waited for it to end, reopened the session and checked the four Datasets: no second import.

Imported DatasetRows
ltspice.chua.diode_dc4,001
ltspice.chua.r2000120,004
ltspice.chua.r1880120,241
ltspice.chua.r1740120,285

The sizes of the transient Datasets differ because the solver steps are adaptive. I must not interpret them as three uniformly sampled series. In the GX-TXT Plots tab I create eight Scientific Dataset Plot variants; the plots remain associated with the canonical Datasets and are saved in the session.

5. The actual macromodel curve and the ideal curve

LTspice defines I(Vtest) as the current flowing into the positive terminal of the source. For the two-terminal convention the sign must therefore be changed. In Math Numeric I use the Dataset expression -i, with the variable i associated with I(Vtest), and set the output unit to mA. I publish the new Dataset ltspice.chua.diode_iv, keeping voltages and outputs. I do not modify the imported CSV. I then evaluate the previous analytical expression, with explicit physical units, on the same 4001 values of v1 and publish ltspice.chua.diode_nominal.

The operations are carried out by the public Math Numeric services (dataset_expression) and Dataset Publication API v2. For the overlay I select the two columns v1 and current of each Dataset in Scientific Dataset Plot 4.4.3.

The two models are very close in the central region and in the intermediate regions. The differences become significant outside: the macromodel does not follow a rigid, ideal, symmetric saturation at 8.3 V. To understand why, I examine the voltages of the two outputs.

B gets close to its limit much earlier than A. A, under load, starts to deviate from the ideal straight line even before the expected outer breakpoint. At high voltages curvatures and asymmetries appear. I therefore do not impose the saturation value measured by Kennedy on the modern macromodel, and I do not try to derive an AD712 operating limit from the part of the sweep beyond the supplies.

To quantify the comparison I use the native linear regressions of Math Numeric on the three windows shown in the table. The slopes are in mA/V, equivalent to mS. The RMSE expresses the deviation of the simulated samples from the local straight line, not a measurement uncertainty.

v1 range (V)PointsLTspice slope (mS)Ideal reference (mS)RMSE (mA)
−0.8…+0.8320−0.757558−0.7575762.84 × 10⁻⁸
−5…−2601−0.411939−0.4090910.001486
+2…+5601−0.410820−0.4090910.000772

The central slope of the macromodel is practically the one expected from the resistor ratio; the two intermediate slopes are very close to each other and to the theoretical reference. The ideal five-segment reference, however, does not reproduce all the non-idealities at the ends.

6. How does the trajectory change as R varies?

For each transient CSV I build an XY plot with v1 on the abscissa and v2 on the ordinate, and a time plot of the same voltages. The XY projections use the whole kept window, with point representation and the native graphical decimation of GX-TXT. The points drawn are a subset of those imported; I do not join them in increasing order of v1, because they do not form a single-valued function. The plots use different automatic scales: to compare the amplitudes I use the minima and maxima computed on the complete Datasets.

R = 2.00 kΩ: oscillations in a single lobe

In the observed interval v1 always remains positive, between about 3.213 and 5.268 V. The waveforms show persistent oscillations with a relatively regular excursion. At 2 kΩ Kennedy instead reported a static equilibrium: with this implementation I do not reproduce it. A closed projection suggests periodic behavior, but I do not determine its asymptotic period here.

R = 1.88 kΩ: transitions between the lobes

The trajectory explores both half-planes. In the time plot, groups of positive and negative oscillations can be seen alternating. Kennedy had reported a period-one cycle at 1.88 kΩ: in this case too, the resistor value alone is not enough to reproduce his regime exactly.

R = 1.74 kΩ: two-lobe structure

The two-lobe structure reminiscent of the double scroll appears. The excursions are smaller than those of the 1.88 kΩ test. I do not interpret the two-lobe plot alone as a demonstration of deterministic chaos: the quantitative analysis carried out in article 06 concerned the earlier numerical model, not this circuit with electronic macromodels.

Quantitative comparison of the three simulations

R (Ω)v1 min…max (V)v2 min…max (V)I(L1) min…max (mA)Regime reported by Kennedy
20003.213…5.268−0.436…0.4360.833…3.407Static equilibrium
1880−5.473…5.364−1.053…1.068−4.680…4.595Period 1
1740−3.896…3.824−0.798…0.807−3.475…3.421Double scroll

The values are the extremes of the samples actually kept, obtained with statisticsDataset of Math Numeric. The sign of the current follows LTspice; to present it in the table in mA I expressed the results on the corresponding scale. I do not use the simple mean of the adaptive samples as a time average. The three historical comparisons are not a measure of the distance between two attractors: besides the nominal parameters, the characteristics of the macromodel, the inductor losses, the supplies, the tolerances, the initial conditions and the observation time all play a part. I have not yet measured these contributions on the real circuit. I have not performed a fine sweep of the resistance, nor a convergence test with a reduced maximum step for this circuit simulation.

7. Files to reproduce the simulations

The simulations can be repeated by opening the ASC schematics in your own LTspice installation equipped with the AD712 model. The CSV files are those exported for this session. The four schematics only received a graphical revision: after the change I regenerated the netlists with LTspice and verified that the electrical statements were identical to those used to produce the original traces.

TestLTspice schematicCSV data
DC characteristicASC schematicCSV
R = 2.00 kΩASC schematicCSV
R = 1.88 kΩASC schematicCSV
R = 1.74 kΩASC schematicCSV

In the first series of AD712 tests I kept the historical reference, four imported CSV files, two derived Datasets and eight plots. Before building the real circuit I extended the comparison to the TL082, as I describe in the following sections.

8. Extension: what if I replace the AD712 with a TL082?

Kennedy’s parts list also includes the TL082. Since I have these op-amps for the future bench build, I want to repeat the previous tests using the TL082. I do not simply change the symbol name: I compare two distinct SPICE macromodels, one I already had in my electronics archive and one downloaded from Texas Instruments. The official TL082 page lists the PSpice model SLOJ070.ZIP for TL082, TL082A and TL082B.

The file from my archive is called tl082.sub. It defines a five-terminal TL082 subcircuit and contains no identifiable origin or revision. In the TI file, TL082.301, the header gives 16 June 1989 and a ±15 V reference supply. Both describe a single op-amp section. They are not the same model: the archive one uses NJF-type JFET elements, the TI one PJF-type, and they differ in their compensation networks, the parameters of the controlled sources and the limiting circuits. These are two mathematical representations, not evidence of the internal topology of the two chips I will buy or already own.

I prepared a single TL082.asy symbol with the pin order of the subcircuit: non-inverting input, inverting input, positive supply, negative supply, output. The two schematic folders each contain their own .include file, because the models share the name TL082 and must not be loaded at the same time in the same circuit.

Adapting the syntax without adapting the model

The first simulation of the archive file produced no data: LTspice 26.1.1 rejected the old PSpice syntax of the controlled source EGND. I kept the original file intact and created an LTspice-compatible copy. In the archive file the original line is:

egnd 99 0 poly(2),(3,0),(4,0) 0 .5 .5

In the TI model the pairs are written in parentheses, with spaces instead of commas after POLY(2). In both copies I used the equivalent LTspice syntax:

EGND 99 0 POLY(2) 3 0 4 0 0 .5 .5

The source still generates the mean of the two supply voltages. I did not modify the function, the coefficients, the components or the internal parameters of the macromodels. I also removed the DOS end-of-file character (Ctrl-Z) from the end of the TI copy. After this adaptation LTspice completed the DC sweep and the three transient analyses for both models.

The comparison is made at the same ±9 V supplies, with the same resistors, capacitors and inductor and the same initial perturbation as the AD712 circuit. I also kept a duration of 100 ms, the window kept after 40 ms, a maximum step of 500 ns and a simulation temperature of 27 °C. Since the TI macromodel states ±15 V in its header, its use at ±9 V should be read as an exploration of the model outside its declared reference voltage, not as a validation of its behavior on a real TL082.

From the eight exports to the Datasets

For each test I exported the traces using File → Export data as text in LTspice and changed only the tab delimiter to a comma. I compared the fields of each CSV with those of the original text: all identical. I then added the new files to the same session S07 with Generic CSV, without replacing the four AD712 Datasets.

TestTL082 archive — rowsTL082 TI — rows
DC4,0014,001
R=2000 Ω121,358120,004
R=1880 Ω120,671120,268
R=1740 Ω120,629120,332

The identifiers of the new Datasets begin with ltspice.chua.tl082. and ltspice.chua.tl082_ti. respectively. The units are those of the first import (s, V and A). I waited for the acquisition Job to complete before reopening the session and checking the Datasets. During the acquisition the active Dataset operation warning appeared again; I did not repeat the import or modify the Datasets during the Job.

9. The static characteristics: almost the same slopes, different limits

As for the AD712, I changed the sign of the Vtest current and converted it to mA with the native dataset_expression operation of Math Numeric; I published the two derived Datasets ltspice.chua.tl082.diode_iv and ltspice.chua.tl082_ti.diode_iv. I can thus compare all three two-terminal elements using the same voltage values.

The sweep from −10 to +10 V reveals an abrupt anomaly of the archive model around +9.5 V and of the TI model around −9.4 V. I do not remove these samples. They are obtained by forcing the terminal of the two-terminal element beyond the supplies: they are not a measurement of a physical phenomenon, nor an operating condition to be reproduced on the bench. To read the region crossed by most of the trajectories more clearly, I build a second plot limited to −7…+7 V, keeping the complete Dataset.

The native regressions over the same windows used for the AD712 confirm that the three negative slopes depend mainly on the resistor ratios. The results are expressed in mA/V, equivalent to mS.

v1 range (V)AD712 (mS)TL082 archive (mS)TL082 TI (mS)
−0.8…+0.8−0.757558−0.757419−0.757387
−5…−2−0.411939−0.408947−0.408932
2…5−0.410820−0.408958−0.408921

The central slope of the two TL082s is very close to the ideal slope of −0.757576 mS. In the intermediate regions the slopes are close to −0.409091 mS. However, a slope does not fully identify the straight line: the intercepts change when an op-amp reaches a different output level. The breakpoint towards the outer dissipative region in turn depends on the limit of the other amplifier.

I can read two points directly from the DC Datasets, without estimating the values from the figure. At v1=+4 V and v1=−4 V, output B is already in the limiting region, while A remains close to ±4.4 V. These are the values returned by the Datasets (not absolute output limits at any load):

MacromodeluA(−4 V)uB(−4 V)uA(+4 V)uB(+4 V)
AD712−4.400 V−8.707 V4.400 V8.479 V
TL082 archive−4.400 V−8.187 V4.400 V8.187 V
TL082 TI−4.400 V−7.477 V4.400 V7.477 V

The difference between the two TL082s in the positive level of B is about 0.71 V. With R4=22 kΩ, this shifts the current characteristic in the intermediate segment by about 0.032 mA, as the intercepts of the regressions also show. A small change in the static characteristic can therefore change the position of the equilibrium, but the dynamics also depends on the frequency and transient properties of the macromodels. I do not attribute the difference between the phase portraits to a single parameter without isolating it with further tests.

10. The dynamic comparison at equal resistance

For each value of R I generated two multi-panel plots in Scientific Dataset Plot 4.4.3 through its public API: phase portrait and time course of v1. The first uses all the data of the kept window as its source and the native graphical decimation; the second selects the stretch between 20 and 25 ms of the exported time. All the phase portraits use the same limits: v1 from −8 to +8 V, v2 from −1.5 to +1.5 V. The three traces are in separate panels, so that none hides another. The imported Datasets keep the original adaptive time resolution. I do not align the peaks of independent simulations.

R = 2.00 kΩ

The three models remain in the positive-v1 region in the observed window, but the size of the apparent cycle is very different. With the archive TL082 the voltage oscillates from about 0.904 to 7.181 V; with the TI one it oscillates from 3.432 to 4.031 V. The AD712 is in between. I do not claim that the TI model has reached the static equilibrium reported by Kennedy: the residual oscillation is not zero and I did not extend the transient to demonstrate its decay or its asymptotic persistence.

R = 1.88 kΩ

With all three macromodels, transitions between positive and negative voltages appear. I do not find the historical period one at this nominal resistance value. The TI model shows a smaller excursion, but keeps the two oscillation regions.

R = 1.74 kΩ

The two-lobe shape is present in all three simulations. With the two TL082s the maxima in absolute value are close to 3.77 V and 3.43 V respectively. Compared with 1.88 kΩ, the excursions decrease. The diagrams suggest the double scroll but do not on their own demonstrate the chaotic nature of the complete circuit.

Numerical comparison

I report the extremes obtained with statisticsDataset of Math Numeric on the complete original samples of the kept window, not on the decimated points of the plots. The excursions are defined as maximum minus minimum. The comparison refers to 60 ms of data and does not provide guaranteed asymptotic limits.

R (Ω)Macromodelv1 min…max (V)v1 peak-to-peak (V)v2 min…max (V)I(L1) min…max (mA)
2000AD7123.213…5.2682.056−0.436…0.4360.833…3.407
2000TL082 archive0.904…7.1816.276−1.323…1.320−1.877…5.930
2000TL082 TI3.432…4.0310.598−0.128…0.1281.488…2.243
1880AD712−5.473…5.36410.837−1.053…1.068−4.680…4.595
1880TL082 archive−5.270…5.26710.537−1.054…1.054−4.538…4.536
1880TL082 TI−4.788…4.7909.578−0.955…0.955−4.132…4.133
1740AD712−3.896…3.8247.719−0.798…0.807−3.475…3.421
1740TL082 archive−3.775…3.7737.548−0.804…0.805−3.401…3.399
1740TL082 TI−3.431…3.4296.860−0.724…0.728−3.095…3.085

The TL082 I already have in the lab is therefore a reasonable candidate for building the circuit. The TI model gives me a second traceable reference, but I cannot choose which of the two macromodels better describes my physical part just from its resemblance to a photograph from 1992. On the bench I will first measure the I–V characteristic of the two-terminal element and the outputs of the two amplifiers, then slowly vary R, starting from the highest resistances. The observed differences show why it is not advisable to treat 2.00, 1.88 and 1.74 kΩ as universal thresholds. I have not yet performed a fine sweep of R, a tolerance analysis, halving of the maximum SPICE step or the measurement of the Lyapunov exponents of the electronic circuit.

11. Additional material to reproduce the TL082 tests

The downloadable schematics keep the same RLC network and the same Kennedy two-terminal element. The two folders differ in the included macromodel. The packages contain the ASC files, the local symbol and the instructions for adapting the syntax of the original model; they do not redistribute third-party macromodels. For the TI model, SLOJ070 can be downloaded from the official page. For the archive model, whose origin is unknown, you need the same original file and must check its distribution rights. The simulated data of the two variants, on the other hand, are provided so that the comparison can be repeated directly in GX-TXT.

Archive TL082 schematic package · Texas Instruments TL082 schematic package

TestTL082 archiveTL082 TI
DCCSVCSV
R = 2.00 kΩCSVCSV
R = 1.88 kΩCSVCSV
R = 1.74 kΩCSVCSV

The updated session S07 keeps all twelve CSV files, four derived HDF5 Datasets (including the ideal reference), the historical report and seventeen native plots. The AD712 simulations of the first part remain available. The next step is the comparison with a physical TL082 from my lab.

References and models

M. P. Kennedy, Robust OP Amp Realization of Chua’s Circuit, Frequenz 46(3–4), 66–80 (1992). DOI · Technical report UCB/ERL M92/26, fig. 11, table 1 and fig. 14.

Texas Instruments, TL082 — documentation and PSpice model, SLOJ070.ZIP archive (TL082.301). For the other TL082 macromodel, origin unidentified; kept in the working material.

#AD712 #Chua circuit #deterministic chaos #GX-TXT #LTspice #negative resistance #SPICE simulation #TL082

Other steps of this project

Leave a Reply

Your email address will not be published. Required fields are marked *