Skip to content
CHAOS HOUSE

Every chaos generator should have a house!

The story of Chaos House

In my dissertation, I tried to classify about 84 analog chaos generators. The dynamics of each can be described by a system of ordinary differential equations. I already knew there were many more. I included the generators whose descriptions I could find at the time.

To see how a generator behaved as its parameters changed, I linked the computers in several teaching labs and divided the parameter combinations among their processor cores. Even with all those cores working together, a map for one generator took weeks.

I wanted an atlas with room for the generators I had yet to find. Today, GPUs and servers make those maps much faster to compute. In Chaos House you can pick a point on a map, see the corresponding trajectory, then change a coefficient and follow what happens to the motion.

I want this atlas to include every known chaos generator and to bring together the people who study them. Perhaps you know a system that is missing here, or have found an interesting regime in a familiar one. Share the equations and parameters so someone else can try your experiment.

Submission instructions

Blinking Vortex Map — Aref

Comments

Search and filters

Code
Appearance

Connecting to the archive…

Orbit parameters and sources

rₙ₊₁ = ρ²+η²+2·ρ·η·cos(q)
θₙ₊₁ = atan2(ρ·sin(q),η+ρ·cos(q))
sideₙ₊₁ = −side
q−factor·sin(q) = angle−factor·sin(angle)+(γ·t·(1−lambda_(squared)))/(2·π·ρ²·(1+lambda_(squared)))
vortex_(b) = b·side
image_(b) = (a²)/(vortex_(b))
lambda_(squared) = (vortex_(b)²+r²−2·vortex_(b)·r·cos(θ))/(image_(b)²+r²−2·image_(b)·r·cos(θ))
η = (vortex_(b)−lambda_(squared)·image_(b))/(1−lambda_(squared))
ρ = |(lambda_(squared)·(image_(b)−vortex_(b)))/(1−lambda_(squared))|
angle = atan2(r·sin(θ),r·cos(θ)−η)
factor = (2·lambda_(squared))/(1+lambda_(squared))
rₙ₊₁ = ρ²+η²+2·ρ·η·cos(q)
θₙ₊₁ = atan2(ρ·sin(q),η+ρ·cos(q))
sideₙ₊₁ = −side
q−factor·sin(q) = angle−factor·sin(angle)+(γ·t·(1−lambda_(squared)))/(2·π·ρ²·(1+lambda_(squared)))
vortex_(b) = b·side
image_(b) = (a²)/(vortex_(b))
lambda_(squared) = (vortex_(b)²+r²−2·vortex_(b)·r·cos(θ))/(image_(b)²+r²−2·image_(b)·r·cos(θ))
η = (vortex_(b)−lambda_(squared)·image_(b))/(1−lambda_(squared))
ρ = |(lambda_(squared)·(image_(b)−vortex_(b)))/(1−lambda_(squared))|
angle = atan2(r·sin(θ),r·cos(θ)−η)
factor = (2·lambda_(squared))/(1+lambda_(squared))

    Spectrum and distribution settings
    Code and downloads

    blinking-vortex-map / root_recurrence.c

    Alternating-vortex map. A bracketed bisection solves the strictly monotone angular equation at each iteration. This is a discrete map, not an ODE.

    // Blinking Vortex Map — Aref | Chaos House 2026.11.25-readable.6
    // Source: https://doi.org/10.1017/s0022112084001233
    // Raw coordinates. See README.txt and the included source licenses.
    // Alternating-vortex map. A bracketed bisection solves the strictly monotone angular equation at each iteration. This is a discrete map, not an ODE.
    #include <math.h>
    #include <stdio.h>
    #include <stdlib.h>
    int main(void)
    {
    
        // 1. Parameters and initial conditions.
        double a = 1.0;
        double gamma = 1.0;
        double b = 0.5;
        double advection_time = 1.5;
        double r_initial = 0.17;
        double theta_initial = 0.33;
        double side_initial = 1.0;
    
        // 2. Time settings. Time units belong to the mathematical model.
        int steps = 2000;
    
        double *t = calloc((size_t)steps + 1, sizeof(double));
        if (!t) { fputs("Not enough memory.\n", stderr); return 1; }
        double *r = calloc((size_t)steps + 1, sizeof(double));
        if (!r) { fputs("Not enough memory.\n", stderr); return 1; }
        double *theta = calloc((size_t)steps + 1, sizeof(double));
        if (!theta) { fputs("Not enough memory.\n", stderr); return 1; }
        double *side = calloc((size_t)steps + 1, sizeof(double));
        if (!side) { fputs("Not enough memory.\n", stderr); return 1; }
        r[0] = r_initial;
        theta[0] = theta_initial;
        side[0] = side_initial;
        int count = 1;
        // 3. Iterate the map. Only side changes sign; the parameter b is preserved.
        for (int step_index = 0; step_index < steps + 0; step_index++) {
            double vortex_b = b * side[step_index];
            double image_b = a * a / vortex_b;
            double lambda_squared = (vortex_b * vortex_b + r[step_index] * r[step_index] - 2.0 * vortex_b * r[step_index] * cos(theta[step_index])) / (image_b * image_b + r[step_index] * r[step_index] - 2.0 * image_b * r[step_index] * cos(theta[step_index]));
            if (!(((fabs(fabs(side[step_index]) - 1.0) < 1e-12) && (fabs(b) > 0.0) && (a > fabs(b)) && (r[step_index] > 0.0) && (r[step_index] < a) && (lambda_squared > 0.0) && (lambda_squared < 1.0)))) { fputs("Require side = +/-1, 0 < abs(b) < a and a nondegenerate streamline with 0 < r < a.\n", stderr); return 1; }
            double lambda_value = sqrt(lambda_squared);
            double eta = (vortex_b - lambda_squared * image_b) / (1.0 - lambda_squared);
            double rho = fabs(lambda_value / (1.0 - lambda_squared) * (image_b - vortex_b));
            double angle = atan2(r[step_index] * sin(theta[step_index]), r[step_index] * cos(theta[step_index]) - eta);
            double factor = 2.0 * lambda_value / (1.0 + lambda_squared);
            double target = angle - factor * sin(angle) + gamma * advection_time * (1.0 - lambda_squared) / (2.0 * 3.141592653589793 * rho * rho * (1.0 + lambda_squared));
            double lower = target - factor - 1e-12;
            double upper = target + factor + 1e-12;
            // The root equation is strictly monotone, so this bracket is guaranteed.
            for (int root_iteration = 0; root_iteration < 64; root_iteration++) {
                double middle = (lower + upper) / 2;
                if (middle - factor * sin(middle) < target) {
                    lower = middle;
                } else {
                    upper = middle;
                }
            }
            double next_angle = (lower + upper) / 2;
            r[step_index + 1] = sqrt(fmax(0.0, rho * rho + eta * eta + 2.0 * rho * eta * cos(next_angle)));
            theta[step_index + 1] = atan2(rho * sin(next_angle), eta + rho * cos(next_angle));
            side[step_index + 1] = -side[step_index];
            if (!(isfinite(r[step_index + 1]) && fabs(r[step_index + 1]) < 1e8 && isfinite(theta[step_index + 1]) && fabs(theta[step_index + 1]) < 1e8 && isfinite(side[step_index + 1]) && fabs(side[step_index + 1]) < 1e8)) {
                fputs("Stopped at a non-finite or very large state. Try a smaller step or another preset. The plotted prefix is not a confirmed bounded attractor.\n", stderr);
                break;
            }
            t[step_index + 1] = step_index + 1;
            count = count + 1;
        }
    
        // 4. Plot the trajectory. Green is the start; red is the end.
        FILE *file = fopen("blinking-vortex-map-trajectory.dat", "w");
        if (!file) { perror("trajectory file"); return 1; }
        for (int row = 0; row < count; row++) {
            fprintf(file, "%.17g %.17g %.17g\n", r[row], theta[row], side[row]);
        }
        int write_failed = ferror(file);
        if (fclose(file) != 0) write_failed = 1;
        if (write_failed) return 1;
        // Requires gnuplot on PATH. Set GNUTERM=svg for a headless SVG output.
        int plot_status = system("gnuplot -persist -e 'set title \"Blinking Vortex Map — Aref / Recurrence with root solve\"; set xlabel \"r\"; set ylabel \"theta\"; set zlabel \"side\"; set grid; set view equal xyz; stats \"blinking-vortex-map-trajectory.dat\" using 1 nooutput; last=STATS_records-1; splot \"blinking-vortex-map-trajectory.dat\" using 1:2:3 with lines title \"Trajectory\", \"\" every ::0::0 using 1:2:3 with points pt 7 lc rgb \"green\" title \"Start\", \"\" every ::last::last using 1:2:3 with points pt 7 lc rgb \"red\" title \"End\"'");
        free(t);
        free(r);
        free(theta);
        free(side);
        return plot_status == 0 ? 0 : 1;
    }
    

    Beyond the browser

    Choose a programming language and download the files you need from the downloads page. Choose a programming language

    Does your chaos have a name?

    We want to bring every chaos generator into one open catalogue and connect the people who study chaos and nonlinear dynamics. Developing your own system? Send its equations, parameters, initial state, recommended method and step, a reference and the code licence. After review we will add it with your name and link.

    Submission instructions · Write to the author

    Comments

    Blinking Vortex Map — Aref

    Generator ranking

    Collections and index · 420 models