⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mie_abcd.m

📁 计算mie散射中的散射系数
💻 M
字号:
function result = Mie_abcd(m, x)



% Computes a matrix of Mie coefficients, a_n, b_n, c_n, d_n, 

% of orders n=1 to nmax, complex refractive index m=m'+im", 

% and size parameter x=k0*a, where k0= wave number 

% in the ambient medium, a=sphere radius; 

% p. 100, 477 in Bohren and Huffman (1983) BEWI:TDD122

% C. M鋞zler, June 2002



nmax=round(2+x+4*x.^(1/3));

n=(1:nmax); nu = (n+0.5); z=m.*x; m2=m.*m; 

sqx= sqrt(0.5*pi./x); sqz= sqrt(0.5*pi./z);

bx = besselj(nu, x).*sqx;

bz = besselj(nu, z).*sqz;

yx = bessely(nu, x).*sqx;

hx = bx+i*yx;

b1x=[sin(x)/x, bx(1:nmax-1)];

b1z=[sin(z)/z, bz(1:nmax-1)];

y1x=[-cos(x)/x, yx(1:nmax-1)];

h1x= b1x+i*y1x;

ax = x.*b1x-n.*bx;

az = z.*b1z-n.*bz;

ahx= x.*h1x-n.*hx;



an = (m2.*bz.*ax-bx.*az)./(m2.*bz.*ahx-hx.*az);

bn = (bz.*ax-bx.*az)./(bz.*ahx-hx.*az);

cn = (bx.*ahx-hx.*ax)./(bz.*ahx-hx.*az);

dn = m.*(bx.*ahx-hx.*ax)./(m2.*bz.*ahx-hx.*az);

result=[an; bn; cn; dn];

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -