File:Brusselator space.gif

页面内容不支持其他语言。
這個文件來自維基共享資源
维基百科,自由的百科全书

Brusselator_space.gif(125 × 125像素,文件大小:1.44 MB,MIME类型:image/gif、​循环、​200帧、​20秒)


摘要

描述
English: some frames from a simulation of the brusselator model in 2D
日期
来源 自己的作品
作者 Jkrieger
GIF开发
InfoField
 
本GIF 位图使用MATLAB创作。
源代码
InfoField

MATLAB code

clear;
% timestep
DeltaT=0.1;
% diffusion coefficients
DX=0.2;
DY=0.02;
% reaction constants
k1=1;
k2=1;
k3=1;
k4=1;
% initial concentrations
X0=1;
Y0=1;
% constant concentrations
A=1;
B=3;
% sigma of the random initial distortion
initRandomSigma=2;
% width/height of the simulation grid
width=100;
% number of iterations before display
iterationsPre=3000;
% number of visible iterations after pre
iterations=300;
iterationsDT=6;
% number of visible iterations before pre
iterationsStart=300;
% number of visible iterations before pre
iterationsInit=300;
% number of invisible iterations before iterationsStart
iterationsStartPre=600;
% number of visible iterations after pre
iterationsPre1=6000;
% number of visible iterations after pre
iterations1=300;
 
 
% laplace operator
laplace=0.25*[0 1 0; 1 -4 1; 0 1 0];
 
% initialize reaction variables
X(1:width,1:width)=X0+(rand(width,width)-0.5)*2*initRandomSigma;
Y(1:width,1:width)=Y0+(rand(width,width)-0.5)*2*initRandomSigma;
X(X<0)=0;
Y(Y<0)=0;
X(X>4.5)=4.5;
Y(Y>4.5)=4.5;
 
Xi=X;
Yi=Y;
 
% colormap
rbmap(1:100,1:3)=0;
rbmap(:,1)=((length(rbmap)-1)-(0:(length(rbmap)-1)))/(length(rbmap)-1);
rbmap(:,3)=(0:(length(rbmap)-1))/(length(rbmap)-1);
 
 
figure(1)
s=get(gcf, 'Position');
s(3)=250;
s(4)=200;
set(gcf, 'Position', s);
mf=1;
for it=1:(iterationsInit+iterationsStartPre+iterationsStart+iterationsPre+iterations+iterationsPre1+iterations1)
    lapX=conv2(X, laplace, 'same');
    lapY=conv2(Y, laplace, 'same');
    vX=k1*A+k2*X.^2.*Y-k3*B*X-k4*X+DX.*lapX;
    vY=k3*B*X-k2*X.^2.*Y+DY.*lapY;
 
    % leave border as distrotion centers
    vX(1:width,[1 width])=0;
    vX([1 width],1:width)=0;
    vY(1:width,[1 width])=0;
    vY([1 width],1:width)=0;
 
    if ((it<=iterationsInit) ...

许可协议

w:zh:知识共享
署名
本文件采用知识共享署名 3.0 未本地化版本许可协议授权。
署名: Jan Krieger
您可以自由地:
  • 共享 – 复制、发行并传播本作品
  • 修改 – 改编作品
惟须遵守下列条件:
  • 署名 – 您必须对作品进行署名,提供授权条款的链接,并说明是否对原始内容进行了更改。您可以用任何合理的方式来署名,但不得以任何方式表明许可人认可您或您的使用。


说明

添加一行文字以描述该文件所表现的内容

此文件中描述的项目

描繪內容

d4e6c595dfd0671268202f6c17def14540cfb977

1,506,406 字节

20.000000000000014

125 像素

125 像素

文件历史

点击某个日期/时间查看对应时刻的文件。

日期/时间缩⁠略⁠图大小用户备注
当前2012年8月8日 (三) 09:232012年8月8日 (三) 09:23版本的缩略图125 × 125(1.44 MB)Jkriegermore regions
2012年8月4日 (六) 18:562012年8月4日 (六) 18:56版本的缩略图163 × 163(2.33 MB)Jkriegernow shows the first some intermediate and late simulation states
2012年8月3日 (五) 15:432012年8月3日 (五) 15:43版本的缩略图176 × 176(1.45 MB)Jkriegermore frames
2012年8月3日 (五) 15:162012年8月3日 (五) 15:16版本的缩略图195 × 195(886 KB)Jkriegerlonger
2012年8月3日 (五) 15:072012年8月3日 (五) 15:07版本的缩略图222 × 222(1.06 MB)Jkrieger{{Information |Description ={{en|1=some frames from a simulation of the brusselator model in 2D}} |Source ={{own}} |Author =Jkrieger |Date =2012-08-03 |Permission = |other_versions = }} [[Category:Com...

以下页面使用本文件:

全域文件用途

以下其他wiki使用此文件: