Skip to main content
PLOS One logoLink to PLOS One
. 2013 Nov 4;8(11):e78009. doi: 10.1371/journal.pone.0078009

Frequency Response and Gap Tuning for Nonlinear Electrical Oscillator Networks

Harish S Bhat 1,*, Garnet J Vaz 1
Editor: Jesus Gomez-Gardenes2
PMCID: PMC3817173  PMID: 24223751

Abstract

We study nonlinear electrical oscillator networks, the smallest example of which consists of a voltage-dependent capacitor, an inductor, and a resistor driven by a pure tone source. By allowing the network topology to be that of any connected graph, such circuits generalize spatially discrete nonlinear transmission lines/lattices that have proven useful in high-frequency analog devices. For such networks, we develop two algorithms to compute the steady-state response when a subset of nodes are driven at the same fixed frequency. The algorithms we devise are orders of magnitude more accurate and efficient than stepping towards the steady-state using a standard numerical integrator. We seek to enhance a given network's nonlinear behavior by altering the eigenvalues of the graph Laplacian, i.e., the resonances of the linearized system. We develop a Newton-type method that solves for the network inductances such that the graph Laplacian achieves a desired set of eigenvalues; this method enables one to move the eigenvalues while keeping the network topology fixed. Running numerical experiments using three different random graph models, we show that shrinking the gap between the graph Laplacian's first two eigenvalues dramatically improves a network's ability to (i) transfer energy to higher harmonics, and (ii) generate large-amplitude signals. Our results shed light on the relationship between a network's structure, encoded by the graph Laplacian, and its function, defined in this case by the presence of strongly nonlinear effects in the frequency response.

Introduction

Networks of nonlinear electrical oscillators have found recent application in several microwave frequency analog devices [1][6]. The fundamental unit in these networks is a nonlinear oscillator wired as in Figure 1; this oscillator consists of one inductor, one voltage-dependent capacitor, one source, and one sink (a resistor). While many nonlinear oscillatory circuits have been studied for their chaotic behavior, the particular oscillator in Figure 1 does not exhibit sensitive dependence on initial conditions in the regime of operation that we consider. Instead, assuming the source is of the form Inline graphic, the oscillator reaches a steady-state consisting of a sum of harmonics with fundamental frequency Inline graphic [7].

Figure 1. Schematic of a single nonlinear oscillator.

Figure 1

This oscillator is the basic building block of the networks considered in this paper. The circuit contains one inductor, one voltage-dependent capacitor, one source, and one resistor.

When networks of these oscillators have been studied, the network topology has either been a one-dimensional linear chain, in which case the circuit is called a nonlinear transmission line [8][13]—see Figure 2, or a two-dimensional rectangular lattice [14][18]—see Figure 3. Even if each individual block in the chain/lattice is weakly nonlinear, the overall circuit can exhibit strongly nonlinear behavior. It is this property that is exploited for microwave device applications, enabling low-frequency, low-power inputs to be transformed into high-frequency, high-power outputs.

Figure 2. An example of a nonlinear transmission line.

Figure 2

A nonlinear transmission line is a nonlinear electrical network on a one-dimensional linear graph.

Figure 3. An example of a nonlinear lattice.

Figure 3

A nonlinear lattice is a nonlinear electrical network on a two-dimensional rectangular grid graph.

The first objective of this work is to develop numerical algorithms to compute the frequency response of a nonlinear electrical network with topology given by an arbitrary connected graph. Here we are motivated by the successful application of computational techniques in the design of the high-frequency analog devices referenced above. As we show, to compute steady-state solutions with comparable accuracy, both the perturbative and iterative algorithms developed in this paper require orders of magnitude less computational time than standard numerical integration. While the perturbative algorithm generalizes derivations given in prior work [7], [18], the iterative algorithm has not been previously applied to nonlinear electrical networks. Both new algorithms show exponential convergence in the number of iterations, and for a test problem on a network with Inline graphic nodes, less than Inline graphic iterations are required to achieve machine precision errors.

The second objective of this work is to relate structural properties of the network to the dynamics of the nonlinear oscillator system. The derivation of the perturbative algorithm indicates that nonlinearity in the electrical network manifests itself through energy transfer from the fundamental forcing frequency to higher harmonics. This helps us understand why properties such as amplitude boosting [7], [18] and frequency upconversion [1], observed in nonlinear electrical networks with regular lattice topologies, can be expected when the topology is that of a random, disordered network. Additionally, we observe that an inductance-weighted graph Laplacian matrix features prominently in both algorithms for computing the steady-state solution. This graph Laplacian matrix encodes the structure of the network, and its eigenvalues are the squares of the resonant frequencies for the undamped, linear version of the circuit. Driving the damped, linearized circuit at one of these resonances results in large amplitude outputs. It is reasonable to hypothesize that the locations of these resonances play a large role in the dynamics of the nonlinear network.

This motivates the following question: how do the eigenvalues of the graph Laplacian influence the nonlinear network's properties of frequency upconversion and amplitude boosting? While it is possible to alter the spectrum of the graph Laplacian by changing the node-edge relationships in the graph, we can also change its spectrum by keeping the topology fixed and manipulating the network's inductances. We formulate and solve the inverse problem of finding the inductances such that the graph Laplacian achieves a prescribed spectrum. The solution proceeds via a Newton-type algorithm that takes the desired spectrum as input and iteratively alters the inductances until a convergence criterion is met.

For three types of random graphs, we find that the Newton-type method effectively finds circuit inductances that close the gap between the first two eigenvalues of the graph Laplacian. We conduct a series of numerical experiments to examine the effect of closing this eigenvalue gap on a given circuit's ability (i) to transfer energy from the fundamental driving frequency to higher harmonics, and (ii) to generate high-amplitude output signals. The results indicate that the two metrics (i-ii) can be improved dramatically by closing the gap between the graph Laplacian's first two eigenvalues. Table 1 shows results we obtained for graphs with Inline graphic nodes. Though this a small portion of the results we describe later, this table already illustrates the effect of gap tuning on network performance. Note that each pre and post circuit have the same graph topology, differing only in their edge inductances.

Table 1. Portion of results for graphs with Inline graphic nodes.

% of energy in higher harmonics Maximum magnitude voltage
Pre Post Pre Post
Barabási-Albert (BA) 0.410 4.063 0.01548 0.31684
Watts-Strogatz (WS) 1.006 8.701 0.03399 0.51157
Erdös-Rényi (ER) 0.033 7.534 0.002956 0.78902

Simulation results for three different types of random graphs with Inline graphic nodes, averaged over Inline graphic runs. “Pre” and “Post” stand for before and after circuit inductances are changed to reduce the gap between the graph Laplacian's first two eigenvalues. Note that pre and post circuits have the same graph topology and differ only in their inductances.

Note that we have made available open-source Python implementations of all algorithms described in this work. The Python code, together with R code used for plotting, has been posted on a public repository. This enables the reader to reproduce all results in this paper. Instructions on how to download this code is given below.

Connections to Other Systems

We can make several connections between the problem studied in this paper and other problems of interest:

  • Random elastic networks. Using a mechanical analogy between inductorscapacitors and massessprings, the nonlinear electronic network can be transformed into a mathematically equivalent network of masses and anharmonic springs [19, Appendix I]. Such random elastic networks have been of recent interest as models of amorphous solids [20][22]. For such networks, quartic spring potential energies have been considered [23]. Nonlinear random elastic networks have also been used to model molecular machines; in this context, tuning the gap between the first two eigenvalues of the linearized system enables the construction of networks with properties similar to those of real proteins [24]. Despite this activity, algorithms for computing and manipulating the frequency response of nonlinear elastic networks have not been developed. Our work addresses this issue directly.

  • Nonlinear electromagnetic media. The circuit we analyze, for particular values of the circuit parameters, arises naturally as a finite volume discretization of Maxwell's equations for TE/TM modes in a nonlinear medium [25], [26]. The arbitrary connected graph topology of the circuit corresponds to a finite volume discretization on an arbitrary unstructured mesh. The algorithms developed here can be used to compute and optimize the frequency response of nonlinear electromagnetic media.

  • Coupled phase oscillator networks. There has been intense interest in nonlinear phase oscillator networks, primarily due to the ability of such networks to model biophysical systems featuring synchronization. Though synchronization is not of primary interest in our system, we may still draw parallels. The effect of network topology on the properties of coupled phase oscillators has been studied extensively [27][30]. Manipulating eigenvalues of the Laplacian matrix enables one to enhance a network's synchronization properties [31]. More recently, several authors have developed algorithms for optimizing the synchronization of phase oscillator networks [32][37]. The questions considered in this subset of the coupled phase oscillator literature are related to the issues addressed in the present work.

Methods

Problem Formulation

Let Inline graphic be a connected, simple graph with Inline graphic nodes and Inline graphic edges. Each edge corresponds to an inductor that physically connects two nodes. Each node corresponds to a capacitor and resistor, wired in parallel, that physically connect the node to a common ground. Let Inline graphic be the number of nodes that are driven by prescribed sources. Since the voltage at the prescribed source is known, we do not model it using a node. The connection between the source and the node that it drives is modeled by a half-edge, also known as a dangling edge since one end is connected to a driven node and the other end does not connect to any node. We let Inline graphic denote the graph together with the Inline graphic half-edges.

The capacitance and conductance (inverse resistance) at node Inline graphic are Inline graphic and Inline graphic, respectively. We let Inline graphic denote the voltage from node Inline graphic to ground at time Inline graphic. The inductance of edge Inline graphic is Inline graphic, while the current through edge Inline graphic at time Inline graphic is Inline graphic. The exact dimensions for each component of Inline graphic, along with the currents and voltages, are tabulated in Table 2.

Table 2. Summary of the notation used in the paper.

Notation Significance Size
Inline graphic Capacitance at node Inline graphic
Inline graphic Inductance of edge Inline graphic
Inline graphic Conductance at node Inline graphic
Inline graphic Voltage at node Inline graphic
Inline graphic Current through edge Inline graphic
Inline graphic Input forcing Inline graphic
Inline graphic Signed incidence matrix Inline graphic

In order to write down Kirchhoff's laws, we must choose an orientation of the edges. The orientation of an edge records the direction of positive current flow through the edge. If we solve the problem with opposite orientations, the only difference we will notice is that the currents will pick up a factor of Inline graphic. Consequently, the orientation we choose does not affect the solution in any material way. In what follows, we will choose a random orientation of the edges.

In Figure 4 we show an example graph corresponding to Inline graphic. The edges are oriented randomly. The inputs are connected at nodes Inline graphic and Inline graphic through two inductors. These input nodes correspond to half-edges in Inline graphic. On the right we view node Inline graphic in detail. Each of the two edges connected to this node correspond to an inductor. A capacitor with capacitance Inline graphic and a resistor with conductance Inline graphic connect node Inline graphic to ground.

Figure 4. An example of a nonlinear electrical network.

Figure 4

In the graph on the left, the numbered circles are nodes, the solid arrows are edges, and the dashed arrows are half-edges. Orientation of the arrows indicates the direction of positive current flow. Each node corresponds to a voltage-dependent capacitor to ground, wired in parallel with a resistor to ground, as depicted in the zoomed-in schematic for node Inline graphic. Each edge corresponds to an inductor. Each half-edge connects one prescribed voltage source to one given node. In this paper, all methods that are developed are valid for connected graphs with at least one half-edge. Note that the circuits in Figures 13 can all be represented using this graph formalism.

To arrange Kirchhoff's laws compactly, we use the Inline graphic incidence matrix of Inline graphic, denoted by Inline graphic. Let Inline graphic be an edge connecting the nodes Inline graphic and Inline graphic. If Inline graphic is oriented such that positive current starts at node Inline graphic and flows to node Inline graphic, we write Inline graphic. If Inline graphic is a half-edge attached to node Inline graphic, we write Inline graphic, leaving the first slot empty and orienting the half-edge so it always points toward the forced node. The entries of the incidence matrix Inline graphic are

graphic file with name pone.0078009.e065.jpg

This paper will only consider single frequency time-harmonic forcing of the form Inline graphic where Inline graphic. Let Inline graphic be an Inline graphic matrix with entries Inline graphic if node Inline graphic is connected to an input edge Inline graphic and Inline graphic otherwise. Using the projection matrix Inline graphic we define the forcing

graphic file with name pone.0078009.e075.jpg (1)

Using the notation summarized in Table 2, Kirchhoff's laws for the nonlinear circuit on the graph Inline graphic can now be written compactly as

graphic file with name pone.0078009.e077.jpg (2)
graphic file with name pone.0078009.e078.jpg (3)

Here Inline graphic, Inline graphic, and Inline graphic are examples of component-wise multiplication of vectors. For Inline graphic, we define Inline graphic by Inline graphic for Inline graphic. Note that in this case, we can also write Inline graphic. Here Inline graphic is the Inline graphic matrix that contains the vector Inline graphic along its diagonal (Inline graphic) and is zero elsewhere.

The formulation (2–3) generalizes previous formulations [25], [38] in which the capacitors were constant and the systems considered were linear.

By differentiating (3) and inserting it into (2), we obtain a second-order system for the voltages:

graphic file with name pone.0078009.e091.jpg (4)

Here

graphic file with name pone.0078009.e092.jpg (5)
graphic file with name pone.0078009.e093.jpg (6)

Note that Inline graphic is the weighted Laplacian for the network with edge weights given by reciprocal inductance.

We assume that the capacitance at node Inline graphic depends on the voltage at node Inline graphic:

graphic file with name pone.0078009.e097.jpg (7)

where Inline graphic is a constant. Note that this choice of capacitance function means that (4) features a quadratic nonlinearity.

We can then formulate the frequency response problem for the nonlinear electrical network: given the amplitude vector Inline graphic and frequency Inline graphic for the forcing function (1), determine the steady-state solution Inline graphic of (4).

Perturbative Algorithm

We first solve the frequency response problem using a perturbative expansion in powers of Inline graphic. We use dots to denote differentiation with respect to time. Substituting the capacitance function (7) in (4) and rearranging, we obtain

graphic file with name pone.0078009.e103.jpg (8)

We expand

graphic file with name pone.0078009.e104.jpg (9)

Inserting (9) into (8), we obtain equations for each order of Inline graphic. At zeroth order, we obtain

graphic file with name pone.0078009.e106.jpg (10)

For Inline graphic, the Inline graphic-th order equation is

graphic file with name pone.0078009.e109.jpg (11)

We now solve (10–11). Let us introduce the Fourier transform in time,

graphic file with name pone.0078009.e110.jpg (12)

with inverse Fourier transform

graphic file with name pone.0078009.e111.jpg (13)

Note that with these definitions,

graphic file with name pone.0078009.e112.jpg

This implies that the Fourier transforms of both sides of (10–11) can be summarized by writing

graphic file with name pone.0078009.e113.jpg (14)

where Inline graphic is the linear operator

graphic file with name pone.0078009.e115.jpg (15)

and

graphic file with name pone.0078009.e116.jpg (16)

By (5) and (1), we see that

graphic file with name pone.0078009.e117.jpg (17)

where Inline graphic is the Dirac delta. Then the Inline graphic branch of (14) yields

graphic file with name pone.0078009.e120.jpg (18a)
graphic file with name pone.0078009.e121.jpg (18b)
graphic file with name pone.0078009.e122.jpg (18c)

Using the inverse Fourier transform, we have

graphic file with name pone.0078009.e123.jpg
graphic file with name pone.0078009.e124.jpg

where “c.c.” stands for the complex conjugate of the previous terms. Here we have used the property that Inline graphic.

Once we have computed Inline graphic, we can insert it into (16) to compute Inline graphic. We will find that Inline graphic is a linear combination of Inline graphic, Inline graphic, and Inline graphic. Using this fact in the Inline graphic branch of (14), we can solve for Inline graphic and then apply the inverse Fourier transform to compute Inline graphic. We will find that Inline graphic contains the same modes as Inline graphic.

The above shows how we get the perturbative solution algorithm started. Now let us move to the more general case where we seek Inline graphic for any Inline graphic. Assume that we have already computed Inline graphic for Inline graphic, and that the solution takes the following form:

graphic file with name pone.0078009.e141.jpg (19a)
graphic file with name pone.0078009.e142.jpg (19b)

In words, Inline graphic contains odd modes Inline graphic, and Inline graphic contains even modes Inline graphic. Here we assume that Inline graphic, and that the Inline graphic coefficients are known.

In order to solve for Inline graphic, we use the Inline graphic branch of (14), which requires us to compute (16). We have two cases, when Inline graphic is odd and when Inline graphic is even. In both cases, it is a simple (if tedious) algebraic exercise to show that Inline graphic yields:

  • when Inline graphic is odd, a sum of even Fourier modes Inline graphic, and

  • when Inline graphic is even, a sum of odd Fourier modes Inline graphic.

In both cases, it is clear that using (14) to solve for Inline graphic results in a sum of Dirac delta's. Applying the inverse Fourier transform yields Inline graphic, which will be a sum of Fourier modes. One can check that Inline graphic will have precisely the form (19a) or (19b) depending on whether Inline graphic is even or odd, respectively.

The algorithm is then clear. Starting with (19), we apply component-wise multiplication to particular pairs of the Inline graphic vectors in order to compute the coefficients of the Fourier modes of Inline graphic defined in (16). Next, we combine the step of solving for Inline graphic using the Inline graphic branch of (14) together with the step of computing the inverse Fourier transform. After component-wise multiplication of the Fourier coefficients of Inline graphic by Inline graphic, we multiply each coefficient on the left by Inline graphic with Inline graphic set to match the frequency of the corresponding Fourier mode. Dividing these coefficients by Inline graphic yields the Fourier coefficients of Inline graphic, as desired.

While we have presented the algorithm in an intuitive way, the statements made above can be made rigorous, and a convergence theory for the perturbative expansion (9) can be established. This is the subject of ongoing work.

There are a few brief remarks to make about the algorithm presented above:

  • As described above, we consider only those networks that contain resistance at all nodes, i.e., Inline graphic for all nodes Inline graphic. Such an assumption is not only physically realistic; it also guarantees that for all Inline graphic, the matrix Inline graphic is invertible. The invertibility for the Inline graphic case is a consequence of Corollary 1 proved below.

  • In this work, we are interested in the weakly nonlinear regime where Inline graphic is sufficiently small such that the perturbative method converges. As the nondimensional constant Inline graphic is increased beyond the breakdown point of the perturbative method, direct numerical solutions of the equations of motion reveal subharmonic oscillations, and eventually, chaotic oscillations.

  • The fact that the Fourier transform yields the steady-state solution has been explained in our earlier work [7]. By fixing an arbitrary set of initial conditions and using the Laplace transform to derive the full solution, one can show that after the decay of transients, the part of the solution that remains is precisely what we obtain using the Fourier transform. This also explains why it was not necessary for us to specify initial conditions for (4) in our derivation above—the initial conditions only influence the decaying transient part of the solution.

Iterative Algorithm

The perturbative method developed above shows us that the solution Inline graphic is a sum of harmonics where the fundamental frequency is given by the input frequency Inline graphic. This implies that the steady-state solution Inline graphic is periodic with period Inline graphic. This observation leads us to ask whether it is possible to directly solve for the Fourier coefficients of Inline graphic without first expanding in powers of Inline graphic. In this section, we develop a fixed point iteration scheme that accomplishes this task.

First, we integrate both sides of (8) from Inline graphic to Inline graphic to derive

graphic file with name pone.0078009.e187.jpg (20)

We show below that as long as the network contains at least one half-edge, Inline graphic is invertible. Hence (20) implies

graphic file with name pone.0078009.e189.jpg (21)

This means there is no zero/DC mode present in Inline graphic, motivating the Fourier series expansion

graphic file with name pone.0078009.e191.jpg (22)

In order to compute the solution, we truncate at Inline graphic, leading to an approximation Inline graphic:

graphic file with name pone.0078009.e194.jpg (23)

Using orthogonality we derive

graphic file with name pone.0078009.e195.jpg

Using the Inline graphic-periodicity of Inline graphic and integration by parts, we have

graphic file with name pone.0078009.e198.jpg

To simplify notation, we combine (1) and (5) and write Inline graphic where

graphic file with name pone.0078009.e200.jpg (24)

Now let Inline graphic denote the Kronecker delta function which equals Inline graphic if Inline graphic, and Inline graphic otherwise. We multiply both sides of (8) by Inline graphic, integrate from Inline graphic to Inline graphic, and finally divide by Inline graphic to obtain

graphic file with name pone.0078009.e209.jpg (25)

where Inline graphic was defined in (15) and

graphic file with name pone.0078009.e211.jpg (26)

Because the form of the nonlinearity is simple, we can insert (23) into (26) and derive

graphic file with name pone.0078009.e212.jpg (27)

with the understanding that Inline graphic, Inline graphic for Inline graphic, and Inline graphic for Inline graphic. We insert (27) into (25) and obtain

graphic file with name pone.0078009.e218.jpg

We convert this into an iterative scheme in a natural way. Let Inline graphic denote the Inline graphic-th iterate, and assume that Inline graphic terms appearing on the left-hand side are at iteration Inline graphic, while those appearing on the right-hand side are at iteration Inline graphic. Let Inline graphic denote the Inline graphic complex matrix whose Inline graphic-th column is Inline graphic. Then the scheme is

graphic file with name pone.0078009.e228.jpg (28)

where the Inline graphic-th column of the matrix Inline graphic is

graphic file with name pone.0078009.e231.jpg (29)

Here we assume Inline graphic, which is also why we have deleted the second Kronecker delta from the right-hand side.

Starting at Inline graphic, we iterate forward using (28), stopping the computation when Inline graphic is below a specified tolerance. Note that in our implementation of Inline graphic, we precompute and store the LU factorization for the Inline graphic matrices Inline graphic, since this part of the computation of the right-hand side of (29) does not change from one iteration to the next.

Again, we have derived the algorithm but have not proven its convergence. Instead, we will demonstrate empirically that the algorithm converges using several numerical tests.

Inverse Problem

In this section, we consider the inverse problem of finding a set of inductances such that Inline graphic, the Laplacian defined by (6), achieves a desired spectrum. Before describing an algorithm to solve this inverse problem, we review basic spectral properties of Inline graphic.

Lemma 1. Assume all inductances are positive. Then Inline graphic as defined in (6) is symmetric positive semidefinite, and all its eigenvalues must be nonnegative.

Proof. Let Inline graphic be the diagonal matrix whose Inline graphic-th element on the diagonal is Inline graphic, for Inline graphic. Since Inline graphic, the matrix Inline graphic is real. Then Inline graphic, and for any Inline graphic, we have Inline graphic  =  Inline graphic.

Let Inline graphic denote the spectrum of Inline graphic, with eigenvalues arranged in nondecreasing order: Inline graphic. The above argument shows that Inline graphic. We can be more precise about this: if there are no half-edges, then Inline graphic, while the presence of at least one half-edge causes Inline graphic.

Lemma 2. Let Inline graphic be a connected graph with Inline graphic nodes, Inline graphic edges, and zero half-edges. For a particular orientation of the graph, let Inline graphic denote the signed incidence matrix. Then Inline graphic.

Proof. Let Inline graphic be any integer from Inline graphic to Inline graphic. Consider any subset Inline graphic of Inline graphic vertices of the graph. Take the sum of the rows of the incidence matrix corresponding to the elements of Inline graphic. This sum cannot be zero; if it were, there would be no path connecting Inline graphic to the complement Inline graphic and the resulting graph would not be connected. Hence the sum of these rows must contain a nonzero entry. As the same would be true if we considered linear combinations of the rows corresponding to Inline graphic, we conclude that any subset of at most Inline graphic rows must be linearly independent. At the same time, if we take the sum of all the rows we get a zero row, because each column contains precisely one Inline graphic and one Inline graphic.

Lemma 3. Let Inline graphic be a connected graph with Inline graphic nodes, Inline graphic edges, and Inline graphic half-edges. For a particular orientation of the graph, let Inline graphic denote the signed incidence matrix. Then Inline graphic.

Proof. Without loss of generality, we can assume that the Inline graphic incidence matrix Inline graphic is organized such that the first Inline graphic columns correspond to full edges, while columns Inline graphic correspond to half-edges. Now choose any Inline graphic such that Inline graphic, and examine column Inline graphic of Inline graphic. Let Inline graphic be the unique row in which this column contains Inline graphic. Since row Inline graphic of Inline graphic is the only row that contains an entry in column Inline graphic, row Inline graphic is linearly independent from the other Inline graphic rows of Inline graphic. By Lemma 2, the submatrix of Inline graphic consisting of all rows other than row Inline graphic has rank Inline graphic. Including row Inline graphic increases the rank by one, yielding a rank Inline graphic matrix.

Lemma 4. For a connected graph Inline graphic with Inline graphic nodes, Inline graphic edges, and Inline graphic half-edges, let Inline graphic be the edge-weighted graph Laplacian defined in (6). Assume all inductances are positive. Then Inline graphic.

Proof. The Inline graphic diagonal matrix Inline graphic has rank Inline graphic. Let Inline graphic be the signed incidence matrix for a particular orientation of Inline graphic. By Lemma 3, Inline graphic, implying Inline graphic, which implies Inline graphic.

Corollary 1. Let Inline graphic, Inline graphic and the inductances satisfy the hypotheses of Lemma 4. Then Inline graphic is symmetric positive definite and all eigenvalues of Inline graphic are positive, i.e., Inline graphic.

Proof. Combine Lemmas 1 and 4.

We now describe an algorithm that quantifies how we must change the vector of inductances Inline graphic in order to make Inline graphic have a desired set of eigenvalues. In what follows, we assume we work with a system that satisfies the hypotheses of Corollary 1.

For Inline graphic, let Inline graphic denote a vector of desired eigenvalues satisfying

graphic file with name pone.0078009.e324.jpg

We treat the vector of inductances Inline graphic as a variable, and let Inline graphic denote the sorted vector of eigenvalues of the graph Laplacian Inline graphic defined in (6). Since Inline graphic is symmetric, it possesses an orthonormal basis of eigenvectors. We assume that Inline graphic is the normalized eigenvector corresponding to Inline graphic.

Now let Inline graphic be the function

graphic file with name pone.0078009.e332.jpg (30)

We now apply a version of Newton's method to find a zero of this function. To use Newton's method we will need to compute the Jacobian Inline graphic. Let primes denote differentiation with respect to Inline graphic. To form the Jacobian we need to find

graphic file with name pone.0078009.e335.jpg

We proceed by implicit differentiation, starting from the eigenvector equation

graphic file with name pone.0078009.e336.jpg

Differentiating both sides with respect to Inline graphic, and omitting the dependence on Inline graphic, we obtain

graphic file with name pone.0078009.e339.jpg (31)

Since Inline graphic is symmetric,

graphic file with name pone.0078009.e341.jpg (32)

Multiplying (34) on the left by Inline graphic and using (35) together with Inline graphic, we obtain

graphic file with name pone.0078009.e344.jpg (33)

where

graphic file with name pone.0078009.e345.jpg

Using Inline graphic we can compute the entries of the Jacobian matrix and the corresponding Newton's method with pseudoinverse becomes

graphic file with name pone.0078009.e347.jpg (34)

where Inline graphic denotes the Moore-Penrose pseudoinverse.

Using (34) as shown might produce inductances such that the ratio of the largest to smallest inductance is too large. In order to avoid these large variations, we constrain Inline graphic. We incorporate these constraints using an active set approach, replacing Inline graphic by the function Inline graphic, where Inline graphic denotes the iteration number and Inline graphic denotes the number of constraints violated by Inline graphic. Let Inline graphic denote the functions

graphic file with name pone.0078009.e356.jpg (35)

For every constraint Inline graphic violated from below, we set Inline graphic. For every constraint Inline graphic violated from above, we set Inline graphic. Since the Inline graphic functions are continuously differentiable, it is easy to compute the Jacobian Inline graphic and then apply the algorithm

graphic file with name pone.0078009.e363.jpg (36)

Algorithm (36) can be used to alter all the eigenvalues of the system if Inline graphic and Inline graphic. Alternatively, one can set Inline graphic and only request the two smallest eigenvalues to be changed to Inline graphic and Inline graphic, respectively.

In the next section we show that altering the lowest eigenvalue Inline graphic is enough to cause higher energy transfer to the higher modes. To show, we will use (39) to change Inline graphic to some desired value, keeping Inline graphic constant. We note that since we do not constrain Inline graphic, they can change as a result of altering Inline graphic, but Inline graphic for Inline graphic will be maintained.

For all applications of this inverse problem algorithm described in the next section, we use (36) with the initial conditions Inline graphic and the constraint violation parameter Inline graphic.

Gap Tuning: Methodology

How does the steady-state voltage in the nonlinear circuit change as a function of the gap between the first two eigenvalues of the graph Laplacian Inline graphic? In this section, we address this question by combining the perturbative/iterative algorithms with the inverse problem algorithm. We describe numerical experiments designed to test the effect of closing the graph Laplacian's first eigenvalue gap on the circuit's ability to (a) transfer more energy to higher harmonics, and (b) generate higher-amplitude output signals.

We conduct our numerical experiments on three types of random graphs, all generated using the NetworkX package [39]:

  • Barabási-Albert (BA), a preferential attachment model with one parameter, Inline graphic, the number of edges to draw between each new node and existing nodes [40]. We set Inline graphic in our experiments.

  • Watts-Strogatz (WS), a small world model with two parameters, Inline graphic, the number of nearest neighbor nodes to which each node is initially connected, and Inline graphic, the probability of rewiring each edge [41]. In our experiments, we set Inline graphic and Inline graphic.

  • Erdös-Rényi (ER), a classical model in which edges are drawn independently with uniform probability Inline graphic [42]. In our experiments, we set Inline graphic.

When we produce realizations of any of these graphs, we accept only those graphs that are connected. Suppose we have used one of these three models to generate a connected, random graph with Inline graphic nodes. To make this a concrete circuit problem, we set Inline graphic for all nodes Inline graphic, and Inline graphic for all edges Inline graphic. We fix the nonlinearity parameter Inline graphic. We select Inline graphic nodes uniformly at random, and attach half-edges to these nodes with inductance Inline graphic. For each node Inline graphic, we set the conductance Inline graphic for the BA and WS graphs, and Inline graphic for the ER graphs. This selection will be explained in more detail below.

With these parameters set, we have enough information to compute the graph Laplacian Inline graphic defined by (6). As we did before, let Inline graphic denote the eigenvalues of Inline graphic sorted in increasing order. We set the forcing frequency Inline graphic. Since this value is a resonant frequency of the linear, undamped system we expect it lies close to a resonance for the nonlinear, damped system. The type of forcing we consider is Inline graphic, a special case of (1) with Inline graphic.

With this setup, we use both the perturbative method and the iterative method to compute the steady-state solution Inline graphic. For the perturbative method, we solve up to order Inline graphic, and for the iterative method, we solve using Inline graphic modes. This means that the iterative scheme captures ten modes—Inline graphic through Inline graphic—that are not captured by the perturbative scheme. We compare the two solutions as a check for whether the number of modes we have considered is sufficient. In all tests, we find that there is no significant difference between the solutions, implying that the first Inline graphic harmonics—Inline graphic through Inline graphic—are sufficient to resolve the solution.

Since Inline graphic, the capacitance model (7) is valid only for Inline graphic. For all computed solutions, we check that the maximum voltage across all nodes in one cycle satisfies this constraint.

One quantity of interest in our simulations is the amount of energy in the higher harmonics. Let Inline graphic be an Inline graphic complex matrix such that the Inline graphic-th column of Inline graphic contains the Fourier coefficients of the Inline graphic mode over all Inline graphic nodes. Here Inline graphic goes from Inline graphic to Inline graphic, the maximum mode to which the solution is computed. We then define

graphic file with name pone.0078009.e423.jpg (37)

the fraction of energy in modes Inline graphic and higher, averaged over all nodes. We also compute

graphic file with name pone.0078009.e425.jpg (38)

the maximum magnitude voltage produced anywhere in the circuit during one period. For both Inline graphic and Inline graphic, the subscript “pre” denotes that these quantities have been computed before we change Inline graphic to manipulate the eigenvalues of Inline graphic.

Having computed Inline graphic, we now study how this fraction changes when we reduce the gap between the first two eigenvalues of Inline graphic. For a fixed Inline graphic, we set Inline graphic and Inline graphic, and then apply the inverse problem algorithm.

Using (36), we solve for a vector of inductances Inline graphic such that the first two eigenvalues of Inline graphic are given by Inline graphic and Inline graphic. When we iterate forward using (36), if we find that Inline graphic after 200 iterations, we generate a new random graph and restart the experiment.

We recompute the graph Laplacian Inline graphic using the new vector inductances Inline graphic, and again apply the perturbative and iterative algorithms to solve for the steady-state solution Inline graphic. Using this solution, we compute the energy in the higher harmonics using the right-hand side of (37), now labeling this average fraction as Inline graphic. We also compute the right-hand side of (38) and label this quantity as Inline graphic.

Let us now describe how we choose the particular values of the conductance Inline graphic and the eigenvalue fraction Inline graphic. In Table 3, we tabulate Inline graphic, the gap between the second and first eigenvalue for each of the three types of random graphs described above. The eigenvalue gaps we present are averaged over Inline graphic simulations for each of four graph sizes: Inline graphic.

Table 3. Eigenvalue gaps for random graphs.

Inline graphic Inline graphic Inline graphic Inline graphic
Barabási-Albert (BA) 0.6408 0.3561 0.3155 0.2850
Watts-Strogatz (WS) 1.4180 1.3255 1.2970 1.2758
Erdös-Rényi (ER) 1.5469 8.6936 17.7061 26.5297

For each of three types of random graphs, we vary the number of nodes Inline graphic and record the first eigenvalue gap Inline graphic. The displayed results have been averaged over Inline graphic realizations.

We observe that the eigenvalue gaps for the BA and WS graphs do not change appreciably as a function of Inline graphic, while for ER graphs, the gaps grow quickly as a function of Inline graphic. Our choice of Inline graphic is guided by these results. For BA and WS graphs, we choose Inline graphic. For ER graphs, we choose Inline graphic.

When we solve for the steady-state voltages on these three types of graphs, we also notice a difference. For ER graphs, the maximum voltage grows quickly as a function of Inline graphic, while for BA and WS graphs, the same phenomenon does not occur. To counteract the large growth of maximum voltages for large graph sizes, we set the conductance Inline graphic to the larger value of Inline graphic for ER graphs, causing more energy to dissipate through resistors. For BA and WS graphs, we set Inline graphic to Inline graphic.

Results and Discussion

Comparison of Steady-State Algorithms

In this section, we compare steady-state solutions computed by numerical integration against the solutions computed using the perturbative and iterative methods derived earlier.

For the tests described in this section, the domain is a Inline graphic square lattice with Inline graphic nodes. Nodes along the left and bottom boundaries of the lattice are driven by input forcing. The input provided is Inline graphic with Inline graphic. For the capacitance model (7), we set Inline graphic and Inline graphic. For each edge Inline graphic, we set Inline graphic. The conductance Inline graphic is set to Inline graphic at all points except for the top-right corner, where it is set to Inline graphic.

To compare the results of the perturbative and iterative methods against the numerical integrator, we will need to obtain the steady-state solution using the numerical integrator. To do this, we start at Inline graphic and numerically integrate the first-order system (2–3) forward in time for Inline graphic cycles. The ODE solver uses the Dormand-Prince (dopri5) method with relative and absolute tolerances equal to Inline graphic and Inline graphic, respectively. For the parameters given above, this number of cycles is sufficient so that, from one cycle to the next, the change in the solution is on the order of the relative tolerance of the numerical integrator. Hence we take the solution over the last cycle to be the steady-state solution.

As a preliminary check, we directly compare the three steady-state solutions. We treat the solution obtained from numerical time integration as a reference solution Inline graphic. Let Inline graphic denote either the perturbative or iterative solution after Inline graphic iterations—for the perturbative method, the iteration count is defined as the largest mode number present in the solution. Let Inline graphic be the period of the steady-state solution, and for an integer Inline graphic, consider the equispaced discretization of the interval Inline graphic given by Inline graphic. For each iteration Inline graphic, we evaluate both the the perturbative/iterative and reference solution on this equispaced grid with Inline graphic points, and we compute the error

graphic file with name pone.0078009.e491.jpg (39)

In Figure 5 we have plotted Inline graphic as a function of the iteration Inline graphic. While both methods initially tend towards the reference solution, we see from Figure 5 that the error does not drop below Inline graphic. In the following subsections, we provide evidence that the reference solution is less accurate than the solutions computed using the perturbative/iterative methods. This explains why the error in Figure 5 does not go to zero, i.e., why the perturbative/iterative methods will not converge to the solution produced by time integration.

Figure 5. Error between perturbative/iterative solutions and reference solution.

Figure 5

The reference solution has been computed via numerical time integration. We plot the log of the error as a function of the number of iterations. As shown in Figures 6 and 7 together with Tables 4 and 5, the perturbative/iterative solutions are more accurate than the reference solution. This explains why, in the above plot, the perturbative and iterative solutions do not converge to the reference solution.

Our first tests concern the Fourier coefficients of the computed solutions. In what follows, we use Inline graphic to denote the vector of Fourier series coefficients associated with a steady-state solution computed using any of the three methods discussed above.

Fixed Point Error

Suppose that Inline graphic is an exact Inline graphic-periodic steady-state solution of (4). If we were to expand this solution in a Fourier series as in (22), the resulting (infinite) coefficient vector Inline graphic would satisfy Inline graphic for all Inline graphic, with Inline graphic as in (29).

In both the perturbative and iterative methods, what we seek is a finite-mode truncation of the exact solution. For the iterative method we fix Inline graphic so that the highest mode has frequency Inline graphic. In the perturbative method we solve, we solve up to order Inline graphic, which implies that the highest mode in the solution has frequency Inline graphic.

Combining the ideas of the last two paragraphs, it is natural to use

graphic file with name pone.0078009.e514.jpg (40)

as an error metric for the Inline graphic-mode truncation of the exact solution. In Table 4, we record (40) for solutions computed using the perturbative, iterative, and numerical integration methods. Note that the iterative and perturbative methods directly provide us with the Fourier coefficients necessary for this calculation. We compute the Fourier coefficients of the numerical integrator's solution using the FFT. Table 4 shows that the perturbative and iterative solutions are about five orders of magnitude closer to being fixed points of Inline graphic than the solution obtained from numerical integration.

Table 4. Comparison of the three solutions using the fixed point error metric (40).
Scheme Inline graphic
Numerical Inline graphic
Perturbative Inline graphic
Iterative Inline graphic

For the perturbative and iterative methods, let us examine how the fixed point error (40) decreases as a function of iteration count. In Figure 6, we plot Inline graphic versus the iteration number Inline graphic. Here Inline graphic is the vector of Fourier coefficients for the solution computed after only Inline graphic iterations. The plot shows that, for both the perturbative and iterative methods, approximately Inline graphic iterations are required to match the fixed point error of the solution computed using time integration. The error of this latter solution, taken from Table 4, is represented on Figure 6 by a horizontal black line.

Figure 6. Log of the fixed point error (40) of the perturbative/iterative solutions after Inline graphic iterations.

Figure 6

Up to iteration Inline graphic, both curves are close to linear with slopes of Inline graphic (perturbative) and Inline graphic (iterative), indicating exponential convergence of both methods. Note that only Inline graphic iterations are required to reach error values corresponding to that of the numerical integrator's solution.

Figure 6 also shows that the perturbative and iterative methods converge exponentially in the number of iterations. From iteration Inline graphic until iteration Inline graphic, fitting lines of best fit to the perturbative and iterative error curves results in slopes of Inline graphic and Inline graphic, respectively. For both methods, this can be approximated by writing Inline graphic. After Inline graphic iterations, the error has approached machine epsilon, and both curves level off before reaching the final values shown in Table 4.

Decay Rate

Suppose we write the first-order system (2–3) in the form Inline graphic, with Inline graphic. Then on the open set Inline graphic, the vector field Inline graphic is Inline graphic, i.e., Inline graphic is Inline graphic times continuously differentiable for any integer Inline graphic. By the standard existence/uniqueness theorem for ordinary differential equations, it follows that wherever the solution Inline graphic exists, it must also be Inline graphic in Inline graphic.

The above observation enables us to test the decay of the Fourier coefficients of all three solutions. For if the steady-state solution Inline graphic is Inline graphic in Inline graphic, then the Fourier series coefficients of Inline graphic must satisfy the following decay property:

graphic file with name pone.0078009.e548.jpg (41)

To examine the decay of the Fourier coefficients for the three computed solutions, we plot Inline graphic versus Inline graphic in Figure 7. For the perturbative and iterative solutions, the curves on the plot coincide and are nearly linear with slope Inline graphic. This implies that Inline graphic, which is sufficient to satisfy the theoretical decay rate given by (41).

Figure 7. Decay of Fourier coefficients.

Figure 7

We plot Inline graphic versus Inline graphic to illustrate the decay of Fourier coefficients for the three methods. The iterative and perturbative curves coincide and are nearly linear with slope Inline graphic; the exponential decay of these Fourier coefficients is consistent with theory. The time integrator's Fourier coefficients do not decay after mode Inline graphic, violating the theoretical decay rate.

The Fourier coefficients obtained from the numerical integrator's solution, on the other hand, do not decay at all beyond mode Inline graphic. This violates the theoretical decay rate (41) even for Inline graphic.

Energy Conservation

Next we test the energy conservation properties of the three computed solutions. We proceed to derive an energy balance equation. Because our capacitors are voltage-dependent, the charge Inline graphic and voltage Inline graphic are related via Inline graphic, which implies

graphic file with name pone.0078009.e562.jpg

Using this in (3) together with (2), we obtain

graphic file with name pone.0078009.e563.jpg (42)

Let Inline graphic be the total energy stored in the magnetic fields of all inductors at time Inline graphic. Then

graphic file with name pone.0078009.e566.jpg

the first term on the left-hand side of (42). Let Inline graphic be the total energy stored in the electric fields of all capacitors at time Inline graphic. Then

graphic file with name pone.0078009.e569.jpg

the second term on the left hand side of (42). Hence (42) reads:

graphic file with name pone.0078009.e570.jpg (43)

If the system has reached a Inline graphic-periodic steady state, then Inline graphic, Inline graphic, Inline graphic, and Inline graphic will all be Inline graphic-periodic. Therefore, integrating (43) in Inline graphic from Inline graphic to Inline graphic, we find that the left-hand side vanishes. The remaining terms yield the following energy balance equation:

graphic file with name pone.0078009.e580.jpg (44)

The left-hand side is the energy pumped into the system over one cycle, while the right-hand side denotes the energy dissipated through resistors, again over one cycle.

Table 5 shows the absolute difference between the left- and right-hand sides of (44), computed for each of the three methods. We find that for the perturbative and iterative methods' energy balance errors are below machine epsilon. The numerical integrator yields an error approximately five orders of magnitude larger than that of the two other methods.

Table 5. Comparison of the three solutions' preservation of the energy balance (44).
Scheme Inline graphic
Numerical Inline graphic
Perturbative Inline graphic
Iterative Inline graphic

Computational Time

The results presented thus far indicate that whether we measure error using the fixed point error (40) or the violation of the energy balance (44), the solution obtained via numerical integration has errors that are approximately five orders of magnitude larger than that of the perturbative/iterative methods. The actual values of the errors committed by the numerical integrator in Tables 4 and 5, as well as the final error values for the curves in Figure 5, are close to the numerical integration relative and absolute tolerances of Inline graphic and Inline graphic, respectively. We hypothesize that, if computational time were not an issue, we could run the numerical integrator with smaller tolerances and obtain steady-state solutions that more closely match, in the same error metrics described above, the perturbative and iterative solutions.

As we now proceed to show, computational time is a major issue for the time integration method. In Table 6, we record the time required to compute steady-state solutions using the three methods. We see from the Time I column that to achieve the error of Inline graphic in Table 4, the numerical integrator requires over Inline graphic seconds. We know from Figure 6 that the perturbative/iterative methods require Inline graphic iterations to achieve approximately the same error as the time integrator; the remaining entries in the Time I column show that both the perturbative and iterative algorithms compute such a solution hundreds of times faster than the time integrator.

Table 6. Timing results for three frequency response algorithms.
Scheme Time I (to achieve comparable error) Time II (to achieve Inline graphic error)
Numerical Inline graphic s N/A
Perturbative Inline graphic s Inline graphic s
Iterative Inline graphic s Inline graphic s

For the numerical method, Time I records the time required to integrate forward by Inline graphic cycles and obtain a solution with fixed point error Inline graphic as in Table 4. For the perturbative/iterative methods, Time I records the time required to compute Inline graphic iterations, resulting in a fixed point error comparable to that of the numerical method—see the crossing of the curves with the black horizontal line in Figure 6. For the perturbative/iterative methods, we also record under Time II the time required to achieve the Inline graphic errors as in Table 4. All times are averaged over Inline graphic runs.

The Time II column in Table 6 records how long it takes the perturbative/iterative algorithms to achieve the errors recorded in Table 4. Observe that even if we run the perturbative/iterative algorithms all the way to full convergence, they are much faster than time integration. In this case, the time integrator is Inline graphic (respectively, Inline graphic) times slower than the iterative (respectively, perturbative) algorithm.

Note that the perturbative and iterative algorithms were implemented in Python using the Numpy/Scipy packages. The dopri5 implementation used for numerical time integration is the implementation provided by the scipy.integrate.ode module. All times reported are average times across Inline graphic runs on the same machine.

Gap Tuning

For each Inline graphic, and for each of Inline graphic values Inline graphic chosen in an equispaced fashion from the intervals given above, we compute Inline graphic runs of the complete procedure described above—see Gap Tuning: Methodology. For each such run, we compute pre/post values of Inline graphic and Inline graphic for three values of the input forcing amplitude, which we take to be the same at all input nodes Inline graphic: Inline graphic. These results for Inline graphic and Inline graphic, averaged over the Inline graphic runs, are plotted in Figures 8, 9, and 10.

Figure 8. Barabási-Albert random graph results.

Figure 8

From left to right, we present results for Barabási-Albert random graphs with Inline graphic, Inline graphic, Inline graphic, and Inline graphic nodes. For each graph, we use algorithm (36) to modify the inductances Inline graphic such that the ratio of the smallest to the second smallest eigenvalue is Inline graphic. We use pre and post to denote, respectively, the graphs before and after algorithm (36) is applied. By shrinking the gap between the first two eigenvalues, the energy transferred to higher harmonics (37) can be increased from approximately Inline graphic% to Inline graphic% (for all graph sizes), and the maximum voltage (38) can be increased from Inline graphic volts to Inline graphic volts (depending on the graph size). We also note that for larger graphs, choosing Inline graphic (i.e., no gap between the first two eigenvalues) does not yield optimal behavior.

Figure 9. Watts-Strogatz random graph results.

Figure 9

From left to right, we present results for Watts-Strogatz random graphs with Inline graphic, Inline graphic, Inline graphic, and Inline graphic nodes. For each graph, we use algorithm (36) to modify the inductances Inline graphic such that the ratio of the smallest to the second smallest eigenvalue is Inline graphic. We use pre and post to denote, respectively, the graphs before and after algorithm (36) is applied. By shrinking the gap between the first two eigenvalues, the energy transferred to higher harmonics (37) can be increased from Inline graphic% to Inline graphic% (for all graph sizes), and the maximum voltage (38) can be increased from Inline graphic volts to Inline graphic volts (for all graph sizes). The values of Inline graphic for Watts-Strogatz graphs are about twice as large as the values of Inline graphic for Barabási-Albert graphs in Figure 8.

Figure 10. Erdös-Rényi random graph results.

Figure 10

From left to right, we present results for Erdös-Rényi random graphs with Inline graphic, Inline graphic, Inline graphic, and Inline graphic nodes. For each graph, we use algorithm (36) to modify the inductances Inline graphic such that the ratio of the smallest to the second smallest eigenvalue is Inline graphic. We use pre and post to denote, respectively, the graphs before and after algorithm (36) is applied. By shrinking the gap between the first two eigenvalues, the energy transferred to higher harmonics (37) can be increased to Inline graphic% (depending on the graph size), and the maximum voltage (38) can be increased to Inline graphic (depending on the graph size). The results for Erdös-Rényi graphs are much more strongly dependent on the number of nodes Inline graphic than the results shown in Figures 8 or 9. Note that the peak voltages for the Inline graphic graphs with forcing amplitude Inline graphic are the largest voltages for any graphs considered in this paper. We can increase the peak voltages for smaller graphs by choosing a smaller value of the conductance than Inline graphic (for all nodes Inline graphic), the value used to compute the results in this figure.

Figure 8 shows the results for Barabási-Albert (BA) graphs. By shrinking the gap between the first two eigenvalues, the percentage of energy transferred to higher harmonics (37) can be increased by approximately one order of magnitude, for all graph sizes, while the maximum magnitude voltage (38) can be increased by a factor of Inline graphic to Inline graphic, depending on the graph size. Note that for larger graphs, choosing Inline graphic, i.e., forcing the first two eigenvalues to coincide, does not yield optimal energy transfer to higher harmonics.

The results in Figure 9 for Watts-Strogatz (WS) graphs are similar to those for BA graphs. We again find that by shrinking the gap between the first two eigenvalues, the energy transferred to higher harmonics (37) can be increased. However, the values of Inline graphic for Watts-Strogatz graphs are about twice as large as the values of Inline graphic for Barabási-Albert graphs in Figure 8. For all graph sizes, tuning the eigenvalue gap can increase the percentage of energy transferred to higher harmonics by a factor of up to Inline graphic, while the maximum magnitude voltage can be increased by approximately one order of magnitude.

In Figure 10, we present the results for Erdös-Rényi graphs. The results again support the finding that by shrinking the gap between the first two eigenvalues, the circuit can transfer more energy to higher harmonics and boost the peak magnitude of output signals. Specifically, we see that the energy transferred to higher harmonics (37) can be increased to Inline graphic%, and the maximum voltage (38) can be increased to Inline graphic.

The results for Erdös-Rényi graphs are much more strongly dependent on the number of nodes Inline graphic than the results shown in Figures 8 or 9. Note that the peak voltages for the Inline graphic graphs with forcing amplitude Inline graphic are the largest voltages for any graphs considered in this paper. We can increase the peak voltages for smaller graphs by choosing a smaller value of the conductance than Inline graphic (for all nodes Inline graphic), the value used to compute the results in Figure 10.

For all three types of graphs, both pre and post values of Inline graphic and Inline graphic increase as a function of the input forcing amplitude.

Code

All code necessary to reproduce the above results have been posted as a public repository on GitHub, accessible at the following URL: https://github.com/GarnetVaz/Nonlinear-electrical-oscillators

We use Python together with the numpy, scipy, matplotlib, and networkx modules for all numerical computing. The code that generates Figures 8, 9, and 10 is set to utilize Inline graphic processors using the open-source multiprocessing module. For plotting, we use R together with the ggplot2, plyr, and reshape packages. All languages, packages and modules used are open source.

Assuming all packages and modules have been correctly installed, one can reproduce all results by running the Python codes numerical_comparison.py and graphmulti.py. The latter code may require several hours to run. The Python codes will generate figures using R; the R codes we provide need not be run independently.

Further details on how to run the codes, including the specific versions of required packages and modules, are given in the README.md file at the URL given above.

The code that we provide can easily be modified to run simulations not described here. For example, one can compare the perturbative/iterative algorithms against numerical integration using graphs other than the Inline graphic grid graph used above. One can also explore gap tuning results for random graphs with different parameters than the ones we have chosen.

Conclusion

For nonlinear electrical circuits on arbitrary connected graphs, we have developed two numerical methods to compute the steady-state voltage. Using both absolute metrics and relative comparisons with a solution obtained via direct numerical integration, we validated the new algorithms. The results show that for the same error tolerance, both the perturbative and iterative methods are orders of magnitude faster than the solution obtained by time stepping. Moreover, these methods are able to capture the behavior in high Fourier modes and converge to machine precision in a fixed point error metric.

In future work, we plan to apply the steady-state algorithms developed above to solve Maxwell's equations in nonlinear electromagnetic media [26]. This application makes use of the correspondence between the nonlinear electrical network and a finite volume discretization of Maxwell's equations on an unstructured mesh.

In order to enhance the nonlinearity-driven features of these circuits, we developed a Newton-like algorithm that alters the eigenvalues of a network's graph Laplacian. The algorithm leaves the topology of the network untouched, changing only the inductances, i.e., the edge weights. By applying the Newton-like algorithm to three types of random graphs, we showed that reducing the gap between the graph Laplacian's first two eigenvalues leads to enhanced nonlinear behavior. Comparing pre- and post-optimized circuits, it is evident that optimizing the eigenvalue gap significantly increases (i) energy transfer from the fundamental driving frequency to higher harmonics, and (ii) the maximum magnitude output voltage.

In both the perturbative and iterative algorithm, the only way in which the network's structure influences its frequency response is through the graph Laplacian matrix. In our experiments, we have tuned this graph Laplacian's first eigenvalue gap by holding the topology of the graph constant and altering the edge weights, i.e., inductances. What if we had instead tuned the gap by holding the edge weights constant and altering the topology of the graph? This would amount to altering the incidence matrix Inline graphic instead of the inductance vector Inline graphic. So long as both types of alterations result in the same graph Laplacian Inline graphic, our results indicate that the nonlinear electrical network's functionality should be enhanced significantly. This, of course, leads to the question of whether it is possible to algorithmically alter the network topology to achieve a particular graph Laplacian matrix, an interesting avenue for further work.

Acknowledgments

The authors thank the UC Merced Open Access Fund Pilot for covering this article's open access publication costs.

Funding Statement

The authors have no support or funding to report.

References

  • 1. Lilis GN, Park J, Lee WE, Li G, Bhat HS, et al. (2010) Harmonic generation using nonlinear LC lattices. IEEE Transactions on Microwave Theory and Techniques 58: 1713–1723. [Google Scholar]
  • 2. Momeni O, Afshari E (2011) A broadband mm-wave and terahertz traveling-wave frequency multiplier on CMOS. IEEE Journal of Solid-State Circuits 46: 2966–2976. [Google Scholar]
  • 3. Lee W, Adnan M, Momeni O, Afshari E (2012) A nonlinear lattice for high-amplitude picosecond pulse generation in CMOS. IEEE Transactions on Microwave Theory and Techniques 60: 370–380. [Google Scholar]
  • 4. Lee W, Afshari E (2012) A CMOS noise-squeezing amplifier. IEEE Transactions on Microwave Theory and Techniques 60: 329–339. [Google Scholar]
  • 5.Han R, Afshari E (2013) A 260GHz broadband source with 1.1mWcontinuous-wave radiated power and EIRP of 15.7dBm in 65nm CMOS. In: Solid-State Circuits Conference Digest of Technical Papers (ISSCC), 2013 IEEE International. pp. 138–139.
  • 6. Han R, Afshari E (2013) A high-power broadband passive terahertz frequency doubler in CMOS. IEEE Transactions on Microwave Theory and Techniques 61: 1150–1160. [Google Scholar]
  • 7. Bhat HS, LeeW, Lilis GN, Afshari E (2010) Steady-state perturbative theory for nonlinear circuits. Journal of Physics A: Mathematical and Theoretical 43: 205101. [Google Scholar]
  • 8. Landauer R (1960) Shock waves in nonlinear transmission lines and their effect on parametric amplification. IBM Journal of Research and Development 4: 391–401. [Google Scholar]
  • 9. Landauer R (1960) Parametric amplification along nonlinear transmission lines. Journal of Applied Physics 31: 479–484. [Google Scholar]
  • 10. Hirota R, Suzuki K (1970) Studies on lattice solitons by using electrical networks. Journal of the Physical Society of Japan 28: 1366–1367. [Google Scholar]
  • 11. Case M, Kamegawa M, Yu R, Rodwell MJW, Franklin J (1991) Impulse compression using soliton effects in a monolithic GaAs circuit. Applied Physics Letters 58: 173–175. [Google Scholar]
  • 12. Case M, Carman E, Yu R, Rodwell MJW, Kamegawa M (1992) Picosecond duration, large amplitude impulse generation using electrical soliton effects. Applied Physics Letters 60: 3019–3021. [Google Scholar]
  • 13. Afshari E, Hajimiri A (2005) Nonlinear transmission lines for pulse shaping in silicon. IEEE Journal of Solid-State Circuits 40: 744–752. [Google Scholar]
  • 14. Ostrovskii LA, Papko VV, Stepanyants YA (1980) Solitons and nonlinear resonance in two-dimensional lattices. Zhurnal Eksperimental'noi i Teoreticheskoi Fiziki 78: 831–841. [Google Scholar]
  • 15. Stepanyants YA (1981) Experimental investigation of cylindrically diverging solitons in an electric lattice. Wave Motion 3: 335–341. [Google Scholar]
  • 16. Stepanyants YA (1983) Experimental study of “Cerenkov” radiation from solitons in twodimensional LC-lattices. Radiophysics and Quantum Electronics 26: 601–607. [Google Scholar]
  • 17. Afshari E, Bhat HS, Hajimiri A, Marsden JE (2005) Extremely wideband signal shaping using one- and two-dimensional nonuniform nonlinear transmission lines. Journal of Applied Physics 99: 054901. [Google Scholar]
  • 18. Bhat HS, Afshari E (2008) Nonlinear constructive interference in electrical lattices. Physical Review E 77: 066602. [DOI] [PubMed] [Google Scholar]
  • 19. Bhat HS, Osting B (2009) The zone boundary mode in periodic nonlinear electrical lattices. Physica D 238: 1216–1228. [Google Scholar]
  • 20. Wyart M, Liang H, Kabla A, Mahadevan L (2008) Elasticity of floppy and stiff random networks. Physical Review Letters 101: 215501. [DOI] [PubMed] [Google Scholar]
  • 21. Monthus C, Garel T (2011) Random elastic networks: a strong disorder renormalization approach. Journal of Physics A: Mathematical and Theoretical 44: 085001. [Google Scholar]
  • 22. Tighe BP (2012) Dynamic critical response in damped random spring networks. Physical Review Letters 109: 168303. [DOI] [PubMed] [Google Scholar]
  • 23. DiDonna B, Lubensky T (2005) Nonaffine correlations in random elastic media. Physical Review E 72: 066619. [DOI] [PubMed] [Google Scholar]
  • 24. Togashi Y, Mikhailov AS (2007) Nonlinear relaxation dynamics in elastic networks and design principles of molecular machines. Proceedings of the National Academy of Sciences 104: 8697–8702. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25. Bhat HS, Osting B (2011) Kirchhoff's laws as a finite volume method for the planar Maxwell equations. IEEE Transactions on Antennas and Propagation 59: 3772–3779. [Google Scholar]
  • 26.Bhat HS, Vaz GJ (2013) Finite volume method for planar Maxwell equations in nonlinear media. In preparation.
  • 27. Boccaletti S, Latora V, Moreno Y, Chavez M, Hwang DU (2006) Complex networks: Structure and dynamics. Physics Reports 424: 175–308. [Google Scholar]
  • 28. Kori H, Mikhailov A (2006) Strong effects of network architecture in the entrainment of coupled oscillator systems. Physical Review E 74: 066115. [DOI] [PubMed] [Google Scholar]
  • 29. Park K, Huang L, Lai YC (2007) Desynchronization waves in small-world networks. Physical Review E 75: 026211. [DOI] [PubMed] [Google Scholar]
  • 30. Arenas A, Díaz-Guilera A, Kurths J, Moreno Y, Zhou C (2008) Synchronization in complex networks. Physics Reports 469: 93–153. [Google Scholar]
  • 31. Jalili M, Rad A, Hasler M (2008) Enhancing synchronizability of weighted dynamical networks using betweenness centrality. Physical Review E 78: 016105. [DOI] [PubMed] [Google Scholar]
  • 32. Donetti L, Hurtado PI, Muñoz MA (2005) Entangled networks, synchronization, and optimal network topology. Physical Review Letters 95: 188701. [DOI] [PubMed] [Google Scholar]
  • 33. Brede M (2008) Locals vs. global synchronization in networks of non-identical Kuramoto oscillators. The European Physical Journal B 62: 87–94. [Google Scholar]
  • 34. Brede M (2008) Construction principles for highly synchronizable sparse directed networks. Physics Letters A 372: 5305–5308. [Google Scholar]
  • 35. Dadashi M, Barjasteh I, Jalili M (2010) Rewiring dynamical networks with prescribed degree distribution for enhancing synchronizability. Chaos 20: 043119–043119-6. [DOI] [PubMed] [Google Scholar]
  • 36. Kelly D, Gottwald GA (2011) On the topology of synchrony optimized networks of a Kuramoto-model with non-identical oscillators. Chaos 21: 025110. [DOI] [PubMed] [Google Scholar]
  • 37. Yanagita T, Mikhailov AS (2012) Design of oscillator networks with enhanced synchronization tolerance against noise. Physical Review E 85: 056206. [DOI] [PubMed] [Google Scholar]
  • 38. Bhat HS, Osting B (2011) 2-D Inductor-capacitor lattice synthesis. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 30: 1483–1492. [Google Scholar]
  • 39.Hagberg AA, Schult DA, Swart PJ (2008) Exploring network structure, dynamics, and function using NetworkX. In: Proceedings of the 7th Python in Science Conference (SciPy2008). Pasadena, CA USA, pp. 11–15.
  • 40. Barabási AL, Albert R (1999) Emergence of scaling in random networks. Science 286: 509–512. [DOI] [PubMed] [Google Scholar]
  • 41. Watts DJ, Strogatz SH (1998) Collective dynamics of small-world networks. Nature 393: 440–442. [DOI] [PubMed] [Google Scholar]
  • 42. Erdős P, Rényi A (1960) On the evolution of random graphs. Magyar Tud Akad Mat Kutató Int Közl 5: 17–61. [Google Scholar]

Articles from PLoS ONE are provided here courtesy of PLOS

RESOURCES