应用介绍
此项目是通信天线建模与MATLAB仿真分析代码。
下面展示一部分代码:
function [Z]= impmet( EdgesTotal,TrianglesTotal,...
EdgeLength,K,...
Center,Center_,...
TrianglePlus,TriangleMinus,...
RHO_P,RHO_M,...
RHO__Plus,RHO__Minus,...
FactorA,FactorFi);
%IMPMET Standard impedance matrix (metal surface)
%
% Returns the complex impedance matrix [EdgesTotal x EdgesTotal]
% Uses 9 integration points for every triangle
% (barycentric subdivision)
%
% The impedance matrix is calculated as a sum of the contributions
% due to separate triangles (similar to the "face-pair" method).
% See Appendix B for a detailed algorithm.
%
% A 9-point quadrature is used for all integrals, including
% the self-coupling terms. The alternative source code with
% the analytical approximation of the self-coupling terms
% is given in Appendix B. The difference between two methods
% is not significant.
%
% Copyright 2002 AEMM. Revision 2002/03/12
% Chapter 2
%Memory allocation
Z =zeros (EdgesTotal,EdgesTotal)+j*zeros(EdgesTotal,EdgesTotal);
%Loop over integration triangles
for p=1:TrianglesTotal
Plus =find(TrianglePlus-p==0);
Minus =find(TriangleMinus-p==0);
D=Center_-repmat(Center(:,p),[1 9 TrianglesTotal]); %[3 9 TrianglesTotal]
R=sqrt(sum(D.*D)); %[1 9 TrianglesTotal]
g=exp(-K*R)./R; %[1 9 TrianglesTotal]
gP=g(:,:,TrianglePlus); %[1 9 EdgesTotal]
gM=g(:,:,TriangleMinus); %[1 9 EdgesTotal]
Fi=sum(gP)-sum(gM); %[1 1 EdgesTotal]
ZF= FactorFi.*reshape(Fi,EdgesTotal,1); %[EdgesTotal 1]
for k=1:length(Plus)
n=Plus(k);
RP=repmat(RHO__Plus(:,:,n),[1 1 EdgesTotal]); %[3 9 EdgesTotal]
A=sum(gP.*sum(RP.*RHO_P))+sum(gM.*sum(RP.*RHO_M));
Z1= FactorA.*reshape(A,EdgesTotal,1);
Z(:,n)=Z(:,n)+EdgeLength(n)*(Z1+ZF);
end
for k=1:length(Minus)
n=Minus(k);
RP=repmat(RHO__Minus(:,:,n),[1 1 EdgesTotal]); %[3 9 EdgesTotal]
A=sum(gP.*sum(RP.*RHO_P))+sum(gM.*sum(RP.*RHO_M));
Z1= FactorA.*reshape(A,EdgesTotal,1);
Z(:,n)=Z(:,n)+EdgeLength(n)*(Z1-ZF);
end
end
..............................想了解更多请下载附件
©版权声明:本文内容由互联网用户自发贡献,版权归原创作者所有,本站不拥有所有权,也不承担相关法律责任。如果您发现本站中有涉嫌抄袭的内容,欢迎发送邮件至: www_apollocode_net@163.com 进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
转载请注明出处: apollocode » 通信天线建模与MATLAB仿真分析代码
文件列表(部分)
名称 | 大小 | 修改日期 |
---|---|---|
current.mat | 8.99 KB | 2017-05-20 |
impedance.mat | 7,672.37 KB | 2017-05-20 |
impmet.m | 0.89 KB | 2017-05-20 |
impmet.m | 0.89 KB | 2017-05-20 |
rwg3.m | 0.80 KB | 2017-05-20 |
bowtie.m | 0.66 KB | 2017-05-20 |
bowtie.mat | 3.13 KB | 2017-05-20 |
dipole.m | 0.58 KB | 2017-05-20 |
dipole.mat | 0.84 KB | 2017-05-20 |
plate.m | 0.39 KB | 2017-05-20 |
plate.mat | 0.71 KB | 2017-05-20 |
platecoarse.mat | 0.70 KB | 2017-05-20 |
platefine.mat | 2.26 KB | 2017-05-20 |
slot.m | 0.60 KB | 2017-05-20 |
slot.mat | 9.75 KB | 2017-05-20 |
viewer.m | 0.32 KB | 2017-05-20 |
mesh1.mat | 8.56 KB | 2017-05-20 |
mesh2.mat | 67.10 KB | 2017-05-20 |
rwg1.m | 1.18 KB | 2017-05-20 |
rwg2.m | 1.04 KB | 2017-05-20 |
rwg3.m | 0.79 KB | 2017-05-20 |
rwg4.m | 0.78 KB | 2017-05-20 |
rwg5.m | 0.56 KB | 2017-05-20 |
rwg6.m | 0.87 KB | 2017-05-20 |
current.mat | 2.15 KB | 2017-05-20 |
efield1.m | 0.73 KB | 2017-05-20 |
efield2.m | 0.86 KB | 2017-05-20 |
efield3.m | 0.98 KB | 2017-05-20 |
gainpower.mat | 0.25 KB | 2017-05-20 |
mesh2.mat | 11.58 KB | 2017-05-20 |
发表评论 取消回复