资源简介

根据NRW方法推导出计算超材料等效参数的方法,由CST仿出S11,S21并导出S11,S21的复数形式,利用matlab调用,就可以算了介电常数和磁导率

资源截图

代码片段和文件信息

=================================================================================== 
%function CSTRst_X(RstFileNameDataFileNameIniFileNameCstfilename) 
%Cstfilename = ‘S_X.s2p‘; 
%RstFileName = ‘S_X.txt‘; 
%DataFileName = ‘Rst_x.txt‘; 
%IniFileName = ‘iniPara.vol‘; 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
DPreproc(CstfilenameRstFileName);  %CST分析结果预处理操作 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
S = load(RstFileName); 
s11 = S(:1:3); 
index_S = [1 4 5]; 
s21 = S(:index_S); 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
[dareaper]=DataGet(IniFileName);    %获取沿电磁波入射方向材料单胞厚度参数d 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
fre=s11(: 1)*1e9; 
C=3e8; 
lamda=C./fre; 
k=2*pi./lamda; 
n=zeros(size(fre)); 
S11=s11(: 2).*exp(1i*(s11(:3)*pi/180)); 
S21=s21(: 2).*exp(1i*(s21(:3)*pi/1

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       3816  2015-01-12 16:17  NRW.m

----------- ---------  ---------- -----  ----

                 3816                    1


评论

共有 条评论