5D Library › Five-Node Cyclic Network Dynamics, Solar-Longitude Ephemeris and Multi-Scale Oscillator Perturbations · 中文

Chapter 3. The Limit Cycle: Travelling Wave, Drifting Period and Amplitude Envelope

What the oscillation looks like

Chapter 2 showed that once self-limitation falls below threshold, the uniform state gives way to a stable oscillation. This chapter looks at its shape: in what order the five nodes peak, how long the period is, and what fixes the amplitude. The last question matches the outline’s “amplitude envelope of the limit cycle under asymmetric initial weights”, and the answer depends on whether the system is dissipative or conservative.

Travelling wave and period

Calculation

# Chapter 3. p06: Period, travelling wave and envelope of the ring's cycle.
# Same replicator ring as p05 (c1 = 1, c2 = 0.5, mu_c = 0.7135), RK4 in
# log coordinates, step 0.05.
# A. Period from upward crossings of x_0 through its mean, against the
#    linear prediction 2 pi 5 / |Im lambda_1| at the same mu, and the
#    order and spacing of the five nodes' peaks.
# B. Envelope: the range of x over the cycle from different starting
#    weights, including lopsided ones, for the dissipative ring (mu < mu_c)
#    and for the zero-sum (antisymmetric) ring of p05.
import cmath
import math

W = cmath.exp(2j * math.pi / 5)
C1, C2 = 1.0, 0.5
MUC = C1 * math.cos(math.radians(72)) + C2 * math.cos(math.radians(36))

def soft(u):
    m = max(u)
    e = [math.exp(a - m) for a in u]
    s = sum(e)
    return [a / s for a in e]

def ring(mu, anti=False):
    a = [[0.0] * 5 for _ in range(5)]
    for i in range(5):
        a[i][(i - 1) % 5] += C1
        a[i][(i - 2) % 5] -= C2
        a[i][i] -= mu
        if anti:
            a[i][(i + 1) % 5] -= C1
            a[i][(i + 2) % 5] += C2
    return a

def step(u, a, h):
    def f(v):
        x = soft(v)
        ax = [sum(a[i][j] * x[j] for j in range(5)) for i in range(5)]
        m = sum(p * q for p, q in zip(ax, x))
        return [w - m for w in ax]
    k1 = f(u)
    k2 = f([p + h / 2 * q for p, q in zip(u, k1)])
    k3 = f([p + h / 2 * q for p, q in zip(u, k2)])
    k4 = f([p + h * q for p, q in zip(u, k3)])
    return [p + h / 6 * (q + 2 * r + 2 * s + t)
            for p, q, r, s, t in zip(u, k1, k2, k3, k4)]

def trace(a, x0, burn, look, h=0.05):
    u = [math.log(v) for v in x0]
    for _ in range(int(burn / h)):
        u = step(u, a, h)
    out = []
    for n in range(int(look / h)):
        u = step(u, a, h)
        out.append((n * h, soft(u)))
    return out

if __name__ == "__main__":
    print("A. period and travelling wave")
    print("   mu_c - mu   simulated period   linear 2*pi*5/|Im l1|")
    for d in (0.01, 0.05, 0.2):
        mu = MUC - d
        tr = trace(ring(mu), [0.2 + 0.01 * (i == 0) for i in range(5)],
                   3000, 600)
        mean = sum(x[0] for _, x in tr) / len(tr)
        ups = [t for (t, x), (_, y) in zip(tr, tr[1:])
               if x[0] < mean <= y[0]]
        per = (ups[-1] - ups[0]) / (len(ups) - 1)
        lin = 2 * math.pi * 5 / abs((C1 * W ** -1 - C2 * W ** -2 - mu).imag)
        print("   {:8.2f}      {:8.2f}            {:8.2f}".format(
            d, per, lin))
    first = []
    for i in range(5):
        seg = [(t, x[i]) for t, x in tr if ups[0] <= t < ups[0] + per]
        first.append(max(seg, key=lambda r: r[1])[0])
    order = sorted(range(5), key=lambda i: first[i])
    lags = [(first[order[(k + 1) % 5]] - first[order[k]]) % per / per
            for k in range(5)]
    print("   peak order (mu_c - mu = 0.2): nodes {}".format(order))
    print("   successive lags as fractions of the period: {}".format(
        [round(v, 3) for v in lags]))
    print("\nB. range of x over the cycle, by starting weights")
    starts = (("near uniform", [0.21, 0.2, 0.2, 0.2, 0.19]),
              ("lopsided", [0.4, 0.1, 0.2, 0.2, 0.1]),
              ("one dominant", [0.8, 0.05, 0.05, 0.05, 0.05]))
    print("   start           dissipative (mu_c - 0.05)   zero-sum ring")
    for name, x0 in starts:
        r1 = trace(ring(MUC - 0.05), x0, 3000, 300)
        r2 = trace(ring(0.0, True), x0, 0, 300)
        g1 = max(max(x) - min(x) for _, x in r1)
        g2 = max(max(x) - min(x) for _, x in r2)
        print("   {:<14}        {:7.4f}                 {:7.4f}".format(
            name, g1, g2))
    print("\nReading: the cycle is a travelling wave - each node peaks a")
    print("fifth of a period after the last - with a period the linear")
    print("spectrum predicts near threshold and that drifts away from it")
    print("further out. With dissipation every start ends on the same")
    print("envelope; in the zero-sum ring the starting weights fix the")
    print("envelope for ever.")
# A. period and travelling wave
#    mu_c - mu   simulated period   linear 2*pi*5/|Im l1|
#        0.01         49.60               47.81
#        0.05         56.91               47.81
#        0.20         84.52               47.81
#    peak order (mu_c - mu = 0.2): nodes [0, 1, 2, 3, 4]
#    successive lags as fractions of the period: [0.201, 0.2, 0.2, 0.2, 0.2]
#
# B. range of x over the cycle, by starting weights
#    start           dissipative (mu_c - 0.05)   zero-sum ring
#    near uniform           0.3149                  0.0200
#    lopsided               0.3149                  0.3198
#    one dominant           0.3149                  0.7607
#
# Reading: the cycle is a travelling wave - each node peaks a
# fifth of a period after the last - with a period the linear
# spectrum predicts near threshold and that drifts away from it
# further out. With dissipation every start ends on the same
# envelope; in the zero-sum ring the starting weights fix the
# envelope for ever.

Part A shows that the oscillation is a travelling wave: the five nodes peak in the order 0, 1, 2, 3, 4, each exactly a fifth of a period (0.2) after the one before. The order follows the direction of generation: the peak travels round the ring along the “generation” arrows. This follows directly from the cyclic symmetry: near threshold the oscillation is almost entirely mode 1, and mode 1’s Fourier vector is itself a wave whose phase advances evenly from node to node.

Near threshold the period is close to the linear prediction: at μc−μ=0.01\mu_c – \mu = 0.01 the simulated period is 49.60 against a predicted 47.81. Further from threshold the period lengthens: 56.91 at 0.05, 84.52 at 0.2. The linear prediction describes only the neighbourhood of the threshold; further out, the nonlinearity sets the period.

Part B answers the question of the amplitude envelope. In the dissipative ring (μ=μc−0.05\mu = \mu_c – 0.05), starts that are nearly uniform, lopsided or dominated by one node all end with a range of 0.3149: the start is forgotten, and the envelope is a property of the attractor. In the zero-sum ring the same three starts give three quite different ranges, 0.0200, 0.3198 and 0.7607, kept for ever: the zero-sum ring has no attractor, and each start moves on a closed orbit fixed by Chapter 2’s conserved quantity HH. So “the amplitude envelope is set by the initial weights” holds only for the conservative, zero-sum ring; with any dissipation it fails.

Far from threshold: mode energy and the boundary

Calculation

# Chapter 3. p07: Far from threshold: Fourier-mode energy and the boundary.
# Same ring as p05-p06. Along the cycle, the deviation x - 1/5 is split
# into the ring's Fourier modes, z_k(t) = sum_j (x_j - 1/5) w^{-jk}; the
# time-averaged share of |z_1|^2 + |z_4|^2 (the travelling wave born at
# the Hopf point) is reported, with the period and the smallest x on the
# cycle, as mu moves away from mu_c. Near a heteroclinic cycle the
# period grows without bound while min x falls towards 0.
import cmath
import math

W = cmath.exp(2j * math.pi / 5)
C1, C2 = 1.0, 0.5
MUC = C1 * math.cos(math.radians(72)) + C2 * math.cos(math.radians(36))

def soft(u):
    m = max(u)
    e = [math.exp(a - m) for a in u]
    s = sum(e)
    return [a / s for a in e]

def step(u, mu, h):
    def f(v):
        x = soft(v)
        ax = [C1 * x[(i - 1) % 5] - C2 * x[(i - 2) % 5] - mu * x[i]
              for i in range(5)]
        m = sum(p * q for p, q in zip(ax, x))
        return [w - m for w in ax]
    k1 = f(u)
    k2 = f([p + h / 2 * q for p, q in zip(u, k1)])
    k3 = f([p + h / 2 * q for p, q in zip(u, k2)])
    k4 = f([p + h * q for p, q in zip(u, k3)])
    return [p + h / 6 * (q + 2 * r + 2 * s + t)
            for p, q, r, s, t in zip(u, k1, k2, k3, k4)]

def run(mu, burn=4000.0, look=1500.0, h=0.05):
    u = [0.05 * math.cos(2 * math.pi * i / 5) for i in range(5)]
    for _ in range(int(burn / h)):
        u = step(u, mu, h)
    e = [0.0] * 5
    low, ups, prev = 1.0, [], None
    for n in range(int(look / h)):
        u = step(u, mu, h)
        x = soft(u)
        for k in range(5):
            z = sum((x[j] - 0.2) * W ** (-j * k) for j in range(5))
            e[k] += abs(z) ** 2
        low = min(low, min(x))
        if prev is not None and prev < 0.2 <= x[0]:
            ups.append(n * h)
        prev = x[0]
    per = (ups[-1] - ups[0]) / (len(ups) - 1) if len(ups) > 1 else 0.0
    return (e[1] + e[4]) / sum(e), per, low

if __name__ == "__main__":
    print("   mu_c - mu   share in modes 1,4   period    min x")
    for d in (0.02, 0.1, 0.2, 0.4, 0.6):
        share, per, low = run(MUC - d)
        print("   {:8.2f}         {:8.5f}       {:7.2f}   {:.2e}".format(
            d, share, per, low))
    print("\nReading: near threshold the cycle is almost purely the mode")
    print("born at the Hopf point. Further away the other modes share in")
    print("it, the cycle presses towards the edges of the simplex and the")
    print("period lengthens: the orbit approaches a heteroclinic cycle,")
    print("where each node in turn is nearly extinct for longer and")
    print("longer.")
#    mu_c - mu   share in modes 1,4   period    min x
#        0.02          0.98808         51.41   9.57e-02
#        0.10          0.94031         66.19   2.01e-02
#        0.20          0.88063         84.53   2.92e-03
#        0.40          0.76154        113.57   3.25e-05
#        0.60          0.64212        133.60   6.43e-08
#
# Reading: near threshold the cycle is almost purely the mode
# born at the Hopf point. Further away the other modes share in
# it, the cycle presses towards the edges of the simplex and the
# period lengthens: the orbit approaches a heteroclinic cycle,
# where each node in turn is nearly extinct for longer and
# longer.

Near threshold, 0.98808 of the oscillation’s energy lies in modes 1 and 4 — the pair born at the Hopf point. Further away other modes take a share: at μc−μ=0.6\mu_c – \mu = 0.6 only 0.64212 is left. Meanwhile the orbit presses ever closer to the edges of the simplex: the smallest xx falls from 9.57e-02 to 6.43e-08, and the period stretches from 51.41 to 133.60.

These are the marks of an orbit approaching a heteroclinic cycle: each node in turn nearly vanishes and lingers there longer and longer, so the period keeps growing (Hofbauer and Sigmund 1998; Strogatz 2015). In finite-precision computation such an orbit is eventually pushed onto the boundary by rounding error; this book integrates in log coordinates so that every xix_i stays positive, but the reader should note that a minimum of 6.43e-08 already hints at how far such a model can be trusted as a description of anything real.

The five nodes’ shares along the limit cycle: each peaks a fifth of a period after the one before, and the peak travels round the ring in the direction of generation.

Note

A travelling wave is not a causal chain. Nodes peaking one after another in the direction of generation invites the reading “each node causes the next”. In the model it is just the geometry of cyclic symmetry plus a Hopf bifurcation; reverse the coupling and the wave runs the other way. Inferring causation from the order of peaks is wrong in this model.

Hypothesis · not established

The author’s hypothesis (not yet tested): in Chapter 2’s generation-inhibition ring, the period near the heteroclinic cycle diverges roughly logarithmically as μc−μ\mu_c – \mu grows, as in the classical three-node rock-paper-scissors heteroclinic cycle. What would show it wrong: extending the simulation to smaller μ\mu, the period does not grow linearly in ln⁡(1/xmin)\ln(1/x_{\min}).

Summary

The limit cycle of the generation-inhibition ring is a wave travelling in the direction of generation, neighbouring nodes a fifth of a period apart; its period matches the linear prediction near threshold and is stretched by the nonlinearity further out, as the orbit approaches a heteroclinic cycle. In a dissipative ring the amplitude envelope does not depend on the start; only in the conservative, zero-sum ring do the initial weights fix it.

References

Hofbauer, Josef, and Karl Sigmund. 1998. Evolutionary Games and Population Dynamics. Cambridge University Press.
Strogatz, Steven H. 2015. Nonlinear Dynamics and Chaos. 2nd ed. Westview Press.

Fan, Y. (2026). Five-Node Cyclic Network Dynamics, Solar-Longitude Ephemeris and Multi-Scale Oscillator Perturbations: Rock-Paper-Scissors-Lizard-Spock Lotka-Volterra Graphs, Equation-of-Time Keplerian Mechanics and Jacobian Sensitivity Bounds [五节点循环网络动力学、黄经历表与多尺度振子扰动] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090168 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).