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

📄 miecoated_wrscan.m

📁 MieMatlabMaetzler.zip 非常全功能的Mie散射程序 matlab
💻 M
字号:
function result = Miecoated_wrscan(m1,m2,y,nsteps)



% Computation and plot of Mie Efficiencies of coated

% spheres for given complex refractive-index ratios

% m1,2=m1',2'+im1",2" in kernel and coating, resp.

% and size parameters x=k0*a, y=k0*b, vs. wr (see below)

% with nsteps increments 

% a,b=inner,outer sphere radius, using complex Mie coefficients 

% an and bn, according to Bohren and Huffman (1983) BEWI:TDD122

% result: m1,m2,x,y,wr, efficiencies for extinction (qext), 

% scattering (qsca), absorption (qabs), backscattering (qb), 

% qratio=qb/qsca, asymmetry parameter (asy=<costeta>),

% volume fraction of coating w= 1-(a/b)^3 = 1-(x/y)^3

% C. M鋞zler, July 2002.



opt=1;

m1p=real(m1); m1pp=imag(m1);

m2p=real(m2); m2pp=imag(m2);

nx=(1:nsteps)';

wr=0.1*(nx-0.5)/nsteps;            % note that wr=(b-a)/b=1-(1-w)^1/3)

x=y*(1-wr);

for j = 1:nsteps

    a(j,:)=Miecoated(m1,m2,x(j),y,opt);

end;

output_parameters='m1(real,imag), m2(real, imag), x, y, Qext, Qsca, Qabs, Qb, <costeta>, Qb/Qsca'



% plotting the results

loglog(wr,a(:,1:5))

legend('Qext','Qsca','Qabs','Qb','<costeta>')

title(sprintf('Mie Efficiencies of coated sphere, y=%g, m1=%g+%gi, m2=%g+%gi ',y,m1p,m1pp,m2p,m2pp))

xlabel('(b-a)/b')



result=a; 

⌨️ 快捷键说明

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