跳至正文
CHAOS HOUSE

每个混沌发生器都应有自己的家!

Chaos House 是怎样诞生的

写学位论文时,我尝试对约 84 种模拟混沌发生器进行分类。每一种发生器的动力学都可以用一组常微分方程来描述。那时我已经知道,这类发生器远不止这些。论文里收录的是我当时能找到资料的那些。

为了看清一个发生器在不同参数下会有怎样的表现,我把几间教学机房里的计算机连成一个网络,让各个处理器核心分别计算不同的参数组合。即使所有核心同时运算,为一个发生器绘制一张参数图仍要花上好几个星期。

我希望有一本图集,也能收录那些我当年没能找到资料的发生器。如今,有了高性能显卡和服务器,计算一张参数图所需的时间大大缩短了。在 Chaos House,你可以在图上选一个点,看看对应的轨迹,再改变一个系数,观察运动会如何变化。

我希望这本图集能收录所有已知的混沌发生器,也让研究它们的人有机会相识。或许你知道一个尚未收录的系统,或者在熟悉的发生器里发现了有趣的动力学行为。欢迎分享方程和参数,让其他人也能重现你的实验。

如何提交模型

顶盖驱动方腔流 — Grover 等

评论

搜索与筛选

代码
外观

正在连接档案…

轨道参数与来源

ẋ = (0.5+0.5·tanh(20·τ·sin((2·π·clock)/(τ))))·((2·u₁·sin((1·π·x)/(a)))/(2·b·(1·π)+a·sinh((2·(1·π)·b)/(a)))·(−b·(1·π)·sinh((1·π·b)/(a))·sinh((1·π·y)/(a))+cosh((1·π·b)/(a))·(1·π·y·cosh((1·π·y)/(a))+a·sinh((1·π·y)/(a))))+(2·u₂·sin((2·π·x)/(a)))/(2·b·(2·π)+a·sinh((2·(2·π)·b)/(a)))·(−b·(2·π)·sinh((2·π·b)/(a))·sinh((2·π·y)/(a))+cosh((2·π·b)/(a))·(2·π·y·cosh((2·π·y)/(a))+a·sinh((2·π·y)/(a)))))+(1−(0.5+0.5·tanh(20·τ·sin((2·π·clock)/(τ)))))·((2·−u₁·sin((1·π·x)/(a)))/(2·b·(1·π)+a·sinh((2·(1·π)·b)/(a)))·(−b·(1·π)·sinh((1·π·b)/(a))·sinh((1·π·y)/(a))+cosh((1·π·b)/(a))·(1·π·y·cosh((1·π·y)/(a))+a·sinh((1·π·y)/(a))))+(2·u₂·sin((2·π·x)/(a)))/(2·b·(2·π)+a·sinh((2·(2·π)·b)/(a)))·(−b·(2·π)·sinh((2·π·b)/(a))·sinh((2·π·y)/(a))+cosh((2·π·b)/(a))·(2·π·y·cosh((2·π·y)/(a))+a·sinh((2·π·y)/(a)))))
ẏ = (0.5+0.5·tanh(20·τ·sin((2·π·clock)/(τ))))·((2·(1·π)·u₁·cos((1·π·x)/(a)))/(2·b·(1·π)+a·sinh((2·(1·π)·b)/(a)))·(b·sinh((1·π·b)/(a))·cosh((1·π·y)/(a))−cosh((1·π·b)/(a))·y·sinh((1·π·y)/(a)))+(2·(2·π)·u₂·cos((2·π·x)/(a)))/(2·b·(2·π)+a·sinh((2·(2·π)·b)/(a)))·(b·sinh((2·π·b)/(a))·cosh((2·π·y)/(a))−cosh((2·π·b)/(a))·y·sinh((2·π·y)/(a))))+(1−(0.5+0.5·tanh(20·τ·sin((2·π·clock)/(τ)))))·((2·(1·π)·−u₁·cos((1·π·x)/(a)))/(2·b·(1·π)+a·sinh((2·(1·π)·b)/(a)))·(b·sinh((1·π·b)/(a))·cosh((1·π·y)/(a))−cosh((1·π·b)/(a))·y·sinh((1·π·y)/(a)))+(2·(2·π)·u₂·cos((2·π·x)/(a)))/(2·b·(2·π)+a·sinh((2·(2·π)·b)/(a)))·(b·sinh((2·π·b)/(a))·cosh((2·π·y)/(a))−cosh((2·π·b)/(a))·y·sinh((2·π·y)/(a))))
clock̇ = 1
dx/dt = (0.5+0.5·tanh(20·τ·sin((2·π·clock)/(τ))))·((2·u₁·sin((1·π·x)/(a)))/(2·b·(1·π)+a·sinh((2·(1·π)·b)/(a)))·(−b·(1·π)·sinh((1·π·b)/(a))·sinh((1·π·y)/(a))+cosh((1·π·b)/(a))·(1·π·y·cosh((1·π·y)/(a))+a·sinh((1·π·y)/(a))))+(2·u₂·sin((2·π·x)/(a)))/(2·b·(2·π)+a·sinh((2·(2·π)·b)/(a)))·(−b·(2·π)·sinh((2·π·b)/(a))·sinh((2·π·y)/(a))+cosh((2·π·b)/(a))·(2·π·y·cosh((2·π·y)/(a))+a·sinh((2·π·y)/(a)))))+(1−(0.5+0.5·tanh(20·τ·sin((2·π·clock)/(τ)))))·((2·−u₁·sin((1·π·x)/(a)))/(2·b·(1·π)+a·sinh((2·(1·π)·b)/(a)))·(−b·(1·π)·sinh((1·π·b)/(a))·sinh((1·π·y)/(a))+cosh((1·π·b)/(a))·(1·π·y·cosh((1·π·y)/(a))+a·sinh((1·π·y)/(a))))+(2·u₂·sin((2·π·x)/(a)))/(2·b·(2·π)+a·sinh((2·(2·π)·b)/(a)))·(−b·(2·π)·sinh((2·π·b)/(a))·sinh((2·π·y)/(a))+cosh((2·π·b)/(a))·(2·π·y·cosh((2·π·y)/(a))+a·sinh((2·π·y)/(a)))))
dy/dt = (0.5+0.5·tanh(20·τ·sin((2·π·clock)/(τ))))·((2·(1·π)·u₁·cos((1·π·x)/(a)))/(2·b·(1·π)+a·sinh((2·(1·π)·b)/(a)))·(b·sinh((1·π·b)/(a))·cosh((1·π·y)/(a))−cosh((1·π·b)/(a))·y·sinh((1·π·y)/(a)))+(2·(2·π)·u₂·cos((2·π·x)/(a)))/(2·b·(2·π)+a·sinh((2·(2·π)·b)/(a)))·(b·sinh((2·π·b)/(a))·cosh((2·π·y)/(a))−cosh((2·π·b)/(a))·y·sinh((2·π·y)/(a))))+(1−(0.5+0.5·tanh(20·τ·sin((2·π·clock)/(τ)))))·((2·(1·π)·−u₁·cos((1·π·x)/(a)))/(2·b·(1·π)+a·sinh((2·(1·π)·b)/(a)))·(b·sinh((1·π·b)/(a))·cosh((1·π·y)/(a))−cosh((1·π·b)/(a))·y·sinh((1·π·y)/(a)))+(2·(2·π)·u₂·cos((2·π·x)/(a)))/(2·b·(2·π)+a·sinh((2·(2·π)·b)/(a)))·(b·sinh((2·π·b)/(a))·cosh((2·π·y)/(a))−cosh((2·π·b)/(a))·y·sinh((2·π·y)/(a))))
d(clock)/dt = 1

    频谱与分布设置
    代码与下载

    lid-driven-cavity-flow / euler.c

    一阶显式欧拉法每步求值一次。初始步长取场景步长的十分之一。可再次减小步长检验收敛性。

    // 顶盖驱动方腔流 — Grover 等 | Chaos House 2026.11.25-readable.6
    // 来源: https://doi.org/10.1063/1.4768666
    // 原始坐标。参阅 README.txt 和随附的源代码许可证。
    // 一阶显式欧拉法每步求值一次。初始步长取场景步长的十分之一。可再次减小步长检验收敛性。
    #include <math.h>
    #include <stdio.h>
    #include <stdlib.h>
    int main(void)
    {
    
        // 1. 参数与初始条件。
        double a = 6.0;
        double b = 1.0;
        double tau = 1.1;
        double u1 = 9.92786;
        double u2 = 8.34932;
        double x_initial = 3.966790341130254;
        double y_initial = 0.18425981346720144;
        double clock_initial = 0.0;
    
        // 2. 时间设置。时间以数学模型的单位计量。
        double dt = 2.733769122745855e-05;
        double duration = 5.46753824549171;
        if (!(dt > 0 && duration >= dt && duration / dt <= 600000)) { fputs("要求正步长,步数在 1 至 600000 之间。减小 dt 时请相应缩短时长。\n", stderr); return 1; }
        int steps = (int)round(duration / dt);
    
        // 3. 分配数组,保存初始状态和每个计算步的结果。
        double *t = calloc((size_t)steps + 1, sizeof(double));
        if (!t) { fputs("内存不足。\n", stderr); return 1; }
        double *x = calloc((size_t)steps + 1, sizeof(double));
        if (!x) { fputs("内存不足。\n", stderr); return 1; }
        x[0] = x_initial;
        double *y = calloc((size_t)steps + 1, sizeof(double));
        if (!y) { fputs("内存不足。\n", stderr); return 1; }
        y[0] = y_initial;
        double *clock = calloc((size_t)steps + 1, sizeof(double));
        if (!clock) { fputs("内存不足。\n", stderr); return 1; }
        clock[0] = clock_initial;
        int count = 1;
        for (int step_index = 0; step_index < steps; step_index++) {
            x[step_index + 1] = x[step_index] + dt * ((0.5 + 0.5 * tanh(20.0 * tau * sin(2.0 * 3.141592653589793 * clock[step_index] / tau))) * (2.0 * u1 * sin(1.0 * 3.141592653589793 * x[step_index] / a) / (2.0 * b * (1.0 * 3.141592653589793) + a * sinh(2.0 * (1.0 * 3.141592653589793) * b / a)) * (-b * (1.0 * 3.141592653589793) * sinh(1.0 * 3.141592653589793 * b / a) * sinh(1.0 * 3.141592653589793 * y[step_index] / a) + cosh(1.0 * 3.141592653589793 * b / a) * (1.0 * 3.141592653589793 * y[step_index] * cosh(1.0 * 3.141592653589793 * y[step_index] / a) + a * sinh(1.0 * 3.141592653589793 * y[step_index] / a))) + 2.0 * u2 * sin(2.0 * 3.141592653589793 * x[step_index] / a) / (2.0 * b * (2.0 * 3.141592653589793) + a * sinh(2.0 * (2.0 * 3.141592653589793) * b / a)) * (-b * (2.0 * 3.141592653589793) * sinh(2.0 * 3.141592653589793 * b / a) * sinh(2.0 * 3.141592653589793 * y[step_index] / a) + cosh(2.0 * 3.141592653589793 * b / a) * (2.0 * 3.141592653589793 * y[step_index] * cosh(2.0 * 3.141592653589793 * y[step_index] / a) + a * sinh(2.0 * 3.141592653589793 * y[step_index] / a)))) + (1.0 - (0.5 + 0.5 * tanh(20.0 * tau * sin(2.0 * 3.141592653589793 * clock[step_index] / tau)))) * (2.0 * -u1 * sin(1.0 * 3.141592653589793 * x[step_index] / a) / (2.0 * b * (1.0 * 3.141592653589793) + a * sinh(2.0 * (1.0 * 3.141592653589793) * b / a)) * (-b * (1.0 * 3.141592653589793) * sinh(1.0 * 3.141592653589793 * b / a) * sinh(1.0 * 3.141592653589793 * y[step_index] / a) + cosh(1.0 * 3.141592653589793 * b / a) * (1.0 * 3.141592653589793 * y[step_index] * cosh(1.0 * 3.141592653589793 * y[step_index] / a) + a * sinh(1.0 * 3.141592653589793 * y[step_index] / a))) + 2.0 * u2 * sin(2.0 * 3.141592653589793 * x[step_index] / a) / (2.0 * b * (2.0 * 3.141592653589793) + a * sinh(2.0 * (2.0 * 3.141592653589793) * b / a)) * (-b * (2.0 * 3.141592653589793) * sinh(2.0 * 3.141592653589793 * b / a) * sinh(2.0 * 3.141592653589793 * y[step_index] / a) + cosh(2.0 * 3.141592653589793 * b / a) * (2.0 * 3.141592653589793 * y[step_index] * cosh(2.0 * 3.141592653589793 * y[step_index] / a) + a * sinh(2.0 * 3.141592653589793 * y[step_index] / a)))));
            y[step_index + 1] = y[step_index] + dt * ((0.5 + 0.5 * tanh(20.0 * tau * sin(2.0 * 3.141592653589793 * clock[step_index] / tau))) * (2.0 * (1.0 * 3.141592653589793) * u1 * cos(1.0 * 3.141592653589793 * x[step_index] / a) / (2.0 * b * (1.0 * 3.141592653589793) + a * sinh(2.0 * (1.0 * 3.141592653589793) * b / a)) * (b * sinh(1.0 * 3.141592653589793 * b / a) * cosh(1.0 * 3.141592653589793 * y[step_index] / a) - cosh(1.0 * 3.141592653589793 * b / a) * y[step_index] * sinh(1.0 * 3.141592653589793 * y[step_index] / a)) + 2.0 * (2.0 * 3.141592653589793) * u2 * cos(2.0 * 3.141592653589793 * x[step_index] / a) / (2.0 * b * (2.0 * 3.141592653589793) + a * sinh(2.0 * (2.0 * 3.141592653589793) * b / a)) * (b * sinh(2.0 * 3.141592653589793 * b / a) * cosh(2.0 * 3.141592653589793 * y[step_index] / a) - cosh(2.0 * 3.141592653589793 * b / a) * y[step_index] * sinh(2.0 * 3.141592653589793 * y[step_index] / a))) + (1.0 - (0.5 + 0.5 * tanh(20.0 * tau * sin(2.0 * 3.141592653589793 * clock[step_index] / tau)))) * (2.0 * (1.0 * 3.141592653589793) * -u1 * cos(1.0 * 3.141592653589793 * x[step_index] / a) / (2.0 * b * (1.0 * 3.141592653589793) + a * sinh(2.0 * (1.0 * 3.141592653589793) * b / a)) * (b * sinh(1.0 * 3.141592653589793 * b / a) * cosh(1.0 * 3.141592653589793 * y[step_index] / a) - cosh(1.0 * 3.141592653589793 * b / a) * y[step_index] * sinh(1.0 * 3.141592653589793 * y[step_index] / a)) + 2.0 * (2.0 * 3.141592653589793) * u2 * cos(2.0 * 3.141592653589793 * x[step_index] / a) / (2.0 * b * (2.0 * 3.141592653589793) + a * sinh(2.0 * (2.0 * 3.141592653589793) * b / a)) * (b * sinh(2.0 * 3.141592653589793 * b / a) * cosh(2.0 * 3.141592653589793 * y[step_index] / a) - cosh(2.0 * 3.141592653589793 * b / a) * y[step_index] * sinh(2.0 * 3.141592653589793 * y[step_index] / a))));
            clock[step_index + 1] = clock[step_index] + dt * (1.0);
            if (!(isfinite(x[step_index + 1]) && fabs(x[step_index + 1]) < 1e8 && isfinite(y[step_index + 1]) && fabs(y[step_index + 1]) < 1e8 && isfinite(clock[step_index + 1]) && fabs(clock[step_index + 1]) < 1e8)) {
                fputs("状态非有限或数值过大,计算已停止。请减小步长或更换预设。已绘的轨迹片段不足以确认存在有界吸引子。\n", stderr);
                break;
            }
            t[step_index + 1] = (step_index + 1) * dt;
            count = count + 1;
        }
    
        // 4. 绘制轨迹。绿色为起点,红色为终点。
        FILE *file = fopen("lid-driven-cavity-flow-trajectory.dat", "w");
        if (!file) { perror("轨迹文件"); return 1; }
        for (int row = 0; row < count; row++) {
            fprintf(file, "%.17g %.17g %.17g\n", x[row], y[row], clock[row]);
        }
        int write_failed = ferror(file);
        if (fclose(file) != 0) write_failed = 1;
        if (write_failed) return 1;
        // 需要在 PATH 中安装 gnuplot。无显示器时设置 GNUTERM=svg 以输出 SVG。
        int plot_status = system("gnuplot -persist -e 'set title \"顶盖驱动方腔流 — Grover 等 / 欧拉法\"; set xlabel \"x\"; set ylabel \"y\"; set zlabel \"clock\"; set grid; set view equal xyz; stats \"lid-driven-cavity-flow-trajectory.dat\" using 1 nooutput; last=STATS_records-1; splot \"lid-driven-cavity-flow-trajectory.dat\" using 1:2:3 with lines title \"轨迹\", \"\" every ::0::0 using 1:2:3 with points pt 7 lc rgb \"green\" title \"起点\", \"\" every ::last::last using 1:2:3 with points pt 7 lc rgb \"red\" title \"终点\"'");
        free(t);
        free(x);
        free(y);
        free(clock);
        return plot_status == 0 ? 0 : 1;
    }
    

    在浏览器之外

    在下载页选择编程语言并下载所需资料。 选择编程语言

    你的混沌系统有名字吗?

    我们希望把世界上所有的混沌发生器收录在一个开放目录中,让研究混沌与非线性动力学的人们汇聚成一个社群。 正在开发自己的系统?请提供方程、参数、初始状态、推荐算法和步长、参考文献及代码使用许可。审查通过后,我们会署上您的姓名并附上链接。

    如何提交模型 · 写信给作者

    评论

    顶盖驱动方腔流 — Grover 等

    发生器人气排行

    专题与索引 · 420 个模型