声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2551|回复: 5

[稳定性与分岔] 一本书上的分岔图程序

[复制链接]
发表于 2013-2-1 20:38 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
下面这个是一本书上的分岔图程序,大家看看这是用什么方法画分岔图的?怎么好像没有去掉瞬态解?


% Chapter 14 - Poincare Maps and Nonautonomous Systems in the Plane.
% Programs_14g - Bifurcation diagram for the Duffing equation.
% Copyright Birkhauser 2004. Stephen Lynch.
% Make sure Programs_14f is in your directory.
clear
global Gamma;
Max=120;step=0.001;interval=Max*step;a=1;b=0;
% Ramp the amplitude up.
for n=1:Max
    Gamma=step*n;
    [t,x]=ode45('Programs_14f',[0:(2*pi/1.25):(4*pi/1.25)],[a,b]);
    a=x(2,1);
    b=x(2,2);
    rup(n)=sqrt((x(2,1))^2+(x(2,2))^2);
end
% Ramp the amplitude down.
for n=1:Max
    Gamma=interval-step*n;
    [t,x]=ode45('Programs_14f',[0:(2*pi/1.25):(4*pi/1.25)],[a,b]);
    a=x(2,1);
    b=x(2,2);
    rdown(n)=sqrt((x(2,1))^2+(x(2,2))^2);
end
hold on
rr=step:step:interval;
plot(rr,rup)
plot(interval-rr,rdown)
hold off
fsize=15;
axis([0 .12 0 2])
xlabel('\Gamma','FontSize',fsize)
ylabel('r','FontSize',fsize)
title('Bifurcation Diagram of the Duffing System. Bistable Region.')
% End of Programs_14g.
回复
分享到:

使用道具 举报

发表于 2013-2-5 17:48 | 显示全部楼层
第一个循环就是去掉瞬态,把第一个循环计算的结果付给第二个循环,作为初值。

评分

1

查看全部评分

发表于 2013-2-12 23:42 | 显示全部楼层
看这种程序,要对照公式看,
发表于 2013-7-9 17:13 | 显示全部楼层

那第二个循环的瞬态就不用去了?偶尔看到不太明白
发表于 2013-7-12 10:54 | 显示全部楼层
飞翼 发表于 2013-7-9 17:13
那第二个循环的瞬态就不用去了?偶尔看到不太明白

第二个循环就没有瞬态了
发表于 2013-7-12 16:45 | 显示全部楼层
hsfy919 发表于 2013-7-12 10:54
第二个循环就没有瞬态了

求解释一下,他是积分时间都是从[0:(2*pi/1.25):(4*pi/1.25)]如何去掉顺瞬态的?
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-5 23:17 , Processed in 0.060536 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表