当前位置: 首页 > news >正文

使用Mathematica制作Lorenz吸引子的轨道追踪视频

Lorenz奇异吸引子是混沌理论中最早被发现和研究的吸引子之一,它由Edward Lorenz在1963年研究确定性非周期流时提出。Lorenz吸引子以其独特的"蝴蝶"形状而闻名,是混沌系统和非线性动力学的经典例子。

L = NDSolveValue[{x'[t] == -3 (x[t] - y[t]), y'[t] == -x[t] z[t] + 26.5 x[t] - y[t], z'[t] == x[t] y[t] - z[t],x[0] == z[0] == 0, y[0] == 1}, {x[t], y[t], z[t]}, {t, 0, 100}, MaxStepSize -> 0.001];n = NDSolveValue[{x'[t] == -3 (x[t] - y[t]), y'[t] == -x[t] z[t] + 26.5 x[t] - y[t], z'[t] == x[t] y[t] - z[t],x[0] == z[0] == 0, y[0] == 1}, Cross[{x'[t], y'[t], z'[t]}, {x''[t], y''[t], z''[t]}], {t, 0, 100},MaxStepSize -> 0.001];
L1 = NDSolveValue[{x'[t] == -3 (x[t] - y[t]), y'[t] == -x[t] z[t] + 26.5 x[t] - y[t], z'[t] == x[t] y[t] - z[t],x[0] == z[0] == 0, y[0] == 1}, {x'[t], y'[t], z'[t]}, {t, 0, 100},MaxStepSize -> 0.001];LA = ParametricPlot3D[L, {t, 0, 60}, PlotRange -> All, Background -> Black, Boxed -> False, Axes -> False, ColorFunction -> Function[{x, y, z, u}, ColorData["NeonColors"][u]],PlotPoints -> {100, 100}]
gr[t1_] := Show[{LA, Graphics3D[{Specularity[White, 4], Sphere[L /. t -> t1, .3]}]},Background -> Black, ImageSize -> {300, 300}, SphericalRegion -> True, PlotRange -> All]

frames = Table[Show[gr[t1 + .1], ViewVector -> {(L - 3 n/Norm[n]) /. {t -> t1}, L1 /. t -> t1 + .1}], {t1, 0.6, 1.65, .009}];
ListAnimate[frames]
Export[FileNameJoin[{NotebookDirectory[], "Lorenz63_0.mp4"}], frames, "DisplayDurations" -> 50(*每帧显示0.5秒*)]

相关文章:

  • 解决uni-app开发中的“TypeError: Cannot read property ‘0‘ of undefined“问题
  • MySQL基础面试通关秘籍(附高频考点解析)
  • 技术融资:概念与形式、步骤与案例、挑战与应对、发展趋势
  • 从代码学习深度学习 - 实战Kaggle比赛:狗的品种识别(ImageNet Dogs)PyTorch版
  • 前端下载ZIP包方法总结
  • go-数据库基本操作
  • IDEA中git对于指定文件进行版本控制
  • IDEA中springboot项目中连接docker
  • 基于 React Hook 封装 Store 的三种方案
  • 基于大模型的脑出血智能诊疗与康复技术方案
  • 视觉Transformer(Vision Transformer , ViT )
  • 2025/5/16
  • 炼丹学习笔记3---ubuntu2004部署运行openpcdet记录
  • 数学复习笔记 14
  • 精准掌控张力动态,重构卷对卷工艺设计
  • DAY 28 类的定义
  • 内容中台重构企业知识管理路径
  • 力扣HOT100之二叉树:102. 二叉树的层序遍历
  • 【GAN网络入门系列】一,手写字MINST图片生成
  • 前端取经路——量子UI:响应式交互新范式
  • 国家统计局公布2024年城镇单位就业人员年平均工资情况
  • 混乱的5天:俄乌和谈如何从充满希望走向“卡壳”
  • 清雪车司机未拉手刹下车导致溜车被撞亡,事故调查报告发布
  • 端午小长假前夜火车票今日开抢,多个技巧提高购票成功率
  • 把中国声音带向世界,DG和Blue Note落户中国
  • 问责!美国海军对“杜鲁门”号航母一系列事故展开调查