跳至內容

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:創用CC
姓名標示
此檔案採用創用CC 姓名標示 3.0 未在地化版本授權條款。
姓名標示: Jan Krieger
您可以自由:
  • 分享 – 複製、發佈和傳播本作品
  • 重新修改 – 創作演繹作品
惟需遵照下列條件:
  • 姓名標示 – 您必須指名出正確的製作者,和提供授權條款的連結,以及表示是否有對內容上做出變更。您可以用任何合理的方式來行動,但不得以任何方式表明授權條款是對您許可或是由您所使用。


說明

添加單行說明來描述出檔案所代表的內容

在此檔案描寫的項目

描繪內容

檔案來源 Chinese (Taiwan) (已轉換拼寫)

d4e6c595dfd0671268202f6c17def14540cfb977

斷定方法:​SHA-1 中文 (已轉換拼寫)

1,506,406 位元組

20.000000000000014

125 像素

125 像素

檔案歷史

點選日期/時間以檢視該時間的檔案版本。

日期/時間縮⁠圖尺寸使用者備⁠註
目前2012年8月8日 (三) 09:23於 2012年8月8日 (三) 09:23 版本的縮圖125 × 125(1.44 MB)Jkriegermore regions
2012年8月4日 (六) 18:56於 2012年8月4日 (六) 18:56 版本的縮圖163 × 163(2.33 MB)Jkriegernow shows the first some intermediate and late simulation states
2012年8月3日 (五) 15:43於 2012年8月3日 (五) 15:43 版本的縮圖176 × 176(1.45 MB)Jkriegermore frames
2012年8月3日 (五) 15:16於 2012年8月3日 (五) 15:16 版本的縮圖195 × 195(886 KB)Jkriegerlonger
2012年8月3日 (五) 15:07於 2012年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 使用了這個檔案: